gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || 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
matthewbauer has quit [Ping timeout: 248 seconds]
Guest49421 has quit [Remote host closed the connection]
stqism has joined #nixos
wrl has quit [Read error: Connection reset by peer]
ZeDestructor_ has joined #nixos
aanderse-laptop has quit [Quit: Konversation terminated!]
ZeDestructor has quit [Ping timeout: 245 seconds]
ZeDestructor_ is now known as ZeDestructor
jasongrossman has joined #nixos
StianL has quit [Ping timeout: 245 seconds]
mekeor has quit [Ping timeout: 265 seconds]
troydm has quit [Ping timeout: 255 seconds]
hakujin3 has quit [Ping timeout: 276 seconds]
tusj has quit [Ping timeout: 260 seconds]
tusj has joined #nixos
troydm has joined #nixos
mekeor has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fNoxl
<d1rewolf> i need to turn off requiretty for a user in sudo. how can I do this declaratively?
hakujin3 has joined #nixos
<d1rewolf> irc logs to the rescue. never mind
Acou_Bass has quit [Ping timeout: 240 seconds]
Acou_Bass has joined #nixos
<{^_^}> [nixpkgs] @jtojnar closed pull request #33270 → WIP: add gnome3.gnome-builder → https://git.io/vbxue
hakujin3 has quit [Ping timeout: 256 seconds]
tertle||eltret has quit [Quit: Connection closed for inactivity]
init_6 has quit [Ping timeout: 248 seconds]
kim0 has quit [Quit: Connection closed for inactivity]
dnovosel has joined #nixos
blonkhart has joined #nixos
blonkhart has quit [Quit: WeeChat 1.9.1]
hakujin3 has joined #nixos
the-kenny-w has quit [Ping timeout: 256 seconds]
blankhart has joined #nixos
ericsagnes has joined #nixos
troydm has quit [Ping timeout: 240 seconds]
<sviteri> why does man nix-build show the existence of a verbosity flag, when there does not seem to be any in https://github.com/NixOS/nix/blob/b27431b7cb918e6866f4bb4fa7ec6e23240cfeab/src/nix-build/nix-build.cc
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/0e55dde2eaa (from 18 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<samueldr> there's a common options parser
Fare has joined #nixos
tertle||eltret has joined #nixos
<tertle||eltret> how do i make myself default admin(sudo) for my machine?
<sviteri> samueldr: Where is this common options parser located?
<samueldr> I was actually searching it
thc202 has quit [Ping timeout: 265 seconds]
baconicsynergy_ has quit [Remote host closed the connection]
tusj has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @matthewbauer pushed commit from @angerman to master « coreutils: unix-only »: https://git.io/fNohz
<sviteri> samueldr: So I see MixCommonArgs, MixDryRun, and MixJSON being offered by common-args.hh
<{^_^}> [nixpkgs] @matthewbauer closed pull request #43710 → Feature/mingw coreutils → https://git.io/fNGYD
<sviteri> samueldr: Should I be looking for those in the nix-build.cc
<samueldr> sviteri: while I looked like I knew what I was doing, I was plainly reading along earlier :)
<samueldr> I see `struct MyArgs : LegacyArgs, MixEvalArgs`
tusj has joined #nixos
<sviteri> LegacyArgs comes from shared.hh
<{^_^}> [nixpkgs] @matthewbauer closed pull request #43658 → chromium: do jumbo builds → https://git.io/fN3Nx
<sviteri> MixEvalArgs comes from common-eval-args.hh
<sviteri> common-args is not directly grabbed by nix-build.cc, but rather is included transitively through shared.hh
tusj has quit [Ping timeout: 240 seconds]
<sviteri> Ok this makes sense now -- showManPage comes from shared.hh
<sviteri> This process would be a whole lot easier if it was like shared.showManPage or something
<{^_^}> [nixpkgs] @matthewbauer merged pull request #43604 → Minor upstream update Tryton 4 8 → https://git.io/fNY5o
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/fNohj
n0qqe has joined #nixos
Sonarpulse has quit [Ping timeout: 268 seconds]
ktonga has joined #nixos
ktonga has quit [Client Quit]
Sonarpulse has joined #nixos
noqqe has quit [Ping timeout: 256 seconds]
n0qqe is now known as noqqe
<{^_^}> [nix] @samueldr opened pull request #2323 → Allows selectively adding environment variables to pure shells. → https://git.io/fNojm
mekeor has quit [Remote host closed the connection]
<samueldr> well, this was simple
frem has quit [Quit: Connection closed for inactivity]
ktonga has joined #nixos
tusj has joined #nixos
Sonarpulse has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #43080 → cataclysm-dda{,-git}: move common attributes to common.nix → https://git.io/fbh5C
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/fNojE
tusj has quit [Ping timeout: 268 seconds]
<ktonga> Hello people. I have a question about building a package using nix docker image
<samueldr> not a user, but do ask
<ktonga> i want to cache the store so i reuse its content between builds
<ktonga> so i create a persisten dir and then i mount it with run -v
<ktonga> but the nix image already has a store dir with some stuff since it comes with preinstalled packages
<ktonga> how can i mount my cache dir without overriding the existing one?
Supersonic has quit [Ping timeout: 265 seconds]
spear2 has joined #nixos
tusj has joined #nixos
Supersonic has joined #nixos
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 240 seconds]
<sviteri> samuel: I don't believe your pull request allows multiple vars
lassulus_ is now known as lassulus
<samueldr> hmmmm, I forgot to test
<sviteri> samuel: which you probably want
<samueldr> you're right I want
<samueldr> nah, works as expected
<sviteri> samueldr: doesn't this only work as written if you include a different --keep-var for each variable
<samueldr> result/bin/nix-shell --pure --keep-var X --keep-var Y
pbogdan has quit [Ping timeout: 276 seconds]
<samueldr> this mirrors the way -p works, you `-p foo -p bar` bit `-p foo,bar`
<sviteri> samueldr: -p works by accumulating different arguments into the 'left' array, correct?
<sviteri> samueldr: so I can write '-p foo bar baz' and add each of those
<samueldr> oh, didn't know
<sviteri> samueldr: it would make sense similarly allow '--keep-var foo bar baz'
<samueldr> this wouldn't really be workable
<samueldr> I'm looking at the definition in the manpage
<samueldr> nix-shell [--arg name value] [--argstr name value] [{--attr | -A} attrPath] [--command cmd] [--run cmd] [--exclude regexp] [--pure] {{--packages | -p} packages... | [path]}
<samueldr> see how it could take a path in the end
<iqubic> pythonWhithPackages confuses me.
<iqubic> How do I use it?
<samueldr> how should `nix-shell --keep-var foo bar baz` interpret that?
<samueldr> that's probably more confusing than one flag per option
<samueldr> (a short flag could be added, but short flags are a non-renewable resource)
<iqubic> Specifically, how do I use pythonWithPackages in a shell.nix?
<sviteri> samueldr: is the issue that -p could also take a path?
<samueldr> it's an either situation for -p vs. path
sir_guy_carleton has joined #nixos
<samueldr> when using -p, you can't use a path I think?
<samueldr> at least, as described by this manpage bit
<samueldr> if it isn't, it's uh, hard to understand
<samueldr> (haven't validated with the source yet)
<sviteri> samueldr: I believe that -p and --packages are identical
<samueldr> they are
<samueldr> ~/tmp/tmp $ nix-shell -p hello shell.nix
<samueldr> error: undefined variable 'shell' at (string):1:102
<sviteri> nix-shell [--arg name value] [--argstr name value] [{--attr | -A} attrPath] [--command cmd] [--run cmd] [--exclude regexp] [--pure] {{--keep-vars | -k} packages... } {{--packages | -p} packages... | [path]}
<sviteri> samueldr: ^ is what I'm trying to say
<sviteri> samueldr: but I think that you are saying that the path part creates a problem?
<samueldr> yeah, it would need some cleverness to ensure I'm not using a path
silver has quit [Read error: Connection reset by peer]
<samueldr> I'll see what the fine folks making nix think of it, I'll link this discussion
<sviteri> samueldr: I think fundamentally the complexity increase comes down to the need to impose an ordering for the parse of attribute, which is currently not necessary
<sviteri> samueldr: Then I can say -- take everything _after_ --keep-vars, and _before_ --*
<sviteri> samueldr: this is easy to do with regex matching, but would require a rewrite of a significant amount of the nix-build file
<samueldr> oh, pretty sure this can't happen (as it would be a breaking change)
<samueldr> `nix-shell hello bash -p` works
<samueldr> `nix-shell --keep-env foo hello bash -p` should still make `hello, bash` be selected for backwards compat
drakonis has joined #nixos
<samueldr> --keep-var* obviously
<acowley> I have a patch I thought I should perhaps put through nox-review, but nox-review is complaining that a package in one of my unrelated overlays needs an argument that I define in my user's packageOverrides. How should one navigate this?
<samueldr> acowley: when I test PRs, I use `env -i nix-build` which blasts away all of my environment
<samueldr> maybe it's possible to do the same for nox-review
<samueldr> (let's hope it doesn't need an environment)
<sviteri> samueldr: I'm exiting, thanks for your help today!
<acowley> samueldr: I don't think I understand your response
sviteri has quit [Quit: Leaving]
<acowley> samueldr: You run `env -i nix-build`, and then a nox-review command?
<samueldr> acowley: `env -i` can be used to start another program without inheriting your environment
<samueldr> so it would be `env -i nox-review`
<samueldr> (I never actually used nox-review :/)
<acowley> Oh, I see!
<acowley> If I do that, it can't find nox-review
<acowley> because I'm in a nix-shell I'd guess
<samueldr> hm, could it be using PATH to call itself?
<samueldr> env -i PATH="$PATH" nox-review
<samueldr> (that's how you'd pass variables you need if needed)
<acowley> nox-review itself isn't working when I try variations of that. I think it needs some nix things from the environment
<iqubic> Has anyone run into issues with steam-run displaying all the text as black outlined rectangles?
<iqubic> Anyone know how to fix that?
<acowley> It seems as though something like nox-review would be very good to have. It's a shame it isn't a more active project.
<samueldr> acowley: possibly, though for the record, works wonder with nix-build
<acowley> I don't want to PR a change that breaks things for people.
<samueldr> acowley: alternatively, mangle your NIX_PATH for that shel
<acowley> Yeah, I think some surgery is needed, but I don't really want to do it as the less automated it all is the less likely it is to be a useful exercise
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/0e55dde2eaa (from 20 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
troydm has joined #nixos
<acowley> I guess if it's finding that overlay of mine, it's because it's checking $HOME for a config.nix. But if I reset HOME, then nox-review can't find a place for its own ~/.nox directory. Oy vey.
<acowley> I feel like I'm going to end up grepping nixpkgs for downstream packages and just nix-building them manually
<acowley> That's actually not the absolute worst thing in this case.
sigmundv has quit [Ping timeout: 240 seconds]
tusj has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #44140 → unixODBCDrivers.msodbcsql17: init at 17.2.0.1 → https://git.io/fNuC1
<{^_^}> [nixpkgs] @matthewbauer pushed commit from @spencerjanssen to master « unixODBCDrivers.msodbcsql17: init at 17.2.0.1 (#44140) »: https://git.io/fNKva
<drakonis> cups doesn't seem to be compiling
<drakonis> cups filters seem to be the issue
<{^_^}> [nixpkgs] @jerith666 opened pull request #44331 → lift version restrictions on language-ecmascript inputs → https://git.io/fNKvr
<{^_^}> [nixpkgs] @jerith666 opened pull request #44332 → restic: add missing default for s3CredentialsFile → https://git.io/fNKv1
<drakonis> blah i really needed to print something
<{^_^}> [nixpkgs] @matthewbauer merged pull request #44332 → restic: add missing default for s3CredentialsFile → https://git.io/fNKv1
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fNKvS
drakonis has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #43020 → [18.03] gnomeExtensions.system-monitor: init at v33 (cherry-picked from master) → https://git.io/fbx73
<{^_^}> [nixpkgs] @matthewbauer pushed 4 commits to release-18.03: https://git.io/fNKvj
tusj has joined #nixos
cmcdragonkai has joined #nixos
<cmcdragonkai> Is there a way to use a string path to access an attribute set?
<cmcdragonkai> Something like `let path = "a.b"; in { a = { b = 3; }; }."${path}"`
<samueldr> > lib.attrByPath ["a" "b"] "default" { a = { b = "yay";}; } # cmcdragonkai
<{^_^}> "yay"
tusj has quit [Ping timeout: 240 seconds]
<cmcdragonkai> Thanks
halfbit has quit [Ping timeout: 256 seconds]
<cmcdragonkai> Is there a way to set `packageOverrides` after you already have the `pkgs` result from `import <nixpkgs> {}`?.
halfbit has joined #nixos
jasongrossman has quit [Ping timeout: 248 seconds]
halfbit has quit [Quit: WeeChat 1.9.1]
halfbit has joined #nixos
pie__ has joined #nixos
pie___ has quit [Ping timeout: 240 seconds]
igo95862 has joined #nixos
Sonarpulse has joined #nixos
blankhart has quit [Quit: WeeChat 1.9.1]
Sonarpulse has quit [Ping timeout: 265 seconds]
drakonis has joined #nixos
hakujin3 has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @MP2E pushed 3 commits to master: https://git.io/fNKJ4
<sir_guy_carleton> what's the best way to suggest very small/minor documentation changes to nixpkgs?
<Enzime> sir_guy_carleton: what do you mean by suggest changes?
<Enzime> you mean you want to explain what change should be made, or you have a change you want to submit?
<sir_guy_carleton> Enzime: well, i would like to edit the readme to point to the discourse forum, stuff like that
<Enzime> sir_guy_carleton: do you have any experience with git?
<Enzime> or GitHub?
<sir_guy_carleton> yeah
<{^_^}> [nixpkgs] @MP2E pushed to master « mariadb: 10.2.16 -> 10.3.8 »: https://git.io/fNKJH
<{^_^}> [nixpkgs] @aszlig pushed to master « tests/containers-imperative: Disable useSandbox »: https://git.io/fNKJN
<ekleog> sir_guy_carleton: a PR to the nixpkgs repo is likely the best way to do that, then :)
<iqubic> so I have an issue where applications opened with Steam-Run have incorrect font rendering.
<iqubic> All of the letters look like black rectangles.
<iqubic> How can I fix that up? Am I lacking the proper fonts?
biopandemic has quit [Quit: Quit.]
<iqubic> Another thing I want an answe to: how the heck does pythonWithPackages work?
fragamus has joined #nixos
<{^_^}> [nixpkgs] @MP2E pushed to master « ffmpeg_4, ffmpeg-full: 4.0.1 -> 4.0.2 »: https://git.io/fNKUo
marusich has joined #nixos
<Myrl-saki> myrl@myrl:~/Development$ nix eval '(builtins.readFile /dev/stdin)'
<Myrl-saki> ""
<Myrl-saki> Sad.
lostman has quit [Quit: Connection closed for inactivity]
voiceftp has joined #nixos
voice_ftp has joined #nixos
voice_ftp has quit [Remote host closed the connection]
<iqubic> I wish I knew ho to fix my issues.
<eddyb> *sad face* builder for '/nix/store/y30iwgxqpf9cd2mixg10kf7qpsnmk1fz-chromium-69.0.3497.12.drv' failed with exit code 2
<eddyb> I guess this is the same reason hydra didn't build it
<iqubic> :(
<iqubic> Must be
<iqubic> 😢
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/2428f5dda13 (from 14 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<sir_guy_carleton> so for a pull request, should i commit the change to the master of my fork?
<iqubic> Question: Can I do something like "nix-shell; echo $PATH; exit" in a bash script and have that echo the nix-shell $PATH, instead of the default $PATH from outside?
<Enzime> sir_guy_carleton: doesn't matter, I personally make a branch in my fork
<Enzime> so that my master tracks Nixpkgs master
<sir_guy_carleton> Enzime: okay, good advice thanks
<iqubic> looks like "nix-shell; echo $PATH; exit" drops me into a nix-shell without doing anything else. It didn't do what I thought it would. :(
Guanin has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @volth closed pull request #44318 → xfce4-13.xfce4-session: init at 4.13.0 → https://git.io/fNoVZ
<cmcdragonkai> Is there a way to have variable attribute keys?
<cmcdragonkai> `let a = "b"; in { "$a" = 3; }.b`
Guanin has joined #nixos
<voiceftp> cmcdragonkai, see builtins.listToAttrs
MP2E has quit [Remote host closed the connection]
<ekleog> iqubic: nix-shell --run 'sh -c "echo $PATH"' should work :)
MP2E has joined #nixos
<ekleog> when you use ';' in the shell it's not equivalent to '<Enter>', it's first executing nix-shell, then executing 'echo $PATH', then executing 'exit'
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
kyren_ has quit [Ping timeout: 260 seconds]
<ekleog> and so you get dropped in a nix-shell, and when you'll exit it you'll get the PATH printed out and just after it'll exit
<ekleog> ,help
<{^_^}> Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<ekleog> ,
<{^_^}> All commands: -A IFD NUR arm ask bootfull callPackage channels cloudfront context dnw error escape" escape'' escape-special fancy-uninstall github hardware haskell help home-manager library logs nix-env-r nix-info nix-repl nixGL nixcon nixeval nixpkgsVersion not-os notfound outPath overlay paste pills pinning pr profiling pure-eval python qt replaceModule runtimeDeps stateVersion stuck thesis timer todeclarative tofu unfree unstable which-channel whomade
<ekleog> !help
<ekleog> ,nixeval let a="b"; in { "${a}" = 3; }.b
<{^_^}> let a="b"; in { "${a}" = 3; }.b: I can evaluate nix if you prefix your expression with "> ". Use it here only for short demos or helping others with the syntax. If you wanna spam me, do it in #bottest!
<ekleog> > let a="b"; in { "${a}" = 3; }.b
<{^_^}> 3
<ekleog> ^ cmcdragonkai
<ekleog> (easier than builtins.listToAttrs)
<ekleog> (you can do any kind of string interpolation in here, btw)
<iqubic> The list of commands has grown since I last checked it.
<cmcdragonkai> Awesome
spear2 has quit [Remote host closed the connection]
spear2 has joined #nixos
kyren has joined #nixos
kyren has quit [Client Quit]
kyren has joined #nixos
ilbelkyr has left #nixos [#nixos]
<sir_guy_carleton> so i can merge my branch in my forked repo to the master branch without any problems, right?
halfbit has quit [Ping timeout: 265 seconds]
tusj has joined #nixos
wigust has quit [Ping timeout: 240 seconds]
wigust has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jasongrossman has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg pushed to master « xca: 2.0.1 -> 2.1.0 »: https://git.io/fNKIi
crmlt has joined #nixos
crmlt has quit [Ping timeout: 268 seconds]
<iqubic> Will "pip install" work in a nix-shell?
Mateon3 has joined #nixos
hamishmack has quit [Ping timeout: 264 seconds]
Mateon1 has quit [Ping timeout: 260 seconds]
Mateon3 is now known as Mateon1
tusj has quit [Ping timeout: 264 seconds]
drakonis has quit [Read error: Connection reset by peer]
<cmcdragonkai> Given that I want to use `"a.b"` as a path string, is there a built in function that will split this into `["a" "b"]` so I can use the `lib.getAttrFromPath` and other attrset functions?
philippD has joined #nixos
<cmcdragonkai> iqubic: Yes you can, but you need to set your `PIP_PREFIX` and `PYTHONPATH` appropriately.
<clever> > lib.splitString "." "a.b"
<{^_^}> [ <CODE> <CODE> ]
<iqubic> I don't know what either of those do.
<clever> cmcdragonkai: the above code should do what you want
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/0e55dde2eaa (from 23 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
<iqubic> So I take it pip install is not the right way to install libraries on NixOS.
<iqubic> What is the right way to get a python environment with the libraries I want?
<clever> iqubic: python.withPackages in nix
<iqubic> How does that work?
<clever> iqubic: drawing a blank, can you name a python package?
<iqubic> NumPy
<clever> python.withPackages (ps: [ ps.numpy ])
<clever> this generates a python that already has numpy in its search path
<clever> stick it into the buildInputs of your nix-shell
<iqubic> Why is ps used twice there?
<clever> the 1st is defining a function that takes 1 arg, called ps
<clever> the 2nd is using ps to get numpy
<iqubic> python.withPackage is a function, right?
<clever> yes
<clever> its a function that takes another function
<iqubic> Right. I see.
<{^_^}> [nixpkgs] @cjpbirkbeck opened pull request #44334 → Added a link to the new Discourse forum. → https://git.io/fNKtm
Ariakenom has joined #nixos
crmlt has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
<jasongrossman> Hi all. I'm idly thinking about getting a cheap tablet and putting NixOS on it. Is that crazy? Its only function would be playing music.
<clever> jasongrossman: id use either nixops or not-os for something like that
<clever> nixops would be simpler
* jasongrossman looks up not-os
<jasongrossman> My concern was whether there's enough touch-friendly UI software.
<jasongrossman> Not-os looks fun.
<clever> ah, both nixops and not-os entirely ignore the UI perspective
<clever> either way, you have to find something to handle the ui and install it
<clever> xorg is also untested under not-os, so getting graphics may be more difficult
<jasongrossman> OK. Not worth it just for playing music then. Maybe a fun project for other uses.
<jasongrossman> Thanks!
<clever> nixops would let you trivially update the tablet from another system, so then you just need to services.xserver.enable = true; and install a graphical media player
iqubic has quit [Ping timeout: 265 seconds]
<jasongrossman> Excuse my ignorance, but does NixOS work OK on the ARM chips that presumably tablets have?
<clever> i have had it working on an armv6 and v7 raspberry pi before, and others have it working on aarch64
<jasongrossman> Great. Thanks.
<jasongrossman> I'll think about hardware now then and worry about software again later.
Ross has quit [Ping timeout: 260 seconds]
<clever> sphalerite has also been doing some work with an android tablet i believe
<jasongrossman> :-)
dnovosel has quit [Ping timeout: 276 seconds]
<clever> when using nixops locally, you would start by just getting nixos to install normally, then you can upgrade ti to nixops
fragamus has joined #nixos
<sphalerite> Chromebook, not android tablet
<sphalerite> jasongrossman: nixos is based on mainline linux
goibhniu has joined #nixos
iqubic has joined #nixos
<sphalerite> jasongrossman: android is a very different beast, and it's likely to be a massive pain to get a real linux working on a random android device
<sphalerite> samueldr had a little project to marry nixos with https://postmarketos.org/ iirc, not sure what the state of that is
<jasongrossman> Good advice. Thanks. I'll probably stick to lineageos for tablets.
<jasongrossman> But maybe I'll get a Chromebook instead. :-)
<ekleog> <sir_guy_carleton> so i can merge my branch in my forked repo to the master branch without any problems, right? <-- if your branch is based on a reasonably recent version of the nixpkgs repository, you can submit a pull request to the master branch of nixpkgs, yes
<sir_guy_carleton> btw, has anybody here gotten nix on a *BSD (besides macOS, if you count it as a BDS)?
<ekleog> <iqubic> Will "pip install" work in a nix-shell? <-- it does (already had to), but it's often regarded as a bad ideau
<iqubic> ekleog: What should I do instead?
<ekleog> oops
<clever> iqubic: python.withPackages
<ekleog> iirc the idea is that you should use python.withPackages
<ekleog> too late
<iqubic> That does indeed make sense.
pie___ has joined #nixos
<{^_^}> [nixpkgs] @dywedir opened pull request #44335 → libtorrentRasterbar: 1.1.7 -> 1.1.9 → https://git.io/fNKqO
pie__ has quit [Ping timeout: 260 seconds]
<carlosdagos> in mkDerivation, should stuff like `autogen.sh` be called in `preConfigure` or `autoReconfPhase`?
<clever> carlosdagos: there is a 3rd option
<carlosdagos> great :D
<clever> carlosdagos: put autoreconfHook into the buildInputs, and nix will run that for you at the right time
<carlosdagos> that's easy :) will try it thanks a lot!
<LnL> nativeBuildInputs
<clever> it also handles getting you autoreconf itself, so you dont need that in the inputs
<carlosdagos> @LnL thanks! I thought about `nativeBuildInputs` too, thanks for the clarification
<carlosdagos> yup, now it's working beautifully, thanks @clever and @LnL
MP2E has quit [Remote host closed the connection]
<iqubic> trying to get emacs to recognize executables installed in my nix-shell sandbox only is a pain.
<iqubic> Like emacs expects that stuff to be on my $PATH, but it isn't.
<iqubic> Specifically trying to get elpy to work with NixOS.
<clever> iqubic: i think it was called nix-buffer
<iqubic> I saw that, but I don't understand it at all.
<iqubic> What the heck does that do?
hamishmack has joined #nixos
<clever> i think it opens a shell inside emacs, that auto-runs nix-shell, something like that
<iqubic> clever: I found something else that works better for that.
<iqubic> See nix-sandbox there.
<etu> Oooh, nix-emacs looks cool
<etu> I use some direnv to trigger nix-shell to get things in my path. And Emacs has a direnv mode so things are available there as well :-)
<{^_^}> [nixpkgs] @xeji merged pull request #44326 → beegfs/module-18.03: Fix a typo in meta.conf generation (#40979) → https://git.io/fNoQy
<{^_^}> [nixpkgs] @xeji pushed commit from @markuskowa to release-18.03 « beegfs/module: Fix a typo in meta.conf generation (#40979) (#44326) »: https://git.io/fNKmT
<iqubic> etu: Do you use elpy?
<etu> iqubic: no
<iqubic> oh. I'm trying to link elpy and NixOS.
<iqubic> it's a bit of a challenge.
<{^_^}> [nixpkgs] @volth opened pull request #44336 → xfce4-13.xfce4-session: init at 4.13.0 → https://git.io/fNKmO
thc202 has joined #nixos
ktonga has quit [Quit: Konversation terminated!]
Ariakenom has quit [Quit: Leaving]
ng0 has joined #nixos
<sphalerite> jasongrossman: if you're a big free software fan, I'd suggest an ASUS C201 since you can use it without any nonfree firmware or drivers
<{^_^}> [nixpkgs] @xeji merged pull request #44320 → xfce4-13.xfce4-xkb-plugin: init at 0.8.1 → https://git.io/fNoVl
<{^_^}> [nixpkgs] @xeji pushed commit from @volth to master « xfce4-13.xfce4-xkb-plugin: init at 0.8.1 (#44320) »: https://git.io/fNKm2
ng0 has quit [Client Quit]
<sphalerite> jasongrossman: not including wifi though, and a free graphics driver is still a WIP
<{^_^}> [nixpkgs] @xeji pushed commit from @volth to master « xfce4-13.xfce4-clipman-plugin: init at 1.4.2 (#44319) »: https://git.io/fNKm6
<{^_^}> [nixpkgs] @xeji merged pull request #44319 → xfce4-13.xfce4-clipman-plugin: init at 1.4.2 → https://git.io/fNoVc
<jasongrossman> sphalerite: Thanks! That's very good to know.
<jasongrossman> sphalerite: As it happens, I wouldn't need wifi.
<jasongrossman> sphalerite++
<{^_^}> sphalerite's karma got increased to 10
<sphalerite> jasongrossman: you will need some way to connect to the internet though presumably, and they don't have ethernet ports
<sphalerite> so you'll need a USB wifi adapter or usb ethernet adapter
<sphalerite> Biggest issue with the C201 is that it's ARMv7, so binary cache coverage is… limited
reinzelmann has joined #nixos
<sphalerite> I don't have a graphical browser running on that. Barring that though, I could almost use it as a daily driver provided I have remote access to some more powerful machine
<sphalerite> Of course aarch64 is supported better, so you might want to consider an aarch64 chromebook (but I'm not sure if those are as freedom-compatible)
<{^_^}> [nixpkgs] @xeji merged pull request #44327 → plex: 1.13.0 -> 1.13.4 → https://git.io/fNo7g
<{^_^}> [nixpkgs] @xeji pushed commit from @anderslundstedt to master « Plex: 1.13.0 -> 1.13.4 (#44327) »: https://git.io/fNKmQ
<sphalerite> or an intel one if you don't really give a damn, in which case getting software running will probably be easier :p
<jasongrossman> sphalerite: What's the internet?
<jasongrossman> sphalerite: If I do this at all, it'll be just for playing music, so I won't need the internet.
<sphalerite> jasongrossman: the internet is how you talk to the nixos binary cache
fragamus has quit [Ping timeout: 264 seconds]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<jasongrossman> sphalerite: Ah. Good point!
palo has quit [Ping timeout: 268 seconds]
<sphalerit> jasongrossman: so you will probably want internet for the initial setup, even if you don't need it for normal operation
Ariakenom_ has joined #nixos
<jasongrossman> How did people install NixOS before the internet?
<unacceptable> It was printed in magazines, you had to write it into the source files yourself
eeva has quit [Read error: Connection reset by peer]
adam-6520493 has quit [Quit: Ping timeout (120 seconds)]
<{^_^}> [nixpkgs] @xeji merged pull request #44335 → libtorrentRasterbar: 1.1.7 -> 1.1.9 → https://git.io/fNKqO
<{^_^}> [nixpkgs] @xeji pushed commit from @dywedir to master « libtorrentRasterbar: 1.1.7 -> 1.1.9 (#44335) »: https://git.io/fNKY9
Ross has joined #nixos
eeva has joined #nixos
troydm has quit [Ping timeout: 260 seconds]
page has quit [Ping timeout: 256 seconds]
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
page has joined #nixos
cfricke has joined #nixos
<jasongrossman> unacceptable: And then you had to key those files in to the front panel on your mainframe.
<unacceptable> It sometimes came on pre-punched cards attached to the magazine, but those were often tampered with by Punk Kids (TM)
troydm has joined #nixos
lpsmith- has joined #nixos
sheyll has quit [Ping timeout: 256 seconds]
lpsmith has quit [Read error: Connection reset by peer]
makefu has quit [Ping timeout: 256 seconds]
LnL has quit [Ping timeout: 256 seconds]
Unode has quit [Ping timeout: 256 seconds]
lvmond has quit [Ping timeout: 256 seconds]
LnL has joined #nixos
<ekleog> actually, for just playing music, I guess the nixos live cd would make a good install source, by copying from the store of the CD? 😇
markus1189 has quit [Ping timeout: 256 seconds]
<ekleog> DVD*, actually
ThatOtherGuy has quit [Ping timeout: 240 seconds]
Unode has joined #nixos
<srhb> unacceptable: If you have a sufficiently fast system, you can just generate random bytes until you have the right hash for /run/current-system -- one of the nice things with NixOS.
kyren has joined #nixos
<ekleog> errrhm… actually, no, you'll likely hit a hash collision long before that :p
<{^_^}> [nixpkgs] @xeji pushed commit from @bignaux to master « photon: init at 1.0.7 (#44269) »: https://git.io/fNKOo
<{^_^}> [nixpkgs] @xeji merged pull request #44269 → photon: init at 1.0.7 → https://git.io/fNwaT
Anton-Latukha has joined #nixos
ThatOtherGuy has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
kyren has quit [Client Quit]
johnw has quit [Ping timeout: 260 seconds]
<jasongrossman> ekleog: Good point, but there's a very high probability that the hash collisions will turn out not to be executable, so you can automate discarding the wrong ones.
<jasongrossman> ekleog: Ooh, live NixOS USB stick. That is a good idea.
<ekleog> jasongrossman: there's like 256bits in a nix hash, so if you just take a 32-char string that can be randomized to whatever by keeping the program executable, it'll still be executable
<ekleog> including shell comments
kyren has joined #nixos
<ekleog> I think you'll have at least several weird constants / character strings, not even counting modifications that are still executable :)
<clever> ekleog: only 160 bits in the storepath hashes
<srhb> I'm saddened by your lack of enthusiasm for my obviously sincere suggestion. :-)
johnw has joined #nixos
kyren has quit [Client Quit]
<ekleog> srhb: heh, sorry :3
<ekleog> clever: oh true there's this thing about truncating the hash, I thought I had read swh that was legacy, sounds like actually not :)
kyren has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #44334 → Added a link to the new Discourse forum. → https://git.io/fNKtm
<{^_^}> [nixpkgs] @xeji pushed commit from @cjpbirkbeck to master « README.md: Add link to the new discourse forum (#44334) »: https://git.io/fNK3l
<jasongrossman> ekleog: Damn.
Anton-Latukha has quit [Remote host closed the connection]
kyren has quit [Client Quit]
Anton-Latukha has joined #nixos
<{^_^}> [nixpkgs] @xeji closed pull request #44241 → [WIP] mariadb: add v10.3.8 → https://git.io/fNaPu
kyren has joined #nixos
_cyril_ has quit [Ping timeout: 268 seconds]
_cyril_ has joined #nixos
makefu has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #44328 → trellis: init 2018.08.01 → https://git.io/fNo7M
<{^_^}> [nixpkgs] @xeji pushed commit from @q3k to master « trellis: init 2018.08.01 (#44328) »: https://git.io/fNKsE
<{^_^}> [nixpkgs] @shmish111 opened pull request #44339 → elasticsearch6: refactor plugins → https://git.io/fNKsS
<{^_^}> [nixpkgs] @shmish111 opened pull request #44340 → nixos/curator: init elasticsearch curator → https://git.io/fNKG3
<{^_^}> [nixpkgs] @xeji merged pull request #40575 → cargo-update: init at 1.5.2 → https://git.io/vp5jM
<{^_^}> [nixpkgs] @xeji pushed commit from @Gerschtli to master « cargo-update: init at 1.5.2 (#40575) »: https://git.io/fNKGZ
<{^_^}> [nixpkgs] @xeji merged pull request #44325 → openmolcas: init at 20180529 → https://git.io/fNoHa
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fNKGu
<{^_^}> [nixpkgs] @shmish111 opened pull request #44341 → nixos/riemann: refactor config → https://git.io/fNKG2
<{^_^}> [nixpkgs] @xeji merged pull request #44336 → xfce4-13.xfce4-session: init at 4.13.0 → https://git.io/fNKmO
<{^_^}> [nixpkgs] @xeji pushed commit from @volth to master « xfce4-13.xfce4-session: init at 4.13.0 (#44336) »: https://git.io/fNKGy
orivej has joined #nixos
<{^_^}> [nixpkgs] @carlosdagos opened pull request #44342 → tinyproxy: init at 1.8.4 → https://git.io/fNKGh
jasongrossman has quit [Remote host closed the connection]
fendor has joined #nixos
sigmundv has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyren has joined #nixos
Fare has quit [Ping timeout: 244 seconds]
nschoe has joined #nixos
TweyII has joined #nixos
marusich has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @Izorkin opened pull request #44343 → mariadb: fix build client and refactor config → https://git.io/fNKcM
ng0 has joined #nixos
<{^_^}> [nix] @edolstra merged pull request #2322 → Removes unused variable from `nix-build/nix-shell` → https://git.io/fNoHr
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fNKCk
igo95862 has quit [Quit: igo95862]
TweyII has quit [Ping timeout: 260 seconds]
TweyII has joined #nixos
astrofog has joined #nixos
azazel has joined #nixos
gspia has joined #nixos
Izorkin_ has quit [Ping timeout: 276 seconds]
betaboon has joined #nixos
astrofog has quit [Quit: Quite]
<TweyII> What's the new-style equivalent to nix-build -Q --no-out-link foo, i.e. build foo and print the store path?
<srhb> TweyII: There is none.
oida has quit [Quit: byez]
<srhb> Build it, print the path, remove the path.
<srhb> This is a funny failure, can someone explain it to me? It looks like "cat" is missing in the test environment, however I cannot reproduce that locally: https://hydra.nixos.org/build/78608184/nixlog/1
<srhb> This is with all safety features that I know of enabled.
<clever> srhb: do you have the nix sandbox enabled?
<clever> srhb: grep sandbox /etc/nix/nix.co
<clever> nf
<srhb> I do :)
<clever> and does your drv have the exact same hash as hydra?
<srhb> Yeah, I did nix-build /nix/store/9s01s37zw7xzlmw2gs53adiiivhnw2fp-conduit-extra-1.3.0.drv --check afterwards to be sure, which is the hash the log reports at the top.
oida has joined #nixos
<clever> thats strange then
<srhb> Indeed!
hakujin3 has joined #nixos
<srhb> checking the PATH with a pure nix shell reports that coreutils really is there.
<clever> srhb: does it ever make use of /usr/bin/env?
<srhb> Not as far as I can tell. It's the generic haskell builder after all.
<TweyII> srhb: Oh okay :( Thanks
<TweyII> I'll stick to nix-build, that seems suboptimal. Guess I could generate a unique tmp path or something
<srhb> TweyII: There's an argument to be made that it's inherently tricky to do it any other way in face of garbage collection. But the old way isn't deprecated, so... :)
<TweyII> Yeah :)
<TweyII> srhb: The issue is potential race conditions if you GC and build at the same time?
<TweyII> Since printing doesn't create a root?
<srhb> TweyII: Right. If there's no gc root (./result)
<TweyII> Mmh.
<TweyII> Not a problem for my case, thankfully
<ng0> what is the "sandbox" output of chromium in nix?
<srhb> Yeah, most of mine not either. But I do see the argument. Safer to leave the root, do the thing, remove the root.
hakujin3 has quit [Ping timeout: 245 seconds]
ericsagnes has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @pSub pushed to opencollada-license « opencollada: add license »: https://git.io/fNK0Y
<{^_^}> [nixpkgs] @pSub opened pull request #44345 → opencollada: add license → https://git.io/fNK0B
<{^_^}> [nixpkgs] @LightDiscord opened pull request #44346 → protonmail-bridge: init at 1.0.5-1 → https://git.io/fNK0u
<{^_^}> [nixpkgs] @zhangyoufu opened pull request #44347 → fix vlan interface bring up on boot → https://git.io/fNKEX
fendor has quit [Read error: Connection reset by peer]
fenedor has joined #nixos
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oida has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @georgewhewell opened pull request #44349 → rasperrypifw: fix cross 'builds' → https://git.io/fNKum
<{^_^}> [nixpkgs] @pSub merged pull request #44345 → opencollada: add license → https://git.io/fNK0B
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/fNKu3
<{^_^}> [nixpkgs] @pSub pushed 0 commits to opencollada-license: https://git.io/fNKuG
pie___ has quit [Ping timeout: 264 seconds]
simukis has joined #nixos
blahdodo has quit [Ping timeout: 245 seconds]
blahdodo has joined #nixos
<{^_^}> [hydra] @edolstra pushed to master « RunCommand: Return metrics as a float »: https://git.io/fNKzp
<{^_^}> [nixpkgs] @dotlambda pushed to master « abcm2ps: 8.13.23 -> 8.13.24 »: https://git.io/fNKgf
silver has joined #nixos
pie_ has joined #nixos
init_6 has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
toppler` is now known as toppler
<sphalerite> TweyII: using the output symlink is the "right" way because of the GC race conditions you mentioned, and as such is also used by nixos-rebuild for example
<sphalerite> TweyII: you could also use nix-shell as that will also create a temporary gc root for you
<{^_^}> [nixpkgs] @pSub pushed to master « cabextract: 1.6 -> 1.7 »: https://git.io/fNK2n
troydm has quit [Ping timeout: 240 seconds]
<sphalerite> ng0: it contains chromium's wrapper for sandboxing
<ng0> ok, thanks
<ajs124> How does backporting to release branches work in NixOS? There is this commit in master to a module, that I would like to have in 18.03, so do I just create a PR against release-18.03 or how does this work?
<clever> ajs124: yeah, thats how i believe it works, fork a branch from release-18.03, then file a PR back to it
<ajs124> clever, ok thanks, will do
nschoe has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @volth opened pull request #44350 → xfce4-13.xfce4-panel: fix path to tzdata → https://git.io/fNKaD
ericsagnes has joined #nixos
r0bby has quit [Remote host closed the connection]
Wizek has quit [Remote host closed the connection]
philipcristiano has quit [Remote host closed the connection]
teozkr has quit [Remote host closed the connection]
nz has quit [Remote host closed the connection]
colemickens has quit [Remote host closed the connection]
nikki93 has quit [Remote host closed the connection]
vdemeester has quit [Remote host closed the connection]
themistocle__ has quit [Remote host closed the connection]
benkolera has quit [Remote host closed the connection]
fingerzam has quit [Remote host closed the connection]
sorear has quit [Remote host closed the connection]
codedmart has quit [Remote host closed the connection]
ilovezfs_ has quit [Remote host closed the connection]
etrepum has quit [Remote host closed the connection]
drag_ has quit [Remote host closed the connection]
blahdodo has quit [Ping timeout: 240 seconds]
fenedor has quit [Ping timeout: 240 seconds]
jluttine has quit [Ping timeout: 260 seconds]
blahdodo has joined #nixos
benkolera has joined #nixos
Wharncliffe has joined #nixos
jluttine has joined #nixos
<borodust> hmm, when i'm invoking `nix-env -iA nixos.jetbrains.idea-ultimate` nothing happens seemingly
<borodust> where should i start looking to debug that?
<borodust> `nix-env -iA nixos.jetbrains.idea-community` works
<borodust> unfree packages allowed
<borodust> nix-env's -v flag doesn't show anything suspicios
Izorkin has joined #nixos
ajs124 has quit [Quit: Gateway shutdown]
Ross has quit [Ping timeout: 240 seconds]
ajs124 has joined #nixos
<{^_^}> [nixpkgs] @ajs124 opened pull request #44351 → masterpdfeditor: fix broken source url. the old one 404s → https://git.io/fNKwW
spear2 has quit [Remote host closed the connection]
johnw has quit [Ping timeout: 255 seconds]
<sphalerite> borodust: yep it's a bug, it should give you an explanatory message
jasongrossman has joined #nixos
<sphalerite> nix#1963
<{^_^}> https://github.com/NixOS/nix/issues/1963 (by obadz, open): nix-env silently fails to install unfree packages
Ross has joined #nixos
siers has joined #nixos
<siers> Could anyone be interested in a PR for including nix-gitignore into nixpkgs?
logzet has joined #nixos
Ross has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 240 seconds]
Ross has joined #nixos
<{^_^}> [nixpkgs] @Assassinkin opened pull request #44352 → pythonPackages.spglib:1.10.3.75->1.10.4.1 | Fix failing tests → https://git.io/fNKr0
<{^_^}> [nixpkgs] @Zimmi48 opened pull request #44353 → graphql-cli: init at 2.16.5 → https://git.io/fNKrz
<infinisil> siers: I think the new fetchGit builtin does that now with nix 2.0
<siers> Hah, ok
<qknight> betaboon: thanks btw
vmandela has joined #nixos
<sphalerite> infinisil: can you fetchGit a non-git directory with a .gitignire?
vmandela has quit [Quit: Leaving]
<siers> Would you be able to do a check-out of a dirty work🌲?
<sphalerite> infinisil: nix-gitignore would still be relevant I think, also for dirt
<sphalerite> damn siers beat me to it :p
<sphalerite> siers: also that is some next-gen spelling :D
Neo-- has joined #nixos
<siers> Haha, android autocomplete gave the idea
aarvar has quit [Ping timeout: 260 seconds]
nschoe has joined #nixos
<betaboon> qknight: you're welcome
jasongrossman has quit [Remote host closed the connection]
pie_ has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #44351 → masterpdfeditor: fix broken source url. the old one 404s → https://git.io/fNKwW
<{^_^}> [nixpkgs] @xeji pushed commit from @ajs124 to master « masterpdfeditor: fix broken source url. the old one 404s (#44351) »: https://git.io/fNKK2
<{^_^}> [nixpkgs] @xeji merged pull request #44350 → xfce4-13.xfce4-panel: fix path to tzdata → https://git.io/fNKaD
<{^_^}> [nixpkgs] @xeji pushed commit from @volth to master « xfce4-13.xfce4-panel: fix path to tzdata (#44350) »: https://git.io/fNKKK
Wharncliffe has quit [Ping timeout: 268 seconds]
iyzsong has joined #nixos
<borodust> sphalerit: thanks for checking it out! well, although i have nixpkgs.config.allowUnfree = true; in my /etc/nixos/configuration.nix
nly has joined #nixos
<nly> "nix-env -iA nixos.kdeconnect" is nix cache reachable?
cfricke has quit [Quit: WeeChat 2.1]
cfricke has joined #nixos
<borodust> sphalerit: oh, i see, can't install unrar the same way, hmm
<srhb> nly: It is from here.
<{^_^}> [nixpkgs] @xeji merged pull request #44352 → pythonPackages.spglib:1.10.3.75->1.10.4.1 | Fix failing tests → https://git.io/fNKr0
<{^_^}> [nixpkgs] @xeji pushed commit from @Assassinkin to master « pythonPackages.spglib:1.10.3.75->1.10.4.1 (#44352) »: https://git.io/fNK6k
<borodust> sphalerit: weird, does this mean allowUnfree is borked or do I need to specify allowUnfree for each user?
nly has quit [Remote host closed the connection]
<gchristensen> allowUnfree is per-user, and for the configuration.nix
<sphalerite> ,unfree
<{^_^}> You cannot install your unfree software? See https://nixos.wiki/wiki/FAQ/unfree
nly has joined #nixos
nly has quit [Client Quit]
<sphalerite> ^ has some details
<borodust> aha, i see
nly has joined #nixos
<borodust> so it should work for me, but it doesnt
<borodust> i have it in the /etc/nixos/configuration.nix, so should be system-wide
<gchristensen> no, configuration.nix doesn't set it system-wide _just_ for the packages described
<srhb> borodust: It should work for things installed via nixos-rebuild switch only
<srhb> eg. systemPackages and co.
<borodust> aaaah
<borodust> damn, i should have read the page fully, jeez, my apologies
<srhb> The wikipedia is a bit misleading too... I'll try to edit it
<sphalerite> wikipedia?
<srhb> Err, wiki.
<srhb> "When using NixOS, it is possible to enable unfree for eg. environment.systemPackages with the following setting in your /etc/nixos/configuration.nix: ..." <-- better?
<nly> can anyone show me how to setup unbound dns cache please :)
<{^_^}> [nixos-weekly] @domenkozar pushed to master « Add 2018/05 »: https://git.io/fNK6A
<borodust> sphalerit gchristensen srhb: thansk much! envar helped
<{^_^}> [nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of '5496f5601073142f74594f3c63d7e05384ac58f9' commit built by Travis-CI \#411257554 »: https://git.io/fNKiq
jasongrossman has joined #nixos
stanibanani has joined #nixos
stanibanani has left #nixos [#nixos]
<{^_^}> [nix] @graham-at-target opened pull request #2325 → Backport: Document s3 substitutions → https://git.io/fNKi2
<{^_^}> [nixos-weekly] @domenkozar pushed to master « Add 2018/05 »: https://git.io/fNKiw
<{^_^}> [nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of '72bdcabde3cd00e15e5f481d9c9e2fbe0aa97dcc' commit built by Travis-CI \#411260771 »: https://git.io/fNKiX
stanibanani has joined #nixos
stanibanani has left #nixos [#nixos]
<{^_^}> [nixpkgs] @vcunat pushed to master « knot-resolver: 2.4.0 -> 2.4.1 (security) »: https://git.io/fNKPv
Mrmaxmeier has quit [Quit: ZNC 1.7.0 - https://znc.in]
TonyTheLion has quit [Quit: leaving]
stanibanani has joined #nixos
stanibanani has left #nixos [#nixos]
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/18401b99f3f (from 10 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
crmlt has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @dotlambda merged pull request #43260 → pythonPackages.sumo: init at 1.0.9 ( And other packages that sumo depends on) → https://git.io/fNJ3D
<{^_^}> [nixpkgs] @dotlambda pushed 5 commits to master: https://git.io/fNKX4
aarvar has joined #nixos
stanibanani has joined #nixos
tertle||eltret has quit [Quit: Connection closed for inactivity]
stanibanani has left #nixos [#nixos]
<davidak[m]> can someone give me a hint why importing a new module from unstable don't work as described https://nixos.org/nixos/manual/index.html#sec-replace-modules ?
<davidak[m]> imports = [ <nixos-unstable/nixos/modules/services/desktops/bamf> ];
<srhb> davidak[m]: What does not work as expected?
<davidak[m]> and also tried imports = [ <nixos-unstable/nixos/modules/services/desktops/bamf.nix> ];
<davidak[m]> but i get this error:
<davidak[m]> error: file 'nixos-unstable/nixos/modules/services/desktops/bamf.nix' was not found in the Nix search path
<srhb> davidak[m]: Sounds like nixos-unstable is not defined in the NIX_PATH used for your rebuild.
<srhb> davidak[m]: <foo> is a lookup in the $NIX_PATH variable
<{^_^}> [nixos-weekly] @domenkozar merged pull request #59 → Add 2018/05 → https://git.io/fN04N
<{^_^}> [nixos-weekly] @domenkozar pushed 3 commits to production: https://git.io/fNKM2
<srhb> davidak[m]: I believe usually, /nix/var/nix/profiles/per-user/root/channels and $HOME/.nix-defexpr/channels are included in the default NixOS NIX_PATH, so if a channel named nixos-unstable is there, it should work.
<{^_^}> [nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Release of (commit '65117749ae02f274aee651e6ef23ccc553445884') built by Travis-CI \#411272538 »: https://git.io/fNKMo
<srhb> And otherwise defining NIX_PATH yourself will also work, as long as the name is there.
<davidak[m]> it should work, that's what i'm also thinking. but it doesn't. maybe i have done something wrong or something is wrong with NixOS :D
<davidak[m]> it's probably some stupid mistake on my side since i havn't done it yet
johnw has joined #nixos
<srhb> davidak[m]: What's your NIX_PATH?
<davidak[m]> [root@nixos:~]# echo $NIX_PATH
<davidak[m]> nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
<srhb> davidak[m]: And what does ls /nix/var/nix/profiles/per-user/root/channels say?
<davidak[m]> binary-caches manifest.nix nixos nixos-hardware nixos-unstable
<srhb> Hum, I was under the impression that that should still work.
<davidak[m]> :D
<srhb> Maybe "bare" lookups were deprecated? There was talk about it at some point, but I didn't hear it.
<srhb> Anyway, if you alter your NIX_PATH to point to that location for nixos-unstable, you should be good.
crmlt has joined #nixos
crmlt has quit [Read error: Connection reset by peer]
<srhb> Weird. It works for me..
rprije has quit [Ping timeout: 268 seconds]
<Akii> turns out, the etag caching described here is completely useless https://nixos.wiki/wiki/Nginx#Correct_Caching_when_Serving_Static_Files_from_.2Fnix.2Fstore
<srhb> davidak[m]: NIX_PATH=/nix/var/nix/profiles/per-user/root/channels nix eval '(<nixos-unstable/nixos/modules/services/desktops/bamf.nix>)'
<srhb> :/
<davidak[m]> srhb: i have done a nix-channel --update, now rebuild finds the file!
<srhb> ack... :D
<davidak[m]> so nixos-rebuild switch --upgrade don't updates all channels?
<davidak[m]> oh, i expected that
<srhb> davidak[m]: It upgrades the channel named nixos iirc
joehh has joined #nixos
<davidak[m]> [root@nixos:~]# nixos-rebuild switch --upgrade
<davidak[m]> unpacking channels...
<davidak[m]> created 6 symlinks in user environment
<davidak[m]> same number of symlinks
<srhb> davidak[m]: less `which nixos-rebuild`
<srhb> davidak[m]: Search for update
<davidak[m]> # If ‘--upgrade’ is given, run ‘nix-channel --update nixos’.
<srhb> davidak[m]: :)
nly has quit [Remote host closed the connection]
nly has joined #nixos
<davidak[m]> # If there are other channels that contain a file called
<davidak[m]> # ".update-on-nixos-rebuild", update them as well.
<srhb> That's just weird. :-)
<srhb> Channels! The source of infinite confusion.
<davidak[m]> nixpkgs don't has that
<srhb> indeed it does not.
nly has quit [Client Quit]
<davidak[m]> that explains the behavior, great
<davidak[m]> what do you think about changing it to nix-channel --update?
<srhb> davidak[m]: I have no opinion on the topic of channels that isn't "get rid of them" -- you'll probably have to ask someone else :D
<{^_^}> [nixpkgs] @xeji merged pull request #44034 → doing: init at 1.0.10pre → https://git.io/fN4Jz
<{^_^}> [nixpkgs] @xeji pushed commit from @ktf to master « doing: init at 1.0.10pre (#44034) »: https://git.io/fNKSC
<davidak[m]> ok. i will create an issue to discuss it
<srhb> Cool :)
<davidak[m]> how do you think we could get rid of them?
<srhb> I personally feel they're a senseless abstraction compared to just checking out channels and managing them with git, or fetching them with the builtins, or ...
<davidak[m]> i like to be able to have a stable system and use SOME packages from unstable
<srhb> davidak[m]: As do I
<srhb> davidak[m]: So I have fooBranch = fetch some revision; barBranch = fetch some other revision; ...
<davidak[m]> inside configuration.nix?
<srhb> There and in other places
<srhb> I've also just used a local checkout for a long time
<srhb> I could use more than one if I wanted to
<srhb> eg nixpkgs=/home/sarah/nixpkgs
<davidak[m]> and don't have nix-channel?
<srhb> Nope, zero channels for me.
<davidak[m]> wouldn't that make it more complicated for a normal user that don't want to change anything in nixpkgs?
<srhb> davidak[m]: Possibly, yes. Every approach I've used relies on being able to use git for rollbacks.
<srhb> Or some VCS.
<srhb> I don't know of another approach that's simpler and doesn't rely on VCS. Channels are supposed to be it. :)
Dedalo has joined #nixos
<davidak[m]> with channels you are always up to date with hydra
<srhb> davidak[m]: No, you're up-to-date if you run nix-channel --update
<srhb> davidak[m]: I'm up-to-date if I git pull :)
<thoughtpolice> I don't use channels either, but I'd say I'm more of an upstream hacker (I have commit bits at least...) I more or less track master directly on all my machines, but yes this isn't for everyone.
<davidak[m]> you check out the channel repo?
<srhb> davidak[m]: It's one of my remotes, yes.
<thoughtpolice> Normally I checkout something into /etc/nixos/nixpkgs as a repository clone, keep that in sync, push everything upstream as much as possible.
sorear has joined #nixos
<thoughtpolice> the nix.nixPath option also helps a lot to make sure you always use a custom checkout
<thoughtpolice> But! You can still use this method, and get the binary cache!
johnw has quit [Ping timeout: 248 seconds]
<thoughtpolice> You just have to use the nixpkgs-channels repository instead: https://github.com/NixOS/nixpkgs-channels
<srhb> Yeah, I usually cherry onto nixos-unstable from there once I'm doing gooping around.
<srhb> Er, done*
<thoughtpolice> That repository is essentially a copy of the upstream nixpkgs. But it is fast-forwarded only when Hydra updates a channel, e.g. release-18.03
<thoughtpolice> So this gives you the best of both worlds, if you want that. Caches, but some flexibility to modify nixpkgs, if you need, and if you set nix.nixPath it's more or less transparent for users, as well.
<thoughtpolice> Best IMO, anyway
<srhb> I enjoy that method at least :)
<makefu> thoughtpolice: a lot of people pin their nixpkgs by checking it out in some state directory. it is a great way to keep everything working
<srhb> But yes, it relies on git knowledge. I don't think basic use of that is far more difficult than understanding the channels mechanism though :D
<makefu> i also have the nixpkgs channel checked out and i cherry-pick my changes onto this repo
<thoughtpolice> Yeah. If you don't even need to hack nixpkgs, you don't even have to use git
<thoughtpolice> You can set NIX_PATH=nixpkgs=https://github.com/nixos/nixpkgs-channels/archive/master.tar.gz or whatever I think and it'll download that for you, I'm pretty sure
Compaq-Local has joined #nixos
<sphalerite> thoughtpolice: please don't suggest that for people to use master
<thoughtpolice> Nix is pretty aggressive about checking for new versions though, when you use an HTTP url
<makefu> but i think the master is like worst case scenario
<{^_^}> [nixos-weekly] @domenkozar pushed to master « 2018/05: fix link »: https://git.io/fNKHY
<thoughtpolice> sphalerite: In practice that method is useless anyway
<thoughtpolice> Because 99.9999% of anyone, practically speaking, is always going to have to make a patch for something.
<sphalerite> thoughtpolice: regardless, master we don't want people who don't know exactly what they're doing to use master
<{^_^}> [nixos-weekly] @domenkozar pushed 2 commits to production: https://git.io/fNKHs
<sphalerite> blargh typing with high-latency feedback is hard
<thoughtpolice> Sure, that's fine, I'm just blabbing.
<sphalerite> thoughtpolice: so please stick to recommending the channels :)
<{^_^}> [nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of '6593fc18c52dce94fe6960921ffb1a174390baa5' commit built by Travis-CI \#411291029 »: https://git.io/fNKHW
<thoughtpolice> (It was more about the convenient HTTP mechanism, but even complaints of using master aside, it's still mostly useless. Just a nice feature to know, occasionally)
<sphalerite> something like NIX_PATH=channel:nixos-unstable could work though :)
<thoughtpolice> Actually it's not entirely bad.
<thoughtpolice> I use it for nix-shell shebangs, which is nice for scripting
<davidak[m]> as a user, i like to run just one command and have a fresh system like nixos-rebuild switch --upgrade
<{^_^}> [nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Release of (commit 'c5f13f6ae3c1154cc9b9a22282efc201a00aeda7') built by Travis-CI \#411291482 »: https://git.io/fNKHr
<davidak[m]> i just use git checkout for hacking on nixpkgs
<sphalerite> maybe we should rename the master branch to "breack-my-sysstem"
<sphalerite> minus typos
FRidh has joined #nixos
<makefu> or "no-sleep-for-you-today" or "prepare-to-revert"
<davidak[m]> when i work on different stuff, like editing videos, i just want a stable system and don't care about the details
<sphalerite> makefu: no, prepare-to-revert suggests that it'll still be possible to revert
<thoughtpolice> I surprisingly don't revert off master very much, but then again a lot of my systems are headless.
<sphalerite> makefu: it has happened that master has broken the bootloader
<{^_^}> [nixpkgs] @imuli opened pull request #44355 → idrisPackages.graphviz: fix homepage → https://git.io/fNKHH
<makefu> sphalerite: haha good point
<thoughtpolice> Actually I've been running a custom patchset *on top of updated master* for weeks now with little issue. Daring.
<sphalerite> thoughtpolice: you know there risks and are prepared to deal with the consequences I presume
<infinisil> thoughtpolice: Yeah but that's the thing about master: You have no guarantees, it could break never or tomorrow
<sphalerite> it's not a case of "this will immediately ybreak your sysstem" or "this will break your system in a week" or even "this will break your system in a year"
<thoughtpolice> infinisil: Oh, I'm well aware of that much, believe me.
<sphalerite> please pretend I'm not making so many ttypos >_>
<etu> sphalerite: mosh is very nice if you have a slow connection and use a client over SSH :-)
* etu is experiencing that at this moment
<etu> s/slow/laggy/
<sphalerite> yeah that is indeed the case
<sphalerite> buuuut effort to set it up :p
<etu> programs.mosh.enable = true;
<etu> :p
<sphalerite> and does the echoing help wihtin tmux as well?
<etu> It does
<infinisil> We're all lazy after all, just like Nix
<{^_^}> [nixpkgs] @ElvishJerricco opened pull request #44356 → callCabal2nix: Passthru deriver → https://git.io/fNKQR
<thoughtpolice> tmux is weird if you do vertical splits (especially on latent connections) but otherwise it's fine and does help
<sphalerite> good to know, thnanks!
<sphalerite> p
<thoughtpolice> That's because during latent spikes mosh will "push over" the columns in the line where you type, because it has to draw your keystrokes as they happen, not as the server responds.
<etu> sphalerite: It even works in weechat in tmux (like I'm doing it right now. And I get some underlining for text that isn't transfered yet)
johnw has joined #nixos
<sphalerite> perfect. I'm in weechat in tmux without mosh and it's not so much fun
<etu> But yeah, with the quirks that thoughtpolice mention of course. But it's still better.
<thoughtpolice> Also happens if your PS1 has something on the RHS for example like your CWD. But yeah the latency and mobile roaming are completely worth minor redraw issues
fiddlerwoaroof has quit [Read error: Connection reset by peer]
<thoughtpolice> There was also allegedly work to help try and fix that I thought, and stuff like ssh-agent forwarding, but mosh development stalled out a while ago last I remember. It's stable and works fine though, don't know if it's picked back up. It basically does its job.
phreedom_ has joined #nixos
<sphalerite> I need to use programs.mosh.emable on the server and just install mosh on the client?
phreedom has quit [Ping timeout: 250 seconds]
<thoughtpolice> Yeah, mosh needs a custom set of UDP ports open through your firewall on the server, so programs.mosh is just a convenient wrapper for adding that to networking.firewall
hakujin3 has joined #nixos
fiddlerwoaroof has joined #nixos
<{^_^}> [nixpkgs] @basvandijk merged pull request #44331 → lift version restrictions on language-ecmascript inputs → https://git.io/fNKvr
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to master: https://git.io/fNK7E
philippD has joined #nixos
<thoughtpolice> Basically mosh just first logs in with SSH in order to do key exchange securely (and for convenience), then once that happens it shares an ephemeral private key between client/server, server opens a UDP port, and tells the client to connect there with the key. That's how it bootstraps itself, and how stateless/mobile roaming works
qknight has quit [Quit: leaving]
<sphalerite> that sounds decent
<sphalerite> trying it now
<sphalerite> yay instant key feedback!
hakujin3 has quit [Ping timeout: 260 seconds]
cfricke has quit [Quit: WeeChat 2.1]
binaryphile has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @xeji merged pull request #44342 → tinyproxy: init at 1.8.4 → https://git.io/fNKGh
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fNK57
<{^_^}> [nixpkgs] @xeji merged pull request #43971 → pakcs: 1.14.0 -> 2.0.2 → https://git.io/fNl3M
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/fNKd8
<etu> sphalerite: Whooo, it's not perfect but better than plain SSH on laggy connections *-)
<etu> That last one was just a typo
guibou_ is now known as Guillaum
<FRidh> does the following link work for any of you? https://www.python.org/ftp/python/3.5.6/Python-3.5.6.tar.xz
<FRidh> I get a 404
<{^_^}> [nixpkgs] @xeji merged pull request #44355 → idrisPackages.graphviz: fix homepage → https://git.io/fNKHH
<{^_^}> [nixpkgs] @xeji pushed commit from @imuli to master « idrisPackages.graphviz: fix homepage (#44355) »: https://git.io/fNKFu
<{^_^}> [nixpkgs] @vcunat pushed to release-18.03 « knot-resolver: 2.4.0 -> 2.4.1 (security) »: https://git.io/fNKF1
reinzelmann has quit [Quit: Leaving]
init_6 has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @pSub pushed 4 commits to add-missing-licenses: https://git.io/fNKbQ
<{^_^}> [nixpkgs] @FRidh opened pull request #44357 → Python interpreter updates → https://git.io/fNKbb
init_6 has joined #nixos
<{^_^}> [nixpkgs] @pSub opened pull request #44358 → Add missing licenses → https://git.io/fNKNL
Sonarpulse has joined #nixos
Fare has joined #nixos
<{^_^}> [nixos-weekly] @domenkozar pushed 2 commits to master: https://git.io/fNKNc
siers has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @vcunat pushed to master « Revert "android-studio-preview: Print a deprecation warning" »: https://git.io/fNKNz
<{^_^}> [nixos-weekly] @domenkozar opened pull request #61 → Call for content: 2018/06 → https://git.io/fNKN1
<{^_^}> [nixpkgs] @dotlambda merged pull request #44276 → graphite: 1.0.2 -> 1.1.3 & moved dependencies to python-modules → https://git.io/fNwb3
<{^_^}> [nixpkgs] @dotlambda closed pull request #44246 → pythonPackages: remove unmaintained graphite-related stuff → https://git.io/fNabN
<{^_^}> [nixpkgs] @dotlambda pushed commit from @basvandijk to master « graphite: 1.0.2 -> 1.1.3 & moved dependencies to python-modules (#44276) »: https://git.io/fNKNb
<azazel> hi all, i'm using Nixos' testing support and I'm stuck with Perl trying to interpolate what should be a shell variable
<{^_^}> [nixpkgs] @pSub pushed to add-missing-licenses « wv: add license »: https://git.io/fNKAm
<azazel> the string is ''$machine1->succeed("echo $TESTDATA| grep ndn_kube_test_data");''
<azazel> any idea?
halfbit has joined #nixos
johnw has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @FRidh merged pull request #44357 → Python interpreter updates → https://git.io/fNKbb
<{^_^}> [nixpkgs] @FRidh pushed 3 commits to master: https://git.io/fNKAu
philipcristiano has joined #nixos
<{^_^}> [nixpkgs] @FRidh opened pull request #44359 → Python interpreter updates → https://git.io/fNKAS
haitlah has joined #nixos
<haitlah> Hey guys
<haitlah> I was wondering, when someone allow us to install differents versions of a package
<haitlah> If the older version requires a nix package, will it use the current (latest defined in nixpkgs) ?
<tilpner> No, it will use the older one by default
<tilpner> (But that depends on how you use the older version of the package)
<haitlah> tilpner: for example, nix-env -iA nixpkgs.packageX.olderVersion
<tilpner> Oh
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<azazel> haitlah: the /older/ version of the package would have been installed with /older/ versions of its requirements
<haitlah> azazel: how is this possible, it's the maintener that override the dependencies ?
<haitlah> maintainer
<tilpner> No, I believe in your case it would use the current dependencies
<tilpner> I was assuming you were importing an older channel
<azazel> ah, if the maintainer of the package has overridden the dependencies, thats different
<haitlah> tilpner: that's the point I wanna go to
<tilpner> (Unless the package explicitly uses older dependencies)
<{^_^}> [nix] @shlevy pushed commit from @graham-at-target to master « s3 binary cache: support specifying an endpoint »: https://git.io/fNKxq
<haitlah> tilpner: So if in the derivation i use libXX, it will pick the currently available one in nixpkgs right ?
<{^_^}> [nix] @shlevy merged pull request #2320 → Support specifying custom S3 endpoints for non-Amazon S3-Compatible APIs → https://git.io/fNoJ8
<{^_^}> [nix] @shlevy merged pull request #2325 → Backport: Document s3 substitutions → https://git.io/fNKi2
<{^_^}> [nix] @shlevy pushed commit from @graham-at-target to 2.0-maintenance « Document s3 substitutions »: https://git.io/fNKxG
<haitlah> tilpner: because I wanted to allow the user to install differents verions of a tool
<tilpner> haitlah - That depends on where you get libXX. Some entries in all-packages.nix supply older versions of dependencies
<haitlah> tilpner: and I often see people using one .nix for each version, instead of pointing a previous commit of the channel
<haitlah> is that bad ?
jabranham has joined #nixos
<tilpner> You shouldn't generalize that. It depends on your usecase. Do you need all dependencies to be the exact same as they were a while ago?
joehh has quit [Ping timeout: 264 seconds]
dbmikus has joined #nixos
<tilpner> Importing an older channel is more expensive, in memory, storage, and network. But it's your only option if you need the exact same dependencies
Ariakenom_ has quit [Ping timeout: 240 seconds]
<haitlah> tilpner: In the case I need a newer version of a dependency (x+1), which is not supported by my older package version
bfrog has joined #nixos
<haitlah> tilpner: if not recursively pointing, what's the solution ? having multiple .nix for each versions ?
<maurer> Usually people have multiple .nix files, and if there's a lot of duplication, give them a common.nix or something to import from
<tilpner> haitlah - You can try updating just a dependency of your older package, but there's no guarantee it'll work
<tilpner> haitlah - During callPackage, take the dependency from your newer nixpkgs
<haitlah> okay guys thanks
Lears has quit [Remote host closed the connection]
endformationage has joined #nixos
<azazel> does the test system keeps cache of the previous runs?
Sonarpulse has quit [Ping timeout: 276 seconds]
Lears has joined #nixos
johnw has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #44359 → Python interpreter updates → https://git.io/fNKAS
<{^_^}> [nixpkgs] @FRidh pushed 3 commits to release-18.03: https://git.io/fNKhN
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/728c28f934c (from 8 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
hakujin3 has joined #nixos
stanibanani has joined #nixos
<azazel> obviously
stanibanani has left #nixos [#nixos]
<iqubic> Well, I'm finding it hard to get emacs's elpy mode to work well with NixOS.
<iqubic> The main issue is telling emacs's elpy mode that the executables it expects to find can only be run in "nix-shell"
<gchristensen> maybe direnv could help
<johnw> emacs-direnv should help very much
<johnw> I started using it a month ago, and it's awesome
<gchristensen> direnv is such magic
<gchristensen> zimbatm++
<{^_^}> zimbatm's karma got increased to 2
bfrog has quit [Ping timeout: 256 seconds]
<iqubic> johnw: do you think that will help me with elpy integration?
haitlah has quit [Remote host closed the connection]
<johnw> yes
<johnw> it makes visible to a buffer things that would only be available in a nix-shell
<johnw> I recommend using this script:
<johnw> and then put this in your .envrc:
<johnw> . $(which use_nix.sh)
<johnw> use_nix
<johnw> i pulled it off the wiki with some modifications
<johnw> just change NIXPKGS at the top to what is correct for you
<gchristensen> why not just use `use nix` in the direnv' envrc?
<johnw> it will rebuild the shell environment every time
<johnw> very slow
<johnw> generally means a ~10s pause to even switch buffers
<gchristensen> :o
<iqubic> johnw: Where do you put that?
<{^_^}> [nixpkgs] @jfrankenau opened pull request #44363 → hugo: 0.42.1 -> 0.46 → https://git.io/fN6vg
<johnw> where do i put what?
<iqubic> the script you linked me?
<johnw> i have a nix-scripts expression I use to install it
<johnw> it just needs to be on the PATH, though
<johnw> or put it in ~/.nix or something and use an explicit path in .envrc
<iqubic> How do you make sure that emacs can see that script and use it to find executables?
<johnw> emacs sees it on the PATH
<johnw> I don't think I'm understanding your question
<adisbladis[m]> I cache my direnv environments
<adisbladis[m]> Moving around buffers is a breeze :)
<johnw> yeah, use_nix.sh caches, using Nix
<adisbladis[m]> Exwm would be unusable without it
xy2_ has joined #nixos
<johnw> and protects direnv environments from GC
<cransom> gchristensen: if you have a shell.nix that's non trivial, direnv on a directory that you go into often is painfully slow. some caching though and it's instant
<{^_^}> [nixpkgs] @mnacamura opened pull request #44364 → cataclysm-dda-git: fix desktop launcher installation → https://git.io/fN6fe
<gchristensen> maybe could teach direnv or nix-shell todo better :)
Ariakenom has joined #nixos
<iqubic> If I create a shell.nix that install some python related executables like jedi and flake8, will emacs be able to find those executables when it looks for them?
<iqubic> adisbladis[m]: You use EXWM? So do I.
<johnw> I'd like to teach nix-shell to do a lot of things better :)
<adisbladis[m]> johnw: I use nix-instantiate to calculate my hash instead though
drakonis has joined #nixos
Supersonic has quit [Quit: Bye]
<johnw> use_nix.sh uses nix-instantiate
<iqubic> adisbladis[m]: What do you mean by, "Cache the results" so that buffer switching isn't a pain?
<adisbladis[m]> I found all other approaches too brittle
Supersonic has joined #nixos
erasmas has joined #nixos
<adisbladis[m]> iqubic: Cache nix-shell loaded by direnv
<johnw> adisbladis[m]: that's very close to the same thing
<iqubic> So, because I use EXWM I can't use the trick of running the editor in the Nix-Shell.
xy2_ has quit [Ping timeout: 240 seconds]
<adisbladis[m]> johnw: Yeah. I misread your caching approach first
<adisbladis[m]> Pretty much the same
<johnw> iqubic: direnv should solve that problem
<iqubic> johnw: take a look at nix-sandbox here:
<iqubic> johnw: I've never used direnv before.
<johnw> iqubic: emacs-direnv uses direnv to find out what all the shell vars should be, and then changes Emacs to use that variables. When you change buffers, it changes them back.
<johnw> the nice thing about direnv is that if it works at the shell, it will work in Emacs, and vice versa
<johnw> one approach to rule them all :)
<johnw> i basically never use nix-shell anymore
<iqubic> But you still write shell.nix files to decribe projct deps, right?
<johnw> I just write a default.nix that works for both nix-build and nix-shell
<johnw> and with optional pinning for Travis
<iqubic> I never use default.nix, because I never use nix-build.
<johnw> this file works for Travis, other users, and nix-build, nix-shell and direnv on my machine
<iqubic> Wow.
<johnw> i just have to update the rev/sha from time to time
<iqubic> Do I need to do anything special when creating my shell.nix?
<{^_^}> [nixpkgs] @pvgoran opened pull request #44365 → nixos/tomcat: correct type specification for virtualHosts → https://git.io/fN6Jk
<johnw> not that I can think of
<iqubic> Also, becuase I have never used dir-env before I have no idea what to do with the use_nix.sh file you showed me.
<johnw> if running "nix-shell" does the right thing, then direnv should work fine
<johnw> put use_nix.sh on your path
<iqubic> Once you get it set-up, that is.
<johnw> then make the contents of .envrc be what I pasted above
<iqubic> johnw: Is that all?
<johnw> yes
<iqubic> I didn't see the .envrc
<johnw> line 1: . $(which use_nix.sh)
<johnw> line 2: use_nix
<{^_^}> [nixpkgs] @hedning opened pull request #44366 → flatpak: Don't hardcode flatpak binary path in launchers → https://git.io/fN6JW
<iqubic> What is line one doing?
<johnw> pulling in use_nix.sh
<iqubic> And of course I'll want to mark use_nix.sh as executable.
<johnw> yes
<iqubic> And I should put the .envrc into my home folder?
<johnw> in the folder of each project
<johnw> at its root
<johnw> each project can define its own environment
<johnw> I suppose you could have a default ~/.envrc at ~
<johnw> i've never tried that
rardiol has joined #nixos
<iqubic> So are there any emacs packages I need to install to get this to work?
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #44367 → treewide: Remove stdenv.isCross → https://git.io/fN6JN
<johnw> emacs-direnv
Sonarpulse has joined #nixos
jperras has joined #nixos
<iqubic> johnw: I did not know you were an op in #org-mode.
<{^_^}> [nixpkgs] @Enzime opened pull request #44368 → mpv: Fix mpv 0.29.0 on macOS and disable OpenAL → https://git.io/fN6Ut
<johnw> I didn't either
<iqubic> Are you an op there?
<johnw> yes
<iqubic> How did you not know that?
jperras has quit [Client Quit]
jperras has joined #nixos
<maurer> I don't know about org-mode, but sometimes channels will just give soft ops (opped but chanserv won't regive them ops) to long time contributors as a defense against low operator presence
<johnw> iqubic: very good question
jperras has quit [Client Quit]
<maurer> So if org mode only has like, 1 or 2 official ops, they may just unofficially op a bunch of semi-trusted people
<johnw> maurer: sounds likely
jperras has joined #nixos
phreedom has joined #nixos
<gchristensen> that said, #org-mode does have you listed as a permanent full-time op, johnw
<johnw> yay
<johnw> guess I should add that channel to my list of auto-joins
<gchristensen> in fact, it sees you are the most powerful op of the channel, and only one other person with ops - kensanata
<gchristensen> /msg chanserv access #org-mode list
<iqubic> gchristensen: kensanata didn't even know they were an op either.
<johnw> oh, hey, I'm the Founder even
<iqubic> Really/
<iqubic> ??
<johnw> I guess I forget things
phreedom_ has quit [Ping timeout: 250 seconds]
<tilpner> johnw - You can transfer founder-ship to people that are more likely to be present (and remember)
<johnw> i'll stay on channel (haha)
sir_guy_carleton has joined #nixos
xy2_ has joined #nixos
Sonarpulse has quit [Ping timeout: 260 seconds]
<tilpner> Any ideas how to allow a (otherwise unprivileged) user to bind mount a directory as long as the mountpoint is in /var/lib/name/foo?
<tilpner> I guess security.sudo.extraRules with a wrapper around sudo that only uses mount, and which checks for proper mountpoint location, but that seems fragile
<clever> tilpner: if you add the user flag to an entry in fstab, then a user is allowed to mount it
halfbit has quit [Quit: WeeChat 1.9.1]
<clever> if mount was setuid root i believe, which it isnt on nixos
<clever> -rws--x--x 1 root root 39872 Dec 20 2014 /bin/mount
<clever> on gentoo, mount is setuid, but on nixos it isnt
<clever> so you need to make mount setuid, and use the user flag in fstab, and it will still limit the users to using the exact device+mountpoint in the config
<tilpner> clever - I want one user to be able to bind-mount /nix/store/* to /var/lib/name/roots/*, and exactly nothing more
jperras has quit [Quit: WeeChat 2.2]
<clever> what for?
<tilpner> To then virtfs them into a vm. I used your *insane* method of generating disk images, which worked wonderfully on my laptop, but ended up hdd-bound when deployed to a server, so now I need to redo it without disk images
<{^_^}> [nixpkgs] @mnacamura opened pull request #44369 → rPackages: export buildRPackage → https://git.io/fN6kL
<clever> tilpner: and you cant just export the entire host store to the vm?
<tilpner> clever - The guest is untrusted, and I don't want them to read potential secrets my store contains
<tilpner> So I was bind-mounting the closure into /.../root, then mounting that into the guests /nix/store
<clever> ah
johnw has quit [Ping timeout: 256 seconds]
<tilpner> I really like the disk-image way, because it didn't require root at any point
<clever> another more expensive option (zfs dedup to the rescue) is nix copy
<clever> nix copy /nix/store/root --to local?root=/var/lib/name/roots/foo
<tilpner> I don't have zfs, and IIRC dedup eats a lot of memory?
<clever> that will setup a complete copy of the closure, that you just need to chroot or mount at the right spot
Neo-- has quit [Ping timeout: 276 seconds]
<tilpner> Although /nix/store and /var/lib/name are on the same drive, so hardlinking could work
<clever> zfs dedup would then cancel out the extra disk usage it causes, as an optional step
<clever> try the above nix copy and youll see what i mean
philippD has joined #nixos
<tilpner> I considered a local non-/nix store, but I was worried about the additional disk usage (again, I don't have zfs)
<clever> those extra stores can still be optimized, but wont share with the original or eachother
iyzsong has quit [Read error: Connection reset by peer]
rouma has joined #nixos
<tilpner> Another option is virtfs-ing all of /nix/store, and then apparmor-ing the qemu process
<tilpner> That would enlarge the in-guest closure by qemu and deps, but that's okay
<clever> tilpner: if you -r /nix/store, or even just disallow reading /nix/store, then you can only open things if you know the name
<clever> tilpner: thats one solution to secrets in the store
gspia has quit [Quit: Leaving]
<tilpner> clever - Does that "-r" happen globally on the host, is it done by apparmor, or in the guest?
<{^_^}> [nixpkgs] @pvgoran opened pull request #44371 → nixos/tomcat: allow non-package paths in services.tomcat.webapps → https://git.io/fN6IN
<clever> tilpner: it could be done either on the host, or maybe apparmor
<tilpner> clever - I'll try doing it with apparmor, thank you for the suggestions :)
xy2_ has quit [Read error: No route to host]
bfrog has joined #nixos
qwerty_asdf has joined #nixos
xy2_ has joined #nixos
<{^_^}> [nixpkgs] @peti merged pull request #44369 → rPackages: export buildRPackage → https://git.io/fN6kL
<{^_^}> [nixpkgs] @peti pushed 3 commits to master: https://git.io/fN6LR
Guillaum is now known as guillaum
guillaum is now known as guibou
<guibou> I want to overrideCabal an haskell package in nixpkgs because that packages depends on an external binary. Should I set the ovveride inside `development/haskell-modules/configuration-nix.nix` ?
TonyTheLion has joined #nixos
<TonyTheLion> hi could anyone help me with this issue in this paste? https://pastebin.com/MVhLenq5
Sonarpulse has joined #nixos
init_6 has quit [Ping timeout: 240 seconds]
<TweyII> sphalerite: I'm actually doing this from within a shell anyway
<TweyII> So I think it's fine
betaboon has quit [Quit: WeeChat 2.1]
FRidh has quit [Quit: Konversation terminated!]
<srhb> TonyTheLion: It's trying to use the internet. That's forbidden.
Compaq-Local has quit [Ping timeout: 240 seconds]
<srhb> (At least, that's what it looks like)
<guibou> I have a hackage package with some non-haskell dependencies. Hence the automatically imported package in nixpkgs is broken. Should I hack nixpkgs to add the depency (in `haskell-modules/configuration-nix.nix`) or should I hijack the `extra-libraries` flag of my package's cabal?
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<srhb> guibou: Generally, if it's listed in the cabal file, cabal2nix should be extended to pick up the dependency
nschoe has quit [Ping timeout: 248 seconds]
<srhb> guibou: (In other words, "hence" should not be the case, if at all possible)
<srhb> guibou: See eg zlib which does pick up librarySystemDepends = [ zlib ];
freeman42x]NixOS has joined #nixos
<guibou> srhb: I'm the author of said package on hackage, so should I extend cabal2nix in nixpkgs or should I edit my package on hackage?
<srhb> guibou: Without more knowledge, can't tell! :-)
<TonyTheLion> srhb: so that means I cannot run jekyll in a nix-build?
<srhb> TonyTheLion: Not with the usual safeties in place, if it uses the network.
<TonyTheLion> oh
<TonyTheLion> and I'm guessing there's no easy way around these safeties?
<TonyTheLion> is this in place for security reasons?
<srhb> There is, but I'd say it's a very bad idea. Builds are supposed to have no side effects.
<srhb> It's about determinism as well
sigmundv has quit [Ping timeout: 268 seconds]
<TonyTheLion> srhb: hmmm, well I may need to do bad things then
<TonyTheLion> is it documented on how to ignore that side effect?
genesis has quit [Remote host closed the connection]
__monty__ has joined #nixos
pie_ has joined #nixos
Thra11 has quit [Quit: WeeChat 1.4]
erickomoto has joined #nixos
<aminechikhaoui> TonyTheLion: I guess if you don't care about reproducibility you can disable sandboxing ? but then you can just run a shell script :D
genesis has joined #nixos
bfrog has quit [Ping timeout: 276 seconds]
Denommus has joined #nixos
<d1rewolf> are there any practical concerns for making part of a container's file system writable from an external host user?
<infinisil> TonyTheLion: Don't abuse Nix for doing stateful stuff!
<d1rewolf> or...is there a better way to let a non-root user edit a container's files?
<drakonis> infinisil, why not :V
<infinisil> Because it makes no sense, you can just run a shell script for that, why would anybody want to use nix for that?
<infinisil> Nix is a tool for building derivations, and not for deploying stuff or other such matter
jperras has joined #nixos
galaxite has joined #nixos
<d1rewolf> would it be harmful to change the group of a container's file system?
<d1rewolf> from root to something else?
<d1rewolf> i'd like to give non-root users a way to edit and access on particular directory within the container's filesystem
Fare has quit [Ping timeout: 276 seconds]
Fare has joined #nixos
orivej has joined #nixos
<TonyTheLion> infinisil: its useful tho for building a website like that, cause all deps are taken care of by nix, and you don't have to do any of yourself
troydm has joined #nixos
<TonyTheLion> just run 'nix-build'and its done
<TonyTheLion> unless you have silly state issues
<srhb> TonyTheLion: Use nix to build the _script_ that builds your website then
<srhb> With all the dependencies available
<infinisil> Yes exactl ^^
rardiol has quit [Ping timeout: 240 seconds]
<azazel> how it's possible to delete a store path and all the other paths that depend on it?
erickomoto has quit [Ping timeout: 240 seconds]
<coconnor> d1rewolf: non-root users on the container or host?
<d1rewolf> coconnor: on the host
UNIcodeX has joined #nixos
<TonyTheLion> shrb: building the website is just executing jekyll
<azazel> d1rewolf: I've done that in the past, non on Nixos btw
<coconnor> d1rewolf: as the container is a separate namespace, the users/groups would have to be exported into it
<coconnor> d1rewolf: then, afaik, a directory on the host with group rw can be unioned onto the container
<coconnor> err mounted into the container
<d1rewolf> coconnor: ok, i'll take a look at doing that. thx
rardiol has joined #nixos
TweyII has quit [Ping timeout: 260 seconds]
<coconnor> d1rewolf: if your are using declarative containers it's the bindMounts option. otherwise *shrug*
patrl has joined #nixos
mzan has joined #nixos
<{^_^}> [nixpkgs] @jtojnar merged pull request #44366 → flatpak: Don't hardcode flatpak binary path in launchers → https://git.io/fN6JW
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fN6Cg
infandum has joined #nixos
<infandum> Is there a way to set services.xserver.displayManager.sessionCommands only in certain sessions, like in xmonad but not in plasma5?
<clever> infandum: i believe some bash env vars will contain the session name
<clever> infandum: then you can just use a bash if statement inside there
<infandum> I mean, in the configuration.nix file
<clever> infandum: i think $sessionType will be set at this point
<clever> so you could maybe do: services.xserver.displayManager.sessionCommands = '' if [ $sessionType == xmonad ]; then .... fi '';
<clever> ugly, but it would work, even when you change your session at the login page
<infandum> Oh, I see
<{^_^}> [nixpkgs] @KaiHa opened pull request #44376 → lbdb: 0.46 -> 0.47 → https://git.io/fN6Wq
<clever> i'm a bit fuzzy on the exact value, let me check
<infandum> Another way would be to set the script as the windowManager -- is there a way to do this? Like, services.xserver.windowManager.custom = "run this script"?
<clever> 15719 ? S 0:00 /nix/store/8zkg9ac4s4alzyf4a8kfrig1j73z66dw-bash-4.4-p23/bin/bash /nix/store/3akbkdg5qzn8kc4dkmk7qydzkxdqybm6-xsession xfce
<clever> # Expected parameters:
<clever> # $1 = <desktop-manager>+<window-manager>
<clever> sessionType="$1"
<clever> infandum: ah, so $sessionType will just be whatever the 1st arg to xsession was
palo has joined #nixos
leothrix has quit [Remote host closed the connection]
leothrix has joined #nixos
pie_ has quit [Read error: Connection reset by peer]
sigmundv has joined #nixos
pie__ has joined #nixos
igo95862 has joined #nixos
iMatejC has quit [Remote host closed the connection]
<infandum> clever: Works perfectly, thank you!
<phry> heyho :) I'm trying to override my zfsUnstable kernel package. I tried using an overlay and just overriding "zfsUnstable", but of course that is not working as it is called another way :/
<phry> is there a way to override a module for the current kernel?
<Denommus> hey
bennofs has joined #nixos
<Denommus> when using node2nix, it generates a package that includes only files from the same directory as package.json
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mkoenig has quit [Remote host closed the connection]
<Denommus> wait, forget it
<clever> phry: all-packages.nix contains a linuxPackagesFor function, which takes a given kernel derivation, and generates module derivations for every module, including zfs
<phry> clever: yes, I've seen as much. But that references a file from within a function, so there's no way to override that from outside. I was hoping that I could prevent to check out another copy on nixpkgs with some magic ^^
<clever> phry: i think your best bet is to do something like, linuxPackages = self.linuxPackages // { zfsUnstable = super.linuxPackages.zfsUnstable.overrideAttrs (old: { src = ...; }); };
<dhess> How am I supposed to use the `extraCabal2nixOptions` argument to `haskellSrc2nix` in make-package-set.nix here? https://github.com/NixOS/nixpkgs/blob/464cf105c630109e19db8d183e229a749c0558db/pkgs/development/haskell-modules/make-package-set.nix#L122
<clever> phry: which will overwrite the attribute on the final set, and override the zfsUnstable within
mkoenig has joined #nixos
<phry> clever: ooh, yes, that sounds good!
<dhess> I believe I can only call callCabal2nix, and it doesn't appear to give me a way to set that argument to haskellSrc2nix
<{^_^}> [nixpkgs] @xeji merged pull request #44363 → hugo: 0.42.1 -> 0.46 → https://git.io/fN6vg
<{^_^}> [nixpkgs] @xeji pushed commit from @jfrankenau to master « hugo: 0.42.1 -> 0.46 (#44363) »: https://git.io/fN64n
ben has joined #nixos
<clever> dhess: i think your only option is to call it yourself, check lines 173-182
<dhess> clever: yeah but haskellSrc2nix isn't exported :(
<dhess> I'll file an issue
<clever> dhess: line 166 appears to be exporting it
<clever> > haskellPackages.haskellSrc2nix
<dhess> ohh I see
<{^_^}> <LAMBDA>
<clever> > builtins.unsafeGetAttrPos "haskellSrc2nix" haskellPackages
<dhess> well I need the other functionality that callCabal2nix provides in any case.
<{^_^}> { column = 12; file = "/var/lib/nixbot/state/nixpkgs/pkgs/development/haskell-modules/make-package-set.nix"; line = 166; }
<clever> dhess: this is also a handy function
<clever> dhess: yeah, you would need to copy the entire definition of callCabal2nix
<dhess> yep. Worse than what I'm currently doing.
<drakonis> rycee[m], eyyy
<{^_^}> home-manager#327 (by ghost, closed): "/nix/store/...-news-info.sh: No such file or directory" with -2
<drakonis> can't install home-manager
<drakonis> the install instructions aren't working out
erickomoto has joined #nixos
freeman42]NixOS has joined #nixos
<erickomoto> Hi, I am having troubles installing docutils. I use `nix-shell -p python37Packages.docutils` and an installation test fails with the following:
<infinisil> drakonis: Still the same error?
<erickomoto> Oh, I guess people have reported this already?
<erickomoto> The error is unknown locale: UTF-8
<drakonis> yah?
freeman42x]NixOS has quit [Ping timeout: 244 seconds]
<drakonis> error: syntax error, unexpected $undefined, at /home/drakonis/.config/nixpkgs/home.nix:3:32
<drakonis> /nix/store/byrdbpzz4grh4h52zxx5fcq4ap5lb8yf-home-manager/bin/home-manager: line 101: /run/user/1000/home-manager-build.3ekbwTJW6R/news-info.sh: No such file or directory
UNIcodeX has quit [Quit: Leaving]
<infinisil> drakonis: Um, that's a syntax error in your nix file
<infinisil> The first error at least
<drakonis> yeah i know that
logzet has quit [Read error: Connection reset by peer]
<infinisil> And why do you think that's relevant?
<drakonis> hmm i figured the problem
ng0 has quit [Ping timeout: 250 seconds]
<drakonis> seems like simply copying the text that should be cat'd into the file doesn't work
_cyril_ has quit [Ping timeout: 240 seconds]
<drakonis> the famous problem between the chair and the keyboard
_cyril_ has joined #nixos
<infinisil> If you did figure out the problem then tell the solution, and what file? You're being confusing
<drakonis> its my fault
<drakonis> there's this command cat > ~/.config/nixpkgs/home.nix <<EOF
<drakonis> i copied the text that was supposed to be introduced into the file
<drakonis> but it seems it needs the EOFs or it will error out
ng0 has joined #nixos
Denommus has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @vcunat pushed to release-18.03 « firefox-esr-unwrapped: bring back the alias »: https://git.io/fN601
Denommus has joined #nixos
goibhniu has quit [Ping timeout: 244 seconds]
erickomoto has quit [Quit: Textual IRC Client: www.textualapp.com]
katyucha has joined #nixos
<drakonis> infinisil, i'm definetely a fool
<infinisil> Np, we all are sometimes :)
iMatejC has joined #nixos
erickomoto has joined #nixos
<drakonis> so, i'm curious about triton again, looks like its still going
<drakonis> a one man job
<gchristensen> the bittorrent test is CRAZY y'all!
<gchristensen> this is the most wild test!
<drakonis> wait what
<clever> gchristensen: i always use it as the best example of how to excersise the vlan features of the nixos test framework
<gchristensen> it starts a tracker, a machine which can talk to the tracker, a router, a machine which can only talk to the first client through the router and not the tracker ... then verifies the second client can poke a hole with upnp through the router to the client
<clever> and it has several isolated networks
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shabius has joined #nixos
<{^_^}> [nixpkgs] @ngortheone opened pull request #44378 → Fix broken packges that do not build → https://git.io/fN6zV
<{^_^}> [nixpkgs] @basvandijk opened pull request #44379 → pg_journal: init at 0.2.0 & fixed some PostgreSQL plugins related issues → https://git.io/fN6zK
<phry> clever: now I'm absoluely irritated. Nothing seemed to work, so I decided to remove all kinds of zfs packagesfrom kernelPackages. It doesn't stop working. This seems to take kernelPackages from I-don't-know-where o_O
<phry> Here's what I did: boot.kernelPackages = lib.traceVal (lib.filterAttrs ( n: v: n != "zfsUnstable" && n != "zfs" && n != "zfsStable" && n != "zfsLegacyCrypto" ) ( pkgs.linuxPackages ));
<phry> Do you have any explanation for that behaviour?
<{^_^}> [nixpkgs] @xeji merged pull request #44364 → cataclysm-dda-git: fix desktop launcher installation → https://git.io/fN6fe
<{^_^}> [nixpkgs] @xeji pushed commit from @mnacamura to master « cataclysm-dda-git: fix desktop launcher installation (#44364) »: https://git.io/fN6zH
<clever> phry: yeah, i would expect that to fail hard, can you pastebin the entire configuration.nix and the output from nixos-rebuild?
<phry> clever: I can try to scamble some things together, my whole configuration.nix is scattered around a dozen files ^^
<clever> phry: same, i keep mine in a github repo
<phry> clever: they are not nice enough for that... ^^
<{^_^}> [nixpkgs] @xeji merged pull request #43431 → gnupg: 2.2.8 -> 2.2.9 → https://git.io/fNtGs
<{^_^}> [nixpkgs] @xeji pushed commit from @lsix to staging « gnupg: 2.2.8 -> 2.2.9 (#43431) »: https://git.io/fN6gU
eskytthe has joined #nixos
katyucha has quit [Ping timeout: 265 seconds]
erickomoto has joined #nixos
<phry> clever: here you go - https://pastebin.com/8rQFwter - I commented all my other includes out, so this really is what is running for that `nixos-rebuild build`
<clever> phry: yeah, i would expect that to hail fail
<ivan> is there any way to audit changes coming into nixpkgs? neither `tig` or `tig --first-parent -m` do something particularly useful (the latter because of how merges are done in nixpkgs)
philippD has joined #nixos
<{^_^}> [nixpkgs] @ngortheone closed pull request #44378 → Fix broken packges that do not build → https://git.io/fN6zV
<ivan> other than you know rewriting the entire git DAG to get linear granular commits out
<clever> phry: which channel are you on?
xy2_ has quit [Ping timeout: 248 seconds]
<phry> (see link above for the zfs module task in the same revision=
<clever> phry: using `builtins.elem 1 [ 1 2 3 4 ]` you can adjust your filterAttrs to take a list of keys
nschoe has joined #nixos
papika has joined #nixos
<phry> clever: yeah, I guess I could write that less weird xD
<clever> phry: and then also nuke spl as well
<phry> will try
<phry> clever: nuked spl, still builds o_O
<infinisil> gchristensen: Whoa that's pretty rad
<clever> phry: what if you just boot.kernelPackages = {}; ?
patrl has quit [Ping timeout: 240 seconds]
<infinisil> ivan: What do you mean by audit changes? Just look what stuff has changed over time?
<{^_^}> [nixpkgs] @aswan89 closed pull request #38255 → hangups: 0.4.4 → https://git.io/vxKgC
<phry> error: attribute 'extend' missing, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/system/boot/kernel.nix:39:31 - I'm looking into that file right now :)
<ivan> infinisil: yes
<infinisil> ivan: git whatchanged -p --abbrev-commit --pretty=medium
<infinisil> Is what I use
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<infinisil> (in a `gwch` alias)
<clever> phry: ah, that would explain things
<clever> phry: its calling extend to mutate the kernel within the set, and re-create all driver modules
<clever> phry: so the zfs is restored
<clever> phry: but now that you know, you can use extend yourself to properly apply an overlay to the kernel packages
<clever> boot.kernelPackages = pkgs.linuxPackages.extend (self: super: { zfsUnstable = null; zfs = null; zfsStable =null; zfsLegacyCrypto =null; });
katyucha has joined #nixos
<ivan> infinisil: thanks
<phry> clever: that was a wild ride, thank you! I'm trying it right now :)
rouma has quit [Remote host closed the connection]
joko has joined #nixos
<clever> so, breaking it even worse, is the way to find the answer! :D
patrl has joined #nixos
rardiol has quit [Ping timeout: 240 seconds]
<phry> *gets out the chainsaw*
rouma has joined #nixos
rardiol has joined #nixos
<{^_^}> [nixpkgs] @meditans opened pull request #44380 → Add missing dependencies for swi-prolog → https://git.io/fN6Vt
MP2E has joined #nixos
Thra11 has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 pushed 96 commits to staging: https://git.io/fN6Vg
<obadz> ekleog: I won't have time to write anything for the foreseeable future (also wouldn't know where to start because it's been so long since I've touched dotnet). But if you have specific questions, feel free to put them here or on a github issue and I'll respond as soon as I can (apologies in advance for the delays)
<obadz> ldlework: yes?
<ldlework> obadz: well you kinda just answered my question :(
<{^_^}> [nixpkgs] @xeji merged pull request #44376 → lbdb: 0.46 -> 0.47 → https://git.io/fN6Wq
<{^_^}> [nixpkgs] @xeji pushed commit from @KaiHa to master « lbdb: 0.46 -> 0.47 (#44376) »: https://git.io/fN6VF
<obadz> ldlework: please ask questions, I will do my best to respond asap
<ldlework> obadz: dotnet stuff no longer uses xbuild so recent packages can't be build with buildDotnetPackage
<obadz> ldlework: ok then I assume the build harness will have to be switched around to use msbuild or whatever replaced xbuild
<ldlework> well old packages still use xbuild so some new build harness is likely need to be made
papika has quit [Quit: The Lounge - https://thelounge.chat]
zopsi has quit [Read error: Connection reset by peer]
papika has joined #nixos
glasserc has quit [Read error: Connection reset by peer]
ambro718 has joined #nixos
<{^_^}> [nixpkgs] @twhitehead opened pull request #44381 → tensorflow: workaround tensorboard collision due to upstream pip hack → https://git.io/fN6rY
rouma7 has joined #nixos
Fare has quit [Ping timeout: 265 seconds]
dbmikus has quit [Ping timeout: 240 seconds]
rouma has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #44367 → treewide: Remove stdenv.isCross → https://git.io/fN6JN
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to staging: https://git.io/fN6r1
dbmikus has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/d0c868ec17c (from 86 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
Thra11 has quit [Read error: No route to host]
papika has quit [Quit: The Lounge - https://thelounge.chat]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #44126 → opencollada: include pcre.h (KhronosGroup/OpenCOLLADA#570) → https://git.io/fNEP4
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fN6oB
Sonarpulse has quit [Ping timeout: 268 seconds]
igo95862 has quit [Quit: igo95862]
<dhess> Is Hydra building the iOS "prebuilt" cross builds defined in lib/systems/examples.nix ?
katyucha has quit [Ping timeout: 240 seconds]
abueide has joined #nixos
<abueide> how do I install nixos from an installation on a flash drive?
revskill has quit [Ping timeout: 265 seconds]
<abueide> (not a live disk)
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/fN6KI
kyren has joined #nixos
<clever> abueide: parition, format, mount, nixos-generate-config --root /mnt, edit things, nixos-install
<clever> abueide: just like you would from the livedisk
<abueide> oh thanks
<{^_^}> [nixpkgs] @matthewbauer merged pull request #44308 → Fix androidndk "ensure unaffected test" → https://git.io/fNoGn
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/fN6KV
kyren has quit [Client Quit]
dtulig has quit [Ping timeout: 260 seconds]
infandum has quit [Remote host closed the connection]
<jabranham> I'm thinking about (re)trying nixos over the weekend. Anyone have any experience with Steam? Have you been able to get it up and running? Games run fine?
kyren has joined #nixos
Sonarpulse has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c77e4de58e2 (from 84 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<infinisil> jabranham: Yee, steam runs almost perfect, never heard anybody complain about it not working, and am using it myself
<manveru> i got a few games that don't run fine :|
<manveru> but majority works
<jabranham> thanks for the feedback :-)
<clever> infinisil: when i first got into nixos, i had a weird font problem with KSP
<phry> okay, I've got a simpler question ^^ is it possible to get the .drv from a built package in /nix/store ? I think I remember that was possible but I can't remember where I read it -.-
<clever> infinisil: a patchelfed KSP, the steam sandbox KSP, and even windows KSP under wine all had the identical bug!
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<clever> infinisil: all mods where unable to render text, resulting in ui elements being 0x0 pixels in size
<manveru> phry: `nix show-derivation /nix/store/whateverpath`
<infinisil> Dat pretty bad
<clever> infinisil: i tried again about 2 weeks ago, and it now works perfectly
<clever> phry: nix-store --query --deriver is how i get the .drv of a given output
<{^_^}> [nixpkgs] @matthewbauer pushed to master « llvm: fix triple setting »: https://git.io/fN6iv
<clever> infinisil: oh, and originally, steam had trouble with my gpu drivers, but its been fixed long ago
<clever> infinisil: now its just weird things like steam claiming the controller is not detected, yet the controller can ack the warning :P
<infinisil> I also need some manual udev rule to get my steam controller working
<manveru> for me, all the zachtronics games don't work still
<infinisil> Alright, I guess it's not "almost perfect" hah
<phry> manveru: clever thanks you too, both commands do great stuff xD
<clever> infinisil: i'm using an xbox 360 controller, and the receiver does some funky things
<clever> infinisil: the usb receiver will dynamicaly (de)register HID devices, based on the controller(s) being wirelessly connected
<clever> infinisil: so the ev input device doesnt exist until i turn on the controller
<clever> and some games only check for that at startup
<clever> most of my other wireless usb devices (keyboard, mouse, headset) claim to always be present, even if the wireless link is broken
<aristid> what's the option i can pass to nix / nix-build to make sure the package is rebuilt even if it's already in the cache?
<clever> aristid: --check, and why do you want to rebuild?
rardiol has quit [Ping timeout: 240 seconds]
<aristid> clever: a weird failure in one commit, but not in the cached output of the other
<clever> was the source changed to fix the failure?
<aristid> no
<clever> so its an intermitent failure, that caused it to not actually fail the build?
<aristid> i know about source hashing :)
<aristid> clever: i don't know yet what's going on
<clever> ah
<aristid> ok, the --check actually does NOT give an error
<aristid> so something else is going on? weird
ris has joined #nixos
aarvar has quit [Ping timeout: 268 seconds]
<aristid> clever: lol, looks like i just did a git pull in my first nixpkgs directory just before the fix was pushed, and in the second nixpkgs directory just after the fix was pushed
<aristid> gchristensen: 700 dollars a month is a lot of money
<clever> aristid: lol
<gchristensen> it isn't if it saves each developer 4hrs/day
<LnL> there are no magical gnomes that populate the nixos cache for free
<LnL> (that we know of)
<gchristensen> haha
<ggVGc> well
<ggVGc> there should be :(
<aristid> gchristensen: the EPYC seems to be cheaper than the Xeon from packet.net, so that's not what i mean. it's just i took the $1/hr (which doesn't _sound_ like a lot of money) and multiplied it by 24*31 and then the number sounded big, that's all :D
<drakonis> not yet at least :V
<gchristensen> ok dinner time, hopefully people find that article to be interesting.
<gchristensen> aristid: I know, it is a lot of money
<gchristensen> easy to justify though if your devs charge $60/hr+ and have long builds
<drakonis> free gnomes with provider companies
<gchristensen> back in a few hours
<drakonis> are there any hardware provider companies deploying nixos yet?
<gchristensen> packet.net
simukis has quit [Ping timeout: 240 seconds]
Denommus has quit [Remote host closed the connection]
philippD has joined #nixos
Anton-Latukha has quit [Quit: Leaving.]
<aristid> gchristensen: i think the key is that packet.net donates the server time to nixos anyways. because otherwise, i would probably try to deal with the lower quality network and support and pay ~200€ for a EPYC server from hetzner :D
<{^_^}> [nixpkgs] @Infinisil merged pull request #44365 → nixos/tomcat: correct type specification for virtualHosts → https://git.io/fN6Jk
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fN6XN
<{^_^}> [nixpkgs] @Infinisil merged pull request #44371 → nixos/tomcat: allow non-package paths in services.tomcat.webapps → https://git.io/fN6IN
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fN6Xx
eskytthe has left #nixos [#nixos]
philippD has quit [Client Quit]
<coconnor> what's the name of the builder that merges a list of derivations into a tree?
philippD has joined #nixos
<coconnor> linkFarm
<coconnor> nm haha
<infinisil> ,trivial-builders.nix
<infinisil> ,find trivial-builders.nix
<infinisil> coconnor: There's also symlinkJoin there ^^ And buildEnv also does something similar
<d1rewolf> coconnor: I am indeed using declarative containers. thanks
endformationage has quit [Quit: WeeChat 1.9.1]
drakonis has quit [Remote host closed the connection]
Acou_Bass has quit [Ping timeout: 260 seconds]
Wharncliffe has joined #nixos
xy2_ has joined #nixos
mzan has quit [Ping timeout: 260 seconds]
massimo_zaniboni has joined #nixos
Acou_Bass has joined #nixos
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<d1rewolf> coconnor: is containers.<name>.bindMounts configured in the container's config or the hosts?
jabranham has quit [Quit: ERC (IRC client for Emacs 26.1)]
<d1rewolf> turns out machinectl bind <machine> <hostpath> [<containerpath>] is the way to bind paths to containers imperatively
tertle||eltret has joined #nixos
rain1 has joined #nixos
<{^_^}> [nixpkgs] @Infinisil closed pull request #15900 → Seafile: service and refactor → https://git.io/vrNKC
erasmas has quit [Quit: leaving]
<infinisil> What do you people think of #17494?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/17494 (by cmfwyp, open): nixos: set default for boot.tmpOnTmpfs to true
<worldofpeace> hmm
ambro718 has quit [Quit: Konversation terminated!]
<makefu> infinisil: i think it is not always a sane default. people have an easy way to change the behavior via the option which is fine imho
<infinisil> Hmm.. What to use as defaults is always a hard question, and when to change them
<worldofpeace> Noticing that any time someone mentions "is default behavior in x, x, and x" it's considered very harshly or with derision
<infinisil> I mean, that is a good point, is it not?
<worldofpeace> Well then we get into a discussion if x and x are sane anyway.
massimo_zaniboni has left #nixos [#nixos]
<worldofpeace> I guess some people don't think so or need lots of convincing.
dbmikus has quit [Quit: WeeChat 2.2]
<makefu> it may not be very clear when your ram runs out just because tmp is full. at work, literally nobody uses /tmp as tmpfs, some apps even require /tmp to be available forever (which is absoutely insane imho)
<makefu> i have tmpOntmpfs enable on all my boxes
<{^_^}> [nixpkgs] @mkaito opened pull request #44383 → mesa: 18.1.5->18.1.2 → https://git.io/fN6Qe
<symphorien> Nix is already ram hungry enough that I wouldn't like some ram to be used for /tmp
<infinisil> Good point heh
<worldofpeace> &
<worldofpeace> ^
jasongrossman has quit [Ping timeout: 244 seconds]
nschoe has quit [Quit: Program. Terminated.]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<tertle||eltret> im using 1.5 GB of ram with about 6 tabs open in chrome
Ariakenom has quit [Quit: Leaving]
<mkaito> the solution to that is easy: buy more RAM. I eventually upgraded to 32Gb just because Nix :P
<infinisil> Oh wait, I mean this one: https://downloadmoreram.com/
<samueldr> conversely, I overshot when shopping for my workstation; I thought that all the building shenanigans I would do could eat so much ram... never hit more than 20GB from my 64GB :(
<worldofpeace> mkaito: Thanks for you slaving on #44383 :)
<{^_^}> https://github.com/NixOS/nixpkgs/pull/44383 (by mkaito, open): mesa: 18.1.5->18.1.2
ris has quit [Ping timeout: 250 seconds]
<rain1> I desire to no longer use "npm", is nix a tool that I may be able to use for that?
__monty__ has quit [Quit: leaving]
Acou_Bass has quit [Ping timeout: 260 seconds]
Acou_Bass has joined #nixos
<mkaito> worldofpeace: pshhh only took ~40 hours of constant recompiling
<worldofpeace> mkaito++
<{^_^}> mkaito's karma got increased to 1
<worldofpeace> mkaito++
<{^_^}> mkaito's karma got increased to 2
bennofs has quit [Quit: WeeChat 2.0]
<mkaito> <3
Fare has joined #nixos
martingale has quit [Read error: Connection reset by peer]
igo95862 has joined #nixos
ntqz has quit [Remote host closed the connection]
ntqz has joined #nixos
ntqz has quit [Excess Flood]
Sonarpulse has quit [Ping timeout: 268 seconds]
contrapumpkin has quit [Ping timeout: 240 seconds]
ntqz has joined #nixos
<pmade> On 18.03 if I manually configure an interface its broadcast address is set to 0.0.0.0 instead the correct prefix + 255. I have prefixLength set to 24. Any idea how to fix that?
copumpkin has joined #nixos
<rain1> https://bpaste.net/show/9c227e7a2946 can't build source tarball of nix on arch linux
<kalbasit> rain1: Nix is available on AUR: https://aur.archlinux.org/packages/nix
<rain1> I got the same error using git
<clever> rain1: what about the https://nixos.org/nix/install script?
<rain1> trying pkgbuild new
<worldofpeace> rain1: That doesn't work(aur), the script works though
hakujin3 has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « clickhouse: 1.1.54385 -> 18.1.0 »: https://git.io/fN65z
<rain1> great it built, thanks
<Dezgeg> inet 10.0.0.1/8 brd 10.255.255.255 scope global enp9s0
<Dezgeg> broadcast address seems correct for me
xy2_ has quit [Ping timeout: 244 seconds]
ericsagnes has quit [Ping timeout: 260 seconds]
Fare has quit [Ping timeout: 248 seconds]
<ekleog> obadz: ok, thanks!