gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || 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
<infinisil> > p (lib.recursiveUpdate { a = { x = 10; }; } { a = { y = 20; }; })
<{^_^}> "{ a = { x = 10; y = 20; }; }"
<infinisil> With the module system, mkMerge is the preferred variant
<pie__> the reason i split it up like that was because i wanted to do a let but not pollute the namespace for the first set
<infinisil> pie__: And yes it didn't give a warning because using // is very common to actually override things
<pie__> makes sense i guess
<pie__> now i feel dumb
<infinisil> np :2
<infinisil> :)
<infinisil> Eh we are all dumb in some ways at some times anyways
<pie__> yeah but i feel dumb all the time haha. maybe i try to leave my comfort zone too often without much of a clue how :p anyway
<pie__> so yeah my actual thing i was trying to solve
MP2E has quit [Remote host closed the connection]
<pie__> you cant do {a = b; (let x=y; in (c=d;e=f;))}
<pie__> the parens are just so i dont have to multiline it in irc
<{^_^}> [nixpkgs] @LnL7 pushed to release-18.03 « libgcrypt: disable tests on darwin »: https://git.io/vh13g
<pie__> you cant put the let at the top level in the set, so what would be a good way to do that?
<infinisil> > p (mkMerge [ { x = 10; } (let y = 20; in { c = y; e = 30; }) ])
<{^_^}> undefined variable 'mkMerge' at (string):149:4
<infinisil> > p (libmkMerge [ { x = 10; } (let y = 20; in { c = y; e = 30; }) ])
<{^_^}> undefined variable 'libmkMerge' at (string):149:4
<infinisil> > p (lib.mkMerge [ { x = 10; } (let y = 20; in { c = y; e = 30; }) ])
<{^_^}> "{ _type = \"merge\"; contents = [ { x = ...; } { c = ...; e = ...; } ]; }"
<infinisil> this hah
<pie__> ok so just use mkmerge then
<pie__> instead of //
<infinisil> Yeah, with the module system that's the best choice
<pie__> they are both ugly but fiiiine :P
<infinisil> Well you can always add more let in's and newlines
<infinisil> let secondpart = let y = 20; in { c = y; .... }; in lib.mkMerge ...
<pie__> im an idiot, maybe i should just make another file
<infinisil> I usually don't care about polluting namespaces, I don't have that much variables. So I just use a single big let in at the beginning for everything
<infinisil> Yeah or that
<pie__> a e s t h e t i c s
<pie__> xD
<infinisil> Indeed :P
<infinisil> Alright I'll have to go sleep now though, good night :)
sbdchd has joined #nixos
<pie__> well that looks like it worked
<pie__> thanks, good night
<pie__> whew...
sbdchd has quit [Remote host closed the connection]
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #42077 → nixos/zfs: mount AFTER import → https://git.io/vhXFC
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vh13h
<{^_^}> [nixpkgs] @Mic92 merged pull request #42071 → ktorrent: fix build with Qt 5.11 → https://git.io/vhXwM
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vh1sJ
xcmw has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #42047 → Tilix 1.8.1, gtkd 3.8.3 → https://git.io/vhPnY
igo95862 has quit [Quit: igo95862]
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/vh1sL
andymandias has quit [Ping timeout: 256 seconds]
xcmw has quit [Client Quit]
<{^_^}> [nixpkgs] @worldofpeace opened pull request #42083 → lollypop: init at 0.9.514 → https://git.io/vh1s3
Mr_Keyser_Soze has joined #nixos
pie__ has quit [Ping timeout: 240 seconds]
sbdchd has joined #nixos
hoshineko has quit [Ping timeout: 245 seconds]
tertle||eltret has joined #nixos
andymandias has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #42084 → micropolis: remove → https://git.io/vh1s8
hoshineko has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #42058 → byacc: 20180525 -> 20180609 → https://git.io/vhPz6
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vh1s0
thc202 has quit [Ping timeout: 240 seconds]
Mr_Keyser_Soze has quit [Remote host closed the connection]
silver_ has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #42084 → micropolis: remove → https://git.io/vh1s8
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vh1s6
jperras has joined #nixos
silver has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Chiiruno opened pull request #42085 → snes9x-gtk: 1.54.1 -> 1.56.1 → https://git.io/vh1sD
<et4te> gchristensen: Well, I finally got it to compile after writing a bunch of patches, changing the scripts, adding kernel 4_13. It seems to build okay but the display just flickers when starting sddm for example. Ah well, at least it builds. :D
<gchristensen> nice!
silver_ has quit [Quit: rakede]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryantrinkle has quit [Ping timeout: 260 seconds]
deepfire` has joined #nixos
hoshineko has quit [Ping timeout: 245 seconds]
hoshineko has joined #nixos
pie_ has joined #nixos
Ariakenom has joined #nixos
deepfire` has quit [Ping timeout: 268 seconds]
deepfire` has joined #nixos
xcmw has joined #nixos
markus1189 has joined #nixos
watt has joined #nixos
watt has quit [Client Quit]
rschm has joined #nixos
markus1199 has quit [Ping timeout: 264 seconds]
sbdchd has quit [Remote host closed the connection]
<rschm> hi, i do have nix package manager config.nix file runnning on ubuntu. can i just use the same files and folders i defined there on nixos? i am interested in getting a nixos up and running instead of ubuntu.
sbdchd has joined #nixos
<rschm> thanks for any help explaining what needs to be done to reuse the .nix files.
sbdchd has quit [Remote host closed the connection]
hamishmack has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #42085 → snes9x-gtk: 1.54.1 -> 1.56.1 → https://git.io/vh1sD
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vh1Zf
hoshineko has quit [Ping timeout: 264 seconds]
Lev50 has joined #nixos
sbdchd has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seanparsons has quit [Read error: Connection reset by peer]
JasonGrossman has joined #nixos
seanparsons has joined #nixos
xcmw has joined #nixos
Drakonis has joined #nixos
hoshineko has joined #nixos
amir has quit [Ping timeout: 265 seconds]
<gchristensen> rschm: you can reuse the config.nix however there is also a configuration.nix which contains your system's configuration
<{^_^}> [nixpkgs] @Chiiruno opened pull request #42086 → citra: 2018-02-23 -> 2018-06-09 → https://git.io/vh1nU
<rschm> thanks gchristensen
<rschm> can i just copy the .nixpkgs folder from my ubuntu over to nixos and do nix-env -iA .... on it?
aarvar has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
acarrico has quit [Ping timeout: 245 seconds]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
tzemanovic has joined #nixos
oltoAltn has joined #nixos
truthadjustr has joined #nixos
Supersonic112 is now known as Supersonic
<truthadjustr> newbie here. Need some help how to resolve my issue: https://asciinema.org/a/bfYsWVwSEMitd6Gh3jafHWOuL
olto has quit [Ping timeout: 240 seconds]
JasonGrossman has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @Baughn opened pull request #42087 → zfs: Improve import handling → https://git.io/vh1nR
xcmw has joined #nixos
justbeingglad has left #nixos [#nixos]
Ariakenom has quit [Read error: Connection reset by peer]
<gchristensen> truthadjustr: wat
<gchristensen> truthadjustr: what if you just do `nix-shell -p elinks`
<worldofpeace> truthadjustr: or nix-env -iA ?
<YegorTimoshenko[> gchristensen: it would be so nice to deprecate non-attribute nix-env --install
<gchristensen> you're telling me, YegorTimoshenko[
tzemanovic has quit [Read error: Connection timed out]
tzemanovic has joined #nixos
<worldofpeace> YegorTimoshenko[: Can you ask the borg to build this maybe? :) https://github.com/NixOS/nixpkgs/pull/42083
<YegorTimoshenko[> worldofpeace: done
<worldofpeace> Hehe I actually iterated off of that
<YegorTimoshenko[> :-)
<truthadjustr> worldofpeace: nope.. https://asciinema.org/a/Hzps22YwAV0Mq4Wtjng8VvaSE
<worldofpeace> YegorTimoshenko[: It builds yay!
<YegorTimoshenko[> truthadjustr: you need `nix-env -f '<nixpkgs>' -iA elinks`
<YegorTimoshenko[> you seem to be on nixos. then you can do `nix-env -iA nixos.elinks`
<worldofpeace> ^
<pie_> woffs, well i got the hang again and by strace df is hanging on the sshfs mount lol
<pie_> keepass....last thing strace says is Futex
<truthadjustr> YegorTimoshenko[: nope... https://asciinema.org/a/TeB0ZP18HFxM17MkmJoy1RK6G
<worldofpeace> Can't wait till `nix install` exists. new users will have a much nicer time.
<truthadjustr> why am i dependent of that vcbuild.exe anyway?
<gchristensen> truthadjustr: run nix-env -q
<truthadjustr> gchristensen: so, it's listing visual-studio-9.0
<pie_> zero clue why it causes keepass to hang too though
<YegorTimoshenko[> ```
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/a52d2c1e461 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<gchristensen> truthadjustr: seems you've found a bug :)
<YegorTimoshenko[> worldofpeace: ^^
<worldofpeace> YegorTimoshenko[: Definite dotfiling happening right now :) Thanks
<gchristensen> truthadjustr: do you use visual-studio-9.0?
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #42086 → citra: 2018-02-23 -> 2018-06-09 → https://git.io/vh1nU
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vh1cf
<truthadjustr> gchristensen: i tried to install it once.. but i don't even know what's the main executable to run the IDE
<truthadjustr> gchristensen: how do we find that out?
<gchristensen> well I don't think you use it
<truthadjustr> gchristensen: it's an partial incomplete install, i beleive
<gchristensen> so I'd recommennd nix-env --uninstall visual-studio-9.0
<truthadjustr> gchristensen: great! 'nix-env -iA nixos.elinks` works now!
<gchristensen> you accidentally found a "package" practically untouched since 2010
<truthadjustr> damn...don't know why that vcbuild.exe block in the way..
<truthadjustr> i had to install stuff as root, since last week because of that..
<truthadjustr> until today, with elinks.. can't bear it anymore.. Thanks gchristensen
<truthadjustr> anyway,... so nixos has no 'vstudio' support?
<gchristensen> I know why it is broken, but not why Nix was handling it wrong
<gchristensen> you want vscode probably?
<worldofpeace> gchristensen: saves the day! or night.
<truthadjustr> gchristensen: yeah.. i want the vscode IDE
acarrico has joined #nixos
<gchristensen> nix-env -iA nixpkgs.vscode
<gchristensen> or nixos.vscode
<truthadjustr> gchristensen: thanks gchristensen, i got a the IDE working now. Will document this, in our wiki.
<gchristensen> great!
<gchristensen> and I'll delete visual-studio-9.0 so the next person doesn't get that by mistakee.
<truthadjustr> gchristensen: how did you find the package name? i tried to search for it in nixos packages but it's not there
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tom1919 has joined #nixos
<worldofpeace> you can `nix search` as well
<gchristensen> worldofpeace++
<{^_^}> worldofpeace's karma got increased to 1
<truthadjustr> gchristensen: huh.. i used https://nixos.org/nixos/packages.html#, tsk tsk...
<gchristensen> I don't do package search much, mostly code archeology
<worldofpeace> lol
<gchristensen> and hound is good for code archeology ... so I usually just start there. nix search is a great place for people to start
<{^_^}> [nixpkgs] @matthewbauer merged pull request #42074 → Fix the problem of kiwisolver not compling in macOS → https://git.io/vhXHI
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vh1cl
lambdamu has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #42083 → lollypop: init at 0.9.514 → https://git.io/vh1s3
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vh1cE
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vh1cu
<{^_^}> [nixpkgs] @matthewbauer merged pull request #41737 → nixos/uvcvideo.dynctrl: Init → https://git.io/vh2md
<{^_^}> [nixpkgs] @grahamc opened pull request #42088 → vsenv, vs90wrapper: delete → https://git.io/vh1cz
<gchristensen> truthadjustr: ^ that one is for you
<tom1919> Are there are other users of nix? (e.g. they aim to evaluate to things other than derivations)
<tom1919> I suppose nixos counts. :)
<tom1919> What "type" (set of attributes?) does a nixos nix expression evaluate to?
<gchristensen> a directory of files just like anything else
<gchristensen> I have to go, but NixOS is not special to Nix, it is the same as any other nix build. :)
<{^_^}> [nixpkgs] @marsam opened pull request #42089 → nodejs: 6.14.2 -> 6.14.3, 8.11.2 -> 8.11.3, 9.11.1 -> 9.11.2 → https://git.io/vh1cP
numkem has joined #nixos
<numkem> hello, I've made the jump today to install NixOS and so far things have been fairly smooth. But I run into an issue that I'm not sure can be fixed. I have to work with tensorflow in a virtualenv and the wheel contains a prebuilt binary. I understand you can use patchelf to fix this but how can I find the needed files and what kind of fix do I need to apply? Everything I've found on google shows up in nix
hamishmack has joined #nixos
<numkem> expressions that won't tell me the path
<{^_^}> [nixpkgs] @matthewbauer merged pull request #41971 → nixos/postgresql: Use listen_addresses, not -i → https://git.io/vh61g
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vh1cD
acarrico has quit [Ping timeout: 256 seconds]
<worldofpeace> numkem: you want to use `readelf` and `ldd`
Lev50 has quit [Quit: This computer has gone to sleep]
<numkem> How can i find the files that are elf?
<truthadjustr> numkem: kindly update the wiki https://nixos.wiki when you figure out how to fix.. thanks. I too, would like to do stuff like that
MP2E has joined #nixos
<worldofpeace> actually wait, I don't know what I'm talking about. You don't need virtualenv. You should read the python section in the nixpkgs manual I think.
<Baughn> See above. Virtualenv *should* work, but not for wheels like that.
<Baughn> NixOS already has a tensorflow package that works fine.
<numkem> Baughn: I understand and maybe virtualenv is just superflous but i've just been used to it while using my dev tools (namely emacs)
ggp0647 has quit [Quit: ZNC - http://znc.in]
<Baughn> It isn't impossible, but you'll have to patch the binary manually.
<Baughn> And if it's the GPU version... might as well be.
<Baughn> You'll find NixOS much more comfortable if you go all-in.
<numkem> how would i proceed than? Scrap virtualenv and do... nix containers? I have yet to graps the whole thing but I think I understand the basics
ggp0647 has joined #nixos
<Baughn> Not containers, no.
<truthadjustr> actually,.. is why i resort to docker when things get rough in nixos
<numkem> virtalenv by design does somewhat was a nix package does which is nice, but in the case of development, if i could get a /bin/python out of something I could direct emacs to it and it would work i believe
<Baughn> The documentation is here, and you probably should skim all of it, but: https://nixos.org/nixpkgs/manual/#python
<numkem> truthadjustr: but than having to rebuild everytime you make a fix gets tedious... I guess a volume could solve a big part of it
<numkem> I'll read the doc, maybe there is an eaiser way
<Baughn> When you put "python35.withPackages (...)" in a shell.nix and run nix-shell, what it does is build a wrapper for python + the named packages.
<Baughn> Which sets the various path environment variables in a manner very reminiscent of virtualenv.
aw has quit [Remote host closed the connection]
spacefrogg has quit [Remote host closed the connection]
aw has joined #nixos
<Baughn> This is how basically all runtime dependencies work in NixOS, for everything where they can't just be baked into the binary with absolute paths.
<numkem> Baughn: just read about nix-shell, seems really powerful
spacefrogg has joined #nixos
woodson has joined #nixos
<Baughn> numkem: My favorite use of it is to make "portable shell scripts". Using #!/usr/bin/env nix-shell instead of #!/bin/bash, I can get Nix to install any dependencies for the script on-demand.
<numkem> wonder if I could write an env.py that would do a nix-shell through the shebang so emacs can auto-complete with it
<Baughn> ...but that also works for python scripts and so forth.
<Baughn> It's nice having it all in one file.
<Baughn> Hmm. LSP not an option?
<numkem> LSP?
<Baughn> Language server protocol
<Baughn> If you need *that particular* python to be in the PATH for Emacs... guess the simplest way would be to launch Emacs from nix-shell.
<Baughn> Which is how you'd have to do it if using virtualenv, right?
<numkem> it's using anaconda in the backend
<numkem> well virtualenv exposes a bin/python and emacs supports virutalenvwrapper
<Baughn> Not familiar with anaconda.
<Baughn> Doesn't seem to exist as a package, either.
<Baughn> ...anyway, gtg. GL.
<numkem> if nix-shell actually writes something somewhere and I can track it down it would be doable I believe
<numkem> Baughn: thank you
<Baughn> nix-shell puts various things in the environment.
<Baughn> There's certain to be ways to do what you want to do. Multiple. Some better than others.
<numkem> I happen to not be alone https://github.com/syl20bnr/spacemacs/issues/7404
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nuncanada2 has quit [Quit: Leaving]
xcmw has joined #nixos
orivej has joined #nixos
init_6 has quit []
<tom1919> gchristensen: For packages nix doesn't return a directory of files, it returns a function that returns a derivation (right?). nix-instantiation then executes that to produce files/directories. I was wondering what the equivalent for nixos involves.
andymandias has quit [Ping timeout: 240 seconds]
stepcut has joined #nixos
numkem has quit [Quit: WeeChat 2.0]
andymandias has joined #nixos
<truthadjustr> how do we install the 'gitter' chat client ?
sbdchd has quit [Remote host closed the connection]
iyzsong has quit [Read error: Connection reset by peer]
asuryawanshi has quit [Ping timeout: 248 seconds]
matthewbauer has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<worldofpeace> It's not packaged in nixpkgs. though anytime someone wants a package that's not in nixpkgs in irc, I package it...
<{^_^}> [nixpkgs] @Chiiruno opened pull request #42090 → mbga: 0.6.1 -> 0.6.3 → https://git.io/vh1Cz
<truthadjustr> i have inotify-tools in my /etc/nixos/configuration.nix, but i don't seem to find the inotify-watch command
<worldofpeace> truthadjustr: Have you rebuild your system configuration?
<truthadjustr> uh... it's inotifywatch, (no hyphen)
<worldofpeace> nvm :)
<truthadjustr> in other distro, it comes as inotify-watch or wait...
<truthadjustr> my bad.. it's no hyphen. I had it confused
<truthadjustr> So in the package listing, it either listed as inotify-tools or inotifyTools. So it's an alias or something? Why these two?
<truthadjustr> i'm referring to the web https://nixos.org/nixos/packages.html#inotify
<rschm> i have moved .nixpkgs from my unbuntu machine to nixos.
lassulus_ has joined #nixos
<rschm> but error: attribute 'prepEnv' in selection path 'prepEnv' not found
<rschm> from the command nix-env -iA nixpkgs.prepEnv
<rschm> thanks for any help in executing the nix-env -iA on nixos.
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/a52d2c1e461 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
lassulus has quit [Ping timeout: 264 seconds]
lassulus_ is now known as lassulus
tzemanovic has joined #nixos
schoppenhauer has quit [Ping timeout: 256 seconds]
jperras has quit [Quit: WeeChat 2.1]
tzemanovic has quit [Remote host closed the connection]
schoppenhauer has joined #nixos
tzemanovic has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
matthewbauer has quit [Ping timeout: 268 seconds]
tzemanovic has quit [Ping timeout: 264 seconds]
stepcut has quit [Ping timeout: 256 seconds]
vcunat has joined #nixos
dqsii__ has joined #nixos
Ross has quit [Ping timeout: 264 seconds]
Ross has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dqsii__ has quit [Quit: Leaving]
dqsii has joined #nixos
travankor has joined #nixos
tzemanovic has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
dqsii has quit [Remote host closed the connection]
JasonGrossman has joined #nixos
lord| has quit [Read error: Connection reset by peer]
pie_ has quit [Ping timeout: 264 seconds]
lord| has joined #nixos
dje4321_ has joined #nixos
<dje4321_> im trying to create a package for nixos but i need to write a udev rule. what would be the best way todo this? This is the .nix i have so far https://hastebin.com/ohigefegaj.pl
jasongro` has joined #nixos
daveo has quit [Remote host closed the connection]
johnw has joined #nixos
<dje4321_> this is the output of the nix-shell command thing
<dje4321_> would also appreciate feedback on improving the package
dqsii has joined #nixos
Guanin has quit [Ping timeout: 248 seconds]
steell has joined #nixos
truthadjustr has quit [Ping timeout: 268 seconds]
Guanin has joined #nixos
steell has quit [Ping timeout: 260 seconds]
andymandias has quit [Ping timeout: 240 seconds]
Huddo121 has quit [Ping timeout: 276 seconds]
andymandias has joined #nixos
Huddo121 has joined #nixos
endformationage has quit [Ping timeout: 245 seconds]
worldofpeace has quit [Ping timeout: 256 seconds]
woodson has quit [Ping timeout: 256 seconds]
tzemanovic has quit [Remote host closed the connection]
dqsii has quit [Remote host closed the connection]
igo95862 has joined #nixos
dje4321_ has quit [Ping timeout: 260 seconds]
dje4321_ has joined #nixos
JasonGrossman has quit [Remote host closed the connection]
jasongro` has quit [Remote host closed the connection]
travankor has quit [Quit: Q]
travankor has joined #nixos
tzemanovic has joined #nixos
inquisitiv3 has joined #nixos
myshoe has joined #nixos
travankor has quit [Client Quit]
tzemanovic has quit [Ping timeout: 265 seconds]
tzemanovic has joined #nixos
tertle||eltret has quit [Quit: Connection closed for inactivity]
crmlt has joined #nixos
Drakonis has quit [Read error: Connection reset by peer]
testuser_ has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 245 seconds]
pikajude has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
igo95862 has quit [Quit: igo95862]
igo95862 has joined #nixos
Huddo121 has quit [Ping timeout: 248 seconds]
johanot2 has joined #nixos
Huddo121 has joined #nixos
johanot has quit [Ping timeout: 240 seconds]
dgonyeo has left #nixos [#nixos]
igo95862 has quit [Quit: igo95862]
<{^_^}> [nixpkgs] @nlewo merged pull request #42013 → gcompris: 0.90 -> 0.91 → https://git.io/vhi2b
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/vh1Ru
spear2 has joined #nixos
vandenoever has quit [Ping timeout: 260 seconds]
pikajude has joined #nixos
<srhb> dje4321_: udev rules generally require you to use the module system, in this case https://github.com/NixOS/nixpkgs/blob/release-18.03/nixos/modules/services/hardware/udev.nix#L185
<dje4321_> alright. how does the package look? anything that can be improved on before trying to submit a PR for it?
<srhb> dje4321_: Needs a meta.license :)
xy2_ has joined #nixos
<srhb> dje4321_: And is your buildPhase really necessary? Isn't make the default? Other than that, it looks fine.
<srhb> dje4321_: Er, I just realized it's not set up to be integrated as part of the nixpkgs tree, because it's not a regular package function
<srhb> dje4321_: It needs to be something like { stdenv, fetchurl ): ... instead of import <nixpkgs> {}
<dje4321_> alright. what should i use as the license if the repo has a custom license file for it?
<dje4321_> yay. i got that part. is setup like that so i can test it with nix-build
<srhb> dje4321_: That looks like an MIT license :)
<srhb> Oh, I just noticed the alterations. uuuh.
<srhb> I would argue that you should ask the author to please not do that. :P
<srhb> Oh hang on, is that actually the X11 license.
<dje4321_> so what do i put lol
<dje4321_> custom?
<srhb> Looks like spdx classifies it as an mit license, so I think that's fine
<dje4321_> alright. that was added
<dje4321_> the custom install process is because it doesnt have permission to make /usr/share.
crmlt has quit [Remote host closed the connection]
<dje4321_> this is where im at so far
<dje4321_> still need to setup the udev rules so i can let it be accessed from userspace
<srhb> dje4321_: license = stdenv.lib.licenses.mit
<srhb> dje4321_: Again, the udev rules needs to be handled with the udev nixos module.
<dje4321_> ok. fixed that
<dje4321_> thanks for the help. i gotta figure out how to write a nixos module now
aexoxea has joined #nixos
tzemanovic has quit [Remote host closed the connection]
deepfire` has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @woffs opened pull request #42091 → zfs: various fixes for extraPools → https://git.io/vh10m
deepfire` has joined #nixos
tzemanovic has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
johanot2 has quit [Remote host closed the connection]
tzemanovic has quit [Ping timeout: 240 seconds]
pikajude has quit [Quit: ZNC 1.7.0 - https://znc.in]
travankor has joined #nixos
srl295 has quit [Quit: Connection closed for inactivity]
travankor has quit [Client Quit]
<{^_^}> [nixpkgs] @Mic92 pushed 4 commits to release-18.03: https://git.io/vh10z
<{^_^}> [nixpkgs] @Mic92 merged pull request #42091 → zfs: various fixes for extraPools → https://git.io/vh10m
pikajude has joined #nixos
<yurb> Is there a way to diff generations, i.e. to see which changes have been made in a generation compared to previous one?
<infinisil> yurb: Take a look at nix-diff
<yurb> infinisil: thanks
JasonGrossman has joined #nixos
andymandias has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #42082 → slic3r-prusa3d: 1.39.2 -> 1.40.0 → https://git.io/vh1O6
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vh101
simukis has joined #nixos
andymandias has joined #nixos
JasonGrossman has quit [Remote host closed the connection]
alex`` has joined #nixos
JasonGrossman has joined #nixos
aexoxea has quit [Quit: Goodbye!]
aexoxea has joined #nixos
JasonGrossman has quit [Remote host closed the connection]
JasonGrossman has joined #nixos
<dje4321_> whats the best way to test a module after writing it?
<manveru> dje4321_: depends on the module... you can write tests for it
<dje4321_> just got done writing one to apply udev rules and need to see if the rules apply
<manveru> hmm, guess that's a tiny bit more tricky then :|
masse has joined #nixos
<dje4321_> this is what ive got so far. ill admit im way out of my depth here XD
winem_ has joined #nixos
<dje4321_> mostly made by looking at other modules and figuring it out
gerschtli has quit [Quit: WeeChat 2.0]
gerschtli has joined #nixos
tzemanovic has joined #nixos
tlotze_ has joined #nixos
<tlotze_> hi, I'm using nixpks on top of another distribution and I've started doing declarative package management using config.nix – it feels much better than installing stuff ad hoc but I'm still missing some things
<tlotze_> installing packages directly into the environment allowed me to see the currently installed versions using nix-env -q; how do I achieve the same if all nix-env -q gives me is my "myPackages" package that pulls in the real stuff?
<srhb> tlotze_: I'm afraid you don't really. But exploring the files in the profile you should be able to find every store path that is included, though that includes (transitive) dependencies as well.
tzemanovic has quit [Ping timeout: 248 seconds]
<srhb> At least in some cases.
<tlotze_> hm, I was afraid it would take some digging
<tlotze_> so there isn't even a better way to find out the version of a single package that has been pulled in transitively?
<srhb> tlotze_: None that I know. fwiw I would just keep myPackages up to date and evaluate any versions from nixpkgs directly.
<srhb> Rather than considering the installed versions special.
<tlotze_> ok
<tlotze_> another thing
<srhb> tlotze_: Perhaps you could make your life easier by generating a version list automatically to include in your myPackages
<tlotze_> oh
<srhb> tlotze_: Like, you could map over every package and create a pseudopackage that is just a text file containing name-version
<tlotze_> how does that work conceptually? I'm using channels so I could pin channels to a version, but how could I freely pin versions of packages?
<tlotze_> other that copying their definition, that is
<srhb> tlotze_: I'm not talking about pinning, I'm just talking about recording the versions in any one generation of myPackages
<tlotze_> just as documentation, you mean?
<srhb> essentially let myPkgs = [ your list of packages ]; in myPkgs ++ [ (package that records name-version of all packages in myPkgs) ]
<srhb> tlotze_: Yeah
<tlotze_> to be honest, I'm not sure what that "package that records the versions" would b
<tlotze_> e
<srhb> tlotze_: A text file, essentially. But perhaps it doesn't help you. Not sure what you're trying to achieve exactly. :)
<tlotze_> All I want to achieve is if I need to know which version of a package I use (say, because something doesn't work and I want to check whether I'm using a version with a particular bug already solved), and the program doesn't tell me easily itself, I want to find out by asking the package manager.
<tlotze_> but I think it's ok to do some digging in such cases, at least for now
<tlotze_> it's not that it couldn't be done, it just feels like it should be easy and I'm missing something
<tlotze_> but I do understand that with declarative package management, all my installed packages become just dependencies
inquisitiv3 has quit [Ping timeout: 240 seconds]
<tlotze_> another thing: I'm mixing two channels (unstable and the latest stable release)
<tlotze_> but I need to manually put the stable channel on NIX_PATH
<tlotze_> there is an open issue about this: https://github.com/NixOS/nix/issues/1123
<tlotze_> but I wonder, since everybody seems to be talking about mixing channels: how do people solve this right now?
tzemanovic has joined #nixos
aarvar has quit [Ping timeout: 260 seconds]
JasonGrossman has quit [Remote host closed the connection]
JasonGrossman has joined #nixos
rprije has joined #nixos
<tlotze_> srhb: if I do need to do the digging, this appears to achieve it nicely: ls -lR /nix/store/*-my-packages |grep ' -> ' |sed 's/.* -> [^-]*-//' |sed 's+/.*++' |sort |uniq
<tlotze_> even better: find /nix/store/*-my-packages -type l -printf '%l\n' |sed 's/[^-]*-//' |sed 's+/.*++' |sort |uniq
winem_ has quit [Remote host closed the connection]
testuser_ has quit [Ping timeout: 260 seconds]
<srhb> tlotze_: Nice. :)
<srhb> tlotze_: Fwiw I don't use channels personally, at least not through the regular mechanism
<srhb> tlotze_: Instead, I import the versions of nixpkgs I want directly
<tlotze_> ah, ok
<woffs> anyone using zfs encryption please have a look at https://github.com/NixOS/nixpkgs/pull/41846 and test and merge :-) thank you
<srhb> tlotze_: Like import (fetchurl (url-of-tar.gz-)) {}
<tlotze_> well, I'd like to benefit from version updates in the channels, and I'd like to use current stuff, but once in a while something doesn't work and I need to fall back to an older, stable channel
<srhb> tlotze_: Right. I find that easier to fix by managing the imports directly and bumping as needed
<JasonGrossman> woffs: I've been planning to try ZFS encryption. Will test.
<JasonGrossman> woffs: Thanks for your work.
<tlotze_> srhb: a current example is to use libreoffice-fresh from 18.03 rather that libreoffice from unstable; it's almost as current, does work, and will probably be updated anyway
<srhb> tlotze_: Yeah.
<tlotze_> srhb: thank you for your answers, that was quite insightful
<srhb> tlotze_: So I'd have pkgs1803, pkgsUnstable and maybe pkgsMaster all defined, then I can switch easily between which is used. of course, you can also easily do this with channels if you want. Not sure how you're achieving it currently.
<srhb> I assume something like unstable = import <nixpkgs-unstable> {}; with nixpkgs-unstable defined as a channel name tracking the unstable branch..
<tlotze_> almost
<tlotze_> in my case, unstable is the default and 18.03 is explicitly listed as stable and imported by that name
<srhb> Right.
knupfer has joined #nixos
<tlotze_> I just wish I didn't have to remember putting all channels on NIX_PATH, and I don't want to change nix.sh
<srhb> Hmm, shouldn't the channels mechanism be doing that for you?
<srhb> Maybe I don't quite understand how channels work on non-nixos.
<tlotze_> I'd say it should, but it doesn't appear to, and there's also https://github.com/NixOS/nix/issues/1123
<tlotze_> so I wonder how others do it
<srhb> I see, okay..
<srhb> tlotze_: Did you see this linked comment? https://github.com/NixOS/nix/pull/1124#issuecomment-287844151
<srhb> I don't know if that is actually still allowed in Nix 2.0, but maybe worth a try.
grumblr has joined #nixos
<srhb> Or just give up on channels, they're messy anyway. :-P
<tlotze_> hm
<tlotze_> I think I'll fool around with my .profile a bit and see what works best or looks cleanest
<srhb> OK :)
<tlotze_> didn't realise that channels were on the way out ;o)
<srhb> tlotze_: fwiw my "update" mechanism consists of running nix-prefetch-git to get a json blob that specifies the things I need to fetch a particular channel
<srhb> tlotze_: I'm not sure that sentiment is really still accurate.
<srhb> But I wish it were.
grumble has quit [Killed (barjavel.freenode.net (Nickname regained by services))]
grumblr is now known as grumble
<srhb> I'll stop the propaganda now. :D Good luck finding a solution that fits you. At least we have flexibility :)
<tlotze_> that's true
<tlotze_> thank you again, I need to be on my way in a few minutes anyway...
charleshd has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
dje4321_ has quit [Ping timeout: 260 seconds]
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/480e88581b7 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
knupfer has quit [Ping timeout: 265 seconds]
<hyper_ch> clever: still can't setup remote server :( kexec works fine but gnutls won't build
tlotze_ has left #nixos [#nixos]
<das-g[m]> Is there some guide how to set up a local MTA (needed for `caff` from `nixpkgs.gpg-tools`, which uses Perl's `Mail::Mailer`) on NixOS? Can I use the `networking.defaultMailServer.*` options for that?
johanot has joined #nixos
MP2E has quit [Remote host closed the connection]
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/f3c913d466f (from 32 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
phdoerfler has joined #nixos
silver has joined #nixos
Ariakenom has joined #nixos
johanot has quit [Ping timeout: 240 seconds]
xAFFE has joined #nixos
matthewbauer has joined #nixos
johanot has joined #nixos
logzet has joined #nixos
Mateon3 has joined #nixos
lambdamu has joined #nixos
Mateon2 has quit [Ping timeout: 256 seconds]
Mateon3 is now known as Mateon1
inquisitiv3 has joined #nixos
philippD has joined #nixos
m0rphism has quit [Quit: WeeChat 1.9.1]
matthewbauer has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @mnacamura opened pull request #42094 → dropbox: 40.4.46 -> 52.3.56 → https://git.io/vh1g2
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Izorkin has joined #nixos
kreetx has joined #nixos
<rizary> trying to understand nix, i create simple package here
<rizary> but when including `cabal-install` as my build input, i got this error:
<rschm> i am sorry for newbie question. how do we execute the nix-env for the .nixpkgs on nixos? i could do nix-env -iA nixpkgs.env on my ubuntu but that does not seem to work in nixos.
<rschm> thanks.
<rschm> for any pointer or any help.
<woffs> rschm, nixos. if your channel is named nixos
<rschm> but that does not execute the .nixpkgs config.nix file, right?
<LnL> rizary: you want modifiedHaskellPackages.mkDerivation, the stdenv doesn't know about cabal so that would require much more work to make a working build
<LnL> rizary: nix-env -f '<nixpkgs>' -iA hello
<LnL> rschm: ^
<LnL> that will work everywhere
michiell2 has joined #nixos
<rschm> thanks LnL, woffs.
<rschm> let me try that.
thc202 has joined #nixos
truthadjustr has joined #nixos
<rschm> you are genius, LnL, woffs. it is executing now. thanks
<obadz> or if you want to be excentric nix-env -iE '(_: with import <nixpkgs> {}; hello)' :=)
<LnL> that should be the default instead of namespacing by channel IMHO
<obadz> expressions should be the default :)
<rizary> LnL: i got this error
<rizary> error: anonymous function at /nix/store/44nfqhh6zxgrz97y2fzc4ksnv8v30i50-nixos-17.09.3243.bca2ee28db4/nixos/pkgs/development/haskell-modules/generic-builder.nix:6:1 called without required argument ‘pname’, at /nix/store/44nfqhh6zxgrz97y2fzc4ksnv8v30i50-nixos-17.09.3243.bca2ee28db4/nixos/lib/customisation.nix:74:12
<rschm> can you explain a bit?
<kreetx> I have a haskell app which builds on a lockal docker build slave, and now want do deploy this on an ubuntu staging machine. I'm wondering which is better: to convert it to nixos, or just simply copy closure (or sometging similar) to install it. The immediate problem is that although the binary has the correct architecture, then the linker doesn't exist (since its path is /nix/..)
<kreetx> *local
<rizary> i'm sorry i know it requires `lib` parameter (looking at github)
<obadz> rizary: 17.09 is a bit old, maybe bumping version fixes this?
<rizary> obadz: i have this output under my `nix-channel --list`
<LnL> rizary: yeah, the haskell mkDerivation takes slightly different arguments
<rizary> i thought i have the 18.03 already
<rizary> LnL: okay i'll take a look
<rizary> at manual
<obadz> rizary: odd.. maybe nix-channel --update?
rihards has joined #nixos
<cocreature> kreetx: another option that I’ve used in the past is to build a docker image using nix and delpoy that
<kreetx> cocreature: yes, I thought about that too
<kreetx> another worry ("worry") I have is that how big is the chance of me borking the machine
<kreetx> I have root access, but can't recreate it if it doesn't boot atm
<kreetx> cocreature: is that easy-ish to do/is doing that built in somehow? I.e create the run-time docker and then push that.
<cocreature> kreetx: yeah I’d say it’s quite easy. there are a few examples in nixpkgs https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/docker/examples.nix
<cocreature> kreetx: I have an example for doing this for a Haskell app https://github.com/cocreature/pdf-foobar/blob/master/default.nix#L25 but it’s been a while since I’ve looked at it so it might be outdated in some regards
<tilpner> kreetx - If you have the time, you can create a backup. It'll be easy to recreate the machine afterwards
booglewoogle has joined #nixos
wchresta has joined #nixos
truthadjustr has quit [Ping timeout: 256 seconds]
<booglewoogle> hey, anyone here got a minute to help a nixos and haskell beginner out setting up an environment? pretty much from scratch since i feel pretty lost with what i've gathered
<kreetx> booglewoogle: where are you now?
<booglewoogle> got stack installed via configuration.nix and tried to install just ghc with it for starters, which already failed
<kreetx> ah, and you're on nixos already? not trying to build haskell with nix-the-package-manager?
<booglewoogle> yep, i'm on nixos right now
<kreetx> it doesn't use stack, just cabal
<booglewoogle> oh, no, that's new to me. having a look, thanks!
<kreetx> you just create the default.nix with cabal2nix, then make the release.nix, and then run nix-build on that
<kreetx> booglewoogle: it's very basic, and I think should work (I'm on ubuntu, so have not tested it, but see no reason it shouldn't build)
<{^_^}> [nixpkgs] @Ma27 opened pull request #42097 → opera: 50.0.2762.45 -> 53.0.2907.99 → https://git.io/vh1aC
<kreetx> booglewoogle: and you're building as for now, so the nixos related things shouldn't matter
<kreetx> i.e you're not making a module (service) that nixos would run through systemd
truthadjustr has joined #nixos
wchresta has quit [Remote host closed the connection]
<booglewoogle> okay
wchresta has joined #nixos
<kreetx> booglewoogle: if you already have your cabal project, then unless it uses other private dependencies you might have, you can continue using your own cabal package
<kreetx> it should just work
NightTrain has quit [Quit: Lost terminal]
andymandias has quit [Ping timeout: 260 seconds]
iyzsong has joined #nixos
b has joined #nixos
andymandias has joined #nixos
<rschm> how do i set the priority of the drv given the package name like /nix/store/z0siyymq4ds9r2r2l2x4s5rsks884g8s-baseEnv/share/gitweb/gitweb.cgi?
<rschm> the message is nix-env --set-flag priority NUMBER INSTALLED_PKGNAME to change priortiy
<rschm> and i am getting matches no derivations when i do use the pakage.
<rschm> package name i mean.
<rschm> thanks.
booglewoogle has quit [Remote host closed the connection]
booglewoogle has joined #nixos
alex`` has quit [Ping timeout: 255 seconds]
andymandias has quit [Quit: ZNC 1.6.5 - http://znc.in]
andymandias has joined #nixos
alex`` has joined #nixos
<gchristensen> rschm: what command are you running when you get that error, and can you paste (gist, pastebin, etc.) the output of nix-env -q
<rschm> i did a nix-collect-garbage and rerun nix-env -f '<nixpkgs>' -iA base at the moment.
<rschm> i will run that once it is done. thanks gchristensen.
<rschm> it shows git-2.16.4.
<rschm> i can't copy and paste nixos in my virtualbox.
<gchristensen> hrm, what is base?
tzemanovic has quit [Remote host closed the connection]
chrisaw has joined #nixos
<rschm> it is .nixpkgs i took from my ubuntu.
<rschm> it is defined in config.nix there.
<gchristensen> do you have git inside of the `base` expression in config.nix
tzemanovic has joined #nixos
<rschm> oh now i need to do nix-env --set-flag priority 9 git
<rschm> and that works.
<rschm> yes.
<rschm> thanks.
<gchristensen> you should probably just uninstall git, then :) nix-env --uninstall git-2.16.4
<gchristensen> and use instead the git from base
<rschm> yes. i got it now.
<gchristensen> great!
<rschm> it was confusing as i thought i need the whole path to what was failing.
<gchristensen> yeah, set-priority is confusing :(
<gchristensen> I find a lot of nix-env confusing, actually
tzemanovic has quit [Remote host closed the connection]
<gchristensen> I like your approach of base in config.ninx
tzemanovic has joined #nixos
<truthadjustr> hi,.. in case we need to install virtualbox extension, how can be do it in nixos?
<{^_^}> [nixpkgs] @LnL7 merged pull request #42072 → LanguageClient-neovim : 2018-03-6 -> 2018-06-12 → https://git.io/vhXie
<{^_^}> [nixpkgs] @LnL7 pushed 3 commits to master: https://git.io/vh1Vo
<rizary> LnL: if i have 3 folder let say `android` `frontend` `backend` which is both `frontend` and `backend` use haskell. Then I want to make default.nix which contains all the result of each folder under the root `result`, should I make each `frontend` `backend` its own default.nix contains the `cabal-install` so i can build it with `cabal new-*`
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/480e88581b7 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<rizary> or i can make only default.nix in root using `haskellPackages.mkDerivation` and includes the `android` project?
kiloreux has quit [Ping timeout: 245 seconds]
alex`` has quit [Quit: WeeChat 2.1]
alex`` has joined #nixos
<tilpner> truthadjustr - virtualisation.virtualbox.guest.enable and virtualisation.virtualbox.host.enableExtensionPack, depending on what you need
<chrisaw> Can anyone help me with overriding a python package using an overlay? I have followed https://nixos.org/nixpkgs/manual/#how-to-override-a-python-package-using-overlays and infinisil helpfully gave me some advice but I'm still struggling with it and can't do a nixos-rebuild without patching one of the python dependencies. :(
<nek0> hi peeps. can somebody guide me through a multi monitor setup with nixos?
logzet has quit [Remote host closed the connection]
logzet has joined #nixos
wchresta has quit [Remote host closed the connection]
<chrisaw> This is what I have so far: https://gist.github.com/cawilliamson/1e1279440b3e1504bf3c434f41e1ae76 - looks like a "nixos-rebuild switch" run doesn't apply the patch at all no matter what I change. :|
<tilpner> warrant.nix vs import ./warrant?
kiloreux has joined #nixos
morgib[m] has joined #nixos
<chrisaw> Oh, sorry! Tried to simplify the folder layout to make it simpler - didn't work out. :|
<{^_^}> [nixpkgs] @Pneumaticat opened pull request #42098 → looking-glass-client: a10 -> a11 → https://git.io/vh1wI
<chrisaw> tilpner: Thanks for the heads up - fixed that. It wasn't the problem - just tried to keep the gist simple and failed!
<Taneb> I want to write a nix derivation that edits a source file to replace exectuable names with paths to the nix store
<Taneb> When's the best phase to do that?
pie_ has joined #nixos
<tilpner> chrisaw - My only guess'd be that you access warrant directly, or access a different warrant
<booglewoogle> kreetx: got the example from the github working, now trying to make sense of what exactly happened there, haha
<tilpner> (It's working, but doing the wrong thing)
<tilpner> chrisaw - Just to make sure, default.nix is a module that you have imported into your NixOS configuration, right?
<chrisaw> tilpner: the strange thing is - even if I install it using: nix-env -iA nixos.python3Packages.warrant - it still doesn't apply the patch.
<chrisaw> tilpner: correct
<kreetx> booglewoogle: haha
<tilpner> chrisaw - That's expected, nixpkgs.overlays does not affect nix-env by default (though it can be made to do so)
<chrisaw> tilpner: Ahh ok! That explains that one then.
<tilpner> (nix-env is weird and should be avoided if possible IMO)
<kreetx> booglewoogle: as far as my nix-fu has taken me, expressions with certain structure (type) need to be at the correct places, and then everything works, otherwise explodes
<booglewoogle> for example, how would i go about installing ghc-mod in that environment? if you happen to know
<kreetx> booglewoogle: if the language were typed, the compiler would tell you, atm the runtime tells you
<tilpner> chrisaw - And nixos-option nixpkgs.overlays confirms that there are as many overlays as you are trying to set?
<chrisaw> tilpner: Sorry, you've lost me there. As in - the overlays I'm setting actually exist? If so, yes.
<kreetx> booglewoogle: do you mean in the context of shell.nix -- i.e at dev time?
<tilpner> chrisaw - Run "nixos-option nixpkgs.overlays"
<booglewoogle> i suppose, yeah
<chrisaw> tilpner: "Value:" - nothing output. Strange because I actually have 3 package overlays for individual packages and the other 2 are working great. Just this one isn't.
<chrisaw> tilpner: Oh just a sec - verbose tells me it can't parse one.
<tilpner> nix-instantiate --eval -E 'with import <nixpkgs/nixos> {}; builtins.length config.nixpkgs.overlays'
<tilpner> Could also try that one
<avn> Folks, anyone success building chromium from master? Last month I have success building all my `world`. but chromium -- https://gist.github.com/avnik/2fdf8510a2daecb2dc59ddb6015c091a
<truthadjustr> tilpner: thanks.. how to find possible values for virtualisation.virtualbox.host.enableExtensionPack? tried to google, tried 'true' but it's not accepting
<tilpner> truthadjustr - true and false, none other should be accepted
<booglewoogle> i'm just trying to put the pieces of what's happening here at all together. new to both nixos and haskell (or developing at all really)
<chrisaw> tilpner: Typo in one of them while I was experimenting. Fixed that. Result is now: 3
<booglewoogle> seems hard to find comprehensive and up-to-date info about this otherwise :p
<chrisaw> Which is the same amount as I actually have
<tilpner> chrisaw - Now the nixos-rebuild again, I guess?
<truthadjustr> tilpner: 'virtualisation.virtualbox.host.enableExtensionPack = true;' is not accepted either
ivanfon[m] has joined #nixos
<tilpner> Ah, it's recent
<chrisaw> tilpner: Same error from the pkg: "ModuleNotFoundError: No module named 'pip.req'" - that's beause it needs the pip10 support patch which is what I'm trying to apply. :)
<kreetx> booglewoogle: (I don't use it myself, don't run nixos as my dev machine, etc, but:) I think you need to find a way to do something in the lines of 'nix-env --install ghc-mod'
<kreetx> since it's an executable, right?
<truthadjustr> tilpner: error is here https://asciinema.org/a/je7UkefniFs4OKZACTa6tJE4c
<kreetx> it didn't work for me just now, but somehow the installing of haskell executables needs to be possible
<tilpner> truthadjustr - It's only available on nixos-unstable
<kreetx> since it's on hackage, it pretty much needs to be in nix's haskell packages
<kreetx> booglewoogle: learning haskell and nix together seems quite a combination -- hope you're on a tight deadline also :p
<tilpner> chrisaw - I'll be gone for ~40min, can try again afterwards
<booglewoogle> yeah, makes sense. i'll try
<booglewoogle> kreetx: haha, nah, nothing like that at all, that's just out of private interest
<kreetx> booglewoogle: either you install ghc-mod -- then it should be something like the command above; or: you have also a dev environment through shell.nix -- then you have to define it there somehow
<booglewoogle> i've read that nix(os) supplements haskell development really well, and i've chosen to learn haskell as a first language (apart from some rudimentary python)
<kreetx> I'm not that far yet, so I don't know how any of these are done
<booglewoogle> okay
<truthadjustr> tilpner: ok.. how can i install it as a normal user? i don't want to switch my main system to unstable
<kreetx> here's a video explaining bits on haskell+nix: https://www.youtube.com/watch?v=G9yiJ7d5LeI
<kreetx> it's not on nixos, but the shell.nix part was in there somewhere
<booglewoogle> ooh, nice, thanks!
<kreetx> you can also search github for shell.nix -- must be thousands of those there I think
<{^_^}> [nixpkgs] @Pneumaticat opened pull request #42099 → Helmfile updates (0.16.0 -> 0.19.0, use wrapProgram) → https://git.io/vh1wy
<{^_^}> [nixpkgs] @hedning opened pull request #42100 → copyq: 3.3.1 -> 3.4.0 →
<booglewoogle> okay, i've tried to install ghc-mod (haskellPackages.ghc-mod as found in the nixos package search) via my configuration.nix now. getting "error: The option value `environment.systemPackages.[definition 40-entry 45]' in `/etc/nixos/configuration.nix' is not of type `package'."
<booglewoogle> anyone know what that's about?
<chrisaw> tilpner: Just found out I can workaround the issue and make home-assistant not require that package in the first plae. Happy with that workaround for now. Thanks for your help! :)
<truthadjustr> i can't run 'nix-repl' as normal user. Error says: error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
<clever> truthadjustr: either use `NIX_REMOTE=daemon nix-repl` or `nix repl`
<truthadjustr> clever: tanxs..both alternative works!
chrisaw has quit [Ping timeout: 240 seconds]
<truthadjustr> i have virtualbox. But the virtualisation.virtualbox.host.enableExtensionPack = true is only available in the unstable channel. How can I have this setting as normal user? I don't want to switch my main system to unstable
xy2_ has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @dje4321 opened pull request #42101 → Brightnessctl → https://git.io/vh1rL
xAFFE has left #nixos ["Error from remote client"]
<{^_^}> [nixpkgs] @dje4321 closed pull request #42101 → Brightnessctl → https://git.io/vh1rL
<{^_^}> [nixpkgs] @dje4321 reopened pull request #42101 → Brightnessctl → https://git.io/vh1rL
johanot has quit [Ping timeout: 240 seconds]
hoshineko has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @dje4321 closed pull request #42101 → Brightnessctl → https://git.io/vh1rL
hoshineko has joined #nixos
xy2_ has joined #nixos
<tilpner> truthadjustr - You can replicate that behaviour manually, by overriding global virtualbox with virtualbox.override { enableExtensionPack = true; }
justanotheruser has quit [Ping timeout: 248 seconds]
roberth has quit [Ping timeout: 245 seconds]
roberth has joined #nixos
thblt has joined #nixos
Ariakenom has quit [Quit: Leaving]
mkoenig has quit [Ping timeout: 240 seconds]
<truthadjustr> tilpner: in /etc/nixos/configuration.nix ?
rprije has quit [Remote host closed the connection]
juhe has joined #nixos
rprije has joined #nixos
ryantrinkle has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<tilpner> truthadjustr - I'd use an overlay for that. self: super: { virtualbox = super.virtualbox.override { enableExtensionPack = true; }; }
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<juhe> Hello, is it possible to use nixops to deploy from x86_64 to arm? Or, slightly differently, is it possible to cross compile nixos stuff on x86_64 for arm?
<clever> juhe: this is an example i had tested, that deploys to arm, but it needs arm build slaves to build
<tilpner> clever - A while ago, you wanted to provide your qemu-user thing as a module, but it needed Nix patches. Any progress on getting those merged?
<juhe> clever: thanks, so I'd need to setup also nix.buildMachines to contain arm builder(s), is that correct?
<clever> tilpner: the nix patch has been merged into nix master
<clever> juhe: yep
roberth has quit [Ping timeout: 245 seconds]
<juhe> clever: ok, thx
<kreetx> I'm testing this https://stackoverflow.com/questions/43375880/how-to-build-a-docker-container-with-nix to create a docker from macos, but when I run it it says 'standard_init_linux.go:190: exec user process caused "exec format error"'. I'm guessing it's an archetecture mismatch, but can't seem to be able to to build for linux (which is what docker always runs, right?)
<kreetx> it looks like it builds the docker on the macos, and then running that inside docker fails
MinceR has quit [Ping timeout: 248 seconds]
<kreetx> I added this "--builders 'ssh://nix-docker-build-slave x86_64-linux'" to the nix-build command to no avail
MinceR has joined #nixos
<clever> kreetx: if you `import <nixpkgs> {}` it can default to darwin, and then embed darwin binaries into the docker image
<tilpner> clever - Great, thanks!
igo95862 has joined #nixos
<kreetx> clever: how could I go around it? Was thinking that perhaps adding the builder would do. Hmm, also wondering how do I know if it's really using the builder?
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #42090 → mgba: 0.6.1 -> 0.6.3 → https://git.io/vh1Cz
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vh1KJ
<rizary> i still got the error even though i use my modifiedHaskellPackages.mkDerivation, the gist for the code and error is here https://gist.github.com/Rizary/edd4fce81f984c619377aa3936690652
<kreetx> ok, running nix-build with --verbose shows paths that are on my macos, so it's definitely not using the builder
Ariakenom has joined #nixos
<rizary> is there any possible way to have like `buildPhase = cabal new-build .` then `installPhase = cp dist-newstyle/... $out/bin/`
<{^_^}> [nixpkgs] @peti pushed 6 commits to master: https://git.io/vh1KU
mk-fg has quit [Ping timeout: 256 seconds]
<LnL> rizary: don't add cabal-install yourself it's already in the haskell build environment
igo95862 has quit [Quit: igo95862]
sary has joined #nixos
<booglewoogle> hum. how come i can install 'hdevtools' via the install command ('nix-env -iA nixos.haskellPackages.hdevtools' as given in the nixos package search) no problem, but when I add it to my configuration.nix, it gives me an error ('The option value `environment.systemPackages.[definition 40-entry 45]' in `/etc/nixos/configuration.nix' is not of type `package'.')
<booglewoogle> what's going on here?
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
<LnL> someyhing you added to systemPackages is not a package
andymandias has quit [Ping timeout: 260 seconds]
andymandias has joined #nixos
<booglewoogle> yeah that's 'haskellPackages.hdevtools', which from my understanding is a package though? https://nixos.org/nixos/packages.html#haskellpackages.hdevtools
<booglewoogle> i can install it using 'nix-env -iA nixos.haskellPackages.hdevtools', too
<{^_^}> [nixpkgs] @pSub pushed to master « calibre: 3.25.0 -> 3.26.1 »: https://git.io/vh1KV
<rizary> LnL: hmm so in order to use upstream cabal-install, i just need to override it? IIRC if i want to have cabal-install in my nix-shell environment (for example) i have to put it under buildInput
<sphalerite> booglewoogle: can you maybe show us the contents of your configuration.nix?
sbdchd has joined #nixos
<booglewoogle> yeah, sure: https://pastebin.com/G44zjdH1
<rizary> or is that a different case?
<booglewoogle> okay, got it. i fiddled some more and 'haskell' was the culprit that doesn't belong there. nevermind me.
johanot has joined #nixos
<LnL> rizary: ah, yes the nix build doesn't interact with cabal-install directly (haskellPackages.mkDerivation { ... }).env gives you a shell environment where you can run cabal build IIRC
<rizary> i see...
johanot has quit [Client Quit]
<LnL> also not sure how new-build interacts with the nix infrastructure
johanot has joined #nixos
matthewbauer has joined #nixos
init_6 has joined #nixos
sorixelle has quit [Ping timeout: 245 seconds]
<hoshineko> how hard is it to make a nix expression for a package that's not in the channels?
<{^_^}> [nixpkgs] @dje4321 opened pull request #42102 → brightnessctl: init at 0.3.2 → https://git.io/vh16D
<LnL> extending nixpkgs is really easy, the expression depends on what you're trying to package
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
hiroshi has quit [Ping timeout: 264 seconds]
b has quit [Quit: Lost terminal]
lukelau has left #nixos [#nixos]
<hodapp> I do it in shell.nix files all the time
sary has quit [Ping timeout: 276 seconds]
<hodapp> for things like Python packages or builds that are just C/C++ with Makefiles or CMake it's not hard (unless the builds are broken crap, which sometimes they are)
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos
truthadjustr has quit [Quit: leaving]
<{^_^}> [nixpkgs] @grahamc merged pull request #42088 → vsenv, vs90wrapper: delete → https://git.io/vh1cz
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/vh1iV
<rizary> so i have try with both `(haskellPackages.mkDerivation {..}).env` and `let pkg = haskellPackages.callPackage ({mkDerivation}: ...) in pkg.env
<rizary> i'm able to enter into nix-shell, but when i do `cabal --version` it still use my global `cabal-install` version.
<clever> rizary: nix doesnt provide a cabal binary, only the cabal library
<clever> rizary: you must use `runhaskell Setup.hs` to access cabal
fendor has joined #nixos
inquisitiv3 has quit [Read error: Connection reset by peer]
<rizary> clever: that is the case when i already have `.cabal` in my folder, cmiiw?. On another case, how to have the updated `cabal-install` (binary) version (upstream version is 2.3.0.0) in my nix-shell environment?
phdoerfler has quit [Quit: Leaving.]
inquisitiv3 has joined #nixos
sbdchd has quit [Remote host closed the connection]
daveo has joined #nixos
daveo is now known as mconstant
<mconstant> Has anybody tried using jenkins-x with NixOS/
<mconstant> ?
<mconstant> think I might be having more luck now
<mconstant> using nix-shell and bundix while doing `jx import` on a rails project
sbdchd has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
<rizary> hmm okay i think i am missing something. When i do `nix-shell -p haskell.compiler.ghc822` i am able to enter nix-shell and i already have `cabal-install` in it. I can't run `nix-shell -p haskell.packages.ghc822` though
<rizary> so i check repl, and found that i can't find cabal-install in `pkgs.haskell.compiler.ghc822` but i can find it in `pkgs.haskell.packages.ghc822.cabal-install`
<rizary> `pkgs.haskell.packages.ghc822`
<{^_^}> [nixpkgs] @pSub pushed to master « gource: 0.48 -> 0.49 »: https://git.io/vh11s
sbdchd has quit [Remote host closed the connection]
sbdchd has joined #nixos
<{^_^}> [nixpkgs] @pSub pushed to master « logstalgia: 1.1.1 -> 1.1.2 »: https://git.io/vh11Q
alex`` has quit [Quit: WeeChat 2.1]
alex`` has joined #nixos
<{^_^}> [nixpkgs] @pSub merged pull request #42078 → soapui: init at 5.4.0 → https://git.io/vhXjQ
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/vh1MU
alex`` has quit [Client Quit]
alex`` has joined #nixos
sary has joined #nixos
johanot has quit [Ping timeout: 264 seconds]
simukis has quit [Read error: Connection reset by peer]
simukis has joined #nixos
<{^_^}> [nixpkgs] @eadwu opened pull request #42103 → glava: init at v1.4.5 → https://git.io/vh1Ss
<Taneb> Does anyone know if it's possible to get a nix-bundle to forward an environment variable when it's run?
hiroshi has joined #nixos
juhe has quit [Quit: Leaving.]
johanot has joined #nixos
<jcrben> nixpkgs:staging is failing https://hydra.nixos.org/jobset/nixpkgs/staging: bunch of "<pkg> is not supported on ‘aarch64-unknown-linux-gnu’"
<gchristensen> jcrben: those are just evaluation errors, and hydra ignores evaluation errorrs
<jcrben> ah cool
xcmw has joined #nixos
<jcrben> wondering why it doesn't seem to be running its queued jobs...
<gchristensen> jcrben: its running a bunch of other jobs :) https://hydra.nixos.org/all
<jcrben> so staging sits lower in the priority? hydra could use more machines?
<gchristensen> staging has lower priority. hydra has auto-scaling configured, including several very beefy machines
<jcrben> cool. I'm guessing there's some sort of queuing involved so that staging will eventually be prioritized ahead of other jobsets
<{^_^}> [nix] @symphorien opened pull request #2234 → libstore/gc.cc: ignore ESRCH when reading symlinks in /proc → https://git.io/vh194
<gchristensen> as far as I understand it, each jobset gets a certain slice of time where it is priority
rihards has quit [Quit: rihards]
<jcrben> is there code for this infrastructure online? I noticed https://github.com/NixOS/nixos-org-configurations/tree/master/hydra-provisioner
<gchristensen> sure
<gchristensen> the repo is called hydra-provisioner iirc :)
<jcrben> ah cool, it says at the bottom of that readme that a real-world example is the one I linked above
<rizary> so i've tried `myEnv = haskellPackages.ghcWithPackages (pkgs: with pkgs; [cabal-install]); in pkgs.stdenv.mkDerivation rec {... buildInputs = [ myEnv ]; }` and i can enter the shell with the given ghc and cabal-install
<rizary> but still, my `modifiedHaskellPackages.ghcWithPackages` return the same error..
hoshineko has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @pSub merged pull request #42079 → dwm-status: 0.4.0 -> 0.5.1 → https://git.io/vh1eH
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/vh19w
<{^_^}> [nixpkgs] @pSub merged pull request #42063 → Udiskie appindicator → https://git.io/vhPi5
<{^_^}> [nixpkgs] @pSub pushed commit from @IvanMalison to master « Udiskie appindicator (#42063) »: https://git.io/vh196
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hoshineko has joined #nixos
alunduil has joined #nixos
camsbury has joined #nixos
<rschm> any pointer to installing nixos on virtualbox? i tried but without much success with the kde gui. it either didn't terminate or i could get it to work with xcfe but without auto scaling. thanks for your help.
oltoAltn has quit [Quit: ZNC - https://znc.in]
olto has joined #nixos
xy2_ has quit [Ping timeout: 256 seconds]
Lears has joined #nixos
[Leary] has quit [Ping timeout: 255 seconds]
rprije has quit [Remote host closed the connection]
xcmw has joined #nixos
<cocreature> rizary: which error are you seeing? (sry I don’t want to scroll through all of the backlog to figure out where you mentioned it before)
rprije has joined #nixos
<rizary> cocreature: ^
<cocreature> rizary: hm that kind of looks like you might be trying to use cabal-install as a library whereas it only contains an executable
justanotheruser has joined #nixos
<jcrben> rschm: have you looked at https://github.com/nix-community/nixbox?
<cocreature> rizary: how exactly have you modified haskellPackages?
<rschm> i did use something that is derived from it https://github.com/nix-community/vagrant-nixos-plugin.
<rschm> that is what i am using.
<rschm> thought it is going to be smooth sailing. but not yet so far.
<jcrben> rschm: what errors are you hitting? what commands are you running? I can try on my machine
<rschm> when i login to the xfce, i can't rescale the windows.
<rschm> and if i change the size manually, it freezes.
<rschm> change the size from the view menu in virtualbox.
<rizary> cocreature: whereas `cabal.nix` only contain `nix-prefetch-git` result to the upstream cabal
<rschm> let me paste the simplest configuration.nix file that i could get it to create an instance.
<jcrben> I've only used KDE in nixos. I'm wary of straying off the beaten path
<rschm> i would love to have kde.
<jcrben> so what happens with kde?
<rschm> but it didn't even get the instance. it just hangs in the provision.
<rschm> let me pastie it real quick.
<rschm> let me do another one for kde.
<cocreature> rizary: hm weird, I don’t see anything obviously wrong. might be interesting to try it with 8.4 and see if you hit the same issue
<rschm> appreciate your help.
<cocreature> rizary: or maybe try setting isLibrary explicitely to false
nallar has joined #nixos
<cocreature> rizary: it might also be worth a shot to manually run cabal2nix and comparae the result to hackage-packages.nix
<cocreature> *the cabal-install derivation in hackage-packages.nix
Ross has quit [Ping timeout: 264 seconds]
nallar is now known as Ross
<rizary> cocreature: okay will do
<jcrben> rschm: can't make promises - I gotta head out and run errands in a sec, but I'll keep it in mind. I did get nixos running in virtualbox a few months ago using packer - you could try cloning down https://gitlab.com/jcrben-play-learn/nixos-packer
<jcrben> can't remember how flaky it was tho
sbdchd has quit [Remote host closed the connection]
<rschm> appreciate your help still. thanks.
inquisitiv3 has quit [Ping timeout: 260 seconds]
hoshineko has quit [Ping timeout: 260 seconds]
<jcrben> rschm: also, are you on the latest virtualbox? what's your host os?
<rschm> all are latest.
<jcrben> linux? mac? windows?
<rschm> i tried nixos-graphical-18.03.132628.a381b789984-x86_64-linux and it works great with scaling.
<rschm> mac
endformationage has joined #nixos
<rschm> but in vagrant it just doesn't work.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ariakenom has joined #nixos
aexoxea has quit [Quit: Goodbye!]
hoshineko has joined #nixos
Ross has quit [Ping timeout: 276 seconds]
Ross has joined #nixos
johanot has quit [Remote host closed the connection]
sary has quit [Ping timeout: 245 seconds]
<hoshineko> hello, there is a package (sxiv) that accepts an optional argument (conf) which is a header file, I am unsure of how to pass this argument
sary has joined #nixos
<hoshineko> https://my.mixtape.moe/wnwkaq.nix this is the nix expression of the package
Tau has joined #nixos
chrisaw has joined #nixos
Tau has left #nixos [#nixos]
dqsii has joined #nixos
Sirio has joined #nixos
<gchristensen> on nixos?
<Sirio> Hello to everybody :) I have installed NixOS on my laptop. It is revolutionary.
<gchristensen> Sirio++!
<rizary> another question, (note: running nixos on hyper-v windows) i have nix-channel `nixos https://nixos.org/channels/nixos-18.03`, so when i want to upgrade my nixos (17.09), i run `sudo nix-channel --update nixos`, but why i'm still download the 17.09 version?
<gchristensen> rizary: have you run nixos-rebuild switch yet?
<rizary> try remove `sudo`, it download the 18.03, but when i run `nixos-version` it still the `17.09` version, try running `sudo nixos-rebuild switch` also the same
<gchristensen> oh download
<tilpner> hoshineko - sxiv.override { conf = ./conf; }
<tilpner> Hmm, conf seems like it's supposed to be a string
<tilpner> sxiv.override { conf = ''...''; }
<Sirio> @rizary after update the snapshot of your channel, you have to upgrade actually with "nixos-rebuild switch"
chrisaw has quit [Ping timeout: 264 seconds]
<gchristensen> rizary: maybe `sudo nix-channel --list`?
<{^_^}> [nixpkgs] @ryantm opened pull request #42106 → remmina: 1.2.0-rcgit.24 -> 1.2.30.1 → https://git.io/vh1Q6
<rizary> gchristensen: hah.. thanks. anyway, without `sudo` i'm getting error when running `nixos-rebuild switch` it says
<rizary> error: creating symlink from ‘/nix/var/nix/profiles/.0_system’ to ‘system-9-link’: Permission denied
<rizary> hmm
<rizary> so i need to add channel using sudo too Y_Y
<gchristensen> `nixos-rebuild` outputs that error when you call it without sudo.
sary has quit [Quit: Lost terminal]
<rizary> yep, but here https://nixos.org/nixos/manual/index.html#sec-upgrading we dont need sudo
<rizary> haha
<rizary> or maybe assuming it is under root user
<rizary> :)
<gchristensen> oh, the convention is that "# " means it is as root, and "$ " is as a user
<Sirio> root permissions is needed with nixos-rebuild command
<gchristensen> $ diskutil unmountDisk diskN
<gchristensen> Unmount of all volumes on diskN was successful
<gchristensen> # nixos-rebuild switch
<rizary> yeah i miss that part
<rizary> i thought it was a comment in the first place... my bad
<rizary> huft.. til
reinzelmann has joined #nixos
<Sirio> Is it possibile to install any application from source code on nixos? I know the make command and the typical location on /opt
<Sirio> Does it work as the same way on NixOS?
<gchristensen> I recommend you make a nix expression
<Sirio> I should learn how to make a nixos package
<hoshineko> tilpner: "config.h:1:1: error: expected identifier or '(' before '/' token"
<hoshineko> what does this mean
<hoshineko> wait that seems bo something about C and not nix
<tilpner> What did you pass as conf?
alunduil has quit [Remote host closed the connection]
<hoshineko> the path to the config file
<tilpner> Yes, I correct myself about that
<tilpner> sxiv.override { conf = ''...''; }
<tilpner> Where ... is C
<tilpner> Or conf = builtins.readFile ./conf.h
<hoshineko> oh okay, ty
<gchristensen> tilpner: that is very strange
<tilpner> I agree
<tilpner> It uses builtins.toFile to turn conf into a file, then copy it into place
logzet has quit [Remote host closed the connection]
<hoshineko> oh, something else, what would be the attribute path to my my-packages?, i usually just do -i my-packages but that takes really long
<tilpner> Probably -iA nixpkgs.myPackages, but you never told me what myPackages even is
<hoshineko> it's an override in my ~/.config/nixpkgs/config.nix that contains all of my packages i use
<hoshineko> myPackages = pkgs.buildEnv { name = "my-packages"; paths [ sxiv firefox and so on ]; }
<hoshineko> s/paths/paths =/
<tilpner> nix-env -f '<nixpkgs'> -iA myPackages
<tilpner> (Fix that quote)
lambdamu has quit [Ping timeout: 240 seconds]
dqsii has quit [Remote host closed the connection]
<hoshineko> ah, much better, thank you
<Sirio> Thank you gchristensen to indicate me https://github.com/NixOS/nixpkgs/find/master
<Sirio> I have found there more software than nix-env -qa package-name
<tilpner> Even better, shallow git clone + ripgrep :)
<tilpner> Also note that you can get that tree-find interface in any github repo by pressing "t"
<tilpner> ekleog++
<{^_^}> ekleog's karma got increased to 1
<Sirio> git clone bring to me almost a GB of nix files
<tilpner> That's why I said shallow!
<Sirio> (maybe due to .git archive)
<tilpner> ~ > git clone --single-branch --depth=1 https://github.com/nixos/nixpkgs && du -sh nixpkgs
<tilpner> 154M nixpkgs
<tilpner> Or the tarball, I guess
<ekleog> tilpner: Hmm, what brought me this? :°
<tilpner> ekleog - nheko maintain...ment?
<ekleog> Oh, gotcha, great it's useful :D
sbdchd has joined #nixos
<tilpner> :)
woodson has joined #nixos
sbdchd has quit [Ping timeout: 256 seconds]
tzemanovic has joined #nixos
devx has quit [Quit: . .. ...]
tzemanovic has quit [Ping timeout: 264 seconds]
devx has joined #nixos
<Sirio> --single-branch thank you tilper :)
iyzsong has quit [Ping timeout: 260 seconds]
jD91mZM2 has joined #nixos
xy2_ has joined #nixos
sbdchd has joined #nixos
<Sirio> Many parts of my nixos system (firefox browser too) is in English. I don't understand how to specify Italian language
sbdchd has quit [Ping timeout: 240 seconds]
<Sirio> it_IT.utf8 and it layout are ok
<gchristensen> tilpner: do you know about my search?
<tilpner> search.nix.gsc.io? I don't really use it
<gchristensen> yeah
rprije has quit [Remote host closed the connection]
<tilpner> It looks nice, but it doesn't really improve on a local checkout (It's a lot better than GitHub search though)
rprije has joined #nixos
<gchristensen> aye. I like it a lot because it searches every nixos organization's repo
<tilpner> Oh, I didn't even notice that
<gchristensen> and is always up to date with HEAD
hoshineko has quit [Ping timeout: 256 seconds]
hoshineko has joined #nixos
reinzelmann has quit [Ping timeout: 255 seconds]
reinhardt has joined #nixos
matthewbauer has quit [Read error: Connection reset by peer]
johanot has joined #nixos
hoshineko has quit [Ping timeout: 260 seconds]
matthewbauer has joined #nixos
<{^_^}> [nixpkgs] @swflint opened pull request #42108 → lice: init at 0.4 → https://git.io/vh1Ak
chrisaw has joined #nixos
<chrisaw> Hey folks! Does anyone know how I can ignore "incompatibleKernelVersion"? Trying to use an overlay overrideAttrs on zfsUnstable but no luck so far.
<chrisaw> Currently I've got: zfsUnstable = super.zfsUnstable.overrideAttrs (old { incompatibleKernelVersion = null; });
<chrisaw> Think I'm missing something obvious. >_<
hoshineko has joined #nixos
inquisitiv3 has joined #nixos
alexteves has quit [Ping timeout: 245 seconds]
alexteves has joined #nixos
matthewbauer has quit [Ping timeout: 240 seconds]
matthewbauer has joined #nixos
<Sirio> Is there a place to specify the own language for all packages?
aarvar has joined #nixos
xy2_ has quit [Ping timeout: 240 seconds]
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos
m0rphism has joined #nixos
pie_ has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
jD91mZM2 has quit [Ping timeout: 240 seconds]
reinhardt has quit [Quit: Leaving]
xy2_ has joined #nixos
alex`` has quit [Quit: WeeChat 2.1]
tzemanovic has joined #nixos
tenten8401 has joined #nixos
<tenten8401> Anyone know if there's a way to get the latest and greatest Plasma 5.13 without switching my entire system to unstable?
orivej has quit [Ping timeout: 255 seconds]
<tenten8401> Is there something here like "kde-unstable" on Arch?
<Sirio> maybe with override that package, but i can't offer better information
matthewbauer has quit [Ping timeout: 256 seconds]
<Sirio> I have unstable channel on very recent laptop and all good
tzemanovic has quit [Ping timeout: 265 seconds]
<tenten8401> Does unstable break very often?
<tenten8401> I'd be fine with the occasional breakage since I can simply rollback
<tenten8401> but if it's gonna break every time I upgrade I'd rather not
pie_ has joined #nixos
<Sirio> maybe I have been lucky
halfbit has joined #nixos
contrapumpkin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Sirio> I'm trying nixos since a week....
contrapumpkin has joined #nixos
<tenten8401> I'll try it anyways, really don't have much to loose with atomic updates
contrapumpkin has quit [Client Quit]
<tenten8401> What are you using to set it to unstable? Just syncing the unstable channel with a command or are you defining it in configuration.nix somehow?
contrapumpkin has joined #nixos
contrapumpkin has quit [Client Quit]
contrapumpkin has joined #nixos
contrapumpkin has quit [Client Quit]
<Sirio> when I installed it I've defined unstable on configuration.nix
<tenten8401> if you don't mind me asking, how are you defining it?
<Sirio> I have remove channel 18.03 and add unstable for sure, updated it, but this step maybe it doesn't need
<alphor> is there a statically typed language that works well with nix? Java, kotlin, scala don't seem to have the support.
<alphor> haskell might be too steep a climb for me, I think.
<tenten8401> oh do you only need system.stateVersion = unstable?
<Sirio> yes
<chrisaw> tenten8401: system.nixos.stateVersion = "18.09"
woodson has quit [Ping timeout: 240 seconds]
init_6 has quit [Ping timeout: 248 seconds]
<chrisaw> Haven't tried "unstable" but either way - it's system.nixos.stateVersion now - system.stateVersion was obsoleted after 18.03
<tenten8401> doesn't look like it's wanting to update anything after trying unstable and 18.09
<Sirio> system.stateVersion = "unstable";
<Sirio> system.defaultChannel = "https://nixos.org/channels/nixos-unstable";
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #42109 → lightning: 2.1.0 -> 2.1.2 → https://git.io/vh1p4
<tenten8401> even after setting that it doesn't wanna seem to update
<tenten8401> I'll push to gitlab real fast 1s
<chrisaw> tenten8401: What are you running to perform the update?
<tenten8401> nixos-rebuild switch
<chrisaw> Add --upgrade
<chrisaw> Or: nix-channel --update first
<tenten8401> seems to be doing something, it's just hanging with no input but I'll let it go for a bit
<tenten8401> nope
<tenten8401> I have system.stateVersion = 18.09 and defaultChannel = nixos.org/channels/nixos-unstable
<Sirio> put "https://" too
<tenten8401> I did
<tenten8401> still nothing
<Sirio> when you execute nixos-rebuild switch, nixos uses new configuration.nix, you have to reboot too and to select generation 2 (or the next number from current generation)
<tenten8401> I have to reboot after setting the channel to unstable?
<Sirio> if something go wrong: reboot and select previous good generation
<chrisaw> Nah - I doubt it. Not unless you're changing your kernel.
<tenten8401> yeah, nothing's wrong
vaninwagen_ has joined #nixos
<tenten8401> It just won't switch to unstable
<tenten8401> doing nix-channel --list spits out 18.03 still
<Sirio> you can try the nix-channel command
<Sirio> ok
<chrisaw> nix-channel --add https://nixos.org/channels/nixos-unstable
<Sirio> ok, but remove 18.03 too
<tenten8401> is there a way I can define it in my configuration file though instead of adding it manually?
<chrisaw> Then remove 18.03 with nixos --del nixos-18.03 (or similar)
<Sirio> --remove
<chrisaw> *nix-channel (not nixos - oops!)
<gchristensen> *don't* use nixpkgs-unstable for NixOS
<tenten8401> was just gonna ask about that
aarvar has quit [Quit: Leaving.]
<gchristensen> !which channel
<chrisaw> No? Why not?
<tenten8401> pretty sure nixpkgs is for non-nixos installs of nix
<gchristensen> ^ that link explains more
<chrisaw> Ah righto, cheers!
<Sirio> nixos-unstable has got all latest versions, nixpkgs channel doesn't need, I don't have it
woodson has joined #nixos
<tenten8401> I did the nix-channel commands to add nixos-unstable and --list to confirm only nixos-unstable had been added
matthewbauer has joined #nixos
<tenten8401> however I only got like 10 updates
<tenten8401> coming from the stable 18.03
<tenten8401> shouldn't unstable have more than that?
<tenten8401> I take that back
<Sirio> you must have only channel in the list, is not it?
<tenten8401> it re-built it again
<tenten8401> and filled it with so many updates I can't scroll back up
toby1851 has quit [Ping timeout: 245 seconds]
<tenten8401> so do I really need to use nix-channel if I want to switch it to unstable instead of defining the channel in my config.nix?
toby1851 has joined #nixos
<gchristensen> yes
<Sirio> at installation stage I have used configuration.nix and it have worked
<Sirio> to get unstable channel
<gchristensen> you cannot configure the channel in configuration.nix
<gchristensen> there is no mechanism to do so
<Sirio> system.defaultChannel = "https://nixos.org/channels/nixos-unstable"; ?
<tenten8401> I had that set but it didn't seem to wanna take effect
<tenten8401> I didn't reboot though so idk
<tenten8401> I mean, it works as of now after messing with nix-channel
<gchristensen> that option is not intended to be used, it is an internal-only option (note it is undocumented in `man configuration.nix`) and it only works at install time, indeed
<gchristensen> Sirio: how did you come to learn about it?
<Sirio> I understand. defaultChannel is only and index, but if we don't specify a channel with nix-channel, it doesn't get anything
<Sirio> *an index
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
<tenten8401> should stateVersion still be 18.09 or unstable?
<gchristensen> did you read the comment?
<tenten8401> I'm not sure if "unstable" is considered a NixOS version though
<tenten8401> and up above I heard I should set it to both unstable and 18.09
<gchristensen> You should change this only after NixOS release notes say you should.
<tenten8401> <chrisaw> tenten8401: system.nixos.stateVersion = "18.09" | <Sirio> system.stateVersion = "unstable";
<gchristensen> Sirio is wrong
<tenten8401> I'll keep it 18.09 then
igo95862 has joined #nixos
<gchristensen> that was more rude than I intended
<gchristensen> Sirio: you should keep 18.09 as your state version
matthewbauer has quit [Ping timeout: 256 seconds]
<Sirio> ok
<flyx> hi folks! I'm trying to setup NixOS on my server. so far, I get a command line „GRUB C“ after installation, which means my GRUB is broken according to the internets. if I boot the install disk again, I see that there are FAT errors on /boot. /boot seems fine right after nixos-install, but it happens every time on reboot. what could cause this?
<pie_> "Most importantly, for tinc to be able to resolve host-names inside the chroot environment, you must copy /etc/resolv.conf intothe chroot directory."
<pie_> whats the appropriate way to do that with nix?
<manveru> is there some cc executable for llvm
<LnL> clang?
<manveru> so that wouldn't make the closure much bigger?
<manveru> thanks :)
rprije has quit [Remote host closed the connection]
vaninwagen_ has quit [Ping timeout: 256 seconds]
rprije has joined #nixos
<gchristensen> clever: do you run multiple buildkite agents per machine at IOHK?
toby1851 has quit [Ping timeout: 264 seconds]
woodson has quit [Ping timeout: 260 seconds]
roberth has joined #nixos
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/vh1hD
<{^_^}> [nixpkgs] @pSub merged pull request #42109 → lightning: 2.1.0 -> 2.1.2 → https://git.io/vh1p4
<pie_> copying the resolv.conf doesnt reall sound like the right way to do it? do i have a way to generate another one or...
<pie_> ?
wchresta has joined #nixos
Sirio has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
<{^_^}> [nixpkgs] @pSub merged pull request #42019 → gpodder: 3.10.1 -> 3.10.2 → https://git.io/vhi6F
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/vh1hj
<{^_^}> [nixpkgs] @pSub merged pull request #42006 → jgmenu: 0.9 -> 1.0 → https://git.io/vhisq
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/vh1jf
tenten8401 has quit [Quit: Page closed]
sbdchd has joined #nixos
vaninwagen has joined #nixos
mconstant has quit [Ping timeout: 245 seconds]
testuser_ has joined #nixos
daveo has joined #nixos
jperras has joined #nixos
matthewbauer has joined #nixos
<hoshineko> anyone using luakit?, i'm getting this thing https://i.imgur.com/kDDvLhR.png
<hoshineko> installing glib-networking doesn't work btw
redj has quit [Ping timeout: 268 seconds]
xcmw has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
roberth has quit [Ping timeout: 264 seconds]
hotfuzz has joined #nixos
hotfuzz_ has quit [Ping timeout: 240 seconds]
<sphalerite> hoshineko: I was so confused at first. Thought that was an error message in my browser, not the actual image.
<hoshineko> haha
<sphalerite> like "that's not the image's URL!"
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos
<sphalerite> anyway, it's probably a matter of it not looking in the right places. You could try to run your thing with strace to see where it's looking and what it's failing to find
<sphalerite> something like strace -fe file -o >(grep ENOENT) your command here
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/vh1jy
<{^_^}> [nixpkgs] @nlewo merged pull request #42068 → etherape: 0.9.17 -> 0.9.18 → https://git.io/vhXZV
<sphalerite> There will be a lot of files that are eventually found which won't be relevant, but if you can find anything with glib-networking that could be interesting. If it's a .so path that's missing you might need to wrap your program to set LD_LIBRARY_PATH
<sphalerite> there's also some sort of gobject-introspection stuff, maybe "typelib" files, where the search path can be controlled with some similar environment variable.
<sphalerite> I'm not sure about the exact details though, I haven't really used lua stuff at all nor do I know that much about glib* packaging
<sphalerite> Hope it at least gives you some paths to pursue :)
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos
<hoshineko> well there's a lot of glibc attempts, but no glib-networking
<sphalerite> oh yeah, you could of course also grep networking rather than ENOENT
<hoshineko> there's nothing like that in the strace logs
matthewbauer has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @mupfelofen-de opened pull request #42111 → Add mupf to maintainer-list.nix → https://git.io/vhMee
matthewbauer has joined #nixos
<sphalerite> hoshineko: does setting GI_TYPELIB_PATH=$(nix-build --no-out-link '<nixpkgs>' -A glib-networking) help?
<sphalerite> err
<sphalerite> $(nix-build --no-out-link '<nixpkgs>' -A glib-networking)/lib/girepository-1.0
<sphalerite> hm wait no Gio modules seem to be something separate from GI libraries
<sphalerite> bleeeeh
<sphalerite> GIO_EXTRA_MODULES=$(nix-build --no-out-link '<nixpkgs>' -A glib-networking)/lib/gio/modules
<sphalerite> I think that should work hopefully.
<{^_^}> [nixpkgs] @matthewbauer pushed 5 commits to master: https://git.io/vhMem
<hoshineko> it did
<hoshineko> ty
<hoshineko> how do u figure that out tho
emmanuelrosa has joined #nixos
<sphalerite> I had a look at the files in glib-networking, found that there were "gio modules" in lib/gio/modules
<sphalerite> the sensible thing to do from there would be to grep for lib/gio/modules in nixpkgs to look for prior path settings, and that would have got me to the solution much quicker
johanot has quit [Ping timeout: 245 seconds]
<sphalerite> but I grepped for GIO_ in all the existing wrapper scripts I have instead, because that's what I (correctly) suspected the environment variable to look like
<sphalerite> unfortunately there's no one universal method for solving this sort of issue. But usually strace is useful, as is inspecting the contents of the allegedly missing dependency.
<{^_^}> [nixpkgs] @matthewbauer pushed to master « packagekit: fix platform typo »: https://git.io/vhMe2
karlguy has quit [Ping timeout: 260 seconds]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johanot has joined #nixos
matthewbauer has quit [Ping timeout: 256 seconds]
<emmanuelrosa> I'm writing a NixOS test for mpd and I don't understand why the test fails when I run `nix build -f mpd.nix` yet it works fine when I run the nixos-test-driver script and execute `testScript`. The difference that I see in the log is that when the test fails it's because it doesn't run the `mpc add ...` step. The test is here: https://github.com/emmanuelrosa/nixpkgs/commit/8c55e03e744b9cd5f91b3864fe212a15b6205685 Any ideas?
matthewbauer has joined #nixos
<emmanuelrosa> Nevermind, found the problem. The service I added to create the test "music library" was starting before mpd, and thus it failed.
<gchristensen> maybewait for the mkmusic unit
<chrisaw> Can anyone help me override incompatibleKernelVersion? So far I've got the following as an overlay: zfsUnstable = super.zfsUnstable.overrideAttrs (old { incompatibleKernelVersion = null; });
<{^_^}> [nixpkgs] @dywedir opened pull request #42112 → lf: 4 -> 5 → https://git.io/vhMvO
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
wchresta has quit [Remote host closed the connection]
vaninwagen has quit [Quit: WeeChat 2.1]
wchresta has joined #nixos
acarrico has joined #nixos
matthewbauer has quit [Ping timeout: 256 seconds]
toby1851 has joined #nixos
<chrisaw> Sadly no luck so far :|
<gchristensen> chrisaw: I think you would have to edit nixpkgs locally :/
<chrisaw> gchristensen: Really? I figured I'd be able to override that one variable but a bit mystified because the check for that variable happens outside of the actual package definition.
<gchristensen> yes
<chrisaw> I suppose I could fake the kernel version but that's super hacky :|
<gchristensen> because the check happens before you're able to override the package
jperras has quit [Ping timeout: 240 seconds]
<chrisaw> gchristensen: Silly question but is there any way to ignore a "break" and do a kind of forced install?
kreetx has quit [Ping timeout: 265 seconds]
amir has joined #nixos
<gchristensen> in this case, because of the way the error is created, no unfortunately
Lisanna has joined #nixos
booglewoogle has quit [Remote host closed the connection]
jperras has joined #nixos
<chrisaw> Oh well - that at least answers why I couldn't get such a simple change to work! :D
<{^_^}> [nixpkgs] @nlewo opened pull request #42113 → kubernetes-helm: 2.9.0 -> 2.9.1 → https://git.io/vhMv6
<Lisanna> Hey, anyone with a hydra instance available to give me some hints about a problem I'm having? my hydra site is trying to load a bunch of scripts with http:// and I setup the nginx connection to use SSL, and have forceSSL = true set on the virtualhost. Firefox is blocking the mixed http content from loading over the https connection, so the CSS and scripts on my hydra page aren't loading. Disabling that protection in firefox lets the site load fine, but
<Lisanna> I don't have to do this on hydra.nixos.org. What's up with that?
<chrisaw> gchristensen: I'll pick this up tomorrow. Pretty late here. Thanks for the help! :)
<gchristensen> yep!
chrisaw has quit [Quit: WeeChat 2.1]
<{^_^}> [nixpkgs] @nlewo closed pull request #42002 → kubernetes-helm: 2.9.0 -> 2.9.1 → https://git.io/vhims
myshoe has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @nlewo merged pull request #41957 → speedtest-cli: 2.0.1 -> 2.0.2 → https://git.io/vh66r
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/vhMvx
<{^_^}> [nixpkgs] @nlewo merged pull request #41967 → qjackctl: 0.5.1 -> 0.5.2 → https://git.io/vh6Xd
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/vhMff
<Lisanna> gchristensen thanks, now just have to convert that to nginx equivalents
<Lisanna> gchristensen got it, thank you!
<LnL> Lisanna: build the config with nix and copy the relevant parts
<Lisanna> LnL thanks, I got it working with setting those headers
<sphalerite> gchristensen: would love to meet up with you btw but the dates you're around don't fit with my availability at all :( another time hopefully!
<sphalerite> oops was meant for #nixos-chat
<sphalerite> ah well
vcunat has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 276 seconds]
rprije has quit [Ping timeout: 260 seconds]
xcmw has joined #nixos
redj has joined #nixos
rschm has quit []
<PolarIntersect> Does anyone have ideas on what would be most complicated or how difficult it'd be to fork and replace systemd in nixos? Like, are there systemd-specific things that are going to make this extremely difficult?
<gchristensen> yes
<PolarIntersect> hmm... Any specifics?
<gchristensen> all of nixos
<gchristensen> you might look at SLNOS, "Suck-less NixOS"
hph^ has joined #nixos
<PolarIntersect> But, like, does Nix depend on systemd?
<PolarIntersect> or just NixOS?
<gchristensen> nix does not
<PolarIntersect> dope
<PolarIntersect> That was my main concern :D
<PolarIntersect> Thank you, gchristensen <3
<gchristensen> yep!
<andi-> What is your requirement? No references to systemd on the systemd? Just another init system?
<PolarIntersect> Is SLNOS an actual suckless.org project?
<gchristensen> no
<PolarIntersect> ah
<PolarIntersect> andi-: No systemd processes running at all
Mrmaxmeier has quit [Remote host closed the connection]
<PolarIntersect> or isntalled
<andi-> that should/could be feasible. The other would require a bit of patching in all the different applications that might have a reference to it (dbus,...)
<srid> Is it possible to enable services (eg: `services.emacs`) from the `nixpkgs-unstable` channel?
<sphalerite> PolarIntersect: unlikely to be possible while maintaining binary cache compatibility, since a whole bunch of stuff links to udev and udev is provided by systemd. but I presume that won't be much of a concern for you
hiratara has quit [Ping timeout: 245 seconds]
<manveru> PolarIntersect: there's also not-os, which uses runit instead
Mrmaxmeier has joined #nixos
rschm has joined #nixos
<{^_^}> [nixpkgs] @plchldr opened pull request #42115 → hugo: 0.40.3 -> 0.42.1 → https://git.io/vhMfp
aarvar has joined #nixos
hiratara has joined #nixos
inquisitiv3 has quit [Remote host closed the connection]
rschm_ has joined #nixos
rschm has quit [Ping timeout: 248 seconds]
aarvar has quit [Ping timeout: 264 seconds]
contrapumpkin has joined #nixos
<PolarIntersect> oya? :D
<PolarIntersect> Do these leverage the packages from nixos or are they completely separate?
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<palo> I have problems with the kubernetes setup. I used 3 computer 1 master 1 node 1 client, ( I changed the kubeconf parameter for every service ) but when I deploy a service (and pods) I can't access the services but the pods. ( the services are in 10.0.0.0/24 but there is no route for that configured and the pods are in 10.1.0.0/24 there is a route for that. I did not touch any of the IP range stuff.
<PolarIntersect> sphalerite: I mean, rebuilding the binaries is a potential solution to that.
<palo> any advice ?
<PolarIntersect> You deployed a client as a server, or it's just your workstation?
<sphalerite> PolarIntersect: yep. Not sure replacing systemd with eudev for udev purposes would be accepted in nixpkgs itself though
wchresta has quit [Remote host closed the connection]
slyfox has quit [Quit: :)]
<sphalerite> PolarIntersect: https://github.com/cleverca22/not-os
<sphalerite> it does use nixpkgs iirc
<manveru> i don't think i've heard anything about SLNOS in a year
testuser_ has quit [Ping timeout: 255 seconds]
rschm_ has quit [Remote host closed the connection]
rschm has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #42102 → brightnessctl: init at 0.3.2 → https://git.io/vh16D
<{^_^}> [nixpkgs] @matthewbauer pushed commit from @dje4321 to master « brightnessctl: init at 0.3.2 (#42102) »: https://git.io/vhMJa
<PolarIntersect> :o
jwynn6 has quit [Ping timeout: 276 seconds]
<PolarIntersect> thanks sphalerite
matthewbauer has joined #nixos
aarvar has joined #nixos
chrisaw has joined #nixos
igo95862 has quit [Remote host closed the connection]
tzemanovic has joined #nixos
slyfox has joined #nixos
tzemanovic has quit [Ping timeout: 256 seconds]
slyfox has quit [Client Quit]
hiratara has quit [Quit: ZNC - http://znc.in]
fendor has quit [Quit: Leaving]
hiratara has joined #nixos
xy2_ has quit [Ping timeout: 260 seconds]
<elvishjerricco> Still battling with WiFi on my 2013 MacBook.
<elvishjerricco> "could not find module bcma-pci-bridge"
<elvishjerricco> Not sure how to fix that
chrisaw has quit [Quit: WeeChat 2.1]
<PolarIntersect> elvishjerricco: Where did that error come from
<elvishjerricco> PolarIntersect: I scrolled back in journalctl
phdoerfler has joined #nixos
asymmetric has joined #nixos
<PolarIntersect> which service did it come from?
pie_ has quit [Ping timeout: 265 seconds]
<elvishjerricco> gchristensen: Yea I have that. Did not fix it
worldofpeace has joined #nixos
<elvishjerricco> PolarIntersect: systemd-modules-load
<PolarIntersect> ah
<elvishjerricco> It's also followed by "b43-phy0 ERROR: FOUND UNSUPPORTED PHY"
<elvishjerricco> Though I do see "Broadcom 43xx driver loaded [ Features: PNL ]"
<PolarIntersect> Is your NIC not supproted by b43?
slyfox has joined #nixos
<elvishjerricco> PolarIntersect: How would I find that out?
<Lisanna> error: access to URI 'https://d3g5gsiof5omrk.cloudfront.net/nixos/18.03/nixos-18.03.132684.f3c913d466f/nixexprs.tar.xz' is forbidden in restricted mode
<Lisanna> but I passed a sha256 to builtins.fetchTarball <_<
<ben> Is there a trick to installing jekyll via nix? I tried "nix run nixpkgs.jekyll --command jekyll new my-jekyll-thing" and it failed with some missing gems.
<ben> eventmachine-1.2.7
<PolarIntersect> elvishjerricco: This may be useful? https://wireless.wiki.kernel.org/en/users/Drivers/b43
<PolarIntersect> I just DuckDuckGo'd "b43 supported devices"
<Lisanna> ah, found an apparent solution, but this is still pretty darn unintuitive: https://github.com/NixOS/nix/issues/2002
aarvar has quit [Remote host closed the connection]
asymmetric has quit [Remote host closed the connection]
asymmetric has joined #nixos
hydraz has quit [Remote host closed the connection]
hydraz has joined #nixos
hydraz has quit [Changing host]
hydraz has joined #nixos
<Lisanna> oh, it's IFD + restricted eval on hydra
<Lisanna> damn
pie_ has joined #nixos
<camsbury> any haskellers have hie setup for nixos?
<Lisanna> inb4 I literally just end up downloading the nixexprs.tar.xz straight into my repo
hydraz has quit [Quit: ZNC 1.7.0 - https://znc.in]
hydraz has joined #nixos
hydraz has quit [Changing host]
hydraz has joined #nixos
hydraz has quit [Client Quit]
jperras has quit [Ping timeout: 265 seconds]
hydraz has joined #nixos
hydraz has quit [Changing host]
hydraz has joined #nixos
* PolarIntersect wonders what a Hydra is
phdoerfler has quit [Quit: Leaving.]
<infinisil> camsbury: I do
<infinisil> I have*
<camsbury> nice
hydraz has quit [Client Quit]
<camsbury> I've been using nixos at home
<camsbury> trying to get into running haskell using nix/cabal
hydraz has joined #nixos
<infinisil> Last time I tried I couldn't get it work with cabal heh
<camsbury> and thus far I've pretty much been going off of https://github.com/Gabriel439/haskell-nix
<camsbury> ah
<infinisil> So I'm only using stack as of now
matthewbauer has quit [Read error: Connection reset by peer]
<infinisil> But I'm fairly confident that running emacs in a nix-shell would work at least
<camsbury> well that might be fine
<infinisil> with cabal i mean
<camsbury> yea
matthewbauer has joined #nixos
<camsbury> I know that domenkozar has something for nix hie
<camsbury> thanks
<infinisil> Yeah I'm using that, hie-nix
<camsbury> okay great
<infinisil> Oh I'm using a fork though, it's https://github.com/domenkozar/hie-nix
<camsbury> yes
<infinisil> (fork for a PR iirc)
<camsbury> ah you manage your emacs modes via nix?
<infinisil> Yup
<camsbury> I currently bring my emacs packages in through an `emacs.nix`
<camsbury> but that is pretty cool
<Lisanna> okay wtf, I added the pinned nixpkgs as a separate jobset, no IFDs at all, and it's still complaining that it's not allowed to access the URI in restricted mode
<Lisanna> well how on earth is it going to build anything if it can't access anything?
<infinisil> Lisanna: it can access stuff in NIX_PATH
<Lisanna> infinisil how is it going to have any hope of building any of the packages in my channel, since the source code for those packages exist on the net?
<Lisanna> I can't add the sources for EVERYTHING to my NIX_PATH
<Lisanna> that's insane
<infinisil> Restricted mode huh..
<Lisanna> Yes
<Lisanna> I have a nixpkgs.nix which just does a builtins.fetchTarball on a nixpkgs nixexprs
<Lisanna> I import the nixpkgs.nix as a jobset but the evaluation fails
<infinisil> So your problem is that restrict-eval implied being unable to IFD?
<Lisanna> oh wait hang on, I might be dumb
<Lisanna> MIGHT be dumb
<infinisil> We are all dumb sometimes ;)
<Lisanna> oh, duh, the nix file needs to be a jobset, not the build product of fetchTarball
<Lisanna> can I configure a recursive product reference within a jobset?
<Lisanna> I have { nixpkgs-nixexprs; tarball; } as things in my jobset
<Lisanna> I want to pass the nixpkgs-nixexprs product as an input to the jobset file itself
<Lisanna> so, recursive
<infinisil> Never used jobsets, can't help much with that
alexteves_ has joined #nixos
<infinisil> Oh come on, what the hell is this
<infinisil> "The option `system.stateVersion' defined in `/home/infinisil/cfg/config/hardware/pc' has been renamed to `system.nixos.stateVersion'."
<infinisil> But then I change it and I get this error:
<infinisil> "error: The unique option `system.nixos.stateVersion' is defined multiple times, in `/home/infinisil/cfg/config/hardware/pc' and `/cfg/external/nixpkgs/nixos/modules/rename.nix'."
<infinisil> -.-
<Lisanna> OK seriously wtf
<Lisanna> why is it trying to access that URI at evaluation time
<Lisanna> I'm not doing any IFDs
matthewbauer has quit [Read error: Connection reset by peer]
<Lisanna> { nixpkgs-nixexprs = import ./nixpkgs.nix; }
<gchristensen> what is ./nixpkgs.nix ?
<Lisanna> gchristensen nixpkgs.nix is literally just a fetchTarball
<Lisanna> with a sha256
<gchristensen> well, that is IFD
<Lisanna> ......
<Lisanna> how
<Lisanna> I just want the uncompressed tarball
<infinisil> If it's builtins.fetchTarball it shouldn't be IFD
<Lisanna> I'm not trying to import the nixpkgs default.nix
matthewbauer has joined #nixos
<Lisanna> I just want the nixexprs unpacked
<Lisanna> as the build product
<Lisanna> should I not be using fetchTarball for this?
sbdchd has quit [Remote host closed the connection]
<gchristensen> builtins.fetchTarball is not permitted during restricted evaluation mode
<Lisanna> just the entire function is disallowed?
<Lisanna> ugh
<gchristensen> ( infinisil was right - not IFD - just not permitted )
<Lisanna> wow, ok
<gchristensen> "This function is not available if restricted evaluation mode is enabled." https://nixos.org/nix/manual/#ssec-builtins
Ariakenom has quit [Quit: Leaving]
<Lisanna> OK, so is there an equivalent builtin which downloads a tar.xz and unpacks it?
<Lisanna> trying to fetch nixpkgs without depending on nixpkgs
<infinisil> "allowed-uris: A list of URI prefixes to which access is allowed in restricted evaluation mode. For example, when set to https://github.com/NixOS, builtin functions such as fetchGit are allowed to access https://github.com/NixOS/patchelf.git.";
<infinisil> man nix.conf
<gchristensen> you can set that ^ or, you can specify nixpkgs as a pinned input in your hydra jobset's config, like this: https://hydra.iohk.io/jobset/mantis/mantis#tabs-configuration seee "https://github.com/NixOS/nixpkgs.git 06c576b0525da85f2de86b3c13bb796d6a0c20f6"
<Lisanna> infinisil allowed-uris wouldn't help if the entire function is just completely disallowed
<gchristensen> ah indeed
<Lisanna> gchristensen yeah but then it's not declarative ):
<infinisil> Yeah, but is the whole function disallowed?
<infinisil> Or do the docs have a mistake there?
<infinisil> Because the man page doesn't imply that
<Lisanna> I want to control the version of nixpkgs from within my own nix expressions
<gchristensen> infinisil: it is vague, because "This function is not available if restricted evaluation mode is enabled."
<infinisil> An easy way to find out is to just test it :)
<Lisanna> I understand the regular limitations of restricted eval mode, and am glad they exist, but blacklisting an entire builtin seems overly harsh. Why is that function so dangerous?
Fare has joined #nixos
<gchristensen> Lisanna: it executes code as the user calling it, outside of the sandboxing of Nix
aarvar has joined #nixos
<gchristensen> so it could trigger nasty problems in curl, git, tar, gzip, all as the user calling it without any protections
<infinisil> Lisanna: Just test if allowed-uris works with it first
<gchristensen> ^ agreed
<Lisanna> OK, testing
<Lisanna> "allowed-uris https://"
<infinisil> You gotta give it full uris
<infinisil> It's bare string comparison iirc
xcmw has joined #nixos
<Lisanna> ugh, yep
<infinisil> And it wouldn't be much of a restricted mode if you could fetch arbitrary stuff tbh..
<gchristensen> erm
knupfer has joined #nixos
<infinisil> and allowed-uris is only useful for preselected stuff
palo_ has joined #nixos
<Lisanna> well it didn't work
<Lisanna> illegal configuration line 'allowed-uris https://' in '/etc/nix/nix.conf' at /nix/store/d2iv6qnclrr204vga500qk4plflb88fg-hydra-2017-11-21/libexec/hydra/lib/Hydra/Plugin/GitInput.pm line 188.
<infinisil> Error in the manual eh
<gchristensen> Lisanna: how did you set it?
<gchristensen> Lisanna: it is a nix.conf setting not hydra setting
<Lisanna> I know
<infinisil> Yeah I don't think this http:// trick works (anymore at least)
<Lisanna> then that error showed up in the hydra eval error log
<Lisanna> oh ffs
<Lisanna> now my whole build / deploy is broken
<infinisil> ??
<Lisanna> 'cause my nix.conf is screwed up
<Lisanna> nix.conf is declarative from nixos x_x
palo has quit [Ping timeout: 248 seconds]
<gchristensen> rollbacks :)
<infinisil> gchristensen: Oh, I stand corrected
<gchristensen> Lisanna: roll-back your system, are you not using nix 2.0?
<gchristensen> oh, you are, but the line is malformed
<Lisanna> gchristensen I can't nix-copy-closure to the target machine
<infinisil> Or you can just sudo your way to a /etc/nix.conf change
<infinisil> It's just a file after all
<Lisanna> and I can't edit the /etc/nix/nix.conf because it's on a read-only filesystem
<Lisanna> because it's generated
<gchristensen> you don't need to nix-copy-closure
<Lisanna> gchristensen I deploy with nixops
<gchristensen> you don't need nixops either :P
<infinisil> Lisanna: cd /etc/nix && cp nix.conf nix2.conf && mvs nix2.conf nix.conf
<gchristensen> but infinisil is also rightt, depending on how you want to do this
mkoenig has joined #nixos
<infinisil> It's just a symlink
alexteves_ has quit [Remote host closed the connection]
thc202 has quit [Ping timeout: 276 seconds]
<gchristensen> Lisanna: to "emergency rollback"... $ ls -la /nix/var/nix/profiles/system
<gchristensen> lrwxrwxrwx 1 root root 15 Jun 15 02:18 /nix/var/nix/profiles/system -> system-578-link
<gchristensen> so then you want to roll back to 577...
alexteves_ has joined #nixos
<Lisanna> OK, clobbered the symlink
matthewbauer has quit [Read error: Connection reset by peer]
<gchristensen> /nix/var/nix/profiles/system-577-link/bin/switch-to-configuration
<gchristensen> but infinisil's suggestion is just as fine
<Lisanna> ok, added the full URI instead
<gchristensen> the full URI isn't the problem
<Lisanna> wtf
<Lisanna> error: illegal configuration line 'allowed-uris https://d3g5gsiof5omrk.cloudfront.net/nixos/18.03/nixos-18.03.132684.f3c913d466f/nixexprs.tar.xz' in '/etc/nix/nix.conf'
<Lisanna> how is this illegal
<gchristensen> 23:46 <gchristensen> oh, you are, but the line is malformed
jperras has joined #nixos
<gchristensen> allowed-uris = https://
<Lisanna> oh
<Lisanna> ugh
<Lisanna> duh
<infinisil> Haha
matthewbauer has joined #nixos
<infinisil> I should make a PR to be able to set arbitrary nix.conf values via an attrset, then this won't happen :)
daveo has quit [Ping timeout: 255 seconds]
<infinisil> Did something similar for #41467 (which I still need to finish)
<{^_^}> https://github.com/NixOS/nixpkgs/pull/41467 (by Infinisil, open): [WIP] znc: more flexible module
<gchristensen> a more complete solution is to validate the config is valid for the selected version of nix
<infinisil> Limited but maybe too limited, because you don't exactly know what version will read the file at runtime
alexteves_ has quit [Remote host closed the connection]
<gchristensen> yes but at least your daemon will start
<Lisanna> ok, the evaluation is running now, so yeah, allowed-uris makes fetchTarball work
<infinisil> gchristensen: Ah yes
<infinisil> Lisanna: And the http:// thing will work as well I'd think..
<Lisanna> yeah, I'd imagine so
alexteves_ has joined #nixos
<Lisanna> that's still not a very happy workaround :/
<infinisil> Although I'm not a fan of that
hoshineko has quit [Quit: hoshineko]
<infinisil> Why use restricted-eval when you end up downloading random stuff anyways?
<gchristensen> well ideally your allowed URI wouldn't be https://
<infinisil> Oh it still restricts access to local files then I guess
<Lisanna> gchristensen it'd be https://d3g5gsiof5omrk.cloudfront.net/nixos/18.03/nixos-18.03.132684.f3c913d466f/nixexprs.tar.xz but I don't want to have to update that every time
<gchristensen> but you might specify https://github.com/NixOS/nixpkgs/archive/
jperras has quit [Ping timeout: 248 seconds]
matthewbauer has quit [Ping timeout: 248 seconds]
<gchristensen> or https://d3g5gsiof5omrk.cloudfront.net/ if you're feeling generouse
<Lisanna> that's still not a happy solution <_< 'cause now I have to have information about where nixpkgs comes from in two completely seprate locations. honestly I'd rather just pin it directly in hydra
<infinisil> Make a git clone?
alexteves_ has quit [Remote host closed the connection]
<infinisil> Then there ain't no fiddling with nix.conf and no downloads
<gchristensen> then allow everything
<gchristensen> the restriction and flexibility is up to you
<gchristensen> it is a good thing for Hydra to default safe
<Lisanna> The correct solution I'm looking for is quite simply just a fetchurl with an unpack phase, which would be allowed in restricted eval
<infinisil> and to update a git repo is about the same effort (or even less) than updating nix.conf along with the url you use
<Lisanna> I think, at least
<infinisil> Oh, not sure if that's possible with your set up, nvm
<PolarIntersect> wat
<infinisil> I'll just shut up, I've never set up hydra