gchristensen changed the topic of #nixos to: NixOS 18.09 released https://discourse.nixos.org/t/1076 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
jasongrossman has quit [Ping timeout: 250 seconds]
<infinisil> colemickens: Have you considered using NUR?
<infinisil> ,NUR
<{^_^}> Nix User Repository: User contributed nix packages, https://github.com/nix-community/NUR
<ottidmes> colemickens: hmmm, my tool works for any fetcher, but that sha is defined outside of a fetcher call, so it probably wont work out of the box
<colemickens> I mean, I guess I don't get the NUR.
doyougnu has joined #nixos
<colemickens> I don't really ever want to use all of the NUR, it doesn't really solve the problem I'm specifically looking at either.
jasongrossman has joined #nixos
<colemickens> unless there's NUR maintenance scripts that I haven't seen
<infinisil> It's just "NUR", not "the NUR". And it's not for solving any of your problems, it's just for distributing packages
<infinisil> You can push updates to your referred repo and NUR gets the update as well automatically
<infinisil> Ah
<infinisil> Yeah it doesn't really update any sha256's or so
<infinisil> In your own repo
* colemickens nods
<infinisil> Sorry I misunderstood
erictape1 has joined #nixos
<colemickens> I guess it would help if I get to the point where I have 10 overlay repos and I don't want to ask my users to manually add all 10, instead they can add NUR And then transitively reference my overlays, but it feels like a fairly small optimization
<colemickens> all good, always happy for suggestions and pushback :)
<infinisil> colemickens: I recently did this which might be more like something you're looking for: https://github.com/Infinisil/system/blob/master/config/sources/update
<infinisil> With this update script I can update any of the nix expressions in that directory to the latest master version
<colemickens> :)
<colemickens> I have something similar, just doesn't handle cargoSha256 (yet?).
<colemickens> Someone in Discourse has something similar, with all packages in a single JSON file. This also butts up against flakes.nix a bit, as I understand it.
erictapen has quit [Ping timeout: 240 seconds]
JonReed has joined #nixos
<infinisil> Ah, for mine I needed it to work with gitlab
<adisbladis> I wouldn't even consider flakes.nix at this point, it's purely theoretical
<colemickens> adisbladis: yeah, totally, just mentioning it in terms of thinking about the end goal and how to corral efforts.
<JonReed> Hi guys, how to make it so that `ghc` and `ghci` commands are available when running `nix-shell -E "with import <nixpkgs> {}; pkgs.haskellPackages.ghcWithPackages (p: [ ])"`. That command works, but if you add any packages like `p.turtle` it magically stops working. Is this a bug or expected?
<infinisil> JonReed: Replace -E with -p
<colemickens> infinisil: good point, I forgot that I completely use gh as crutch there to make it "stateless" (lol).
sigmundv_ has joined #nixos
<colemickens> I like yours as well, definitely bookmarking it.
<infinisil> It is a bit hacky with the string replacements, but it worked well for now
marvin2 has joined #nixos
ToxicFrog has quit [Ping timeout: 268 seconds]
<JonReed> infinisil: Thanks. That works. But what is happening here and why it works? I have a script that I run using `nix-shell myscript.nix` where I want to expose that environment. What do I need to convert `ghcWithPackages (p: [])`into the expression that also contains ghc and ghci?
<infinisil> JonReed: -E works the same as when you pass it a file: It puts you into an environment to build the package it received as an argument, which is ghcWithPackages .. in this case
<ottidmes> colemickens: how do you even determine cargoSha256? do you get an hash mismatch error for it like any other fetcher?
<infinisil> JonReed: -p on the other hand puts you into an environment with the package it received as an argument in it
<infinisil> built already
<colemickens> ottidmes: yeah
<colemickens> hash mismatch in fixed-output derivation '/nix/store/bjs2kcylrcwidgab7w8fqf6k5yd37k0g-wmfocus-69da8166d0cba19343d120e934c5088b8f8d0d43-vendor':
<colemickens> wanted: sha256:01ifrk6whvckys1kbj65cdwh976yn7dy9vpf4jybnlqripknab43
<colemickens> got: sha256:1zn2f8cyzd53g4d4qb7pgwgfw8nrvmcszzcfmndzxv21gdizqy3v
<ottidmes> cool, then there is hope
<infinisil> JonReed: Now the question is how you can get the -p behavior with a file. The answer is to create a (pseudo-)package that requires ghcWithPackages for building it and passing that as an argument
<adisbladis> cargoSha256 is "ugly" in the sense that it's an aggregate hash over all build deps
<infinisil> JonReed: So in the end, it's `with import <nixpkgs> {}; stdenv.mkDerivation { name = "env"; nativeBuildInputs = [ (ghcWithPackages ...) ]; }` that you need
aristid has quit [Ping timeout: 252 seconds]
aristid has joined #nixos
<ar1a> hm, no facebot for new issue huh?
<infinisil> ar1a: Facebot?
<ar1a> {^_^}:
<ar1a> infinisil: facebot :D
<infinisil> It only does that for pull requests I'm pretty sure, the notices here
<JonReed> infinisil: This works. Thanks.
ToxicFrog has joined #nixos
WhittlesJr has quit [Ping timeout: 256 seconds]
erictape1 has quit [Ping timeout: 240 seconds]
<ottidmes> colemickens: I have to fix something in the tool (pointing directly to a src rather than package), but it should then work just fine for cargoSha256, since cargoDeps is defined on every cargo package and is just a fetcher, which my tool can work with
drakonis has joined #nixos
<colemickens> cool!
eadwu has joined #nixos
<ottidmes> colemickens: what is the attribute path to fetchcargo, since it is not defined at top level it seems
andreabedini has joined #nixos
worldofpeace has quit [Ping timeout: 268 seconds]
vk3wtf has quit [Ping timeout: 252 seconds]
worldofpeace has joined #nixos
thc202 has quit [Ping timeout: 250 seconds]
doyougnu has quit [Ping timeout: 240 seconds]
<ar1a> is there a build-essential esque thing?
<infinisil> ar1a: Not sure what you mean
<ar1a> a metapackage with all the compilation stuff like binutils make gcc/clang etc
<ar1a> things essential to build
<ottidmes> ar1a: nix-shell?
eadwu has quit [Ping timeout: 268 seconds]
<ar1a> sorry?
<ottidmes> ar1a: if you run nix-shell on any package you will get its development environment, so also all its build tools
<infinisil> ar1a: And any default stdenv.mkDerivation contains a c compiler and some common utils already
<worldofpeace> ^ standard enviroment or stdenv :)
<ottidmes> ar1a: nix-shell '<nixpkgs>' -A hello, will then contain e.g. /nix/store/nly6dg3af8ycqn1x87ns1r3mrcjpv43a-gcc-7.3.0/bin on the PATH, because the default stdenv uses gcc, like mentioned above
rcshm has quit []
eadwu has joined #nixos
jasongrossman has quit [Ping timeout: 240 seconds]
<gchristensen> rain1: ping?
hellrazo1 has joined #nixos
hellrazor has quit [Ping timeout: 245 seconds]
<{^_^}> [hydra] @samueldr opened pull request #631 → Enhances user-facing dates → https://git.io/fhgzv
orivej has quit [Ping timeout: 246 seconds]
Ariakenom has quit [Quit: Leaving]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<q6AA4FD> how do i set things like enableContribAndExtras for xmonad if i'm running nix on a foreign distro and thus don't use /etc/nixos/configuration.nix?
ng0 has quit [Quit: Alexa, when is the end of world?]
andreabedini has joined #nixos
sigmundv_ has quit [Ping timeout: 268 seconds]
<q6AA4FD> tried that first, didn't work :(
<infinisil> ,dnw ...
<{^_^}> ...: "Does not work" isn't very helpful: What doesn't work? What's the error?
kvda has joined #nixos
<q6AA4FD> xmonad --recompile complains that my imports from contrib cannot be found
<gchristensen> I think you'll have to recompile with nix-build, not xmonad --recompile
<infinisil> gchristensen: Nah, --recompile should work (it's patched for nixpkgs)
<gchristensen> ah
<infinisil> q6AA4FD: Does `$(nix-build -E 'with import <nixpkgs> {}; xmonad-with-packages.override { packages = self: [ self.xmonad-contrib ]; }')/bin/xmonad --recompile` work?
<gchristensen> infinisil: what would you think about replacing ,... with ,elaborate or something? "..." might feel off-putting
<infinisil> You mean ,dwn?
<gchristensen> oh
o1lo01ol1o has joined #nixos
<gchristensen> :)
<gchristensen> dnw is fine :P
<infinisil> :)
<gchristensen> (but the "..." is a bit off-putting I think!)
<infinisil> You have a point there
<infinisil> Will try to avoid it
<ottidmes> infinisil: pun intended?
<q6AA4FD> infinisil: it does
<infinisil> ottidmes: Hah
mizu_no_oto has joined #nixos
mizu_no_oto has quit [Client Quit]
<gchristensen> thanks, infinisil :) it means a lot to me that people find #nixos *so* friendly and welcoming
<infinisil> q6AA4FD: Then your xmonad binary on your path is not the one you're looking for, how did you install the version with contrib?
<gchristensen> what does `which xmonad` report?
<q6AA4FD> ~/.nix-profile/bin/xmonad
<ottidmes> colemickens: I had to make a few changes (it was an interesting test case), but I can confirm my nix-prefetch not works for cargo too (I have to do some more cleaning up before I push it though)
o1lo01ol1o has quit [Ping timeout: 246 seconds]
jasongrossman has joined #nixos
<q6AA4FD> gchristensen: this is even after i run `nix-env -irA nixpkgs.xmonad-fixed` (xmonad-fixed is my temp name for the overriden package)
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhggv
<ottidmes> colemickens: unfortunately I did had to modify rustPlatform.buildRustPackage (its corresponding default.nix) to not include fetchcargo via a file directly, but as an argument, but I have it on my TODO to not require even such a change
<infinisil> q6AA4FD: How did you define xmonad-fixed? Can you paste the file?
<q6AA4FD> infinisil: i have an override in ~/.config/nixpkgs/foo.nix: xmonad-fixed = stdenv.lib.overrideDerivation self.xmonad-with-packages (attrs: rec { \n packages = with haskellPackges; [ xmonad-contrib ]; \n });
hellrazo1 has quit [Ping timeout: 250 seconds]
<infinisil> q6AA4FD: Take another look at what gchristensen linked
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c076bd22338 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
hellrazo1 has joined #nixos
<gchristensen> specifically the xmonad-extra part, I think
<infinisil> Nah, q6AA4FD, you didn't use override, you used overrideDerivation, that's not the same
<gchristensen> oops :)
<q6AA4FD> infinisil: ohh, does overrideDerivation only change the compile time attributes?
<q6AA4FD> infinisil, gchristensen: i got it, thank you very much for your help
<gchristensen> all infinisil's good work :)
<q6AA4FD> i can't really see a reason to use overrideDerivation or overrideAttrs over override, am i missing something?
<gchristensen> yeah
joehh has joined #nixos
<gchristensen> .override would override the parameters passed here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/hello/default.nix#L1
<gchristensen> .overrideDerivation should probably not be used
<q6AA4FD> gchristensen: the parameters that .override can override are stdenv and fetchurl only? how was .override able to change packages for xmonad in wrapper.nix then?
<teto> how to force a redownload via builtins.fetchGit ? aka not wait for tarball-ttl
<ottidmes> q6AA4FD: here are some examples: https://nixos.org/nixpkgs/manual/#sec-overrides
<ottidmes> teto: maybe give it a bogus hash? like sha256 = "0000000000000000000000000000000000000000000000000000";
<gchristensen> q6AA4FD: in xmonad's case, .override can override these:https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/window-managers/xmonad/wrapper.nix#L1
<q6AA4FD> gchristensen: so that's pkgs, lib, config? but i don't see packages in there, which is what i was able to override
<gchristensen> no, it is overriding https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/window-managers/xmonad/wrapper.nix#L1 -- "{ stdenv, ghcWithPackages, xmessage, makeWrapper, packages }:"
<CMCDragonkai> Is there a proper way to fetch from Github releases?
<q6AA4FD> gchristensen: oh, it was a different .nix file...i'm just stupid
<CMCDragonkai> Not the commit, but a release tag/
muvlon has joined #nixos
<q6AA4FD> CMCDragonkai: rev = version; in fetchFromGitHub will work.
<q6AA4FD> sometimes you need to do v${version}; if they tag versions with a v in front
<q6AA4FD> or rather rev = "v${version}";
<q6AA4FD> gchristensen: i understand now, thanks for the help dude
<gchristensen> yep!
<gchristensen> might mkae for a good blog post
<CMCDragonkai> q6AA4FD: I think fetchFromGithub only does commit hashes.
<gchristensen> it can take tags too, CMCDragonkai
<ottidmes> I am now just adding an attribute to a derivation via say: pkgs.hello.src // { foo = 5; }, which works, do I gain anything by doing this instead: pkgs.hello.src.overrideAttrs { passthru = { foo = 5; }; }?
<CMCDragonkai> gchristensen: Can you give an example
<ottidmes> CMCDragonkai: rev = "master";
jasongrossman has quit [Ping timeout: 246 seconds]
jasongrossman has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
jasongrossman has quit [Remote host closed the connection]
silver has quit [Read error: Connection reset by peer]
muvlon has quit [Ping timeout: 252 seconds]
iqubic` has joined #nixos
jackdk has quit [Remote host closed the connection]
jackdk has joined #nixos
iqubic has quit [Ping timeout: 268 seconds]
freeman42x has quit [Ping timeout: 252 seconds]
Supersonic has quit [Ping timeout: 264 seconds]
<yl[m]> How do we deal with option renames? I'm reviewing https://github.com/NixOS/nixpkgs/pull/11886 and it has a rename of `security.pam.enableU2F` to `security.pam.u2f.enable`
<{^_^}> #11886 (by spinus, 3 years ago, open): refactor pam-u2f: add keysPath, verbose, fix docs about u2f_keys path
muvlon has joined #nixos
Supersonic has joined #nixos
<ottidmes> yl[m]: there is nixos/modules/rename.nix, but that is all I know
<yl[m]> ottidmes: right on, thanks
jtojnar has joined #nixos
o1lo01ol1o has joined #nixos
<colemickens> ottidmes good stuff, I'll try to start leveraging it soon if I figure it out!
slyfox has quit [Ping timeout: 245 seconds]
slyfox_ has joined #nixos
wak-work has joined #nixos
Yaniel has quit [Excess Flood]
vk3wtf has joined #nixos
Yaniel has joined #nixos
jasongrossman has joined #nixos
<ottidmes> colemickens: when I am done implementing support for a "fetcher file", the following will work: nix-prefetch '(callPackage /wheel/fork/nixpkgs-wayland/pkgs/wmfocus/default.nix { }).cargoDeps' --fetcher --file '<nixpkgs/pkgs/build-support/rust/fetchcargo.nix>'
jasongrossman has quit [Client Quit]
hedning has quit [Quit: hedning]
<muvlon> has anybody here used a device tree overlay with nixos before?
<muvlon> i'm kind of lost trying to figure out if kernels built by nixos even support them
tmaekawa has quit [Ping timeout: 245 seconds]
worldofpeace has quit [Quit: worldofpeace]
lawlesseel has quit [Remote host closed the connection]
lawlesseel has joined #nixos
jasongrossman has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmeredith has joined #nixos
lassulus_ has joined #nixos
drakonis has quit [Remote host closed the connection]
lassulus has quit [Ping timeout: 240 seconds]
lassulus_ is now known as lassulus
praetorg_ has joined #nixos
hellrazo1 has quit [Quit: WeeChat 2.3]
praetorg has quit [Ping timeout: 268 seconds]
kvda has joined #nixos
joehh has quit [Ping timeout: 268 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #54403 → pythonPackages.grandalf: init at 0.6 → https://git.io/fhzkc
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhgwd
jasongrossman has quit [Ping timeout: 250 seconds]
eadwu has quit [Ping timeout: 252 seconds]
ryantm has quit [Quit: Lost terminal]
ryantm has joined #nixos
<iqubic`> hello
iqubic` is now known as iqubic
doyougnu has joined #nixos
<wedens> ar1a: Re "fonts.fonts" in home-manager: https://github.com/rycee/home-manager/issues/520
<{^_^}> home-manager#520 (by wedens, 3 weeks ago, open): Update fonts cache
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marvin2 has quit [Ping timeout: 244 seconds]
<iqubic> How does nix handle suckless tools where you need to recompile after changing the config?
<{^_^}> [nixpkgs] @nh2 pushed to gstreamer-1.15.1 « gstreamer: 1.14.4 -> 1.15.1, and extended gst-plugins-bad. »: https://git.io/fhgrM
jb55 has quit [Ping timeout: 250 seconds]
<wedens> iqubic: seems to be done using `dwm.override { patches = [ ... ]; }`
jb55 has joined #nixos
<iqubic> I see
<praetorg_> i haven't done it but it looks like this https://www.reddit.com/r/NixOS/comments/5vvywq/st_terminal_configuration/ can get you started
jasongrossman has joined #nixos
<{^_^}> [nixpkgs] @nh2 pushed 0 commits to gstreamer-1.15.1: https://git.io/fhgr5
pie__ has joined #nixos
pie___ has quit [Ping timeout: 245 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tmaekawa has joined #nixos
andreabedini has joined #nixos
jasongrossman has quit [Remote host closed the connection]
tmaekawa has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
drakonis has joined #nixos
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 246 seconds]
Mateon3 is now known as Mateon1
drakonis_ has quit [Ping timeout: 240 seconds]
fusion809 has quit [Remote host closed the connection]
teoma has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 250 seconds]
revtintin has joined #nixos
drakonis_ has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
orivej has joined #nixos
<Ralith> any rust users about?
drakonis has joined #nixos
ottidmes has quit [Ping timeout: 272 seconds]
drakonis_ has quit [Ping timeout: 252 seconds]
ddellaco_ has quit [Remote host closed the connection]
<muvlon> Ralith, yes
<Ralith> muvlon: do you have a nightly from newer than the 7th working?
<Ralith> rustc -vV segfaults on me every day since
doyougnu has quit [Ping timeout: 268 seconds]
<muvlon> no, I'm using stable only right now
<muvlon> so 1.31.0
<muvlon> i can try installing nightly though
<muvlon> are you using the mozilla overlay?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #54261 → azure-storage-python → https://git.io/fhBQ5
<{^_^}> [nixpkgs] @worldofpeace pushed 6 commits to master: https://git.io/fhgKS
orivej has quit [Ping timeout: 268 seconds]
alex_giusi_tiri has joined #nixos
acarrico has quit [Ping timeout: 246 seconds]
<Ralith> muvlon: yeah
<Ralith> stable works fine
<Ralith> (rustChannelOf { date = "2019-01-08"; channel = "nightly"; }).rust works fine
<Ralith> everything newer segvs
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/5476f592c56 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<muvlon> huh, weird
<muvlon> have you tried gdb?
<muvlon> (i'm installing their nightly but it takes forever on this connection)
kvda has joined #nixos
kvda has quit [Client Quit]
<muvlon> Ralith: rustc -vV works fine here
<muvlon> rustc 1.33.0-nightly (7164a9f15 2019-01-21)
<muvlon> this is aarch64 though
<Ralith> muvlon: gdb points to something inside llvm::cl::OptionCategory::registerCategory, called during static initialization of libLLVM-8svn.so
<Ralith> __pthread_once_slow inside that
<muvlon> odd
revtintin has quit [Quit: WeeChat 2.2]
<Ralith> very aggravating
<muvlon> google turns up this: https://github.com/rust-lang/rust/issues/57518
<{^_^}> rust-lang/rust#57518 (by bbigras, 1 week ago, open): rustc -vV segmentation fault
winem_ has joined #nixos
<muvlon> as with any weird software problem, the cause is related to linkers
jackdk has quit [Ping timeout: 245 seconds]
<muvlon> now i'm wondering why mine works at all
seanparsons has quit [Remote host closed the connection]
<Ralith> ah, nice find
seanparsons has joined #nixos
reinhardt has joined #nixos
jasongrossman has joined #nixos
palo1 has joined #nixos
<Ralith> it doesn't seem like the specific cause is known; presumably it's something architecture is sensitive to
<Ralith> er, something sensitive to architecture
<Ralith> some species of race condition?
<muvlon> idk
<muvlon> linking is the one topic where i just don't bother
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
<muvlon> if you have a lot of time on your hands, you can try bisecting rustc on nix
<Ralith> per the thread, d585553 looks very suspect, particularly as libstdc++ is still in RUNPATH
endformationage has quit [Quit: WeeChat 2.3]
<Ralith> muvlon: does libstdc++ show up in ldd `which rustc` for you?
winem_ has quit [Ping timeout: 264 seconds]
<Ralith> or readelf -d `which rustc`
marvin2 has joined #nixos
<{^_^}> [nixpkgs] @teto opened pull request #54454 → luarocks: support more commands: pack/build → https://git.io/fhgiS
orivej has joined #nixos
<tilpner> Ralith: It seems like rustc grew a "needed" dependency on libpthread, libdl, librt, and ld-linux
<tilpner> (Diffing readelf -d for stable with beta)
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<Ralith> working nightly vs. broken nightly readelf -d sections look identical to me
tdeo has joined #nixos
<Ralith> checking beta
<{^_^}> [nixpkgs] @danbst opened pull request #54455 → htop: cleanup patchShebangs → https://git.io/fhgip
<tilpner> Patchelf-ing the new dependencies away doesn't magically change anything, still dies in __pthread_once_slow
<tilpner> (I may have done that wrong)
tdeo has quit [Client Quit]
tdeo has joined #nixos
<tilpner> (Yeah, probably. Only patched rustc, not every single lib it loads too)
nikola_i has joined #nixos
<Ralith> tilpner: I think the dynamic section change since stable is a red herring
tdeo has quit [Client Quit]
<Ralith> I confirm stable has fewer libs, but it still has libstdc++, and the older nightly has the new libs but isn't broken
tdeo has joined #nixos
<Ralith> I think the static libstdc++ commit cited in the issue is a good bet
<tilpner> Ralith: Possibly. But it dies in pthreads, and one of the added dependencies is pthreads
<tilpner> It sounded suspicious enough to mention
<Ralith> right, but it's added before the breakage arises
<tilpner> Don't know, I only tried latest stable(ok)/beta(broken)/nightly(broken), not individual nightlies
<Ralith> check (rustChannelOf { date = "2019-01-08"; channel = "nightly"; }).rust vs. -09
<Ralith> (or just take my word for it)
bananchick_pasha has joined #nixos
tdeo has quit [Quit: Quit]
bananchick_pasha has quit [Ping timeout: 272 seconds]
<Myrl-saki> Can I have my PR reviewed? #53600
<{^_^}> https://github.com/NixOS/nixpkgs/pull/53600 (by adrianparvino, 2 weeks ago, open): nixos/modules/system/boot/stage-1.nix: Add support for mounting files encrypted with luks
bananchick_pasha has joined #nixos
seanparsons has quit [Quit: ZNC 1.7.1 - https://znc.in]
tdeo has joined #nixos
seanparsons has joined #nixos
tdeo has quit [Client Quit]
xkapastel has joined #nixos
tdeo has joined #nixos
tdeo has quit [Client Quit]
tdeo has joined #nixos
tdeo has quit [Client Quit]
tdeo has joined #nixos
tdeo has left #nixos [#nixos]
hyper_ch2 has joined #nixos
nckx has quit [Quit: Updating my GNU Guix server — https://guix.info]
nckx has joined #nixos
tdeo has joined #nixos
rtjure has quit [Ping timeout: 240 seconds]
seqizz has joined #nixos
<nikola_i> hello i have a custom xkb symbols keymap that i want to use. but i cannot copy it to /etc/X11/xkb/symbols it being a read only system. What is the "Nix" way to do this
rtjure has joined #nixos
<srhb> I used to be able to use grub with mirroredBoots, but since using luks + zfs I'm having trouble setting it up. When I choose a generation it just gets stuck with only the grub logo on screen. Is there a way to get debug information at this point somehow?
<seqizz> @nikola_i if that file is not present, check out the option environment.etc.<name?>.text , I couldn't find a direct option to manage that file
hph^ has joined #nixos
reinhardt has quit [Ping timeout: 246 seconds]
reinhardt has joined #nixos
worldofpeace has joined #nixos
<sb0> does Hydra support HTTPS?
<srhb> sb0: Not sure, but a usual install has a proxy in front of Hydra.
<srhb> sb0: Leaving it up to eg. nginx to do https.
<seqizz> When I want to update the system, it always tries to compile libreoffice instead of downloading from cache (I'm on 18.09). Is there a way to check if I am using a custom option somewhere? Hydra-built version has a different hash :\
<srhb> seqizz: That's one such check :)
<srhb> seqizz: Unfortunately identifying the override is difficult. You can try to diff the drvs in order to try and figure out what dependency is changed.
nikola_i has quit [Quit: Leaving]
<Myrl-saki> How to print a stacktrace on `nix repl`?
<Myrl-saki> Oh, of course, --show-trace.
mbrock has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
orivej has joined #nixos
gagbo has joined #nixos
<srhb> seqizz: Not sure if I gave you enough to go on. I'd start by getting the unmodified drv via something like.. nix eval '(with import <nixpkgs> { config = {}; overlays = []; }; libreoffice.drvPath)' and comparing that to yours. Does that help?
Ariakenom has joined #nixos
<seqizz> @srhb ah yes that definitely helps, I was thinking which one of those drvs are the "normal" one :)
<srhb> seqizz: Right. setting config {} and overlays [] should usually give you a "clean" nixpkgs. :)
<srhb> seqizz: There's a nice tool called nix-diff you can use for finding out which dependency differs, and then you just have to crawl the tree.
<seqizz> srhb: I was going to normally diff them and use some weird regexp, THANKS :D
<srhb> seqizz: Let us know how it goes :)
<seqizz> aww shoot.. error: build of '/nix/store/cf43377vdhp11d1g9y9q4zk4ah1rg34p-nix-diff-1.0.5.drv' failed
<srhb> seqizz: If you don't mind grabbing unstable for it you can nix-env -f channel:nixos-unstable -iA nix-diff -- but it'll be a large download if you don't usually use any unstable packages.
<srhb> (also we should fix that...)
Makaveli7 has joined #nixos
<srhb> Errr, that's weird though. As far as I can see the version in 18.09 is 1.0.4 and DOES work
<srhb> So something is up on your system.
<seqizz> srhb: I'll re-check my channels :|
<srhb> It should be: /nix/store/bcdv3wl3s3b9bxqh1dw6h8819g47kkkh-nix-diff-1.0.4
nikola_i has joined #nixos
<srhb> So maybe just nix-env -f channel:nixos-18.09 -iA nix-diff
<seqizz> srhb: I am getting /nix/store/cf43377vdhp11d1g9y9q4zk4ah1rg34p-nix-diff-1.0.5.drv
erictapen has joined #nixos
<srhb> Unless there was a revert, that sounds like an older unstable version.
<seqizz> srhb: yup, that env command installed 1.0.4 from cache
<srhb> So yeah, it does sound like you have some messy channels.
nikola_ has joined #nixos
<seqizz> srhb: wait I do have unstable in my system channels list :O how did this came here... sorry for the unnecessary crap, I'll check my config.
<srhb> seqizz: No worries. :)
<muvlon> sooo i upgraded my nixos to linux 4.20 and now there is no wifi anymore
gagbo has quit [Quit: I'm out !]
<srhb> To recap a standard nixos install: The user(s) usually have no channels, and root has one channel for the current stable set up.
<muvlon> how can i debug this?
<{^_^}> [nixpkgs] @nthorne opened pull request #54458 → uftrace: 0.9.1 -> 0.9.2 → https://git.io/fhg1p
winem_ has joined #nixos
<muvlon> the device just doesn't show up at all in "ip link"
gagbo has joined #nixos
<srhb> muvlon: dmesg, system logs, check ip a, is the interface there, if it is check the service that usually brings wifi up, ...
nikola_i has quit [Ping timeout: 268 seconds]
<srhb> muvlon: Ah, then you want to check if the module is loaded and go from there :)
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bananchick_pasha has quit [Read error: Connection reset by peer]
nikola_ has quit [Quit: Leaving]
<muvlon> hmm, i modprobed the driver (brcmfmac) and now it's loaded, but still no device
<muvlon> no new dmesg output either
nikola_i has joined #nixos
andreabedini has joined #nixos
<srhb> muvlon: What's the x in 4.20.x?
sicklorkin has joined #nixos
<muvlon> 3
<muvlon> oh wait, it may be related to this: https://github.com/NixOS/nixpkgs/pull/53747
<{^_^}> #53747 (by bkchr, 1 week ago, merged): linux: Adds patch for fixing wifi on raspberry pi
kvda has joined #nixos
<muvlon> i'll try the thing from the wiki
<srhb> muvlon: That looks to be merged though?
<muvlon> yeah, but i had the old hack in place still
<srhb> Ah
<muvlon> the one that grabs the raspberry foundation firmware off github
<muvlon> apparently that can now be redistributed
<Myrl-saki> How do I override cargoSha256?
<srhb> Myrl-saki: Does overrideAttrs not work?
<makefu> on the rpi3 the wiki works with the stable kernel (on stable branch)
<Myrl-saki> srhb: It overrides the root derivation only. The source derivation also uses the value as its fixed output hash.
<makefu> s/wiki/wifi/
dermetfan has joined #nixos
<muvlon> makefu: i see. this is currently on unstable though
<srhb> Myrl-saki: Then you'll have to override src as well.
<Myrl-saki> srhb: Yeah, at this point, I might as well just change the file itself.
<makefu> muvlon: cool thing is that the binary cache is build for the rpi3 as aarch64 system for both stable and unstable channel
<srhb> Myrl-saki: I suppose. :) This is a common issue similar to the "I overrode version why doesn't it work one.
winem_ has quit [Ping timeout: 268 seconds]
<muvlon> makefu: so should i downgrade to stable, then?
nikola_i has quit [Ping timeout: 240 seconds]
gagbo has quit [Quit: I'm out !]
_kwstas has joined #nixos
<makefu> muvlon: you could just try the stable kernel ( boot.kernelPackages = pkgs.linuxPackages ); instead of pkgs.linuxPackages_latest
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/5476f592c56 (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
carlosdagos has quit [Quit: Connection closed for inactivity]
<manveru> anyone wanna merge https://github.com/NixOS/nixpkgs/pull/53641 ?
<{^_^}> #53641 (by manveru, 1 week ago, open): docker-sync: init at 0.5.9
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bananchick_pasha has joined #nixos
<Myrl-saki> Okay, crap, does buildRustPackage parse Cargo.toml?
<Myrl-saki> jD91mZM2: Are you still maintaining nix-lsp?
<muvlon> makefu: doing that now, let's see what happens
<muvlon> stable kernel is already on 4.19.16 as well btw :O
<muvlon> nice, wifi works :) good idea makefu
<seqizz> srhb: Huh, apparently my system was in a schröedinger-state. Reverted some stuff I did. Still wanted to build libreoffice (but not libreoffice-fresh) :\ Thanks again
civodul has joined #nixos
nikola_i has joined #nixos
jb55 has quit [Ping timeout: 250 seconds]
nakkle has joined #nixos
<Myrl-saki> Mic92: Is your nur-packages against unstable?
<Myrl-saki> Hm.
<muvlon> an aside: it's really cool to see so many rustaceans in here :)
goibhniu has joined #nixos
<Myrl-saki> Apparently yeah.
erictapen has quit [Ping timeout: 245 seconds]
<Myrl-saki> @Mic92 Mic92 rust: Remove unused `buildRustPackage` from binaryBuild.nix
<Myrl-saki> Ah.
Guanin has joined #nixos
jb55 has joined #nixos
<Myrl-saki> buildRustPackage = _: throw "build fix evaluated";
<Myrl-saki> I hope this works lol
<ivegotasthma> is there any downside to always using `nix-shell --pure`?
<srhb> ivegotasthma: Some applications simply don't work in a pure environment. Whenever it does, I'd say it's preferable.
<muvlon> what exactly does a pure environment prohibit?
<symphorien> it won't propagate TERM
<symphorien> that's annoying with some terminal emulators
<srhb> muvlon: I can't remember the exceptions off the top of my head, sorry. Whenever I bump into it I curse the designers of whatever software that relies on impurities we can't easily model and move on with my life :P
krkini is now known as kini
<muvlon> i don't even have a concept of what "purity" means wrt nix tbh
<ivegotasthma> muvlon: https://dpaste.de/whOx/raw
<symphorien> "behavior only depends on the nix files involved, not on your environment"
<Myrl-saki> There's at least 2 or 3 definitions of purity in Nix, or at least concepts related to purity.
<ivegotasthma> Myrl-saki: I know of 2 now, sandboxing - pure in terms of network access, and this definition.
<ivegotasthma> but I'm new, so I'm probably missing something
<Myrl-saki> ivegotasthma: There's also fixed hash output, FWIW.
<srhb> ivegotasthma: I'd say pure builds (and thus pure packages) is the most essential purity we have.
<ivegotasthma> isn't the hash always the same? from my understanding the hash of the derivation is the hash of the .nix file used to build the software, not the contents of the build
<srhb> ivegotasthma: For fixed-output drvs it's the other way around.
<srhb> ivegotasthma: That's the trick we use to get purity in our downloads.
<Myrl-saki> ivegotasthma: And we're also aiming for the hash of the contents, it's just currently impossible, for some definitions of impossible.
<ivegotasthma> are those drvs part of the path to content addressable storage?
<srhb> ish, maybe, to be determined. :)
<ivegotasthma> srhb: what do you mean by pure builds / getting purity in downloads
<ivegotasthma> this pure minimal nix-shell in which you build software?
<srhb> ivegotasthma: Downloading from the internet is usually not pure (as in, function inputs determine outputs)
<ivegotasthma> why isn't it pure? downloading doesn't change the content of the drv
bananchick_pasha has quit [Read error: Connection reset by peer]
<srhb> ivegotasthma: It would if eg. the contents at some url changed.
<srhb> ivegotasthma: In order to ensure that the build is the same always, we hash the output of the src drvs instead of the inputs.
<ivegotasthma> srhb: ah, I get it
<srhb> Which is what a fixed-output drv is.
<srhb> So we CAN use network AND retain purity IF we know the contents of the download in advance.
<srhb> In other words, you're free to use eg. curl (even in the sandbox!) if you can supply the final hash of the output :)
_kwstas has quit [Quit: _kwstas]
<srhb> The only inputs that matter in that case are outputHash and the name of the drv.
bananchick_pasha has joined #nixos
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
<{^_^}> [nixpkgs] @7c6f434c merged pull request #54454 → luarocks: support more commands: pack/build → https://git.io/fhgiS
<{^_^}> [nixpkgs] @7c6f434c pushed 3 commits to master: https://git.io/fhg90
<Myrl-saki> domenkozar: Is hnix-lsp already functional?
<sicklorkin> The nixos installer said to ask here for help; I cannot install nixos multi-user. Full details are here: https://pastebin.com/raw/XLMjUUVu
thc202 has joined #nixos
<typetetris> Hi there! I have a project with a sources and the default.nix in the same folder. If I call `nix-build`, when will it actually rebuild the derivation? If a timestamp of one of the sources changes, or only on content change?
<seqizz> typetetris: afaik nix doesn't care about timestamps (since it sets them all to epoch in store), it should be the content.
<symphorien> sicklorkin: can you not redact the ... lots of stuff ... part
<symphorien> ?.
<sicklorkin> sure
kvda has joined #nixos
<sicklorkin> symphorien: https://pastebin.com/raw/X7ZDQpP7 has everything
<nikola_i> hello i have a custom xkb keymap file i want to use. I am following this guide for configuration https://nixos.wiki/wiki/Keyboard_Layout_Customization. But when i run nixos-rebuild switch i get syntax error at let
<Taneb> nikola_i: you hould put from let to in before the opening { of the body of your nixos confuration, I think
<nikola_i> Taneb: i checked. its not outside the {} body of configuration
<symphorien> sicklorkin: hum strange. can you retry the nix-env with -vvvvvv ?
erictapen has joined #nixos
<typetetris> sicklorkin: The strace snippet really just shows the cleanup nix does, I would guess. There isn't a single failed call, so the root cause will be in the strace output not shown in the pastebin.
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nikola_i> Taneb: here's a pastebin https://pastebin.com/kfifWr9Z
<Taneb> nikola_i: cut lines 156-160 and paste them before line 7
<domenkozar> Myrl-saki: it works for formatting
<domenkozar> not much else :)
ThatDocsLady has joined #nixos
brejoc has joined #nixos
<Myrl-saki> domenkozar: Any recommendations for syntax highlighting?
<domenkozar> what editor?
<Myrl-saki> Emacs. :c
<sicklorkin> symphorien: Here are the logs with `-vvvvvv`; typetetris: I've also appended all `strace` msgs at the end. https://pastebin.com/raw/bZmvpssA (Thanks for looking at this with me!)
<domenkozar> Myrl-saki: https://github.com/NixOS/nix-mode
<Myrl-saki> domenkozar: Thanks.
<symphorien> sicklorkin: the error in in one of the builder; run strace with -f and -s 1000000
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/a5de4108803 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<typetetris> sicklorkin: As symphorien said, you straced a process which started a builder, which failed, but wasn't straced ... and I think it just looks like the build user doesn't have permissions on that directory, dunno, how that can happen. Check your build users, which group they belong to and if that group can manipulate the store ..
<etu> Myrl-saki: nix-modes alternative indentation function is actually quite decent nowadays, it has some issues but pretty good compared to before :)
<Myrl-saki> etu: Yeah, I just wanted to try out LSP, since I haven't tried it out before, and Nix is the only language which I use regularly nowadays.
<sicklorkin> typetetris: symphorien: i'm going to check permissions (ids/groups) now. Here's the output from `strace -f -s 1000000`.. https://paste.ofcode.org/KamnmkqtG8tepDQVTVJbSq (pastebin restricted to 512k so had to switch)
<symphorien> openat(AT_FDCWD, "/nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC ) = -1 EACCES (Permission denied)
<symphorien> huh
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/a5de4108803 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
erictapen has quit [Ping timeout: 250 seconds]
<sicklorkin> symphorien: what should be the correct permissions on the dir?
<symphorien> root:root + mount namespace shenanigans
<symphorien> so I don't know what happens there
<sicklorkin> drwxr-x--- 9 root root ./ drwxrwxr-t 34 root nixbld ../
<sicklorkin> symphorien: that makes two of us :/
bananchick_pasha has quit [Read error: Connection reset by peer]
<symphorien> can you stop the nix-daemon if there is any running ?
<symphorien> nix run as root should not use the daemon
<etu> Myrl-saki: Yeah, I want to try out LSP as well, but for other things than nix. LSP seems to be very cool :-)
bananchick_pasha has joined #nixos
<sicklorkin> symphorien: no nix-daemon running
<{^_^}> [nixpkgs] @robinp opened pull request #54459 → Add gzip and gnutar to default bazel-bash tools. → https://git.io/fhg5E
<sicklorkin> symphorien: #which nix-daemon; nix-daemon not found
<symphorien> maybe try disabling the sandbox with --option sandbox false
<sicklorkin> symphorien: pass that to nix-env?
<symphorien> yes
__monty__ has joined #nixos
<sicklorkin> symphorien: same error..
<symphorien> no idea sorry
<sicklorkin> symphorien: appreciate the help!
<sicklorkin> symphorien: Ithink i figured it out..
<sicklorkin> symphorien: could running processes using the old (single user) install possibly cause this? I just noticed there is one processes that's using `/nix/store/....` from the previous install...
<symphorien> nix has a lock for the store, so normally, no
<Mic92> Myrl-saki: you can send me a patch to make it work with both.
<Mic92> I usually only evaluate against unstable
muvlon has quit [Remote host closed the connection]
gagbo has joined #nixos
<ivegotasthma> got a wierd error from `git worktree` in `nix-review`. any idea where I should report the bug? https://dpaste.de/Xvj3/raw
<sicklorkin> symphorien: should nixbld1..30 have permissions to read /nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1?
<symphorien> everyone should be able to read the store
<symphorien> ah
<nikola_i> Taneb: i cut and pasted those lines before {}. this is the new paste https://pastebin.com/uxJVKQNL. I still get 'rror: syntax error, unexpected '=', expecting $end, at /etc/nixos/configuration.nix:13:51'
<symphorien> you have an unusual umask, maybe ?
<sicklorkin> ;) 027
<mr_noobs> Hey there! I can't connect to my psql, it says "incorrect password" (even though the password was set in configuration.nix, so not really a chance for the pass being worng)
<sicklorkin> it wants 002?
<symphorien> make the store readable for everyone
<sicklorkin> the installer should really take care of this non?
<symphorien> the installer should probably take this into acount
_kwstas has joined #nixos
seqizz has quit []
<sicklorkin> symphorien: something like `sudo chmod a+rX /nix/store/`?
mtesseract has joined #nixos
<sicklorkin> `-R`
<symphorien> yes seems reasonable
<{^_^}> nix#1560 (by dezgeg, 1 year ago, open): Install script should set a desired umask
<{^_^}> nix#2377 (by Valknjoggr, 21 weeks ago, open): Installer assumes liberal umask
<sicklorkin> symphorien: Okay great!
erictapen has joined #nixos
Guanin has quit [Remote host closed the connection]
<symphorien> if you feel brave, maybe make a PR checking that the umask leaves a+r in the installer
<{^_^}> [nixpkgs] @Mic92 merged pull request #54423 → kdeApplications.kdepim-runtime: Fixes build → https://git.io/fhz16
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhgFM
<sicklorkin> symphorien: it also needs to traverse directories? or no?
<symphorien> yes
<symphorien> everyone must be able to fully read the store as a whol
<symphorien> +e
<{^_^}> [nixpkgs] @Mic92 merged pull request #53965 → nixos/zfs: autoscrub only after boot is complete → https://git.io/fhcma
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhgbI
<sicklorkin> symphorien: got it..
<Myrl-saki> Mic92: I couldn't get it to build at all in Nixpkgs-18.09. :/
<Myrl-saki> Mic92: Even with some hacks that I had in mind.
<{^_^}> [nixpkgs] @danbst closed pull request #54455 → htop: cleanup patchShebangs → https://git.io/fhgip
<Mic92> Myrl-saki: You can also pass unstable nixpkgs as a parameter to NUR.
<Mic92> I think I should document that.
<Myrl-saki> Mic92: Er, crap, I mixed some things up. I got Nixpkgs 18.09 working with your NUR, but not the nix-lsp.
<Mic92> Myrl-saki: still you can add unstable as a second channel and use it just for nur packages.
<Mic92> https://github.com/nix-community/NUR#installation you see here how nixpkgs is passed as the pkgs parameter
erictapen has quit [Ping timeout: 246 seconds]
<Taneb> nikola_i: I'm not sure then, sorry
erictapen has joined #nixos
<{^_^}> [nixpkgs] @teto opened pull request #54460 → lua: add withPackages function → https://git.io/fhgNl
simukis has joined #nixos
<nikola_i> hello i am trying to use a custom keyboard using https://nixos.wiki/wiki/Keyboard_Layout_Customization. this is my config https://pastebin.com/uxJVKQNL. I get error on line 13 with unexpected =.
sicklorkin has quit [Ping timeout: 256 seconds]
<Mic92> nikola_i: you need to put the option on line 13 inside the brackets ({)
StardustX has joined #nixos
<Myrl-saki> Mic92: Will check it later, thanks.
sigmundv_ has joined #nixos
fendor has joined #nixos
<nikola_i> Mic92: do you mean something like this "$({pkgs.xorg.xkbcomp})/bin/xkbcomp $({compiledLayout}) $DISPLAY";
_kwstas has quit [Quit: _kwstas]
bananchick_pasha has quit [Read error: Connection reset by peer]
StardustX has quit [Quit: Leaving]
<Mic92> nikola_i: I mean https://pastebin.com/kzzfqUvs
bananchick_pasha has joined #nixos
<Mic92> nikola_i: but there is also an option to set the layout easier
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<Mic92> ah, I see why you need this
<{^_^}> [nixpkgs] @primeos opened pull request #54461 → [WIP] scons: 3.0.3 -> 3.0.4 → https://git.io/fhgAX
mkoenig_ has joined #nixos
mkoenig has quit [Ping timeout: 250 seconds]
<mr_noobs> Hi hi! Is there a guide to package existing go applications for nixos? I ended up just running the binary and stuff, but i would love to have it declaratively installed and that it might be a nice package for others to have (miniflux)
<fendor> when updating with `nixos-rebuild switch --upgrade`, i get the error: https://hastebin.com/afexezudot.coffeescript
<symphorien> your /boot is full
<lassulus> mr_noobs: there is a small guide in the nixpkgs manual https://nixos.org/nixpkgs/manual/#sec-language-go
<fendor> symphorien, you are right. Too many generations i guess?
<symphorien> likely
<fendor> symphorien, can i clean every generation but the last two or something like that?
<fendor> also, should the boot partition be larger than 512MB?
<symphorien> tbh I only have one partition :°
<nikola_i> Mic92: thanks it works now. i use this keyboard for typing math symbols with compose key
<fendor> symphorien, how does that work? 0.o i thought, the boot partition is necessary. Or is it only necessary, if you trash your system that you can still boot something?
erictapen has quit [Ping timeout: 244 seconds]
<symphorien> it is only necessary, say, if your root partition is some eccentric fs that grub can't read
<Mic92> nikola_i: I also miss the lambda key on my keyboard since I saw: https://github.com/uwplse/herbie/blob/master/src/multi-command-line.rkt#L25
<laas> symphorien: wut
<symphorien> (or your boot loader of choice)
<laas> you literally have your boot loader on your root partition?
<symphorien> ah, also I only speak for bios
<symphorien> laas: yes
<laas> ah
<laas> that makes more sense
<laas> with UEFI you have a dedicated EFI system partition
<symphorien> not sure, but if you use grub you don't need your kernels to be on the efi system partition
<symphorien> so it can be small without problems
<fendor> ok, how can I clean it up now?
<symphorien> ie /boot is not a mountpoint but /boo/efi or so is
<symphorien> 1/ gc some generations 2/ run nixos-rebuild
<fendor> symphorien, nix-collect-garbage does not do what I had hoped for :/ how can I delete old generations of the OS?
<symphorien> you need to run nixos-rebuild for /boot to be cleaned up
<mr_noobs> lassulus: Thanks!!
<fendor> symphorien, with what option? switch and boot do not work, because then the error occurs
<symphorien> try /run/booted-system/bin/switch-to-configuration boot
<fendor> same problem
<symphorien> then you have to empty /boot by hand
silver has joined #nixos
<fendor> symphorien, can i not delete old generations via nix-env?
<symphorien> nix never touches outside /nix
<{^_^}> [nixpkgs] @dotlambda opened pull request #54462 → pythonPackages: remove some packages representing outdated versions → https://git.io/fhgjl
<fendor> nix-env --list-generations -p /nix/var/nix/profiles/system lists a bunch of generations
<symphorien> it is nixos-rebuild which copies kernels in /boot or cleans up but apparently is cleans up after crashing on full /boot
<fendor> ok, can i just delete some old kernel? for example /boot/EFI/nixos/1adycya418r492div8d389hdwssq8yqf-linux-4.19.4-bzImage.efi?
nikola_i has quit [Ping timeout: 250 seconds]
<symphorien> if the generation it points to is dead yes
<fendor> dead for me, probably not for nixos
<symphorien> then kill it :)
<symphorien> otherwise it will be copied again
<fendor> ok, ill try
nikola_i has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « pythonPackages.mysql-connector: 8.0.13 -> 8.0.14 »: https://git.io/fhgjb
estrom has joined #nixos
<{^_^}> [nixpkgs] @nh2 opened pull request #54463 → gst-plugins-good: Add missing xfixes/xdamage dependencies → https://git.io/fh2ej
<{^_^}> [nixpkgs] @grahamc merged pull request #54433 → b612-font: init at 1.003 → https://git.io/fhzjj
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/fh2vB
hyper_ch2 has quit [Ping timeout: 256 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
bananchick_pasha has quit [Ping timeout: 245 seconds]
bananchick_pasha has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « tdesktop: 1.5.4 -> 1.5.8 »: https://git.io/fh2JB
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
MasseR has quit [Ping timeout: 268 seconds]
bananchick_pasha has quit [Quit: Quit]
jD91mZM2 has quit [Remote host closed the connection]
<immae> Hi everyone! I’m trying to add a `sandbox = true` to my nix configuration, but then nix-build fails with "error: while setting up the build environment: getting attributes of path '': No such file or directory". Is there some configuration to add to be able to do sandbox build? (It makes an error with any build, even very simple ones like https://paste.ee/p/3UiV4 )
<immae> symphorien: you advised me to add this configuration yesterday, maybe you forgot to mention something? ^
jD91mZM2 has joined #nixos
<symphorien> immae: looking in the logs of the channel I found this https://github.com/shazow/nixfiles/issues/3#issuecomment-450592191
<symphorien> apparently arch's nix is at fault
<immae> ah, possibly yes
fendor has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #54464 → binutils: unbreak w/musl via upstream commits → https://git.io/fh2Uw
<{^_^}> [nixpkgs] @smaret opened pull request #54465 → gildas: 20181201_a -> 20190101_b → https://git.io/fh2Uo
MasseR has joined #nixos
<immae> Do you have any hint of how to fix the aur package? the builder seems to do nothing strange as far as I see... ( https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=nix )
<symphorien> I don't even know what the error message means, sorry
<immae> ok, I’ll search for it, thanks for the pointer it was more helpful than what I could find with google
<immae> symphorien: I’m looking at straces to try to find hints
<immae> Better to fix the build if I can
<symphorien> what does nix show-config | grep sandbox-paths say ?
<immae> `sandbox-paths = /bin/sh=`
<symphorien> I think this is the problem
<immae> and `extra-sandbox-paths = `
<immae> What does it look like for you?
<symphorien> nix will try to copy "" to /bin/sh in the sandbox
<symphorien> /bin/sh=/path/to/a/static/busybox/shell
<immae> ah, understood
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anderslundstedt has quit [Ping timeout: 246 seconds]
anderslundstedt has joined #nixos
<immae> :clap: you got it symphorien
<immae> Thanks
<nakkle> I'm playing around a bit with the NixOS tests, and I'm wondering whether I could save custom strings (e.g., output from a `succeed('command')` call) to a file in the result folder, similarly to how screenshots are saved. Does anyone know whether that's possible?
<{^_^}> [nixpkgs] @nyanloutre opened pull request #54466 → electrum: 3.2.4 -> 3.3.2 plus new dependencies → https://git.io/fh2Tp
hyper_ch2 has joined #nixos
hedning has joined #nixos
acarrico has joined #nixos
Makaveli7 has quit [Quit: Leaving]
<{^_^}> [nix] @buecking opened pull request #2643 → install: Check for a valid umask before running multi-user installer. → https://git.io/fh2k6
<{^_^}> [nixpkgs] @smaret opened pull request #54467 → maintainers/maintainer-list.nix: add PGP/GPG fingerprint → https://git.io/fh2k1
nikola_i has quit [Remote host closed the connection]
nikola_i has joined #nixos
bryan1_ has joined #nixos
<{^_^}> nix#2643 (by buecking, 2 minutes ago, open): install: Check for a valid umask before running multi-user installer.
fusion809 has joined #nixos
mtesseract has joined #nixos
eadwu has joined #nixos
ThatDocsLady has quit [Ping timeout: 240 seconds]
<nikola_i> hello my / directory of 35GB has no space left while running nixos-rebuild switch. i dont have super huge packages like texlive. please tell me what went wrong and how to debug
<nikola_i> this is my config https://pastebin.com/HZema6N7
<gchristensen> nikola_i: run nix-collect-garbage to free some space
<nikola_i> gchristensen: it should not delete the packages which it downloaded while running nixos-rebuild
ottidmes has joined #nixos
erictapen has joined #nixos
<gchristensen> it might, but more likely you have old packages in the nix store which are not needed anymore
<etu> nikola_i: Do you have many old generations on your system?
<nikola_i> will using -d prevent delelting of newer packages
<nikola_i> i have 4 old generations
<gchristensen> -d deletes all old generations of all profiles in /nix/var/nix/profiles
clefru has joined #nixos
<ivegotasthma> how do I run the tests for a package when I'm using nix-review?
<nikola_i> gchristensen: so how do i delete only the older packages and generations with nix-collect-garbage?
<Mic92> ivegotasthma: there is an example in the readme
<ivegotasthma> Mic92: right!
<gchristensen> nikola_i: unfortunately I don't think nix-collect-garbage can do that. what is the problem you're trying to avoid?
<nikola_i> i am trying to avoid redownloading all the packages. it downloaded like a couple gigs worth of packages while running nixos-rebuild switch
<clefru> nikola_i: the garbage collector won't delete derivation outputs, when they have active references from garbage collection roots (for instance older but still active profiles, or the current profile)
<nikola_i> clefru: here's the output of df-h at / https://pastebin.com/Ab26KYEw
<nikola_i> if its of any help
nobody__ has joined #nixos
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtesseract has joined #nixos
pointfourone has joined #nixos
pointfourone has quit [Remote host closed the connection]
rtjure has quit [Ping timeout: 245 seconds]
jomik has joined #nixos
<jomik> Who here uses home-manager to manager their xsessoin?
<jomik> xsession*
* infinisil winks
rtjure has joined #nixos
<jomik> I am a bit unsure what to put where - I guess my display manager still needs to reside in the system-wide config. But then I can have my xmonad in home.nix, which does seem nice.
<jomik> I will still need to have libinput stuff in my system-wide config, and keyboard stuff as well, I guess, yeah?
Makaveli7 has joined #nixos
<WilliamHamilton[> clever: do you happen to know why if I invoke a shell with `nix-shell -p "with import <nixpkgs> {}; pkgs.haskellPackages.ghcWithPackages (p: [(pkgs.haskellPackages.callPackage ~/path/to/local/package {})])"` and then open ghci then the package is present in the session, but hidden, and I have to do `:set -package local-package`?
<WilliamHamilton[> this doesn't happen if a package is of the form `p.package`
<mpickering> Is there any solution yet to the limited design of `nix run` where the argument passed to `-f` can't be referenced in the expression?
pointfourone has joined #nixos
<infinisil> jomik: keyboard stuff can be in both
<jomik> infinisil: I need to have it be in the system-wide config for it to take effect at my display manager though, ye?
<infinisil> Yea
<jomik> I'd have a hard time logging in without colemak XD
<jomik> Huh. I guess I -need- it to be in home.nix too ... O.o
<jomik> Because... It starts a setxkbmap service...
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4b6020faf58 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
jomik has quit [Quit: WeeChat 2.2]
lfish has joined #nixos
superherointj has joined #nixos
<{^_^}> [nixops] @AmineChikhaoui merged pull request #1014 → aws | route53: normalise DNS hostname; fix #1013 → https://git.io/fxexJ
<{^_^}> [nixops] @AmineChikhaoui pushed 2 commits to master: https://git.io/fh2Yw
<nyanloutre[m]> hello, is there any way to replace a string before applying a patch ?
<nyanloutre[m]> my goal is to replace a string by a store path
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fh2YH
<{^_^}> [nixpkgs] @Infinisil merged pull request #54051 → nixos/prometheus: make `source_labels` optional → https://git.io/fhWjY
<nyanloutre[m]> I think y already saw some patch quoting variable names between % chars
<nyanloutre[m]> but I am not sure
jomik has joined #nixos
superherointj has quit [Ping timeout: 250 seconds]
<jomik> It is pretty annoying :(
<jomik> If I just disable the service, then it will be enabled again on the next build.
<Mic92> nyanloutre[m]: you can pass a postPatch in fetchpatch
<nyanloutre[m]> ah yes I can use substituteInPlace
<nyanloutre[m]> thanks
<octe> if i have multiple versions of a library in my nix store, how does nix-shell -p <library> choose which one to use?
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to staging: https://git.io/fh2OO
<etu> octe: it uses the one from your channel
<gchristensen> it uses the one defined in the version of nixpkgs which your NIX_PATH points to
<{^_^}> [nixpkgs] @Infinisil merged pull request #54339 → installer/tools: Avoid duplicate LUKS device entries in hw config → https://git.io/fhut3
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fh2O3
<immae> octe: it doesn’t chose depending on the nix store content, it chooses depending on you channels configuration
<octe> oh that makes sense
<{^_^}> [nixpkgs] @vcunat merged pull request #54441 → gtk3: 3.24.3 -> 3.24.4 → https://git.io/fhgCq
<{^_^}> [nixops] @AmineChikhaoui closed pull request #906 → Use proper buildscript → https://git.io/vxe6W
<immae> consider as if you wrote nix-shell -p nixpkgs.<library>
<immae> and whatever nixpkgs means is what is taken
<octe> then my question is, how do i override a single library built from a nixpkgs checkout?
superherointj has joined #nixos
brejoc has quit [Ping timeout: 268 seconds]
<immae> octe: you point to another location, but it may be more complicated to write than just `-p <library>`
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jomik> Why can't I do `systemd.user.services.setxkbmap.enable = false;` ? I get that it expects a set...
<{^_^}> [nixpkgs] @expipiplus1 opened pull request #54468 → proot: 20171015 -> 20181214 → https://git.io/fh23v
nikola_i has quit [Ping timeout: 250 seconds]
nikola_i has joined #nixos
<{^_^}> [nixpkgs] @PsyanticY closed pull request #50763 → amazon-image: amazon-init script checks for nix expressions in userdata correctly → https://git.io/fpCAX
<octe> nix-shell -I nixpkgs-master=/home/blah/nixpkgs-git nixpkgs-master.rtaudio glew curl
<octe> should i be able to do something like that?
jomik has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @etu opened pull request #54469 → maintainers/maintainer-list: Add my GPG/PGP key → https://git.io/fh23y
lfish has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Infinisil merged pull request #54197 → nixos/mysql: fix option `ensureDatabases` → https://git.io/fh4GN
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fh235
jomik has joined #nixos
detran has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @7c6f434c pushed to master « flashplayer-standalone: unmark broken, works here; keep the comment »: https://git.io/fh2ss
halfbit has joined #nixos
mtesseract has joined #nixos
superherointj has quit [Ping timeout: 246 seconds]
<wedens> jomik: setting enable to false for a service doesn't prevent it from starting after relog?
superherointj has joined #nixos
<jomik> It gives an error when I try to build - that it expected a set, not a boolean.
<gchristensen> anyone want to co-maintain efitools with me?
pointfourone has left #nixos ["Leaving"]
<wedens> jomik: maybe `systemd.user.services.setxkbmap = { enable = false; }`
<wedens> jomik: sounds like a bug though
<Taneb> For a moment I misread that as "efit-tools", thought "wow, we have stuff for doing police sketches?"
<gchristensen> hah!
<jomik> wedens: Yah. I can try that. But IIUC that should be the same, eh?
<wedens> jomik: ah, you're looking at systemd in nixpkgs. home-manager doesn't use it
<jomik> Oh
<jomik> It doesn't?
<Taneb> gchristensen: I feel lile I'm almost certainly the wrong person I'm afraid :(
<wedens> jomik: it's enableD
<jomik> I see!
Jetien has joined #nixos
<gchristensen> Taneb: me too! :D
<wedens> jomik: `systemd.user.services.setxkbmap.enabled = false`
<Taneb> gchristensen: what is efitools, for a start?
<octe> cool, i solved it by overriding the library definition in the package i actually wanted to build
<nikola_i> what is the size of nixOS installation with a DE like KDE. On ubuntu it used to be less than 10GB. I removed old generations along with nix-garbage-collect -d. my system still takes around 16GB. Is this normal
<octe> nix really requires new thinking
<gchristensen> it does something with the EFI interface, but I dunno other than that, really http://git.kernel.org/cgit/linux/kernel/git/jejb/efitools.git
<wedens> jomik: hm uses it's own much simpler implementation of systemd services. it's just direct translation from nix expression to systemd
<jomik> Yeah, looking now. Thanks.
<gchristensen> nikola_i: you will for sure have a not nice time with a small disk, like 30gb. NixOS can take 2x as much as another distro, since updates are atomic -- it can keep 2 copies of the entire distro
<Taneb> gchristensen: well, if you want someone with more liking-to-be-involved-ness than know-how...
<jomik> wedens: Same error.
<jomik> It also points at nixos-18.09/lib/attrsets.nix
<jomik> `rror: value is a boolean while a set was expected, at /nix/store/ydgrdshzbj6xyr86bihhc9zyjyp964k1-nixos-18.09.1922.97e0d53d669/nixos/lib/attrsets.nix:225:39`
<gchristensen> Taneb: aye, nah, ideally the other person would care about efitools specifically :) I only packaged it because I needed it for something. if I found a comaintainer, it'd be because they cared about it more long-term than my "one-off" need
<Taneb> :)
_kwstas has joined #nixos
anderslundstedt has quit [Quit: leaving]
_kwstas has quit [Remote host closed the connection]
<jomik> wedens: I don't see a per service `enabled` option there though.
<wedens> jomik: hm.. as a hack you can probably do jomik: `user.services.setxkbmap.Service.ExecStart="true";`
<nikola_i> gchristensen: i have an llvm with luks setup. is it too late to change the size of / partition
acarrico has quit [Ping timeout: 240 seconds]
<jomik> Where's the user services located?
<wedens> jomik: ~/.config/systemd/user
<gchristensen> nikola_i: I... don't know! you might be able to expand it, based on me searching around "lvm expand"
<jomik> ahah!
<jomik> Perfect, the hack works :P
jomik has quit [Quit: WeeChat 2.2]
<mpickering> Is there a way to pass arguments to a function using nix run without this ugly `(import <nixpkgs> {})` stuff
acarrico has joined #nixos
<wedens> mpickering: --arg ?
superherointj has quit [Ping timeout: 250 seconds]
superherointj has joined #nixos
<mpickering> Ideally, I want to type `nix run 'ghcHEADWith "foo" "bar"'`, I am already resigned to these stupid brackets `nix run '(ghcHEADWith "foo" "bar")'`
reinhardt has quit [Quit: Leaving]
<mpickering> doesn't `--arg` pass arguments to whatever `-f` points to?
<{^_^}> [nixpkgs] @grahamc opened pull request #54471 → efitools: init at 1.9.2 → https://git.io/fh2ZB
iqubic has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<gchristensen> great nixpkgs reviewers, I have packaged only a very small number of packages. would someone take a look at my PR and provide feedback?
nobody__ has quit [Quit: Ambassador 1.0.0 [Pale Moon 28.3.0/20190110014511]]
winem_ has joined #nixos
<r5d> I had a Windows 10 (1809) VM on qemu/libvirt that ran perfectly until yesterday. Today it won't boot and even the install disk BSODs. What gives? Using no other channels than nixos-18.09
<samueldr> wondering if there's a specific reason for using `refs/tags/the-tag-name` instead of just `the-tag-name` gchristensen
<r5d> This might be the wrong place for this. Just venting and if anyone has the same problem, please contact me
<gchristensen> I didn't know fetchgit could do that :)
<samueldr> gchristensen: AFAIUI it's any commit-ish, though I ask since I've seen that other fetchgit invocations do that
<samueldr> so maybe there's something to keep in mind with regards to that, but I wouln't think so
<{^_^}> [nixpkgs] @vcunat pushed 333 commits to staging: https://git.io/fh2ne
<{^_^}> nix#2645 (by mpickering, 27 seconds ago, open): nix run: An expression which is a function should be passed the result of evaluating -f
tdbgamer has joined #nixos
johnw_ has joined #nixos
<cyris212> Is hunspell supposed to work out of the box if a dictionary is installed?
anderslundstedt has joined #nixos
johnw has quit [Ping timeout: 268 seconds]
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jomik has joined #nixos
endformationage has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed to master « pythonPackages.pywal: fix expression »: https://git.io/fh2Cv
<jomik> Hmm, someone here suggested that I run fish from .bashrc.. Now I am getting this weird behavior with direnv .. Error: target STRING not available
<jomik> UH
obadz has quit [Ping timeout: 245 seconds]
<Profpatsch> I forget: How do I tell nix to keep a path at runtime that is to deeply tar’d up to be found in the fixup phase?
<jomik> Not that, that was supposed to be a url to an image :P
<Profpatsch> There was some attribute to mkDerivation iirc
<gchristensen> looks like pname changes broken eval error messages: error: Package ‘«name-missing»’ in /home/grahamc/projects/nixos/nixpkgs/pkgs/tools/security/efitools/default.nix:33 is not supported on ‘aarch64-unknown-linux-gnu’, refusing to evaluate.
<symphorien> some java derivations write the path to the dependency in $out/nix-support/whatever
<jomik> Why :(
<gchristensen> probably some TERM bugs
<jomik> Ah, so I should unset TERM I guess :O
<jomik> Probably cuz I read off nix-shell
<jomik> Oh, actually, I should restore TERM.
<Mic92> jomik: you don't use direnv-mode by chance?
<jomik> Mic92: This is just in my alacritty term. I do use direnv-mode in Emacs too.
<Mic92> jomik: you can use my nix function that restores TERM. direnv-mode will TERM=dump
<Mic92> if you then cache the value ...
<{^_^}> [nixpkgs] @dotlambda pushed 3 commits to master: https://git.io/fh2WU
<jomik> I have one as well that unsets a few things.
<Mic92> I think `Error: target STRING not available` is more related to an x11 application that holds the clipboard content and is no longer availabe
<Mic92> I have not digged into it however
<jomik> Yeah. That was my fault :P
<jomik> unrelated to this at least :P
drakonis has quit [Ping timeout: 250 seconds]
<jomik> Mic92: What's the -nt comparison? I always forget..
<Mic92> jomik: time
<jomik> Ah, thanks.
<jomik> So if shell.nix is `newer than` cache.
<jomik> Won't this break if I collect garbage?
<jomik> Because the cache will refer to paths that don't exist anymore.
<Mic92> jomik: I check for the nixpkgs version
<Mic92> mhm. does not help with gc though
<jomik> Yeah, I meant if I run gc, then that cache is dead.
<Mic92> seems to be not a problem for me..
mtesseract has joined #nixos
mtesseract has quit [Client Quit]
<jomik> You never run gcs ? :P
<jomik> I guess, if you gc, you can just do `rm -r .direnv`
<jomik> Though, I am using a modified version of the persistent shell one
r5d has quit [Quit: WeeChat 2.3]
<jomik> I do want a bash command to simply remove some environment variables from the dump though...
<jomik> That seems cleaner than unsetting/resetting them afterwards.
<jomik> So, just run something like `magic_remove "export TERM=*;" dump
obadz has joined #nixos
<Mic92> I guess I update my nixpkgs revision often enougth. Otherwise touch default.nix is easy enough.
<jomik> Oh, true.
meizikyn has joined #nixos
r5d has joined #nixos
<{^_^}> [nixpkgs] @grahamc merged pull request #54471 → efitools: init at 1.9.2 → https://git.io/fh2ZB
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/fh2lM
lfish has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c pushed to master « z3-tptp: init »: https://git.io/fh2lQ
<{^_^}> [nixpkgs] @Profpatsch opened pull request #54472 → bazel: add python to the runtime closure → https://git.io/fh28J
<lfish> hello, how do I correctly set the locales? I'm on nixos 18.09 and need something with utf-8, preferably Latin America Spanish, or US English as an alternative. By te way, where can I get a list of the abbreviations?
<Mic92> lfish: i18n.defaultLocale
<lfish> btw, I'm finally doing this because rackup complains about us-ASCII encoding and my source files have things like 'ú' everywhere. If anybody knows the problem and can give me a hint towards the solution, I'll appreciate that
<Mic92> by default you should have unicode locales so
<Mic92> do you run a service?
_d0t has joined #nixos
<lfish> Mic92: I'm sorry, I don't understand your question about the service
erictapen has quit [Ping timeout: 246 seconds]
<Mic92> lfish: systemd services do not have LC_* environment set.
<Mic92> by default
slack1256 has joined #nixos
<Mic92> a login user should have that
IRCsum has quit [Remote host closed the connection]
<mpickering> What's the correct way to wrap a shell script which requires some additional dependencies?
<mpickering> I want something like writeScriptBin which also modifies PATH
<tilpner> Probably makeWrapper and makeBinPath
<tilpner> Or wrapProgram, you know what I mean
IRCsum has joined #nixos
<mpickering> I considered these
<mpickering> but it's not clear to me how to use makeWrapper with writeScriptBin
Makaveli7 has quit [Ping timeout: 252 seconds]
<sphalerite> mpickering: If you're wrapping a shell script from an existing package, what tilpner said. If you want something like writeScriptBin, use writeScriptBin and `export PATH=${lib.escapeShellArg (lib.mkBinPath [hello gnutar])}`
<tilpner> You don't, the wrapper would be the output of a runCommand or mkDerivation
<tilpner> sphalerite: Why escapeShellArg here
<jomik> Huh, I know this is not really the place to ask, but how the hell do I match FOO or BAR with sed? (FOO|BAR) doesn't seem to work..
<lfish> Mic92: mmm... I can't tell anything intelligent know... guess I'll have to read more about locales and ask later, I'll try with the i18n in the configuration.nix and see what happens. Thanks!
<gchristensen> $ echo "FOO" | sed -e 's/\(FOO\|BAR\)/BAZ/'
<gchristensen> BAZ
<gchristensen> jomik: ^
<jomik> I need to escape them, k :D
<sphalerite> jomik: or use sed -r to get posix extended regular expressions
<sphalerite> tilpner: because (ok, in practice it actually won't happen in this case) if there's a space or newline or whatever in the string value, you don't want it to result in directly embedded spaces or newlines in the script
chessai has joined #nixos
<tilpner> sphalerite: I understand what escapeShellArg does, but I don't use it defensively everywhere just in case, for readability
hyper_ch2 has quit [Quit: Page closed]
<tilpner> And I don't expect the store entry name charset to suddenly gain any whitespace :D
<sphalerite> yeah, I might not actually put it in in this case either really, but it's the thought that counts :p
<jomik> sphalerite: -r doesn't seem to work?
<jomik> Oh, I had deleted a space, woops.
<sphalerite> jomik: re escaping — it's not escaping so much as that the syntax for alternatives in posix basic regexes is just \|
Ariakenom has quit [Ping timeout: 245 seconds]
<sphalerite> man 7 regex for details
<meizikyn> ~
<meizikyn> ~
<gchristensen> zsh: permission denied: /home/grahamc
lfish has quit [Ping timeout: 256 seconds]
sanscoeur has quit [Read error: Connection reset by peer]
sanscoeur has joined #nixos
<tobiasBora> Hello,
<tobiasBora> How can I install the TimesNewRoman font on nixos? I need it to compile some documents
<tobiasBora> (latex)
<etu> tobiasBora: Haven't tried but pretty sure that this will work: fonts.fonts = [ pkgs.corefonts ];
sanscoeur has quit [Ping timeout: 245 seconds]
orivej has quit [Ping timeout: 246 seconds]
JonReed has quit [Quit: Page closed]
<tobiasBora> etu: great thanks!
<tobiasBora> Oh can that work?^^
<tobiasBora> How*
orivej has joined #nixos
<tobiasBora> Also, a link on the wiki would be great!
Makaveli7 has joined #nixos
mbrock has quit [Ping timeout: 245 seconds]
<etu> tobiasBora: It's installing the font that you need
<{^_^}> [nixpkgs] @jdanekrh opened pull request #54473 → packer: 1.3.1 -> 1.3.3 → https://git.io/fh2R9
o1lo01ol1o has joined #nixos
<infinisil> tilpner: I'm conflicted about this, I want escapeShellArgs to be everywhere because it makes sense, but it's so big and ugly
<infinisil> Maybe it would be cool to have nix support for this
<wedens> some special escaping interpolator would be nice
<{^_^}> [nixpkgs] @dotlambda merged pull request #54466 → electrum: 3.2.4 -> 3.3.2 plus new dependencies → https://git.io/fh2Tp
erasmas has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed 5 commits to master: https://git.io/fh20J
<jomik> I can't seem to match `$'configureFlags'`
<jomik> I tried `\$'[^']+` ..
<infinisil> How about the expression `let foobar = "'test"; in #bash"echo ${foobar}"` would result in `"echo \''test'"`
<tobiasBora> etu: ok, thank you!
<infinisil> So, #<escaper>"string with escaping"
<infinisil> Oh, # is comments, but something like this
<wedens> maybe just `bash".."`
<wedens> like in scala
<tilpner> infinisil: I would agree to an escape-by-default-but-with-opt-out change, but that might break everything :/
<gchristensen> not to mention the whole world isn't bash
<infinisil> wedens: ambiguous with just a function call (function bash with argument "...")
<wedens> infinisil: isn't space after function name mandatory? O_o
<gchristensen> > let foo = x: x; in [ foo"bar" ] == [ foo "bar" ]
<{^_^}> true
<gchristensen> dear me
<wedens> wat
<infinisil> > let foo = x: x; in foo 1
<{^_^}> 1
<infinisil> > let foo = x: x; in foo""
<{^_^}> ""
<{^_^}> [nixpkgs] @matthewbauer pushed to master « libglade: fix on darwin »: https://git.io/fh20V
<infinisil> Hmm, this might not work, because not everything that gets escaped is a full argument
<infinisil> We often have stuff like "echo foo${bar}baz"
<infinisil> Oh, I guess bash handles `echo foo'bar'baz correctly though
<infinisil> Ah no it doesn't
<infinisil> Oh wait it does
<{^_^}> [nixpkgs] @matthewbauer closed pull request #54448 → unison: fix on darwin → https://git.io/fhgB8
<{^_^}> [nixpkgs] @matthewbauer closed pull request #54321 → ocamlPackages.lablgtk: make glade support optional → https://git.io/fhEFS
nikola_i has quit [Ping timeout: 252 seconds]
ddellacosta has joined #nixos
ddellacosta has quit [Read error: Connection reset by peer]
ddellacosta has joined #nixos
<jonge> hey there. i just tried to run nix-build '<nixpkgs/nixos/tests/login.nix>' on an ubuntu with freshly installed nix. it tells me that it needs the "{kvm, nixos-test}" feature set to be able to build. where do i actually set this up?
<jonge> didn't have that in older versions and this is new to me
dermetfan has quit [Ping timeout: 245 seconds]
<infinisil> jonge: `nix-build '<nixpkgs/nixos/release.nix>' -A tests.login.x86_64-linux`
<gchristensen> also, couuld you paste the whole error output?
halfbit has quit [Ping timeout: 245 seconds]
<infinisil> Oh, sorry
<infinisil> I'm mistaken
<jonge> infinisil: i get the same error message. it is: "error: a x86_64-linux with features {kvm, nixos-test} is required to build '/nix/store/....', but i am a x86_64-linux with features {benchmark, big-parallel, nixos-test}"
<infinisil> Never seen that error before
<gchristensen> it is part of nix 2.2
<gchristensen> interesting, I wonder if kvm should have been part of the default local set
glasserc has quit [Quit: ZNC 1.6.6 - http://znc.in]
<jonge> i guess not, because i always had to install qemu-kvm like packages in order to have the kvm kernel module loadable. obviously nix can't do that for me on ubuntu
glasserc has joined #nixos
<jonge> so i am happy to add that "kvm" feature flag somewhere - but where?
halfbit has joined #nixos
<mpickering> I am seeing the error "restoring parent mount namespace: Invalid argument", any ideas?
<mpickering> running a script which calls nix
<clever> jonge: is it happening with build slaves, or local builds?
<gchristensen> jonge: https://nixos.org/nix/manual/#conf-system-features here you are!
<gchristensen> jonge: "This setting by default includes kvm if /dev/kvm is accessible"
<jonge> gchristensen: argh sry should have looked into the nix manual first. i was just so irritated that suddenly something that i have done like that for months doesn't work any longer. thank you!
<gchristensen> jonge: well understood :)
<gchristensen> clever: 2.2 applies the feature requirements logic to local builds now
<clever> gchristensen: yeah, i saw the release notes somewhere
_d0t has quit [Ping timeout: 245 seconds]
<dmj`> gsl is broken in nix I think
<dmj`> should have a dependency on openlibm in buildInputs
<dmj`> the pkg config file is also not pointing to the include directory properly
sanscoeur has joined #nixos
<dmj`> it shows /include/gsl/<header files>
sanscoeur has quit [Remote host closed the connection]
<jomik> Anyone know how I can match `$'foo'` with sed?
<jonge> gchristensen: so i created /etc/nix/nix.conf and added the line "system-features = [ "kvm" "nixos-test" ];" there but i still get this error, which looks only slightly different. it basically says "i need {kvm, nixos-test} test but i have {kvm, nixos-test}"
<clever> jonge: the syntax is just `system-features = kvm nixos-test` i think
<gchristensen> jonge: you shouldn't need to modify nix.conf if /dev/kvm is available
<gchristensen> and also, indeed, nix.conf is ini-style, not Nix
<clever> and yeah, it will just fail due to a missing /dev/kvm if you force that
<clever> you need to modprobe the kvm driver for your cpu
<jonge> clever: oh my bad. i took that style from that `requiredSystemFeatures` example, which is of course wrong.
<clever> either kvm-amd or kvm-intel
superherointj has quit [Ping timeout: 245 seconds]
<jonge> ok, got this now. thank you infinisil gchristensen clever!
<gchristensen> great!
Makaveli7 has quit [Quit: Leaving]
mtesseract has joined #nixos
boxscapeR has joined #nixos
<mpickering> I did `nixos-rebuild switch`and rebooted, now <nixpkgs> refers to some very old commit (17.09)
<mpickering> NIX_PATH points to the right source for nixpkgs
<mpickering> which is at a recent commit (Jan 13)
ng0 has joined #nixos
boxscapeR has quit [Remote host closed the connection]
<{^_^}> [hydra] @nlewo opened pull request #632 → hydra-queue-runner: better error message if nix-store can not be started → https://git.io/fh2gq
<mpickering> Seems related to https://github.com/NixOS/nix/issues/2033
<{^_^}> nix#2033 (by grahamc, 42 weeks ago, open): Default Nix installations don't include user channels in NIX_PATH, causing inconsistent tool behavior
ThatDocsLady has joined #nixos
doyougnu has joined #nixos
<{^_^}> [rfcs] @domenkozar closed pull request #27 → [RFC 0027] Trusted bots → https://git.io/vxBYO
halfbit has quit [Ping timeout: 246 seconds]
superherointj has joined #nixos
halfbit has joined #nixos
slugchewer has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
slugchewer has left #nixos [#nixos]
nakkle has quit [Ping timeout: 252 seconds]
squidpickles has joined #nixos
<jomik> Huh. When I run this command in my shell, it works, when direnv runs it, it does not. Whay
<bsima> wow it takes forever to clone nixpkgs repo
<jomik> `sed -re 's/export \$/<removed>/g'`
slack1256 has quit [Remote host closed the connection]
squidpickles is now known as squidpickles_
squidpickles_ is now known as squidpickles
winem_ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @veprbl merged pull request #54468 → proot: 20171015 -> 20181214 → https://git.io/fh23v
<{^_^}> [nixpkgs] @veprbl pushed 3 commits to master: https://git.io/fh2ap
o1lo01ol1o has joined #nixos
<sphalerite> bsima: yep it's a big history. If you have a copy already on your machine, I can highly recommend the --reference option
orivej has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #54467 → maintainers/maintainer-list.nix: add PGP/GPG fingerprint → https://git.io/fh2k1
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fh2VP
<{^_^}> [nixpkgs] @Mic92 merged pull request #54469 → maintainers/maintainer-list: Add my GPG/PGP key → https://git.io/fh23y
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fh2V1
<bsima> sphalerite: i'm doing 'nix build' with pinned nixpkgs
<bsima> can i use --reference with 'nix build'? I dont see it in the docs
o1lo01ol1o has quit [Remote host closed the connection]
<bsima> oh actually i did 'nix-shell -v'
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
johnw_ has quit [Ping timeout: 252 seconds]
<bsima> eh, looks like it finally finished anyway
<bsima> ~25 minutes
<sphalerite> bsima: ah you could prime it by going into ~/.nix/cache/git and running `git fetch ~/nixpkgs`
<sphalerite> but hey it's done now I guess x)
<bsima> oh good tip, thanks
johnw has joined #nixos
<sphalerite> NixOS 19.03 feature freeze announced: https://discourse.nixos.org/t/nixos-19-03-feature-freeze/1950
fragamus has joined #nixos
<tilpner> bsima: fetchFromGitHub is much faster, if you want to pin a revision of github.com/nixos/nixpkgs
<bsima> tilpner: oh interesting, okay good to know
worldofpeace has quit [Remote host closed the connection]
superherointj has quit [Quit: Leaving]
sanscoeur has joined #nixos
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @Izorkin opened pull request #54475 → mysql: add restartTrigger for my.cnf → https://git.io/fh2rV
judson has joined #nixos
judson is now known as Guest72488
<{^_^}> [nixpkgs] @BananchickPasha opened pull request #54476 → neovim: added custom aliases → https://git.io/fh2ri
<ivegotasthma> what's the difference between nix-build and nix build?
<sphalerite> ivegotasthma: nix build is the new UI and has a fancy progress bar
<sphalerite> the invocation is a bit different as well
<ivegotasthma> will nix-build be around for long then?
<sphalerite> nix-build nixpkgs -A hello <=> nix build -f nixpkgs hello
<sphalerite> yeah it's not going anywhere anytime soon
<sphalerite> and nix build isn't considered a stable interface yet
<ivegotasthma> ah, okay
mtesseract has joined #nixos
<ivegotasthma> thanks
sigmundv_ has quit [Ping timeout: 246 seconds]
Makaveli7 has joined #nixos
<__monty__> How do I get a nix-shell with a derivations buildInputs? nix-shell -A expects a default.nix so that's not what I want. I want the buildInputs for something in nixpkgs.
<clever> __monty__: then tell it to open nixpkgs, nix-shell '<nixpkgs>' -A hello
<clever> it accepts the "path" to a default.nix to load
i0-dfn has joined #nixos
<__monty__> clever: Ah, thanks. Using -A nixpkgs.attribute didn't work. I thought they were equivalent?
<clever> __monty__: only nix run uses that type of syntax
<clever> for nix-shell, it will try to load things in this order:
<clever> * the file given on the cmd line (if present)
<clever> * shell.nix
<clever> * default.nix
samrose_ has quit [Ping timeout: 246 seconds]
peacememories has joined #nixos
<clever> and the file on the cmdline, can either be a file like foo.nix, a dir like ./bar/ or ., or a search path like <nixpkgs> (and quote it to stop bash)
<clever> if it is a dir, then i believe it will open default.nix in that dir
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hke_ has quit [Ping timeout: 246 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/51d88f7d20e (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
mtesseract has joined #nixos
tilpner has quit [Quit: WeeChat 2.3]
fresheyeball has joined #nixos
<fresheyeball> nh2:++
<fresheyeball> nh2++
<{^_^}> nh2's karma got increased to 4
<fresheyeball> nh2: that hash solved the problem
<fresheyeball> wowzers
<fresheyeball> ok so, has anyone gotten apply-refact to work in a nix-shell
ingenieroariel has joined #nixos
<nh2> fresheyeball: awesome, glad it worked!
<__monty__> clever++ Forgot to express my gratitude : ) GHC HEAD is succesfully building.
<{^_^}> clever's karma got increased to 79
<fresheyeball> for some reason it's looking for a package.db wand not finding it
<fresheyeball> nh2: it was an amazing call
<ingenieroariel> Hello all, I am trying to compile nix on fedora (riscv) but currently have trouble with libedit. I have manually compiled libeditline but I cannot get pkg-config to pick it up. Does anyone know how to pass a custom libeditline to nix?
<clever> __monty__: nice
<fresheyeball> ingenieroariel: why not just run the install script?
<ingenieroariel> it's riscv, I did not think to try ... on it
<fresheyeball> if you do that, you can use nix to supply deps to build nix
<ingenieroariel> sh: sorry, there is no binary distribution of Nix for your platform
o1lo01ol1o has joined #nixos
<ingenieroariel> I am compiling nix because there is no nix :)
<fresheyeball> oic, funky
<nh2> fresheyeball: now you have around factor 6x slack for adding new dependencies before you have to fix gcc ;) Should your biz need it some day, I might be able to offer that as a contracting task (that bit probably won't be done within the time of a night's call :P)
<fresheyeball> nh2: I think we are good for a while
<fresheyeball> I am happy to give money when I have money for things I need
ThatDocsLady has quit [Ping timeout: 245 seconds]
<ingenieroariel> and I already tried cross compilation from nixos without success
<nh2> fresheyeball: do you already depend on lens? :D
<fresheyeball> yes
<nh2> then you probably have some slack
<fresheyeball> agreed
<fresheyeball> I think adding lens might have been what tipped it over the edge
<fresheyeball> that was a new addition
<{^_^}> [nixpkgs] @Mic92 merged pull request #54113 → xrdp: fix clipboard for non-ASCII characters → https://git.io/fhlQj
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fh2i3
eadwu has quit [Quit: WeeChat 2.3]
<nh2> ingenieroariel: into which directory does `make install` put the installed libeditline?
eadwu has joined #nixos
<nh2> ingenieroariel: also, is it that the package is missing entirely on Fedora on RISCV or is it that it exists but you needed a custom version?
<ingenieroariel> it does not exist
<ingenieroariel> not sure why, I compiled it and it was put in /usr/local/lib
erictapen has joined #nixos
<ingenieroariel> (most other libs are at /usr/lib64)
<nh2> sometimes `make install` installs stuff in a different place than your distribution wants it, that may be a reason it isn't found. In that case you have to give `--prefix` to `./configure`. But before we do that, let's see if we can tell nix to use the lib, no matter where you installed it
<nh2> ingenieroariel: can you `find /usr/local/lib | grep editline | grep '\.pc'`?
<gchristensen> shlevy_: you 'round?
<nh2> to see if a pkg-config .pc file was generated?
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ingenieroariel> /usr/local/lib/pkgconfig/libeditline.pc
nikola_i has joined #nixos
<ingenieroariel> I just copied it to /usr/lib64/pkgconfig/libeditline.pc, as well as the build libs, mirroring I hope what --prefix would have done
freeman42x has joined #nixos
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nh2> ingenieroariel: I would not do that, instead I would tell nix explicitly where the thing is, that's somewhat cleaner and easier to remember. You can do that by e.g. `export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig`, then nix's build should pick it up
<ingenieroariel> thanks a lot! it looks like I am off to the next error - liblzma, but now I know more thanks to you
<ingenieroariel> locate
<nh2> ingenieroariel: ping me for more help on it, I may be able to help with many of these problems
<nh2> and I think riscv support would be cool
hke has joined #nixos
<ingenieroariel> lzma-devel does not create a pkgconfig entry (and there is liblzma.so.5 but no liblzma.so
<ingenieroariel> )
<ingenieroariel> so lzma-devel installed correctly (from dnf), and there is something in my system that nix can link to but it cannot find it
o1lo01ol1o has quit [Remote host closed the connection]
<nh2> ingenieroariel: what I don't understand though is why you have to do it -- apparently there's some RISCV support already in NixOS, which suggests to me that somebody must have built nix for RISCV, which begs the question why there is not bindist for it in the installer script
o1lo01ol1o has joined #nixos
<ingenieroariel> yep, that's a good question - I already tried to run https://github.com/shlevy/nixos-riscv-bootstrap
<ingenieroariel> it was a bit old and depended on qemu-riscv which is not a thing anymore after riscv support was upstreamed (available in 18.09)
<ingenieroariel> when I fixed that I got error: Package ‘kexec-tools-2.0.17’ in /nix/store/2a6yqvg5wbnhy4nq9lj05bbsddc3lga8-nixos-18.09.1853.c2950341d03/nixos/pkgs/os-specific/linux/kexectools/default.nix:23 is not supported on ‘riscv64-unknown-linux-gnu’, refusing to evaluate.
<ingenieroariel> after I realized that I would not be able to download kexec-tools from anywhere I start off from a riscv fedora image to try to build nix assuming that it would not print out errors
<clever> ingenieroariel: i think systemd depends on kexec
<nh2> ingenieroariel: hmm
<das_j_> clever: Doesn't systemd use an own tool?
<ingenieroariel> I also thought it was kind of cool so just compile nix from scratch over there
<clever> das_j_: nix-store -q --tree confirms, systemd directly depends on kexec-tools
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ingenieroariel> it would be cool if I can support nixos but since my goal is to just use nix to build a minimal riscv image with sel4 then systemd will likely not be an issue
<das_j_> clever: Well, shouldn't have questioned you as always ;)
<das_j_> clever++
<{^_^}> clever's karma got increased to 80
<clever> ingenieroariel: you may be interested in not-os
<nh2> ingenieroariel: a google search for `fedora "liblzma.pc"` suggests that the `xz-devel` package might have `liblzma.pc`
<clever> ingenieroariel: https://github.com/cleverca22/not-os
<clever> ingenieroariel: on x86, it compiles down to a 40mb squashfs, which contains the entire rootfs
<ingenieroariel> amazing clever!
<ingenieroariel> my platform is an intel nuc, which I put on my car
<ingenieroariel> (1tb sdd, 32gb of ram, core i7)
<clever> its basically a custom distro, heavily modeled on nixos (and borrowing some nixos modules), but uses runit rather then systemd, and a large amount of junk is missing
drakonis1 has joined #nixos
<nh2> ingenieroariel: yes I understand your motivation, I wasn't suggesting that you should support nixos, but that we could build a static `nix` binary _on_ a RiscV nixos and then upload it so you can use it on Fedora
<clever> nh2: if you can build nix on a riscv nixos, you can just tar up the closure of it
drakonis1 has quit [Client Quit]
<clever> the tools for generating such a tar also include a dummy nix db "dump", that you can then restore, so the closure in the tar is "valid"
<ingenieroariel> nh2 yeah, I also think it would be a good idea to have nix binaries (and cache)
drakonis has joined #nixos
PLPD-Bot has quit [Remote host closed the connection]
Lingjian has joined #nixos
<ivegotasthma> any idea how I can convince this guy to include tests in his pypi release? https://github.com/braintree/braintree_python/pull/111
<{^_^}> braintree/braintree_python#111 (by ivegotasthma, 1 day ago, closed): Include tests in PyPI tarball
<nh2> clever: yeah or that
PLPD-Bot has joined #nixos
eadwu has quit [Ping timeout: 250 seconds]
xourt has joined #nixos
<xourt> Hi all, I am trying to compile the cling with the clang compiler using clandStdenv. I am having trouble because it can't find an include file: fatal error: 'clang/AST/Decl.h' file not found
individual123 has joined #nixos
<xourt> do I have to add another buildInput for this?
<{^_^}> [nixpkgs] @Izorkin opened pull request #54478 → datadog-agent: 6.8.3 -> 6.9.0 → https://git.io/fh2XR
o1lo01ol_ has joined #nixos
<clever> ,locate Decl.h
<{^_^}> Found in packages: castxml, emscriptenfastcomp, llvmPackages.libclang
<clever> xourt: probably need to add libclang to inpuits
o1lo01ol1o has quit [Ping timeout: 240 seconds]
doyougnu has quit [Ping timeout: 272 seconds]
<ingenieroariel> everything is quite slow in qemu + riscv, but I am still amazed it works at all
estrom has quit [Remote host closed the connection]
doyougnu has joined #nixos
<fresheyeball> anyone here understand how the nix.gc option really workds?
<fresheyeball> I set it to delete things that are older than 2 weeks, and it deleted stuff I had used yesterday
<gchristensen> Nix's GC has no concept of when something was used
<fresheyeball> gchristensen: so what is that feature with the --older-than thing?
<clever> --delete-older-than only controls what roots it will delete
<gchristensen> (it _could_ if your FS has atime enabled, but I hope you don't!)
<clever> after removing roots, it will then remove garbage in /nix/store in a random order
ThatDocsLady has joined #nixos
<clever> un-rooteded stuff (nix-shell) is still at risk
<clever> using --max-freed to stop it from deleting ALL garbage is the only solution
<fresheyeball> clever: I don't understand. What do you mean by roots?
<clever> fresheyeball: garbage collector roots
<clever> the root says "never delete this thing"
nikola_i has quit [Ping timeout: 250 seconds]
<simpson> I *wish* it were random. It appears to relate to inode creation times somewhat.
<clever> simpson: one sec
<gchristensen> it is probably enumerating inodes or something
<clever> it is truely random, let me grab the source
<simpson> I've often seen GC choose to run through, say, piles of Haskell packages installed all around the same time.
<fresheyeball> I just don't get what 'roots older than 2 weeks' means
<clever> fresheyeball: any nix-env or nixos-rebuild generate, that is older then 2 weeks
<gchristensen> --delete-older-than deletes GC roots which are older than that time
<gchristensen> fresheyeball: https://nixos.org/nix/manual/#ssec-gc-roots
<clever> simpson: it will gather all garbage in /nix/store/ into a std::list
<clever> simpson: it will then std::shuffle that entire list
<fresheyeball> if I install something with nix-env, wont it NOT be deleted by gc, since it's "in use"
<clever> then start deleting from the head, until it hits --max-freed
<simpson> clever: Oh okay. So if I see lots of Haskell packages, then it's because I had had lots of Haskell packages present.
<clever> fresheyeball: correct, and if you uninstall, or upgrade, the old version will also be "in use"
<fresheyeball> clever: so this is a build server
<fresheyeball> and we want auto gc for obvious reasons
<clever> fresheyeball: hydra will add a GC root for the last X builds
<fresheyeball> I set it to gc daily things older than 2 weeks
<clever> fresheyeball: so you dont have this problem with hydra
<fresheyeball> ok
<ingenieroariel> brotli was easy, but there is no libseccomp-devel
<xourt> thanks @clever. My libclang folder only contains a /lib folder ... any idea why this could happen?
<xourt> no /include in there
<fresheyeball> how can I make a `nix-build` be considered a root, but also "not in use" so that 2 weeks later it will be gced?
<clever> fresheyeball: nix-build always outputs a result symlink, that is a root
<clever> fresheyeball: and --older-than will never delete result links
halfbit has quit [Ping timeout: 268 seconds]
<ingenieroariel> time to go and pick my girls from school, thanks nh2 and clever -- I'll post here tomorrow when I have made more progress
<clever> fresheyeball: but, that only roots the final result, not the build-time deps
<clever> fresheyeball: only hydra has support to root the entire build-time closure
<clever> also, nix-build's result symlink, overwrites the old result symlink, so it can only keep 1 thing
<fresheyeball> clever: is there a way I can do this? I am using Jenkins
<clever> switch to hydra? :P
halfbit has joined #nixos
<clever> or stop GC'ing everything
<fresheyeball> clever: we evaluated hydra, and we wanted it, but it didn't meet our needs
<gchristensen> nix-env -i the result?
ingenieroariel has quit [Quit: Page closed]
<clever> gchristensen: still only runtime closure, not buildtime
<fresheyeball> clever: beet me to it
<clever> fresheyeball: this --max-freed flag, tells it to stop GC'ing after it hits 64gig free
<clever> fresheyeball: that will leave some garbage behind, so the random order of deletion will actually allow some garbage to survive
<clever> if you dont --max-freed, then all garbage is gone on every GC
<fresheyeball> is there not a way to make the build closure a root?
<fresheyeball> how does hyrda do it?
<gchristensen> add a GC root for the .drv and set keep-outputs=true
<clever> hydra will iterate over the entire .drv tree, and add roots for every derivation
<fresheyeball> gchristensen: I don't know what you mean by that
<jomik> What's the easiest way to get a shell.nix that resembles my xmonad setup? Do I use mkShell with buildInputs or ?
mtesseract has joined #nixos
erictapen has quit [Quit: leaving]
halfbit has quit [Ping timeout: 268 seconds]
halfbit has joined #nixos
xkapastel has joined #nixos
o1lo01ol_ has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<fresheyeball> jomik: I don't know about easiest, but I would make a .cabal file that references the right version of xmonad and other deps
<fresheyeball> and use callCabal2nix on it
<clever> nix-shell -E 'with import <nixpkgs> {}; (haskellPackages.callCabal2nix "foo" ./. {}).env'
<clever> this will load a shell suitable for foo.cabal
<fresheyeball> clever: nice fu
<clever> for most haskell packages, that will just work
acarrico has quit [Ping timeout: 244 seconds]
<Laalf> does someone encrypt his nixos install? i followed this (and inserted the correct uuid) https://gist.github.com/martijnvermaat/76f2e24d0239470dd71050358b4d5134 but i get /nix/store/..../init: no such file or directory
mtesseract has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jomik> clever: I need to do it for `haskellPackages.ghcWithPackages (self: with self; [ xmonad xmonad-contrib xmonad-extras taffybar ]);` tho.
<clever> Laalf: if you boot the install media again, and run `cryptsetup luksOpen ...` and `vgchange -a y`, what does `blkid` say about the rootfs?
<clever> Laalf: and also pastebin your configuration.nix
<jomik> Got to walk the dogs~
<clever> jomik: then you want -p
<clever> jomik: or a cabal file that depends on those 4 things
dgarzon has joined #nixos
acarrico has joined #nixos
<fresheyeball> Personally I do the cabal file approach to these things, because it generates a nix file, which makes revisting easier. And gives me an expression to save.
<clever> the above nix-shell command auto-does everything
<clever> you could even jam that string into a shell.nix file, and then just copy it to every project
<dgarzon> Hi, when using `runCommand` is it possible to retrieve a file from the current directory? Doing `jq . -s ./plugins.json` yields `jq: error: Could not open file ./plugins.json: No such file or directory`
<clever> dgarzon: ${./foo}
<dgarzon> Wow, thank you clever!
<xourt> fixed now with llvmPackages.libclang.all
<clever> Laalf: ah, reading the link closer, i believe you want the uuid of the luks device, which one did you insert?
<Laalf> clever: /dev/sda2: UUID="a24d974c-6281-49f9-9b4b-9bba76808813" TYPE="crypto_LUKS" PARTUUID="4a2b131d-8653-614b-8879-34ece06db9d4" http://paste.debian.net/1061934/
<Laalf> i thought this was right. /dev/mapper/enc-pv: UUID="ThF1cl-Rlb9-a0rM-pjpc-g2t0-FaeK-p1Dyco" TYPE="LVM2_member" and /dev/mapper/vg-root: LABEL="root" UUID="63246fd1-9c4c-47e6-800c-aa3ca5002c5c" TYPE="ext4" . i inserted the sda2 uuid
<clever> Laalf: line 30 should open the lvm device, and then do `vgchange -a y`, so then the rootfs will be visible...
<clever> Laalf: and what about hardware-configuration.nix?
squidpickles has quit [Quit: squidpickles]
grugus has joined #nixos
<Laalf> clever: ah wait. i see the issue
<Laalf> i ran the install from my already running system. it probably uses the wrong hardware-configuration
<clever> Laalf: in general, you use ./hardware-configuration.nix
<clever> so it works relative to where configuration.nix lives
<Laalf> clever: the generation doesnt work i guess
<Laalf> clever: do i have to run this on an install stick?
<clever> Laalf: nope
<Laalf> clever: what option then? nixos-generate-config --root /mnt/ --show-hardware-config shows me the one for my current system
oskar has joined #nixos
<clever> Laalf: you need to change configuration.nix to use ./hardware-configuration.nix, rather then /etc/nixos/hardware-configuration.nix
<Laalf> clever: that doesnt matter if the hardware configuration is wrong
<Laalf> clever: as you can see in the commented out lines, i moved my configuration elsewhere
<oskar> Hi, im trying out nixpkgs for the first time; and have made a change to ~/.nixpkgs/config.nix (should I do that?). how do I apply that change?
<clever> Laalf: is the correct rootfs mounted to /mnt/ when you run `nixos-generate-config --root /mnt/` ?
<clever> oskar: re-install/build whatever is affected
<Laalf> yes
<clever> Laalf: what about blkid /dev/vg/root ?
<clever> ah, 63246fd1
<Laalf> /dev/vg/root: LABEL="root" UUID="63246fd1-9c4c-47e6-800c-aa3ca5002c5c" TYPE="ext4"
<clever> Laalf: and what is in your hardware-configuration.nix file?
<Laalf> clever: i sent it before http://paste.debian.net/1061936/
<clever> yep, that one is also right
<clever> Laalf: i believe the problem is line 5 of http://paste.debian.net/1061934/, its loading the wrong hardware-configuration.nix
<clever> you must use a relative path like ./hardware-configuration.nix, so it will not care that the cfg is currently under /mnt/
<Laalf> clever: but the vg-root, ext4 should be at /etc/nixos/hardware-configuration.nix
<oskar> Im getting undefined variable 'callPackage' , so Im making some silly mistake I assume? http://paste.debian.net/1061941/
<Laalf> so ext4 at /, the path should be correct
<clever> Laalf: that /etc/ is the host doing the install, not the target your installing to
<Laalf> clever: oh wow
fendor has joined #nixos
<clever> oskar: pkgs.callPackage
<clever> oskar: oh, and line 6, your assigning the pkgs attribute, which breaks everything
<clever> oskar: and interactiveShellInit is nixos only, it wont work in config.nix
<jomik> clever: So, if I put that in a mkShell's buildInputs, I should be good, right? Wonder why my import in emacs complains, but it builds just fine...
<Laalf> clever: when its built i wont have my irc client for some time. ill say thanks before i even know it it works.
<oskar> I see, thanks; will try again :)
alex`` has joined #nixos
<dgarzon> clever: what about if I need to write to the file? When doing `sponge ${./plugins.json}` I get permission denied :(
doyougnu has quit [Ping timeout: 245 seconds]
<clever> dgarzon: you can never write to the current directory, all writes must go to the $out dir (you might need to mkdir $out first)
<clever> and nix-build will then create a symlink called result, that points to that $out
ThatDocsLady has quit [Ping timeout: 246 seconds]
squidpickles has joined #nixos
<dgarzon> So there is no way to mutate my `plugins.json` from within a `runCommand` :(?
<clever> dgarzon: you can apply mutations, but the result will be in a copy in $out
oskar has quit [Ping timeout: 256 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<clever> dgarzon: the only way to impurely mutate something, in a semi-pure way, is to run a derivation like this via nix-shell, https://github.com/input-output-hk/cardano-sl/blob/develop/shell.nix#L57-L74
o1lo01ol1o has joined #nixos
<clever> dgarzon: in this case, line 94-96 will // a set of utils onto the main shell env, so i can nix-shell -A fixStylishHaskell
<clever> to run that script
Makaveli7 has quit [Ping timeout: 272 seconds]
grugus has quit [Remote host closed the connection]
Denommus has joined #nixos
alex_giusi_tiri has left #nixos [#nixos]
<{^_^}> [nixpkgs] @gefla opened pull request #54479 → picocom: Enable on Darwin → https://git.io/fh2So
<{^_^}> [nixpkgs] @Profpatsch merged pull request #54472 → bazel: add python to the runtime closure → https://git.io/fh28J
<{^_^}> [nixpkgs] @Profpatsch pushed 2 commits to master: https://git.io/fh2SX
oskar has joined #nixos
seqizz has joined #nixos
<jomik> My Taffybar does not work after switching my xmonad config to home.nix from configuration.nix :(
<seqizz> Hi, can I import a .nix package definition and get one of its variables (e.g. buildInputs) like a set's attribute?
<{^_^}> [nixpkgs] @jabranham opened pull request #54480 → redshift: Install systemd user unit files → https://git.io/fh2Sp
chessai has quit [Ping timeout: 268 seconds]
Denommus has quit [Remote host closed the connection]
<clever> seqizz: if it was returning a set, yeah, but if its a chunk of code that calls a function, its more ocmplex
<clever> seqizz: but sometimes you can: (pkgs.callPackage ./foo.nix {}).buildInputs
<seqizz> clever: hmm, trying
Ariakenom has joined #nixos
gagbo has quit [Quit: I'm out !]
<ivegotasthma> question, why is this package in nixpgs and I can install it like in the readme https://github.com/svanderburg/node2nix but I cannot find it when I search for it here https://nixos.org/nixos/packages.html ?
oskar has quit [Ping timeout: 256 seconds]
<clever> nix-repl> nodePackages.node2nix
<clever> ivegotasthma: its possible that packages.html isnt set to recurse into nodePackages
<ivegotasthma> clever: hmm, makes sense, if nixos indexes all of npm
jomik has quit [Quit: WeeChat 2.2]
doyougnu has joined #nixos
<seqizz> clever: huh, since it was a derivation, .drvAttrs.buildInputs were what I was looking for, thx
<r5d> A change in qemu or its dependencies in the last 2 days broke my Windows VMs (8.1/10). It was fine before yesterday and I tested on 3 independent systems. How can I find the exact changes to nixpkgs in the last 2 days?
civodul has joined #nixos
fuwa has joined #nixos
<clever> r5d: one trick, is to use a bisect in nixpkgs
<clever> r5d: clone nixpkgs, checkout the nixpkgs rev you know works, nix-build -A qemu, ./result/bin/qemu ..., and once you confirm its good, `git bisect good`
<clever> then checkout the bad rev, build, confirm its bad, and `git bisect bad`
<clever> git will then check revs out for you, and just keep building, testing, and saying if its good or bad
knupfer has joined #nixos
MightyJoe has quit [Ping timeout: 250 seconds]
cyraxjoe has joined #nixos
<dgarzon> Thank you clever! I will give that a try!
dgarzon has quit [Quit: dgarzon]
<{^_^}> [nixpkgs] @veprbl merged pull request #54479 → picocom: Enable on Darwin → https://git.io/fh2So
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to master: https://git.io/fh2HZ
<{^_^}> [nixpkgs] @LnL7 opened pull request #54481 → xorg.luit: fix darwin build → https://git.io/fh2Hg
dermetfan has joined #nixos
<r5d> clever: thanks, I'll look at this. However, qemu itself builds and works (installed the bad version from cache.nixos.org), just Windows VMs crash when using the new version.
halfbit has quit [Ping timeout: 268 seconds]
<clever> r5d: you would need to boot windows, using the qemu it just built, and try to crash it again
<clever> if the crash isnt easy to trigger, then things get a lot harder to bisect
halfbit has joined #nixos
<r5d> clever: I think I get it. Never used git bisect, sounded as if it does the testing itself. I will try this method. Thank you kindly for your pointers.
<clever> r5d: it can automate the testing, but ive never used that mode
chessai has joined #nixos
ilya-fedin has joined #nixos
halfbit has quit [Ping timeout: 246 seconds]
gagbo has joined #nixos
halfbit has joined #nixos
Makaveli7 has joined #nixos
<ilya-fedin> Hello! I created an override for firefox-bin to create a package for basilisk-bin: http://ix.io/1yZ2 . But it doesn't work, nix-env writes that the package doesn't exist: `error: attribute 'basilisk-bin' in selection path 'nixos.basilisk-bin' not found`
MP2E has joined #nixos
<clever> ilya-fedin: what path did you put that config.nix at?
seqizz has quit []
<ilya-fedin> ~/.config/nixpkgs/config.nix
<clever> ilya-fedin: and why does line 1 have stdenv, ... in it?
<clever> ls -lh $NIXPKGS_CONFIG ~/.config/nixpkgs/config.nix ~/.nixpkgs/config.nix
<clever> ilya-fedin: what files does this find?
<ilya-fedin> Override for otter-browser work
<ilya-fedin> *works
<{^_^}> [nixpkgs] @MP2E pushed to staging « alsaLib: 1.1.7 -> 1.1.8 »: https://git.io/fh27f
<{^_^}> [nixpkgs] @MP2E closed pull request #54394 → alsaLib: 1.1.7 -> 1.1.8 → https://git.io/fhzeC
<ilya-fedin> clever: because stdenv.lib is used in the override
<clever> ilya-fedin: you want pkgs.lib which comes from `packageOverrides = pkgs: ...`
<ilya-fedin> clever: fixed, but nix-env still doesn't know about the package
<clever> what files does this find? ls -lh $NIXPKGS_CONFIG ~/.config/nixpkgs/config.nix ~/.nixpkgs/config.nix
Makaveli has joined #nixos
Makaveli is now known as Guest67619
<ilya-fedin> Only /etc/nix/nixpkgs-config.nix and /home/ilya/.config/nixpkgs/config.nix (I have allowUnfree in first)
<clever> ilya-fedin: /etc/nix/nixpkgs-config.nix has priority, and makes nixpkgs ignore all other config.nix files
<ilya-fedin> Hmm
<clever> either put the override into /etc/nix/nixpkgs-config.nix or just delete /etc/nix/nixpkgs-config.nix
Makaveli7 has quit [Ping timeout: 268 seconds]
<ilya-fedin> Exactly, thanks. How do I set allowUnfree for all users? configuration.nix sets only for nixos-rebuild...
gagbo has quit [Quit: I'm out !]
halfbit has quit [Ping timeout: 244 seconds]
<clever> ilya-fedin: a: put all overrides in /etc/nix/nixpkgs-config.nix, b: make a config.nix for all users, c: there is an env var to allow unfree
<clever> the unfree error tells you the env var
<clever> and env vars can be set system wide
<ilya-fedin> Is there a variable for android_sdk.accept_license?
jomik has joined #nixos
<jomik> This is odd... I updated nixos release 18.09 and now my taffybar keeps crashing due to some dbus issue :o
halfbit has joined #nixos
vk3wtf has quit [Ping timeout: 250 seconds]
<clever> ilya-fedin: i think thats entirely a .override for licenseAccepted
<clever> ilya-fedin: and the callPackage in all-packages.nix defaults it to the config.android_sdk.accept_license
<ilya-fedin> Thank you!
<jomik> Or... Maybe it is because I disabled gnome and that removed upower :O
jomik has quit [Quit: WeeChat 2.2]
<ilya-fedin> jomik reminded me about another question... Is anybody have on nixos unstable a problem that when plasma starts, it says that powerdevil is not working (although ps aux says that it is running) and kwin hangs up regularly (windows stop processing mouse clicks until I restart kwin, and only through SIGKILL)?
<ivegotasthma> the nix pkg manager repo seems pretty slow, am I missing something?
<infinisil> ivegotasthma: How can a repo be slow?
<infinisil> You mean cloning nixpkgs is slow? Yes, because it's a lot of data
gagbo has joined #nixos
<infinisil> Not sure what else you could mean
<ivegotasthma> my bad, I was filtering the commits by author
<ivegotasthma> infinisil: I mean that there wasn't much activity, I saw 5-6 commits per year
ingenieroariel has joined #nixos
<ivegotasthma> got bamboozled by github UI
<infinisil> Ah :)
<etu> ivegotasthma: yeah, we have more commits than that in the repo :p
<ivegotasthma> etu: :)
<{^_^}> [nixpkgs] @jslight90 opened pull request #54483 → gitlab: 11.6.3 -> 11.6.5 → https://git.io/fh2dq
doyougnu has quit [Ping timeout: 245 seconds]
jomik has joined #nixos
tos9 has joined #nixos
<tos9> Hi. Has anyone attempted to install NixOS on an RPi 3A+ here?
<jomik> I get this error now `Gtk-WARNING **: 22:26:55.140: Could not find the icon 'battery-full-symbolic'. The 'hicolor' theme was not found either, perhaps you need to install it.`
<jomik> Where do themes resid? :o
<makefu> jomik: i had lot's of issues with missing icons. can you run the applet by hand and it finds the icons?
<jomik> Uh, I am running taffybar.
<jomik> Not entirly sure which applet it'd be then :P
<Mic92> tos9: since it is the same chipset as the rpi3 b it should work with our default aarch64 image
<praetorg_> do you have the hicolor theme installed
<jomik> praetorg_: not explicitly
ddellacosta has quit [Remote host closed the connection]
<makefu> praetorg_: it should(tm) come as a package dependency.
<tos9> Mic92: That's what I got from reading https://nixos.wiki/wiki/NixOS_on_ARM/Raspberry_Pi , just some of the specifics are missing there -- I'm hopeful I'll be able to figure out what to change (e.g. in the 3B+ nixexpr there) but was just curious if anyone had tried it and could say they were successful all the way through
<tos9> Mic92: I'm happy to try and see though if not :)
<praetorg_> makefu that's what i would imagine
<Mic92> tos9: yeah, leave a note in the wiki if it works.
<tos9> Mic92: Will do.
<tos9> Mic92: (Thanks!)
<makefu> jomik: i am using awesomewm and if i try to run applets via home-manager then the icons are missing. here is my workaround: https://git.shackspace.de/krebs/stockholm/blob/master/makefu/2configs/home-manager/desktop.nix#L6 ( i am explicitly setting XDG_DATA_DIRS and GDK_PIXBUF_MODULE_FILE )
ddellacosta has joined #nixos
<makefu> not sure if this is your problem though
<{^_^}> [nixpkgs] @Ma27 opened pull request #54484 → nextcloud-client: fix qt error at startup → https://git.io/fh2dx
Alling has joined #nixos
<jomik> makefu: that could be the case tbh.
<Alling> Hello! Where can I find the access log for nginx?
<makefu> additionally i am setting GTK_DATA_PREFIX to /run/current-system/sw https://git.shackspace.de/krebs/stockholm/blob/master/makefu/2configs/home-manager/default.nix#L8
<Mic92> makefu: most likly the application in question is missing wrapGAppsHook in that case
<makefu> for me this was the magic combo to get all the icons running
<makefu> applications are nm-applet and clipit
<Mic92> Alling: /var/spool/nginx/logs/access.log
<sphalerite> does hnix give better evaluation errors than nix?
<makefu> Mic92: nm-applet has wrapGAppsHook set. it also works when i run it from the terminal, however it is not working for me when being started via systemd user service
tos9 has left #nixos [#nixos]
<Mic92> sphalerite: According to the demo on nixcon yes
<Alling> Cool, thanks Mic92! :)
<makefu> weird enough pasystray (audio applet) works without the hack
<Mic92> makefu: indeed. I also have it in my configuration
<praetorg_> jomik i just attempted to install taffybar and it doesn't pull in hicolor as a dependency
<Mic92> I think the problem was that only a single value is supported for this prefix
<sphalerite> ah, now the question is how to obtain hnix… nix-shell -I nixpkgs=channel:nixos-unstable -p haskellPackages.hnix fails to build :|
<jomik> So do we know what a proper fix is? :O what makefu did seems a bit hacky :D
clefru has quit [Quit: Leaving]
<makefu> i would love to know as well!
<{^_^}> [nixpkgs] @Mic92 opened pull request #54485 → [WIP] C.UTF-8 locales: → https://git.io/fh2FN
Synthetica has joined #nixos
<Mic92> sphalerite: ^
<sphalerite> Mic92: awesome thanks
kvda has joined #nixos
kvda has quit [Client Quit]
flavioPrado has joined #nixos
kvda has joined #nixos
<flavioPrado> Hi, anyoune can help with virtualbox on stable? I am unable to install oracle extension, and can't figure out why
<sphalerite> flavioPrado: what are you trying and how is it failing?
<flavioPrado> enabling the extension with nixpkgs.config.virtualbox.enableExtensionPack = true on config.nix does nothing... it used to ask you to fetch the extension and rebuild
ddellacosta has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @averelld opened pull request #54486 → python: sysconfig: fix paths → https://git.io/fh2bz
<flavioPrado> virtualbox is working fine, but i cant install the extension pack
<praetorg_> virtualisation.virtualbox.host.enableExtensionPack
knupfer has quit [Remote host closed the connection]
<praetorg_> also you must allow unfree
<flavioPrado> Yes, unfree is allowed on config
<etu> flavioPrado: What error do you get?
<flavioPrado> @etu this is the strange part, i don't get any error... it builds ok with or without the extension pack declared
<ingenieroariel> nh2: it's building now! [root@stage4 nix]# make CXX src/build-remote/build-remote.o
<ingenieroariel> fyi this was the final configure line: ./configure --disable-seccomp-sandboxing --disable-doc-gen
<flavioPrado> it doesn't try to download, and dont do anything else...
<sphalerite> um, how do I actually get hnix to evaluate my expressions?
Alling has quit [Quit: Page closed]
<sphalerite> aah --eval. Of course.
<{^_^}> [nixpkgs] @zimbatm opened pull request #54487 → docker-machine: 0.14.0 -> 0.16.1 → https://git.io/fh2Nv
o1lo01ol1o has quit [Remote host closed the connection]
erictapen has joined #nixos
lawlesseel has quit [Remote host closed the connection]
worldofpeace has joined #nixos
individual123 has quit [Ping timeout: 256 seconds]
jomik has quit [Quit: WeeChat 2.2]
<flavioPrado> sorry people, i just got the info that the installation of extensionack changed...
vk3wtf has joined #nixos
<praetorg_> yes
<flavioPrado> but strange enough, the old declaration dont cause even an warning... it is ok to have both, or this is a bug?
Ariakenom has quit [Read error: Connection reset by peer]
<{^_^}> [nix] @ivegotasthma opened pull request #2647 → corepkgs.fetchurl: comment typo → https://git.io/fh2N5
<praetorg_> it is strange
<sphalerite> well. hnix is evaluating my stuff differently than nix, failing an assertion :|
<sphalerite> I think I should sleep.
<ivegotasthma> hnix would evaluate your sleep differently
<gchristensen> yikes
ddellacosta has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest67619 has quit [Quit: Leaving]
fragamus has joined #nixos
<gchristensen> anyone seen this before? OSError: [Errno 18] Invalid cross-device link: '/tmp/tmpshpuja4t/entry' -> '/boot/loader/entries/nixos-generation-12.conf' -- I have a tempdir, I write some text to a file, and then os.rename it
<gchristensen> blaaah "os.rename only works if source and destination are on the same file system. You should use shutil.move instead"
<clever> gchristensen: os.rename uses the rename syscall, which can only work within a single filesystem
<clever> gchristensen: you need to instead copy the file, then delete the source, when rename failed
<clever> the `mv` binary falls back automatically
<clever> you could also make the temp file in /boot/ to begin with, like /boot/loader/entries/.temp
<gchristensen> I did that, mic92 didn't like it :P
<clever> gchristensen: one reason you should stick with os.rename
<clever> shutil.move will overwrite the file, as it copies
<clever> and if the machine has an improper shutdown, then the file will be partially written
<clever> which could brick the machine
<clever> os.rename is atomic, so it either replaced the file, or it didnt happen
<Mic92> gchristensen: it is ok for files that are supposed to stay there. But there were also some other files that are copied into the efi stub.
<Mic92> clever: nothing is atomic in the fat32 unfortunally
<gchristensen> aye
<Mic92> you need to use fsync afterwards.
<Mic92> and hope for the best
logand has left #nixos ["ERC (IRC client for Emacs 26.1)"]
logand has joined #nixos
<clever> Mic92: note, it is possible to make /boot/ESP fat32, and then /boot/ ext4
<clever> and in that case, sticking to os.rename would give you protections
fragamus has quit [Ping timeout: 246 seconds]
<Mic92> clever: yeah, but you can expect many people not doing that given that our installation guide also make /boot a fat32
<Mic92> Also I think systemd-boot cannot read ext4
<clever> fix the guide to rely on fat32 for even fewer files?
<clever> oh, that will need testing and fixing, i use grub, so havent ran into that
<gchristensen> I don't have a /boot/ESP, should I?
<clever> gchristensen: wait, wrong path
alex`` has quit [Ping timeout: 250 seconds]
<clever> gchristensen: its /boot/EFI
justanotheruser has quit [Ping timeout: 240 seconds]
<clever> technically, only that subdir has to exist on fat32
<Mic92> gchristensen: it would not work with systemd-boot as far as I know, but it has some advantages if you use grub
<clever> if you do choose to use a fat32 /boot/EFI and ext4 /boot/ (or even /boot on /), you must set boot.loader.efi.efiSysMountPoint = "/boot/EFI";
slyfox_ is now known as slyfox
alex`` has joined #nixos
<Mic92> I hope one day manafactures decide to drop the expensive firmware licenses in favor of Linux boot
justanotheruser has joined #nixos
fragamus has joined #nixos
Khetzal has joined #nixos
jackdk has joined #nixos
kvda has joined #nixos
<clever> Mic92: i dont remember the link, but there are tools to unpack a bios, then repack it with extra efi binaries added in
<clever> Mic92: and there is another project, that took all of the FS drivers in grub, and packaged them into efi binaries
<clever> combine the 2, risk bricking your motherboard, and boom, your ESP can be any partition grub supports!
<clever> maybe even zfs??
<Mic92> grub's zfs support is pretty much stalled due to the GPL license
<Mic92> u-boot's zfs support could be better right now
fragamus has quit [Ping timeout: 250 seconds]
<Mic92> the most time when building stdenv is spent in configure scripts
<Mic92> autotools needs to go away
<clever> Mic92: yeah, i wouldnt trust grub with zfs, but its just an example of the insanity you could do
<jackdk> Mic92: Despite all the attempts, I still reckon it's the least worst option.
<jackdk> (attempts to replace it)
<clever> This is a GPLv3+ implementation of standalone EFI File System drivers, based on the GRUB 2.0 read-only drivers.
<clever> my understanding, is that you just need to load the final .efi file at boot, somehow
<clever> either via a stub in a fat32 fs you never touch, or by hacking the firmware
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<{^_^}> [nixpkgs] @matthewbauer pushed to staging-18.09 « ghc: don’t add libiconv automatically »: https://git.io/fh2hz
simukis has quit [Quit: simukis]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ar1a> anyone know how to get sshd to use sshd.socket instead of sshd.service? i'd rather sshd not be open until someone tries to connect
<{^_^}> [nixpkgs] @primeos opened pull request #54488 → python37Packages.cryptography{,_vectors}: 2.4.2 -> 2.5 → https://git.io/fh2jJ
<clever> ar1a: services.openssh.startWhenNeeded = true;
<ar1a> don't know how i missed it, thanks clever
<clever> ar1a: its a side-effect of being bored, and literally reading the name of every single nixos option in the manual
<ar1a> holy shit
seqizz has joined #nixos
mizu_no_oto has joined #nixos
<clever> ar1a: there is also the `nixos-option` command, `man configuration.nix` and https://nixos.org/nixos/options.html
<ar1a> yeah i had a look and like i said, didnt know how i missed it
<__monty__> What do you do for fun? I go through spec sheets. The adrenaline rush from living life on the edge : >
<clever> it was down several pages
<seqizz> Hi again, I am defining an attribute, but can't use it in same level like this: http://dpaste.com/0KFA0N4 , am I nixing wrong?
sanscoeu_ has joined #nixos
<clever> seqizz: line 8 should be machinename = { resources, ... }: {
kvda has joined #nixos
<ottidmes> colemickens: I have pushed the changes of nix-prefetch needed to support cargo. It now also includes a README, including a cargo package example in the Examples section: https://github.com/msteen/nix-prefetch
<clever> seqizz: wait, somethings not right, line 8 (deployment) is a nixos option, but line 2 is a nixops option
<clever> seqizz: that shouldnt be working
sanscoeur has quit [Ping timeout: 246 seconds]
codezero has quit [Quit: Ping timeout (120 seconds)]
<rycee> Could somebody using standard X sessions (i.e. not using ~/.xsession) help me a bit? I would like to see what `echo $DESKTOP_SESSION` prints.
Laalf has quit [Quit: No Ping reply in 180 seconds.]
codezero has joined #nixos
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
Laalf has joined #nixos
<ottidmes> rycee: my ~/.xsession is empty and I use lightdm, if that qualifies as standard X sessions, then my value is: xfce+bspwm
<rycee> Perfect. Thanks!
<clever> rycee: that var is just `xfce` on my end
orivej has quit [Ping timeout: 246 seconds]
orivej_ has joined #nixos
devhell has joined #nixos
Ralith_ has quit [Remote host closed the connection]
Lingjian has quit [Ping timeout: 250 seconds]
erictapen has quit [Ping timeout: 245 seconds]
<ar1a> none+bspwm here
Decoy has joined #nixos
Decoy has left #nixos [#nixos]
<rycee> Thanks ar1a :-)
<rycee> I don't need any more.
<infinisil> rycee: Now we need to know: What for?
[Leary] has joined #nixos
Lears has quit [Read error: Connection reset by peer]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/7be4f4523bc (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
o1lo01ol1o has joined #nixos
<rycee> infinisil: I'm having a small conversation with Linus here: https://github.com/NixOS/nixpkgs/pull/54283#discussion_r249171456
<rycee> Trying to figure out how to have a ~/.xsession file and still be able to select other sessions in the DM.
<seqizz> clever: I got what you said, but this still doesn't make any sense to me :| Here is everything I use: http://dpaste.com/270MHBW
<infinisil> I see
<clever> seqizz: and what does `nixops info` say?
<seqizz> clever: And the error is awesome: error: cannot coerce a list to a string, at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:109:60 :)
<clever> seqizz: base.nix is a nixops file, imports is not a valid key in that context
<seqizz> aaaaaah
<clever> seqizz: aws.nix is a nixos module, resources is not valid in that context, and line 17 of the pastebin is nixops syntax
acarrico has quit [Ping timeout: 245 seconds]
silver_ has joined #nixos
<worldofpeace> wouldn't the proper var be XDG_CURRENT_DESKTOP rycee ?
<clever> seqizz: you want to move 17-35 into the base.nix, and put the imports inside near deployment = {
alex``` has joined #nixos
<rycee> infinisil: I suspect it isn't possible. So if anybody wants to have, for example, both a HM session and a regular KDE one then they have to manually create a HM desktop manager session in the system configuration.
peacememories has joined #nixos
<clever> seqizz: i'll put an example in git
<clever> gist*
<ingenieroariel> I am compiling nix on my cell phone (while I wait for nix compilation on riscv to finish) and just noticed something odd - bootstrap produces a configure file that has throws a syntax error on line 7005
alex`` has quit [Read error: Connection reset by peer]
fusion809 has quit [Remote host closed the connection]
<rycee> worldofpeace: Interesting. I don't have the variable, does it point to the session script?
<ingenieroariel> (right in the enable_s3 section)
<infinisil> rycee: Can't users usually select from multiple sessions in the display manager?
<infinisil> Well, I thought I saw that at some point at least
silver has quit [Ping timeout: 268 seconds]
Ralith_ has joined #nixos
<worldofpeace> rycee: Some docs I found on that var: "$XDG_CURRENT_DESKTOP should have been set by the login manager, according to the value of the DesktopNames found in the session file. The entry in the session file has multiple values separated in the usual way: with a semicolon."
alex``` has quit [Ping timeout: 246 seconds]
<rycee> infinisil: As far as I can tell it is not possible. You can select a different session but it will not be honored if you have a ~/.xsession file. See https://is.gd/T1ACAe
protocol has joined #nixos
<rycee> It will unconditionally exec the xsession file if it exists, only if it doesn't exists will the actual session script be executed.
<clever> seqizz: https://gist.github.com/cleverca22/34932459b4254d5e1b8d9a5025d77fc1 and use `nixops modify -d something network.nix network_aws.nix`
<protocol> question, probably dumb, but I can't find much documentation on it: is OpenGL enabled by default on NixOS?
<infinisil> rycee: I think it would be worth changing nixpkgs to fix that
alex``` has joined #nixos
<infinisil> protocol: If you have services.xserver.enable = true; then yes, otherwise no
<rycee> worldofpeace: Hmm, then XDG_CURRENT_DESKTOP probably isn't what I'm looking for. I'm wanting the actual path to the script that starts the desktop session.
<rycee> Anybody mind running `echo $XDG_CURRENT_DESKTOP`? :-)
<protocol> I do; is there a way to test it, like gltest on other distros?
<worldofpeace> btw you can do `printenv XDG_CURRENT_DESKTOP`
<clever> seqizz: network.nix defines network wide params, and a machine called awsDeploy that uses base.nix
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/4b6020faf58 (from 11 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<infinisil> rycee: Might be worth starting up a VM with a DE if you try stuff out, should be quite easy with `nixos-rebuild build-vm` and one of the installer profiles
<rycee> worldofpeace: Neat. I think echo is nicer though since Bash has tab completion of variables for the echo command but not the printenv command, for some reason.
ingenieroariel has quit [Ping timeout: 256 seconds]
<clever> seqizz: network_aws.nix defines the ec2 key, and adds aws.nix to awsDeploy
<worldofpeace> rycee: Weird I'm using zsh and it works
<rycee> worldofpeace: I think zsh is having fancier tab completion :-)
<worldofpeace> rycee: Right :P
erasmas has quit [Quit: leaving]
fendor has quit [Quit: Leaving]
<seqizz> clever: Yup, that worked. I need to dig more about this separation of nixos/nixops configuration options. But I got the main idea, thanks++ for all the explanation :)
<rycee> infinisil: Yeah, I'll try digging in to it a bit more with a VM some other time. Now to sleep :-)
<Church-> So I think nixos may have helped me get a job. Neat
<rycee> protocol: You could try seeing what `nix run nixpkgs.glxinfo -c glxinfo` does.
* Church- prostrates at the temple of the nix
peacememories has quit [Quit: Textual IRC Client: www.textualapp.com]
<infinisil> Church-: Oh nice, devops related job?
halfbit has quit [Ping timeout: 246 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<protocol> oh wow, that's awesome, does it just do a single-run type thing with the package instead of installing it?
<rycee> protocol: Yeah.
<protocol> that's awesome
<protocol> also, it spit out a *bunch* of data
fragamus has joined #nixos
<protocol> I see in there "Extended rendered info blah blah blah Accelerated: yes"
<rycee> Then I guess you have some opengl working at least :-)
<protocol> cool!
chessai has quit [Remote host closed the connection]
<protocol> I *kinda* felt like it was working, because the Plasma desktop isn't dying when I do, well, anything
<protocol> just ruling things out. I just created my first package, and the output application was noting an OpenGL error, and OpenMW wasn't working right, so I just wanted to rule out the drivers
<{^_^}> [nixpkgs] @Mic92 merged pull request #54416 → telegraf: 1.7.0 -> 1.9.2 → https://git.io/fhzEw
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fhafB
<protocol> that actually brings me to my second question: would there be any ethical concerns about putting together a package for someone else's GitHub project? Is there some way to note that I only put the package together to bring it into the Nix package system?
<protocol> I don't want to take any credit for their project, but I also don't want to accidentally/inadvertently sign them up for package bugs/questions vs project bugs/questions
<infinisil> protocol: Nah no need to worry about that I'm pretty sure, often the project owners also like to put a section in their readme pointing out that it works on Nix/NixOS as well. And Nix people usually question their own packaging first before going to the project owner
<__monty__> protocol: No concerns whatsoever. No one'll mistake a maintainer for an author.
<protocol> awesome!
<protocol> thanks guys
seqizz has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @dywedir merged pull request #54445 → miniflux: 2.0.13 -> 2.0.14 → https://git.io/fhglq
<{^_^}> [nixpkgs] @dywedir pushed commit from @rvolosatovs to master « miniflux: 2.0.13 -> 2.0.14 »: https://git.io/fhafd
iqubic has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
ingenieroariel has joined #nixos
ingenieroariel has quit [Client Quit]
ingenieroariel has joined #nixos
<ingenieroariel> checking for aws/s3/S3Client.h... no ./configure: 7005: ./configure: Syntax error: "(" unexpected (expecting "fi")
erictapen has joined #nixos
<ingenieroariel> this is the configure error from nixos when running on termux/lineageos/aarch64 - the line in question is a long line related to aws env
ingenieroariel has quit [Client Quit]