filterfish has joined #nixos
eacameron has joined #nixos
radvendii has joined #nixos
<radvendii> So I'm setting a command line variable in configuration.nix with ```environment.variables.MY_VARIABLE = "value";``` but it's not showing up when I do ```echo $MY_VARIABLE$ on the command line
<radvendii> am i missing something?
eacameron has quit [(Ping timeout: 260 seconds)]
mojjo has joined #nixos
<mojjo> `Attempting to install GRUB to a disk with multiple partition labels. This is not supported yet..` Anyone know what to do here?
<gchristensen> radvendii: have you run nixos-rebuild switch?
<radvendii> gchristensen: yes
<radvendii> :P good question though
<radvendii> I haven't tried restarting though. Could that be the problem?
<gchristensen> yeah very likeely
<gchristensen> maybe start a new bash with -l
<radvendii> gchristensen: yep. that's it
<radvendii> gchristensen: thanks
<gchristensen> cool
eacameron has joined #nixos
Wizek_ has quit [(Ping timeout: 260 seconds)]
filterfish has quit [(Ping timeout: 260 seconds)]
<gchristensen> clever: ping
radvendii has quit [(Quit: Lost terminal)]
chakerbenhamed has quit [(Ping timeout: 268 seconds)]
mojjo has quit [(Ping timeout: 260 seconds)]
RchrdB has quit [(Ping timeout: 240 seconds)]
filterfish has joined #nixos
CMCDragonkai has joined #nixos
CMCDragonkai is now known as Guest48831
filterfish_ has joined #nixos
byteflame has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vSgDy
<NixOS_GitHub> nixpkgs/master 1e58923 Tim Steinbach: docker-edge: init at 17.04
<NixOS_GitHub> nixpkgs/master d95fb5f Tim Steinbach: Merge pull request #24632 from NeQuissimus/docker_17_04...
MoreTea has joined #nixos
AllanEspinosa has quit [(Ping timeout: 258 seconds)]
Guest48831 is now known as CMCDragonkai
MoreTea has quit [(Remote host closed the connection)]
AllanEspinosa has joined #nixos
RchrdB has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy created ghcjs-no-native-hsc2hs (+1 new commit): https://git.io/vSgyN
<NixOS_GitHub> nixpkgs/ghcjs-no-native-hsc2hs 786487b Shea Levy: haskell generic builder: Use ghcjs's hsc2hs....
data has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy opened pull request #24663: haskell generic builder: Use ghcjs's hsc2hs. (master...ghcjs-no-native-hsc2hs) https://git.io/vSgyp
data is now known as Guest40448
indi_ has joined #nixos
batdog has joined #nixos
hhao is now known as oahong
<hodapp> blaaargh, this USB WiFi adapter "works" in NixOS but appears to be getting 100-200 KB/sec throughput and dropping packets all over the floor
<hodapp> I should probably just go throw it in a fire
<hodapp> and set up an OpenWrt router as a bridge or something
rui1 has joined #nixos
<rui1> Samba share. Not public. Valid users "john"
filterfish_ has quit [(Ping timeout: 264 seconds)]
<rui1> Is the password the same as that of the user john?
<rui1> It is not working
<rui1> or is there some other attribute I'm not finding to set up john's samba password?
filterfish has joined #nixos
ebzzry has quit [(Ping timeout: 264 seconds)]
filterfish has quit [(Read error: Connection reset by peer)]
filterfish has joined #nixos
ebzzry has joined #nixos
<barrucadu> rui1: You can set `services.samba.syncPasswordsByPam` to sync the system user and samba passwords
<barrucadu> https://nixos.org/nixos/options.html#services.samba.syncpasswordsbypam
<rui1> barrucadu: Yeah, I'm trying that now. But the way it is explained in the manual (plus, the default being false), made me think there should be a simpler way to make a non-public share
<rui1> I'll try that anyway. Thanks
edvorg has joined #nixos
mbrgm has quit [(Ping timeout: 264 seconds)]
mbrgm has joined #nixos
RchrdB has quit [(Ping timeout: 260 seconds)]
Wizek_ has joined #nixos
edvorg has quit [(Read error: Connection reset by peer)]
derjohn_mobi has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
zeus_ has joined #nixos
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
derjohn_mob has quit [(Ping timeout: 240 seconds)]
Supersonic112_ is now known as Supersonic112
zeus_ has quit [(Ping timeout: 246 seconds)]
itorres has quit [(Ping timeout: 260 seconds)]
rui1 has quit [(Quit: WeeChat 1.5)]
Guest40448 has quit [(Read error: Connection reset by peer)]
Wizek_ has quit [(Ping timeout: 246 seconds)]
Wizek has quit [(Ping timeout: 246 seconds)]
edvorg has joined #nixos
hexagoxel has quit [(Ping timeout: 260 seconds)]
gbbrt_ has joined #nixos
edvorg has quit [(Remote host closed the connection)]
mguentner2 has joined #nixos
mguentner has quit [(Ping timeout: 240 seconds)]
gbbrt has quit [(Ping timeout: 264 seconds)]
hexagoxel has joined #nixos
vaibhavsagar has joined #nixos
Shados_ is now known as Shados
zeus_ has joined #nixos
edvorg has joined #nixos
jrolfs has joined #nixos
edvorg has quit [(Remote host closed the connection)]
byteflame has quit [(Ping timeout: 260 seconds)]
jrolfs has quit [(Ping timeout: 246 seconds)]
<NixOS_GitHub> [nixpkgs] nh2 opened pull request #24664: nginx: Check config syntax validity with `nginx -t` in preStart (master...nginx-check-config) https://git.io/vSg78
filterfish has quit [(Ping timeout: 240 seconds)]
byteflame has joined #nixos
jrolfs has joined #nixos
filterfish has joined #nixos
mguentner3 has joined #nixos
mguentner2 has quit [(Ping timeout: 246 seconds)]
filterfish_ has joined #nixos
stepcut has joined #nixos
filterfish has quit [(Read error: No route to host)]
filterfish__ has joined #nixos
edvorg has joined #nixos
filterfish_ has quit [(Ping timeout: 256 seconds)]
edvorg has quit [(Remote host closed the connection)]
<vaibhavsagar> is this still the format NAR uses? https://gist.github.com/jbeda/5c79d2b1434f0018d693
mguentner3 has quit [(Quit: WeeChat 1.7)]
<vaibhavsagar> and if so, does that mean it does no compression and is more like the TAR format?
marusich has joined #nixos
patrickmn has joined #nixos
ebzzry has quit [(Ping timeout: 260 seconds)]
ebzzry has joined #nixos
mguentner has joined #nixos
hamishmack has joined #nixos
edvorg has joined #nixos
coltfred has quit [(Ping timeout: 260 seconds)]
takle has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
filterfish__ has quit [(Ping timeout: 240 seconds)]
indi_ has quit [(Remote host closed the connection)]
stepcut has quit [(Remote host closed the connection)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
stepcut has joined #nixos
edvorg has quit [(Remote host closed the connection)]
stepcut has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
crzyp3ck has quit [(Remote host closed the connection)]
takle has quit [(Ping timeout: 258 seconds)]
schoppenhauer has quit [(Ping timeout: 240 seconds)]
edvorg has joined #nixos
schoppenhauer has joined #nixos
zeus_ has quit [()]
nh2 has quit [(Quit: Leaving.)]
<NixOS_GitHub> [nixpkgs] peterhoeg opened pull request #24665: [WIP] pmccabe: darwin is supported too - no not merge (master...f/pmc) https://git.io/vSgFL
newbie90 has joined #nixos
amosbird has quit [(Ping timeout: 240 seconds)]
amosbird has joined #nixos
takle has joined #nixos
zeus_ has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
amosbird has quit [(Ping timeout: 264 seconds)]
FRidh has joined #nixos
mguentner2 has joined #nixos
mguentner has quit [(Ping timeout: 260 seconds)]
amosbird has joined #nixos
itorres has joined #nixos
jmsb` has joined #nixos
indi__ has joined #nixos
edvorg has quit [(Ping timeout: 240 seconds)]
dash_ has joined #nixos
AllanEspinosa has quit [(Ping timeout: 240 seconds)]
andrewrk_ has joined #nixos
exarkun has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
jophish has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
exarkun has joined #nixos
justan0theruser has joined #nixos
takle has joined #nixos
<benley> vaibhavsagar: I think .nar files are not compressed; they are meant to be gzipped separately
<benley> (iirc)
<benley> like tar, yes
takle has quit [(Ping timeout: 240 seconds)]
uralbash has left #nixos []
<vaibhavsagar> ah, thanks
FRidh has quit [(Quit: Konversation terminated!)]
takle has joined #nixos
alx741 has quit [(Quit: alx741)]
jrolfs has quit [(Ping timeout: 246 seconds)]
<disasm> barrucadu: if you want to manually set passwords, you can either add samba to your environment.systemPackages or just find where in the nix store the smbpasswd utility is and run it manually.
takle has quit [(Ping timeout: 260 seconds)]
<disasm> err that meant to be directed at rui1 that's no longer in the room, ignore me.
<toppler> Has anyone here got a working postfix setup?
newbie90 has quit [(Quit: Bye.)]
jmsb` has quit [(Remote host closed the connection)]
takle has joined #nixos
takle has quit [(Ping timeout: 264 seconds)]
byteflame has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixpkgs] jbedo opened pull request #24666: platypus: fix platforms metadata (master...platypus) https://git.io/vSgpc
justbeingglad has joined #nixos
FRidh has joined #nixos
systemfault has quit [(Quit: Bye!)]
justbeingglad has left #nixos []
takle has joined #nixos
derjohn_mobi has quit [(Ping timeout: 256 seconds)]
takle has quit [(Ping timeout: 260 seconds)]
MercurialAlchemi has joined #nixos
ebzzry has quit [(Ping timeout: 246 seconds)]
marsel has joined #nixos
jrolfs has joined #nixos
takle has joined #nixos
jrolfs has quit [(Ping timeout: 268 seconds)]
oever has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
zeus_ has quit [(Remote host closed the connection)]
vandenoever has quit [(Ping timeout: 240 seconds)]
zeus_ has joined #nixos
zeus_ has quit [(Ping timeout: 246 seconds)]
oever is now known as vandenoever
marsel has quit [(Ping timeout: 260 seconds)]
arjen-jonathan has joined #nixos
eacameron has quit [(Remote host closed the connection)]
arjen-jonathan has quit [(Ping timeout: 260 seconds)]
Sonarpulse has quit [(Remote host closed the connection)]
calvertvl has quit [(Quit: leaving)]
katyucha is now known as Guest84125
Guest84125 has quit [(Killed (verne.freenode.net (Nickname regained by services)))]
katyucha_ is now known as katyucha
katyucha_ has joined #nixos
jgertm has joined #nixos
byteflame has joined #nixos
takle has joined #nixos
thc202 has joined #nixos
indi__ has quit [()]
takle has quit [(Ping timeout: 246 seconds)]
byteflame has quit [(Ping timeout: 264 seconds)]
newbie90 has joined #nixos
derjohn_mob has joined #nixos
jrolfs has joined #nixos
Itkovian has joined #nixos
<Unode> Hi all, is there any way to prevent nix-build from adding a sufix to the target. e.g: "nix-build -A jre -o 1.8.121" actually creates "1.8.121-jre" ?
jrolfs has quit [(Ping timeout: 264 seconds)]
proteusguy has joined #nixos
vaibhavsagar has quit [(Remote host closed the connection)]
batdog has quit [(Ping timeout: 246 seconds)]
<Unode> seems like a known bug/feature https://github.com/NixOS/nix/issues/1229
vaibhavsagar has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy force-pushed ghcjs-no-native-hsc2hs from 786487b to 5e98436: https://git.io/vS2JF
<NixOS_GitHub> nixpkgs/ghcjs-no-native-hsc2hs 5e98436 Shea Levy: haskell generic builder: Use ghcjs's hsc2hs....
derjohn_mob has quit [(Remote host closed the connection)]
jensens has joined #nixos
takle has joined #nixos
newbie90 has quit [(Quit: Bye.)]
stepcut has joined #nixos
Itkovian has quit [(Read error: Connection reset by peer)]
takle has quit [(Ping timeout: 256 seconds)]
stepcut has quit [(Ping timeout: 256 seconds)]
<guillaum2> is there a way to "hide" a nixos global package for my user ? For example, the package "epiphany" (a web browser) is available in my session because it was pulled by the global gnome dependency, but I don't want it.
edvorg has joined #nixos
edvorg has quit [(Read error: Connection reset by peer)]
<sphalerite> guillaum2: you could remove /run/current-system/sw/bin from your path, but that would break a lot of other stuff unless you install said stuff (e.g. coreutils) in your profile
<sphalerite> guillaum2: I'm not sure to what extent this is supported
<NixOS_GitHub> [nixpkgs] peti closed pull request #24663: haskell generic builder: Use ghcjs's hsc2hs. (master...ghcjs-no-native-hsc2hs) https://git.io/vSgyp
<guillaum2> sphalerite: yes, that's feels really "dangerous"
marsel has joined #nixos
<sphalerite> argh! Why does nix-collect-garbage affect *all* profiles?
byteflame has joined #nixos
<Unode> guillaum2, if a dependency gets pulled in and you don't want it, your only option is to create a derivation that excludes it though stuff might break if you do this. If you can afford the space, ignore it and just set your default browser to be something else.
<Unode> sphalerite: it's part of the job description :)
<sphalerite> I only wanted to affect the system profile :(
<sphalerite> oh well. On the bright side, I freed up 16GB x)
civodul has joined #nixos
<Unode> sphalerite: for a single profile you are probably better using nix-env
<sphalerite> yeah
Itkovian has joined #nixos
<sphalerite> but nix-env -p /nix/var/nix/profiles/system is a pain to type :D
<sphalerite> guillaum2: You could also exclude epiphany from the system using the option in the gnome module: https://nixos.org/nixos/options.html#gnome+exclude
<Unode> ^ actually sounds like the best option
<sphalerite> then you'll need to install it in users' environments as appropriate, if you do want it on your system at all
byteflame has quit [(Ping timeout: 240 seconds)]
NickHu has quit [(Quit: WeeChat 1.7)]
drp has joined #nixos
NickHu has joined #nixos
jrolfs has joined #nixos
<NixOS_GitHub> [nixpkgs] tosmi opened pull request #24668: update davmail to 4.8.0 (master...davmail) https://git.io/vS2Is
goibhniu has joined #nixos
jrolfs has quit [(Ping timeout: 240 seconds)]
sg2002 has joined #nixos
aminechikhaoui has joined #nixos
reinzelmann has joined #nixos
<guillaum2> sphalerite: ha, yes, that's a great idea.
__Sander__ has joined #nixos
<guillaum2> Unode: well, actually "setting the default browser" is another issue I'll have to solve one day ;) But epiphany was mostly an example.
takle has joined #nixos
CMCDragonkai has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
mudri has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
<mbrgm> fpletz: we were talking about using dehydrated for acme... have you looked into https://github.com/Neilpang/acme.sh as an alternative? seems to support multiple dns providers without additional dependencies (like lexicon for dehydrated) and has everything exposed as cmdline options...
eacameron has joined #nixos
takle has joined #nixos
ambro718 has joined #nixos
stukj has joined #nixos
<NixOS_GitHub> [nixpkgs] gnidorah opened pull request #24669: autorandr: 53d29f9 -> 855c18b and module (master...master2) https://git.io/vS2qL
eacameron has quit [(Ping timeout: 240 seconds)]
jgertm has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vS2mZ
<NixOS_GitHub> nixpkgs/master 0a6a063 Shea Levy: sddm: Fix test....
eacameron has joined #nixos
reinhardt has joined #nixos
takle has quit [(Remote host closed the connection)]
chakerbenhamed has joined #nixos
eacameron has quit [(Read error: Connection reset by peer)]
goibhniu1 has joined #nixos
jrolfs has joined #nixos
eacameron has joined #nixos
reinzelmann has quit [(Ping timeout: 240 seconds)]
goibhniu has quit [(Ping timeout: 240 seconds)]
mojjo has joined #nixos
<mojjo> in an nixos installation process: `error: getting status of ‘/run/user’: No such file or directory` . mmh?
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 268 seconds)]
jrolfs has quit [(Ping timeout: 264 seconds)]
<goibhniu1> hi mojjo: I never heard of that before ... are you using some unusual filesystem setup?
goibhniu1 is now known as goibhniu
<mojjo> well, I'm using: ext4 for root and vfat for boot
<NixOS_GitHub> [nixpkgs] rasendubi pushed 2 new commits to master: https://git.io/vS2YH
<NixOS_GitHub> nixpkgs/master bb83370 Volth: xfwm4-themes: init at 4.10.0
<NixOS_GitHub> nixpkgs/master 3dbe3ec Alexey Shmalko: Merge pull request #24642 from volth/xfwm4-themes...
<mojjo> (reproducing a setup that worked on another bootable stick)
<goibhniu> hrm, I can't imagine what's wrong
eacamero_ has quit [(Ping timeout: 268 seconds)]
takle has joined #nixos
<NixOS_GitHub> [nixpkgs] rasendubi closed pull request #24582: gammu: 1.33.0 -> 1.38.2 (master...gammu-1-37) https://git.io/vS8RU
mojjo has quit [(Remote host closed the connection)]
stukj has left #nixos ["ERC (IRC client for Emacs 25.1.1)"]
eacameron has joined #nixos
Wizek has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vS2Og
<NixOS_GitHub> nixpkgs/master c5015b7 Justin Bedő: platypus: fix platforms metadata (#24666)
Wizek_ has joined #nixos
sg2002 has left #nixos ["ERC (IRC client for Emacs 25.2.1)"]
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 2 new commits to master: https://git.io/vS2O6
<NixOS_GitHub> nixpkgs/master ca0493f Peter Hoeg: pmccabe: darwin is supported too
<NixOS_GitHub> nixpkgs/master 0af3de0 Peter Hoeg: Merge pull request #24665 from peterhoeg/f/pmc...
eacameron has quit [(Ping timeout: 240 seconds)]
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
<amosbird> Hi, why does nix not support this "nix-shell -p clang++ "?
<NixOS_GitHub> [nixpkgs] rasendubi pushed 2 new commits to master: https://git.io/vS233
<NixOS_GitHub> nixpkgs/master 84ffb2d taku0: source-han-sans: fix license from ASL2.0 to SIL Open Font License.
<NixOS_GitHub> nixpkgs/master 0f9fd51 Alexey Shmalko: Merge pull request #24650 from taku0/source-han-sans-fix-license...
<Unode> amosbird: check the name of the package on the nixos website
johann__ has joined #nixos
vandenoever has quit [(Ping timeout: 240 seconds)]
ThatDocsLady has joined #nixos
marusich has quit [(Quit: Leaving)]
andymandias has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
andymandias has joined #nixos
<NixOS_GitHub> [nixpkgs] 0xABAB opened pull request #24671: Skip filesystem check for bindfs (master...patch-2) https://git.io/vS2si
gal_bolle has joined #nixos
<NixOS_GitHub> [nixpkgs] 0xABAB closed pull request #24657: nixos/modules/tasks/filesystems.nix: Skip bindfs FS check (master...patch-1) https://git.io/vSzdE
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
jgertm has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
oever has joined #nixos
vandenoever has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 260 seconds)]
byteflame has joined #nixos
oever is now known as vandenoever
proteusguy has joined #nixos
eacameron has joined #nixos
byteflame has quit [(Ping timeout: 264 seconds)]
Swant has quit [(Quit: Gone to IKEA)]
andymandias has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
jrolfs has joined #nixos
eacameron has quit [(Ping timeout: 268 seconds)]
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #23135: earlyoom service: init (master...earlyoom-service-init) https://git.io/vyfX4
<hyper_ch> hmmm, how quickly is master usually transferred to unstable?
andymandias has joined #nixos
jrolfs has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #24573: ntpd: Add patch to allow getpid syscall in seccomp filter. (master...ntpd-fix) https://git.io/vS8Ji
andymandias has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<NixOS_GitHub> [nixpkgs] gnidorah closed pull request #24669: autorandr: 53d29f9 -> 855c18b and module (master...master2) https://git.io/vS2qL
<niksnut> fyi, hydra.nixos.org is going down for a reboot
andymandias has joined #nixos
eacameron has joined #nixos
faffolter has quit [(Ping timeout: 246 seconds)]
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
chakerbenhamed has quit [(Quit: WeeChat 0.4.2)]
eacameron has quit [(Ping timeout: 246 seconds)]
andymandias has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<shlevy> niksnut: hydra-queue-runner stopped
<shlevy> Oh :D
ThatDocsLady is now known as ThatDocsLady_afk
<shlevy> niksnut: why the reboot?
<NixOS_GitHub> [nixpkgs] gnidorah reopened pull request #24669: autorandr: 53d29f9 -> 855c18b and module (master...master2) https://git.io/vS2qL
andymandias has joined #nixos
RchrdB has joined #nixos
<fpletz> hyper_ch: a few days, depending on how much to build and if all tests are green
<fpletz> mbrgm: I have indeed looked at it and it does also seem like a viable alternative
<fpletz> mbrgm: the priority here is to finally get rid of simp_le, if it's a solution that supports everything we need and doesn't throw so many weird errors like simp_le, let's do it :) I think the biggest blocker here is someone taking to time to write the code and test
<fpletz> mbrgm: eventually I will get annoyed enough to do it myself but right know I have other priorities :)
<NixOS_GitHub> [nixpkgs] magnetophon opened pull request #24672: libsndfile: 1.0.27 -> 1.0.28 (master...libsndfile) https://git.io/vS2Wk
mudri has quit [(Ping timeout: 264 seconds)]
ThatDocsLady_afk is now known as ThatDocsLady
andymandias has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<NixOS_GitHub> [nixpkgs] magnetophon opened pull request #24673: guitarix: 0.35.2 -> 0.35.3 (master...guitarix) https://git.io/vS2lI
<sphalerite> amosbird: clang++ is part of the clang package
<sphalerite> so just `nix-shell -p clang` will make clang++ available
andymandias has joined #nixos
edwtjo has quit [(Ping timeout: 260 seconds)]
taeradan has quit [(Ping timeout: 240 seconds)]
Filystyn has joined #nixos
sfb has joined #nixos
sfb is now known as Swant
jrolfs has joined #nixos
<mbrgm> fpletz: I'm really looking forward to getting the gitlab cache issue resolved :-/. I already substituted simp_le with dehydrated, but stopped at dns-01 stuff. with acme.sh I think this should be quite easy to complete.
taeradan has joined #nixos
jrolfs has quit [(Ping timeout: 268 seconds)]
Swant has quit [(Quit: updates)]
Swant has joined #nixos
<fpletz> mbrgm: yeah, regarding gitlab, I was using our (mayflower) master, but there aren't any changes in there related to gitlab
<NixOS_GitHub> [hydra] edolstra pushed 1 new commit to master: https://git.io/vS24H
<NixOS_GitHub> hydra/master 8364f4e Eelco Dolstra: Upload log files to the right location...
<niksnut> shlevy: to update the kernel to 4.9
<niksnut> because of the /dev/pts thingy
<mbrgm> fpletz: that's so weird. no overlays, etc. elsewhere?
<fpletz> mbrgm: I'd love to have some nixos tests for gitlab, but they are just too slow for the amount of ruby gems and symlinks involved :/
<fpletz> mbrgm: nope
<fpletz> mbrgm: I want to update gitlab to 9 this week anyway, I'll set up a gitlab instance from master for testing and have another look
mudri has joined #nixos
<fpletz> and gitlab released security issue today :)
<fpletz> *multiple security issues
<mbrgm> fpletz: thank you! the cache dir thing should occur for you as well -- I looked at the source of the sprockets gem and strace'd the whole thing, and it clearly tries to get write access at some point -- both in strace as well as in code.
<mbrgm> I posted the details in the github ticket
Swant has quit [(Quit: Gone to IKEA)]
<mbrgm> fpletz: one last idea: could it be that your store is writable in some way? or did you deploy the test to a clean vm?
Swant has joined #nixos
<fpletz> mbrgm: nope, the store is definitely not writeable. I deployed it to a nixos container, though, not a clean vm
<fpletz> mbrgm: yeah, I saw the details on github and am as suprised as you that it works for me \o/
<mbrgm> fpletz: let's just wait what your tests bring :)
oleks_ has quit [(Quit: leaving)]
oleks has joined #nixos
<gchristensen> domenkozar: I'll finish off my PR adding deployment records to the channel scripts if you finish off getting nixos in to netboot.xyz :)
<gchristensen> (back in 10)
<domenkozar> gchristensen: I wish I knew how to fix that
bennofs has joined #nixos
Swant has quit [(Quit: NOW)]
Swant has joined #nixos
arjen-jo1 has joined #nixos
<gchristensen> domenkozar: I thought https://github.com/NixOS/nixos-channel-scripts/issues/6 would have finished it off?
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #24671: nixos/modules/tasks/filesystems.nix: Skip bindfs FS check (master...patch-2) https://git.io/vS2si
Swant has quit [(Quit: Gone to IKEA)]
<domenkozar> gchristensen: yes, but the question is how
<domenkozar> it does work, but upstream wants to know the init location
<gchristensen> could we have a statically located symlink?
Swant has joined #nixos
DeaDSouL has joined #nixos
Itkovian_ has joined #nixos
<DeaDSouL> Hi, is there any GUI for packages manager ?
andymandias has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
pdobrogost has quit [(Quit: Connection closed for inactivity)]
<gchristensen> domenkozar: is netboot.xyz's work even salvagable? "kernel http://hydra.nixos.org/build/38603078/download/1/bzImage"
andymandias has joined #nixos
<goibhniu> hi DeaDSouL, not really, but there are some experimental projects ...
Itkovian has quit [(Ping timeout: 264 seconds)]
sik has joined #nixos
<goibhniu> hi sik, did you have any luck with the packaging?
<DeaDSouL> goibhniu: I just can't stop being admired of this distro... I think it is a game changer... yet it has many things it should take care of first... but anyway, the concept of nixos is outstanding ... I just love it :D
* goibhniu feels the same way ^_^
<toppler> (been using it for 2 years now. First OS I've been totally in love with)
<sik> hi goibhniu, I spent the afternoon yesterday but i didn't manage to make it work. I've still lots of empty zones on my understanding like why some packages are aware of the $out variable and why otheres dont
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #24673: guitarix: 0.35.2 -> 0.35.3 (master...guitarix) https://git.io/vS2lI
<sik> or how the makeWrapper works
<gchristensen> omg domenkozar
<goibhniu> sik: cool, shout if you get stuck ... $out should always be available though, so maybe there's confusion there
<gchristensen> domenkozar: what if we produced an ipxe chainloadable output he could chain to
Swant has quit [(Quit: Gone to IKEA)]
Swant has joined #nixos
ericsagnes has quit [(Ping timeout: 260 seconds)]
<sik> so goibhniu , the $out variable where is it pointing at?
Itkovian_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<goibhniu> sik the place in the store where the package will be installed
<sik> cos $out
<sik> has nothing to do with where the files have been untared
nh2 has joined #nixos
<sik> i was using these packages as example: ./pkgs/tools/compression/upx/default.nix ./pkgs/applications/audio/pianobooster/default.nix
Swant has quit [(Quit: Gone to IKEA)]
Swant has joined #nixos
<goibhniu> sik: I think you should use the source version instead: itksnap-source-3.6.0.tar.gz
<goibhniu> sik: you'll need cmake, qt5 and itk as buildInputs
<sik> ok
<sik> like this i dont have to copy the things around, nixos would know exactly where to put them
<sik> and it would trigger the instalation of cmake qt5 and itk
<domenkozar> gchristensen: yeah that way my idea
<domenkozar> gchristensen: to publish the chain as part of channel update
<gchristensen> ah yeah
<domenkozar> but I don't think upstream likes that too much
<gchristensen> I'm just stumbling through trying to make it work :(9
justan0theruser has quit [(Quit: WeeChat 1.5)]
justanotheruser has joined #nixos
ericsagnes has joined #nixos
<gchristensen> yarg
ilyaigpetrov has joined #nixos
<gchristensen> domenkozar: we'll just have to make our own! netboot.nix.gsc.io
<domenkozar> shlevy: sorry for not being proactive in your attempts to summon me, but really busy this week
<domenkozar> gchristensen: well we could host the chain on channel, someone just need to do it
<domenkozar> don't think solving it ourselves is going to be any better
<domenkozar> s/solving/hosting/
fab has joined #nixos
nh2 has quit [(Ping timeout: 240 seconds)]
fab is now known as Guest95322
<drp> hi everyone, I waited for 17.03 then ditched kubuntu in favour of nixos, after a few head scratchers I am happy to have a fully working nixos desktop!
<gchristensen> it isn't :(
<domenkozar> gchristensen: the hard part would be then to convinnce upstream to use the chain
<gchristensen> oh no I mean, the whole netboot process ;)
<domenkozar> heh
<domenkozar> sadly I don't need ipxe anymore
<domenkozar> so that gives little hope of me tackling that part
<gchristensen> s/sadly/thankfully/; I'm giving it a go here: http://gsc.io/nbt/netboot.ipxe
<domenkozar> gchristensen: we do generate netbook.ipxe for each eval
<domenkozar> but sadly hydra doesn't serve build products anymore
<gchristensen> yeah, that was it
<goibhniu> congratulations drp \o/
faffolter has quit [(Ping timeout: 240 seconds)]
<gchristensen> domenkozar: maybe we could write a proxy to serve arbitrary build products, and get it on hydra.nixos.org
<domenkozar> or ask niksnut to fix that since he just did it for logs
<domenkozar> :P
<domenkozar> solution to anything, eelco can do it
* domenkozar is guilty as charged
avn has quit [(Ping timeout: 240 seconds)]
<drp> goibhniu, thanks, I wanted to use nixos for my email server, decided the only way would be to grok it
ebzzry has joined #nixos
<gchristensen> drp: sounds great, I think you'll love it
<gchristensen> w00t it is alive, domenkozar!
<gchristensen> drp: http://gsc.io/nbt/packet.ipxe on packet.net's ipxe support, and I'm in nixos...
<domenkozar> yes it works :)
<mbrgm> fpletz: -> q
<drp> holy moly you're going to do pxe booting?, any advantages with nixos?
<gchristensen> drp: well it lets me install nixos on to packet.net boxes, without nasty tricks
<domenkozar> gchristensen: so now that ipxe works :-P
* gchristensen runs away
nslqqq has quit [(Quit: Leaving.)]
<domenkozar> <3
nslqqq has joined #nixos
nh2 has joined #nixos
<gchristensen> ok now that _this_ yak is shaved whose next... :P
<drp> 36 buckaroonies a month for a dedicated box, very nice, whats the catch?
<gchristensen> drp: the catch is you also get 2x mode-5 bonded NICs at 1gbps each and amazing support
<gchristensen> (did I say catch?)
obadz has quit [(Ping timeout: 240 seconds)]
<gchristensen> 64 bytes from lga34s13-in-f14.1e100.net (172.217.10.46): icmp_seq=1 ttl=56 time=2.64 ms
<drp> such a shame that they're so far away, thanks for the link, I will definitely consider them if I setup something international
<gchristensen> drp: where are you? they have DCs in amsterdam and tokyo
<drp> Australia
<gchristensen> ah.
<gchristensen> that IS tough
<drp> my best bang for buck is vultr, they allow iso installs + bare metal(albeit for double the money)
<gchristensen> depends where you want thee bang
<gchristensen> packet has really seriously invested in their network and it shows
cfricke has joined #nixos
obadz has joined #nixos
Guest95322 has quit [(Read error: Connection reset by peer)]
<drp> tell me when they setup in singapore :P
mkoenig has joined #nixos
<drp> does anyone know where would be a welcome place for documentation suggestions?
<gchristensen> github.com/nixos/nixpkgs issue probably
<schoppenhauer> hi. is anyone using teamviewer here?
<schoppenhauer> because it doesn't work for me, because it doesn't finde a symbol. which is strange.
Itkovian has joined #nixos
drasich has joined #nixos
<drp> schoppenhauer, sorry I don't use the package, I switched to the teamviewer app on chromium, that could be at least a temporary workaround
<exarkun> Can I avoid having to specify this twice somehow? https://github.com/LeastAuthority/leastauthority.com/commit/affc8d226c776803ae34f6fa27cb643b01dc0c28 Note the latter uses `fromImage` to build on the former.
<schoppenhauer> drp: unfortunately, no. it doesn't work when the other part is a mobile phone.
<NixOS_GitHub> [nixpkgs] jpotier opened pull request #24676: cups-toshiba-estudio: init at 7.51 (master...master) https://git.io/vS2wG
byteflame has joined #nixos
bennofs has quit [(Ping timeout: 268 seconds)]
byteflame has quit [(Ping timeout: 240 seconds)]
<dtzWill> exarkun: well 1) looks like a small edit error: https://github.com/LeastAuthority/leastauthority.com/blob/affc8d226c776803ae34f6fa27cb643b01dc0c28/docker/subscription-converger.nix#L8 with nested "config =" (and no matching end brace)
<exarkun> blech. thanks.
<dtzWill> and a bit more helpfully 2)looking at the docker stuff looks like the config's are just put into json and used for layer construction. I'd think ENV stuff in Dockerbuild propagated, so maybe the answer is
<dtzWill> edit nixpkgs's docker stuff to combine parts of the config that make sense? like, here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/docker/default.nix#L389
phreedom has quit [(Ping timeout: 240 seconds)]
nitrix has joined #nixos
<dtzWill> and check for fromImage's config and merge the env attr (mostly thinking 'dumb' merge logic--nothing like concatenating paths or anything)
<exarkun> Hm I tried pulling config off of the derivation (to just merge it manually but w/o duplicating the value) in the second expression) used for fromImage but wasn't able to figure out how
<dtzWill> i think docker doesn't combine them for you since you could have a dockerfile clear the env, etc, and the 'usual' workflow (ENV directives, etc) likely are "update env" operations
<dtzWill> exarkun: yeah and doing it in a way that doesn't bite you later might be a smidge tricky :).
<exarkun> I guess it's not on the nix ... thing (sorry I don't know the words) ... it's just in the tar ball
jensens has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixpkgs] basvandijk opened pull request #24677: strongswan: 5.5.1 -> 5.5.2 (master...strongswan-5.5.2) https://git.io/vS2ro
proteusguy has quit [(Remote host closed the connection)]
<dtzWill> basically looks like each layer defines the environment for its use, ignoring similar values on previous layers.. which makes sense after thinking about it a bit (even if it's unexpected at first from our POV)
<copumpkin> niksnut: I'm having a lot of trouble making my NixOS be S3-centric (due to occasional random failures that come from pointing channels and/or binary caches directly at S3). Is nixUnstable expected to be somewhat usable at this point? I'd love to take advantage of all your magic retry logic :)
<exarkun> Ah I guess that sounds right. So `docker build ...` is merging the metadata itself as it goes, storing the result in each new layer. So buildImage needs to do the same if I want similar "inheritance".
<exarkun> I wish I didn't have to implement the merging logic in sh...
<dtzWill> copumpkin: been using nixUnstable past week or so, nothing catastrphoic. note the schema bump though. only problems I've had are when pushing the features with the new commands :P
<niksnut> copumpkin: what does S3-centric mean?
<niksnut> are you talking about a private hydra?
<dtzWill> exarkun: in sh? it's a hack but seems like attrsets are perfect for basic env merging--'config = newconfig // {env = oldconfig.env // newconfig.env; };' err only probably simpler O:)
<exarkun> dtzWill: Where do I get oldconfig, though? It doesn't appear to be available on the result of `buildImage`? Or did I come to an incorrect conclusion somehow?
byteflame has joined #nixos
drasich has quit [(Ping timeout: 246 seconds)]
<exarkun> I tried to use `lae.s4-common-image.config` in the latter `buildImage` expression and got an error
ebzzry has quit [(Ping timeout: 268 seconds)]
<dtzWill> exarkun: well in your case you can grab it from 'fromImage' probably? Oh, does it not propagate it? haha well then yeah add it to the result
<copumpkin> niksnut: among other things, yeah. Basically pointing binary caches directly at an S3 bucket HTTP endpoint and doing the same with channel/expression tarballs. It mostly works fine but occasionally S3 will barf and Nix 1.11.* has no resiliency built into it, so it just hoses the system
<copumpkin> (hoses the system because they're unattended EC2 metadata bootups)
<dtzWill> exarkun: or if you don't actually need inheritance but just that env var, make a buildImage wrapper/helper that just merges in the appropriate env var
<niksnut> copumpkin: yeah 1.12 should be better in that respect
<exarkun> dtzWill: in the definition of buildImage, I see `result = runCommand ... { ... }` - is that set the set of things that propagate?
<niksnut> though you get exciting new HTTP/2 failures as well!
<exarkun> dtzWill: hm that might be easier.
<copumpkin> niksnut: yeah, definitely looking forward to it. I'm thinking of making myself a fancy new AMI using nixUnstable but wanted to know if there were any major pain points you know of
<copumpkin> oh yay http/2 failures
<dtzWill> exarkun: it'd definitely be easier :D. And less intrusive/less needing to sort out the details of buildImage xD
<copumpkin> does S3 even speak http2?
<copumpkin> cloudfront does
<niksnut> don't remember if S3 does
<NixOS_GitHub> [nixpkgs] edanaher opened pull request #24678: fvwm: add edanaher as maintainer (master...add-fvwm-maintainer) https://git.io/vS2oi
<niksnut> I think so
<copumpkin> so probability of me being miserable on 1.12 is about 40%, right? :)
<niksnut> actually no
<copumpkin> 37%?
<copumpkin> :P
<samae> zimbatm, zraexy anyone available to review PR #24676
nitrix has quit [(Ping timeout: 256 seconds)]
<samae> (thx)
<NixOS_GitHub> [nixpkgs] lsix opened pull request #24679: Django security fixes (for CVEs) (master...django_security_fixes) https://git.io/vS2Kv
<copumpkin> niksnut: "actually no" meaning you expect it to be mostly pleasant? or that it's worse than that? :)
<dtzWill> np but after arduously typing in those numbers by hand I thought I'd share :P xD
<niksnut> no => S3 doesn't do http/2
<exarkun> Oh there's `buildArgs` on the buildImage result. I think.
<copumpkin> oh okay
<copumpkin> so no http2 woes for now
<exarkun> Or `passthru.buildArgs`? Is `passthru` some kind of magic?
<exarkun> I don't see it in the manual.
<zimbatm> samae: reviewed
<samae> cool, thx
<Phlogistique> '
<Phlogistique> oopd
<Phlogistique> oops
vandelsand has joined #nixos
<vandelsand> Hey
<vandelsand> Anyone here?
<kragniz> 518 people in fact!
<zimbatm> vandelsand: loads, just ask your question :)
<vandelsand> What!? Holy shit
<vandelsand> I'm having trouble on 17.03 with my Nvidia... Lol classic rightm
<vandelsand> ?
<copumpkin> do the 5 build steps in here mean it got retried 5 times? http://hydra.nixos.org/build/51299011
<gchristensen> yeah, copumpkin
vandenoever has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] domenkozar closed pull request #24664: nginx: Check config syntax validity with `nginx -t` in preStart (master...nginx-check-config) https://git.io/vSg78
<copumpkin> thanks
<vandelsand> I'm loving NixOS so far, but am only successful using Intel. I have hybrid graphics but want to basically only use Nvidia not bumblebee.
<dtzWill> exarkun: wrapper seems easier :P. bbiab
<goibhniu> vandelsand: have you enabled that in your BIOS/EFI?
<vandelsand> On other districts I can exclusively use Nvidia, so I don't see this being a problem. I'm just doing it wrong.
<vandelsand> Distros*
<niksnut> the nvidia card in my laptop is sitting idle because I can't be bothered to figure out how to enable it
<gchristensen> vandelsand: how do other distros do it?
<domenkozar> I managed to disable nvidia card so it doesnt drain power
* domenkozar calls that sucess
<vandelsand> Usually I install Nvidia and that's it. Sometimes I had to blacklist other drivers.
<gchristensen> niksnut: better than my old laptop, where it was impossible to not use the nvidia card :(
<vandelsand> Using Nvidia, I was able to get to the gdm
<vandelsand> But couldn't log in
<vandelsand> It freezes after I enter credentials
<goibhniu> what desktop/window manager are you using?
cfricke has quit [(Quit: WeeChat 1.7)]
<vandelsand> I have a fresh build with sddm and plasma. Works fine with Intel.
cpennington has joined #nixos
sivteck has joined #nixos
* goibhniu is using plasma with discrete nvidia FWIW
<vandelsand> Lspci shows Nvidia for 3d, like other distros
<vandelsand> But if I enable Nvidia I can't get very far in the login.
<vandelsand> If anyone has any ideas please email me at vandelsand@gmail.com
<goibhniu> do you see anything in the logs?
<goibhniu> maybe you need the legacy nvidia driver?
<NixOS_GitHub> [nixpkgs] domenkozar closed pull request #24678: fvwm: add edanaher as maintainer (master...add-fvwm-maintainer) https://git.io/vS2oi
<vandelsand> Yes. The logs say that Nvidia cannot detect screen \ cannot find the screen
<NixOS_GitHub> [nixpkgs] rasendubi closed pull request #24651: fvwm module: init; now fvwm can be used as an xserver.windowManager (master...add-fvwm-window-manager) https://git.io/vSzqO
<94KAAOW34> [nixpkgs] rasendubi pushed 2 new commits to master: https://git.io/vS2iR
<94KAAOW34> nixpkgs/master 7a38b08 Evan Danaher: fvwm module: init; now fvwm can be used as an xserver.windowManager
<94KAAOW34> nixpkgs/master b8e71f2 Alexey Shmalko: Merge pull request #24651 from edanaher/add-fvwm-window-manager...
<vandelsand> So I could enable Nvidia, and the point it to the screen? Any way?
<vandelsand> My screen usually comes up as eDP-1-1
<vandelsand> It's a laptop
<drp> is the nvidia driver in nixos tied to the kernel version? could it be possible that nixos is giving vandelsand the wrong driver unless he specifies the version?
<vandelsand> Shouldn't be. We're using 4.9 and the Nvidia driver 375 is good up to 4.10
<goibhniu> there have been a few reports of nvidia optimus users having problems without bumblebee ... maybe it's necessary?
<vandelsand> Also I briefly tried nvidiaBeta (which is 378) with no luck
<goibhniu> (or there's a bug)
<vandelsand> I will use bumblebee if it works.
* goibhniu didn't think it was possible without bumblebee
<vandelsand> I'll keep trying... I've been trying for a day. Like I said other distros allow me to use Nvidia without Intel.
<vandelsand> Any good bumblebee setup instructions?
<vandelsand> Or maybe a config example
<tilpner> vandelsand - On 16.09 "hardware.bumblebee.enable = true;" was enough for me, worked out of the box, but I can't get that to work on 17.03 :/
<vandelsand> Did you do that and enable [ "Intel nvidia" ]? Or just Nvidia? Or neither?
filterfish_ has quit [(Remote host closed the connection)]
reinhardt has quit [(Quit: Leaving)]
<tilpner> Neither, that's the only mention of "nvidia" in my config, and intel is only mentioned in unrelated things
sivteck has quit [(Read error: Connection reset by peer)]
<vandelsand> Cool, interesting.
filterfish has joined #nixos
<vandelsand> Anyways if anyone can help, email me at vandelsand@gmail.com
<goibhniu> vandelsand: I wouldn't expect people to email you, but if you try it out and report back here, people will surely be able to help
<kriztw> vandelsand: watch out, it should be enable [ "intel" "nvidia" ]
<kriztw> someone else had a weird problem that was caused by that a few weeks ago
<vandelsand> K thanks guys
<vandelsand> Great info
jensens has joined #nixos
filterfish_ has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
<aminechikhaoui> any idea what can be the cause if this issues "gce......> rm: cannot remove '/var/setuid-wrappers': Device or resource busy", this is during a gce instance deployment using nixops
<samae> zimbatm: your review has been integrated, care to have a look again?
ixxie has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #24677: strongswan: 5.5.1 -> 5.5.2 (master...strongswan-5.5.2) https://git.io/vS2ro
<jophish> Is there a way to make hydra perform i686 builds on x86_64 machines?
<amosbird> Hi, how can I use musl libc in nix
DeaDSouL has quit [(Ping timeout: 240 seconds)]
<amosbird> and use clang 4.0 to compile a binary that is highly portable
filterfish has joined #nixos
<zimbatm> samae: merged
<NixOS_GitHub> [nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/vS2MU
<NixOS_GitHub> nixpkgs/master 09b1414 Jean Potier: cups-toshiba-estudio: init at 7.51 (#24676)
jrolfs has joined #nixos
filterfish_ has quit [(Read error: Connection reset by peer)]
<samae> yey thx
jrolfs has quit [(Ping timeout: 240 seconds)]
bohan_ has joined #nixos
siddhu has quit [(Ping timeout: 255 seconds)]
bohan has quit [(Ping timeout: 255 seconds)]
MercurialAlchemi has quit [(Ping timeout: 268 seconds)]
jensens has quit [(Ping timeout: 246 seconds)]
eddyb_ has joined #nixos
madonius1 has joined #nixos
madonius has quit [(Ping timeout: 255 seconds)]
eddyb has quit [(Ping timeout: 255 seconds)]
eddyb_ is now known as eddyb
<niksnut> jophish: yes, by specifying "x86_64-linux,i686-linux" as the type in nix.machines
<niksnut> that's in fact the default for localhost if you don't have a nix.machines
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
CustosLimen has quit [(Excess Flood)]
erasmas has joined #nixos
CustosLim3n has joined #nixos
arcetera has quit [(Ping timeout: 255 seconds)]
bitchecker has quit [(Ping timeout: 255 seconds)]
seanparsons has quit [(Ping timeout: 255 seconds)]
fpletz has quit [(Ping timeout: 255 seconds)]
carter has quit [(Ping timeout: 255 seconds)]
pchiusano has quit [(Ping timeout: 255 seconds)]
arc- has joined #nixos
pchiusano has joined #nixos
bitchecker has joined #nixos
fpletz has joined #nixos
gleber_ has quit [(Ping timeout: 255 seconds)]
gleber_ has joined #nixos
seanparsons has joined #nixos
vandelsand has quit [(Ping timeout: 260 seconds)]
swflint_away has joined #nixos
swflint has quit [(Ping timeout: 255 seconds)]
carter has joined #nixos
swflint_away is now known as swflint
siddhu has joined #nixos
jonasfj has quit [(Ping timeout: 255 seconds)]
jonasfj has joined #nixos
Havvy has quit [(Remote host closed the connection)]
Havvy has joined #nixos
cartwright has quit [(Ping timeout: 255 seconds)]
cartwright has joined #nixos
<jophish> niksnut: thanks, exactly what I did!
fpletz has quit [(Changing host)]
fpletz has joined #nixos
coltfred has joined #nixos
jensens has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm opened pull request #24680: nixos: add a "hardened" profile (master...hardened-nixos) https://git.io/vS2S8
<NixOS_GitHub> [nixpkgs] joachifm opened pull request #24681: nixos: implement option to disable automatic kernel module loading (master...disable-kernel-module-autoload) https://git.io/vS2SR
<gchristensen> !m joachifm
<[0__0]> You're doing good work, joachifm!
FRidh has quit [(Ping timeout: 256 seconds)]
bennofs has joined #nixos
<NixOS_GitHub> [nixpkgs] mguentner opened pull request #24682: ruby-modules: check tzinfo version (master...rb_tzinfo) https://git.io/vS29U
Filystyn has quit [(Quit: Konversation terminated!)]
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
FRidh has joined #nixos
marsam has joined #nixos
Itkovian has joined #nixos
proteusguy has joined #nixos
jensens has quit [(Ping timeout: 256 seconds)]
ericsagnes has quit [(Ping timeout: 264 seconds)]
<tjg1> why does the kodi package include a bunch of unofficial piracy plugins?
<gchristensen> sounds not good, tjg1, which ones?
FRidh has quit [(Ping timeout: 256 seconds)]
<tjg1> i believe exodus is one
dannyg has joined #nixos
<gchristensen> and if you install kodi, by default, it includes unofficial piracy plugins?
<samae> tjg1: piracy is vague, your are talking about copyright infringment?
<gchristensen> let me amend my question to remove the vagueness
<gchristensen> and if you install kodi, by default, it includes unofficial plugins?
<tjg1> no, it doesn't
<tjg1> and i mean shady streaming sites, so copyright infingment
<gchristensen> ok, so your question is why do we make it possible to also install unofficial plugins?
<joepie91> I don't really think it's the job of a distro to police what you can and cannot install
<tjg1> i'm just wondering why stuff like that is included in nixpkgs
<NixOS_GitHub> [nixops] domenkozar pushed 1 new commit to master: https://git.io/vS2F0
<NixOS_GitHub> nixops/master c64208d Domen Kožar: doc: move serial console part to the end of the section
dbmikus has joined #nixos
<tjg1> even if it doesn't come with kodi by default
<joepie91> why wouldn't it?
<joepie91> it's software, it's installable, therefore it's within scope of a package expression repo?
<gchristensen> tjg1: good question, there may be legal issues or licensing issues
<gchristensen> I'm not sure what the implications or rules or laws are
<tjg1> i don't necessarily think that it shouldn't be included
<tjg1> i just wanted to make sure that we're aware of potential legal/upstream issues
<joepie91> right :)
<dannyg> how do i nix-store --export of everything in the last nixos switch (basically everything that is in use)?
<gchristensen> fortunately, with this sort of thing, if there is a problem we'll likely have tho opportunity to resolve the situation before anything dire happens
sivteck has joined #nixos
jrolfs has joined #nixos
<tjg1> i might get in touch with the maintainer to see what exactly the addon does and whether we should distribute it
<ikwildrpepper> dannyg: /run/current-system
<ikwildrpepper> you can probably just do: nix-store --export /run/current-system
<domenkozar> nix-store --export is broken in Nix 1.11
sivteck has quit [(Ping timeout: 264 seconds)]
<domenkozar> (or the import, I don't remember)
ericsagnes has joined #nixos
<domenkozar> it doesn't sign the closures and that chockes the import, which requires signature
<dannyg> ikwildrpepper: path ‘/run/current-system’ is not in the Nix store
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
<ikwildrpepper> dannyg: hm, perhaps you need to resolve the symlink
ericsagnes has quit [(Ping timeout: 256 seconds)]
<dannyg> ikwildrpepper: thx, i think it's doing it's thing now with: nix-store --export $(nix-store -qR /nix/store/ql1ghvaadpdr8rrigr5cfkwr9i01zmp9-nixos-15.09.git.a3521b6M) > out
FRidh has joined #nixos
dash_ is now known as dash
<domenkozar> ikwildrpepper: it won't work
<domenkozar> $ nix-store --export $(nix-store -r /nix/store/4d6f8hg5gv20nsbq7b52qzn6bcs4fvlh-coreutils-8.26/) | nix-store --import
<domenkozar> warning: you did not specify ‘--add-root’; the result might be removed by the garbage collector
<domenkozar> error: imported archive of ‘/nix/store/4d6f8hg5gv20nsbq7b52qzn6bcs4fvlh-coreutils-8.26’ lacks a signature
avn has joined #nixos
FRidh has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to release-17.03: https://git.io/vS2xK
<NixOS_GitHub> nixpkgs/release-17.03 fd8a238 Bas van Dijk: strongswan: 5.5.1 -> 5.5.2...
<Dezgeg> works for me
<Dezgeg> you need to be root or a trusted user I think
<NixOS_GitHub> [nix] edolstra pushed 3 new commits to master: https://git.io/vS2p8
<NixOS_GitHub> nix/master 256940f Eelco Dolstra: nix-daemon: Disable path info cache...
<NixOS_GitHub> nix/master 6b5e271 Eelco Dolstra: Add a method to allow hydra-queue-runner to flush the path info cache
<NixOS_GitHub> nix/master 963f2bf Eelco Dolstra: Fix bogus "unexpected Nix daemon error: interrupted by the user"
Itkovian has quit [(Ping timeout: 240 seconds)]
Sonarpulse has joined #nixos
<gchristensen> Dezgeg: can you update the nixos expressions to build on aarch64 but not be blocked on aarch64?
ericsagnes has joined #nixos
<Dezgeg> that's what it's doing now
<gchristensen> hrm
<Dezgeg> in nixpkgs-unstable at least
<gchristensen> I thought just nixpkgs?
<Dezgeg> I think the problem with adding them to the nixos jobset makes the evaluator run out of memory
filterfish has quit [(Ping timeout: 256 seconds)]
acowley_away is now known as acowley
johann__ has quit [(Quit: Leaving.)]
<NixOS_GitHub> [nixpkgs] offlinehacker reopened pull request #23135: earlyoom service: init (master...earlyoom-service-init) https://git.io/vyfX4
FRidh has joined #nixos
bigvalen has joined #nixos
<bigvalen> I updated to the latest version of Plex at home. But 'Plex Transcoder' seems to not be able to find libdrm.so.2, even though it's in the local directory. I could run it when I ran "LD_PRELOAD=./libdrm.so.2 ./Plex\ Transcoder".
<bigvalen> What's the real fix there ?
<bigvalen> I assume patchelf didn't do everything it was supposed to
<gchristensen> what is the rpath for the transcoder?
<gchristensen> (is it really long?)
seanz has joined #nixos
<bennofs> LD_PRELOAD is the devil
<bennofs> At least use LD_LIBRARY_PATH
<bigvalen> $ readelf -d Plex\ Transcoder |head -20
<bigvalen> Dynamic section at offset 0x238 contains 36 entries:
<bigvalen> Tag Type Name/Value
<bigvalen> 0x000000000000001d (RUNPATH) Library runpath: [/nix/store/74rd0lsyavsrysvgyblcfn0nhlgmfb7q-plex-1.5.3.3580/usr/lib/plexmediaserver]
<bigvalen> And that directory is where libdrm.so.2
<bigvalen> Oh, I don't want to use LD_PRELOAD, it was just to confirm that was the problem :)
<bigvalen> Interestingly, 'readelf' has 'NEEDED' entries for each library, but no mention of libdrm.so.2 - ldd can tell that it's needed though
<bigvalen> https://pastebin.com/4ny0vQpp - for more detail
<domenkozar> niksnut: globin: we didn't update nixos/modules/virtualisation/ec2-amis.nix
<disasm> bigvalen: after a year of messing with the plex nixos package, I just switched to the docker container...
Filystyn has quit [(Ping timeout: 260 seconds)]
<bigvalen> disasm; I can see why. This happens about every four months.
<disasm> bigvalen: yup...
<bigvalen> How do you go about doing a docker container ? I'm still ... confused by making up packages on Nixos, TBH.
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
<bigvalen> Should shared libraries also get patchelf treatment ? I don't see an rpath in the .so files, for instance
<domenkozar> niksnut: can I cherry-pick that to 17.03?
jrolfs has quit [(Ping timeout: 240 seconds)]
<niksnut> sure
<NixOS_GitHub> [nixpkgs] domenkozar pushed 1 new commit to release-17.03: https://git.io/vSaTw
<NixOS_GitHub> nixpkgs/release-17.03 3603ca8 Eelco Dolstra: Add 17.03 AMIs
<disasm> bigvalen: virtualisation.docker.enable = true; virtualisation.docker.storageDriver = "btrfs"; (if you use btrfs). Then https://hub.docker.com/r/plexinc/pms-docker/ to start container.
<bigvalen> Yay, I get to finally use docker for something
jensens has joined #nixos
<bigvalen> Cool. I'll do that tonight. Need to move over the existing content & claim token first, I suppose.
dannyg has quit [(Quit: dannyg)]
RchrdB has quit [(Ping timeout: 260 seconds)]
gal_bolle has quit [(Quit: Konversation terminated!)]
mkoenig has quit [(Remote host closed the connection)]
[0x4A6F] has joined #nixos
jgertm has quit [(Ping timeout: 240 seconds)]
marsel has quit [(Ping timeout: 268 seconds)]
Jackneilll has quit [(Read error: Connection reset by peer)]
RchrdB has joined #nixos
derjohn_mob has joined #nixos
mkoenig has joined #nixos
<domenkozar> niksnut: have you seen issues with nixops saying "waiting for SSH"?
<domenkozar> seems like ami doesn't get up with latest 17.03 commit
mkoenig has quit [(Remote host closed the connection)]
<disasm> bigvalen: http://nixpaste.lbr.uno/mrZQJVLS is my compose file if that helps you out :)
mkoenig has joined #nixos
<copumpkin> what's with the thousands of failures on staging?
<disasm> I'm running an openvpn client inside a nixos-container. If I have the service config autoStart=true it just hangs on start. I can root-login and have no network connectivity. As long as I have autoStart=false it works fine and I can manually start.
FRidh has quit [(Ping timeout: 260 seconds)]
<copumpkin> darwin is largely fixed now
<copumpkin> so the 10k+ failures are something else
<niksnut> domenkozar: no
railswalker has joined #nixos
__Sander__ has quit [(Quit: Konversation terminated!)]
<railswalker> I want to package a KDE application that is in kde/srcs.nix. How can I determine the necessary nativeBuildInputs and propagatedBuildInputs?
derjohn_mob has quit [(Ping timeout: 240 seconds)]
arjen-jo1 has quit [(Ping timeout: 260 seconds)]
<disasm> railswalker: I don't know if there's a better way, but I make a best guess, run nix-build, try running the app, if it works great, if not, look at the failures and determine what package provides that dependency.
zeus_ has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 1 new commit to master: https://git.io/vSaZ9
<NixOS_GitHub> nix/master ba20730 Eelco Dolstra: Implement RemoteStore::queryMissing()...
<disasm> railswalker: a good place to start would probably be an already packaged one: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/kde/akonadi-contacts.nix
jrolfs has joined #nixos
[0x4A6F] has quit [(Ping timeout: 240 seconds)]
[0x4A6F] has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/vSang
<NixOS_GitHub> nixpkgs/master 365e8a7 Michael Raskin: quicklispPackages: update to fresh QuickLisp...
jrolfs has quit [(Ping timeout: 260 seconds)]
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
v0|d has joined #nixos
mguentner2 is now known as mguentner
<NixOS_GitHub> [hydra] edolstra pushed 1 new commit to master: https://git.io/vSanx
<NixOS_GitHub> hydra/master 426aea1 Eelco Dolstra: hydra-queue-runner: Allow multiple concurrent daemon connections
<bennofs> niksnut: will hitting cache.nixos.org with many (~100) concurrent requests cause 500s?
<bennofs> what's the number of requests "allowed" that do not risk getting 500's?
<gchristensen> given that it is cloudfront
<gchristensen> basically infinity
<bennofs> should I just retry on 500 from cloudfront? I seem to be getting them sometimes
<gchristensen> yeah, should always build in a retry
<bennofs> hmm wait I am already retrying
<sik> which package contains the OPENGL_gl_LIBRARY ?
<sik> Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)
<niksnut> bennofs: yes
<niksnut> I don't think there is a documented limit
<niksnut> I did some testing of S3 upload performance
v0|d has quit [(Remote host closed the connection)]
<niksnut> IIRC, I started getting errors when uploading with >512 concurrent connections
<railswalker> disasm: for some reason when I do nix-build -A kdeApplications.krdc it tells me the attribute 'krdc' in selection path 'kdeApplications.krdc' not found
<sik> goibhniu, i got stuck finding which package shall i put for OPENGL_gl_LIBRARY dependency in build Inputs. there's a hardware/opengl.nix
<railswalker> i've added krdc to the list in all-packages.nix under "inherit (kdeApplications)" next to akonadi
<railswalker> nevermind, i forgot to also add it under kde/default.nix
FRidh has joined #nixos
FRidh has quit [(Client Quit)]
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
byteflame has quit [(Ping timeout: 268 seconds)]
<disasm> glad you figured it out, I really didn't want to install kde to troubleshoot :)
<disasm> sik: I think you need openglSupport
acowley is now known as acowley_away
<sik> disasm, the line look like this ", openglSupport ? false, mesa_noglu, mesa_glu"
<sik> but then I don't understand what should i put in buildInputs
mudri has quit [(Ping timeout: 240 seconds)]
stepcut has joined #nixos
mando has joined #nixos
mando is now known as Guest75582
<SovereignBleak> Any heavy users of emacs been able to get pdf-tools working?
<disasm> sik: looking at the wine package I see this in buildInputs: ++ lib.optionals openglSupport [ pkgs.mesa pkgs.mesa_noglu.osmesa pkgs.libdrm ]
<domenkozar> niksnut: oh it was ec2 policy thing
<disasm> so I'm assuming if you have mesa_noglu and mesa_glu as buildInputs it should propogate to get the opengl headers.
<seanz> This has probably been asked before, but is there a good resource for learning how to write Nix packages? I have examined several and keep falling down at the point of knowing what happens behind the scenes.
<seanz> There are many wrappers and functions provided that I am having trouble getting a handle on.
<SovereignBleak> sik:
jgertm has joined #nixos
<disasm> sik: I believe it's probly glproto, but that's propogated by mesa
<SovereignBleak> hardware.opengl https://www.irccloud.com/pastebin/MbwXdMCp/opengl
<SovereignBleak> sik: That's what fixed my opengl errors.
<gchristensen> seanz: I think a lot of my learning was by asking questions and searching around for similar stuff with search.nix.gsc.io
<seanz> gchristensen: Interesting site! I probably just need to dive in and fail at writing a few packages before it'll become clear.
<seanz> Thanks for the link.
<disasm> gchristensen: haha, it's like git grep for the web!!! :)
<sik> disasm adding buildInputs = [ itk qt5.full mesa_noglu mesa_glu ]; seems to pass the configuration stage, but it does not seem to compile
<SovereignBleak> gchristensen: What is this thing even?
<disasm> sik: what's the error you're getting?
<gchristensen> SovereignBleak: it is a search engine, running etsy's Houndd
<SovereignBleak> gchristensen: Wait, does this search all of github by search string? This is the miracle I've been waiting for.
<gchristensen> it uses trigrams to be good at searching code
<gchristensen> it doesn't search all of github, just nixos stuff
<disasm> SovereignBleak: I think it's just nixpkgs, right gchristensen?
<gchristensen> nix, nixpkgs, nixops, etc. etc.
<disasm> ooh, cool :)
<gchristensen> click "Advanced" to see the full list
<disasm> saving that site for later!
<SovereignBleak> Still extremely useful to a newb like me.
<disasm> yeah, I've just got local clones and been doing `git grep` commands myself.
<domenkozar> hmm I forgot again, how does one read a file into nix string without creating a store path?
<gchristensen> readFile I think?
<copumpkin> niksnut: one weird intermittent error I'm getting from S3 right now in the channel downloader is this: curl: (35) Unknown SSL protocol error in connection to s3.amazonaws.com:443. Any idea if your current retry logic would retry on that one? If implemented in one way (expecting HTTP codes like 5xx) I could see it considering it an unrecoverable error
<sik> disasm: its compiling so far
<disasm> seanz: I'd start with doing some overrides first. I got my feet wet with nix overriding a bunch of neovim and zsh config stuff. also, I found this really helpful to understand a lot of the syntax: https://medium.com/@MrJamesFisher/nix-by-example-a0063a1a4c55
<domenkozar> gchristensen: I think that requires a path, which points to the store
<domenkozar> nix-repl> builtins.readFile "blabla"
<gchristensen> hmm
<domenkozar> error: string ‘blabla’ doesn't represent an absolute path, at (string):1:1
<seanz> disasm: Thanks! I have tried once or twice to override a package but got caught up with some details. I've added the article to my reading list.
aminechikhaoui has quit [(Ping timeout: 264 seconds)]
<sik> does anyone develop in python? are you using conda or virtualenv on the top of nixos ?
<seanz> Last time I developed python code in NixOS, I used virtualenv.
<seanz> I _wanted_ to create a proper package for the app I was developing, but I didn't get that far.
<seanz> *Nix package
jensens has quit [(Ping timeout: 256 seconds)]
<LnL> domenkozar: it just needs to be absolute, pretty sure it's not copied to the store
goibhniu has quit [(Ping timeout: 240 seconds)]
<niksnut> copumpkin: no that one is not retried
MichaelRaskin has joined #nixos
<copumpkin> niksnut: is there a principled way to make it?
<niksnut> sure, add it download.cc as a transient error
mudri has joined #nixos
<copumpkin> niksnut: along the lines of || code == CURLE_RECV_ERROR ?
<niksnut> however, from the description on https://curl.haxx.se/libcurl/c/libcurl-errors.html it doesn't sound like a transient error
ixxie has quit [(Ping timeout: 260 seconds)]
<avn> sik: I used nix-shell, with shell.nix with all dependencies, and PYTHONPATH=$(pwd):$PYTHONPATH for libraries of local project. (I hope I find some way to do "setup.py develop" in future)
<copumpkin> niksnut: I think it's something to do with S3 host backends getting retired mid-stream. I've definitely gotten it dozens of times in the past few days after hammering it a fair amount
<copumpkin> I think it's just an end-of-stream in the middle of a TLS exchange
jgertm has quit [(Ping timeout: 240 seconds)]
<nh2> does nix patch gcc somehow so that it doesn't search /usr/lib for linking by default? clang in nix still seems to do that
<copumpkin> niksnut: so if I added that retry condition you'd accept it?
<nh2> e.g. `strings /nix/store/...-clang-3.9.1/bin/clang | grep /usr/lib` outputs results, but `strings /nix/store/...-gcc-5.4.0/bin/gcc | grep /usr/lib` does not; on Ubuntu it does, so I assume nixpkgs patches it out of gcc but forgets to do so for clang
railswalker has quit [(Ping timeout: 260 seconds)]
derjohn_mob has joined #nixos
<sik> avn, thanks
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vSazR
<NixOS_GitHub> nixpkgs/master 2994f14 taku0: add source-han-serif-japanese, source-han-serif-korean, source-han-serif-simplified-chinese, source-han-serif-traditional-chinese: An open source Pan-CJK serif typeface
<NixOS_GitHub> nixpkgs/master 4984e7e Tim Steinbach: Merge pull request #24624 from taku0/source-han-serif...
<avn> sik: virtualenv can be ok, if you work on stable and run gc rarely, because VE refer to python core in /nix/store.
arjen-jo1 has joined #nixos
<domenkozar> niksnut: why does builtins.readFile require absolute path?
<gchristensen> I'd guess to avoid the ambiguities of what a relative path means
bennofs has quit [(Ping timeout: 246 seconds)]
sik has quit [(Quit: Page closed)]
reinzelmann has joined #nixos
vaibhavsagar has quit [(Ping timeout: 240 seconds)]
<copumpkin> relative paths = literally the devil
<copumpkin> unless they're relative nix paths
<copumpkin> in which case they're cool
<nh2> domenkozar: is your problem that using ./path evaluates to /nix/store/asdfasdf?
<domenkozar> well now I have to do builtins.getEnv "PWD"
<domenkozar> which Nix could do for me
<nh2> domenkozar: special trick:
<nh2> toString ./nonexistent/..
<nh2> evaluates to $PWD
<nh2> that is better than getEnv "PWD" because it works also when you are in a different directory
<LnL> why not just ./.
<gchristensen> ./. will import it into the store
<nh2> and ./. has a bug that the parent directory name goes into the derivation, making it less reproducible
<domenkozar> nh2: yeah, see https://github.com/NixOS/nix/issues/904
endformationage has joined #nixos
<domenkozar> nh2: neat trick, thanks.
<domenkozar> I'll add that to nix-cookbook.readthedocs.io
<domenkozar> nh2: that's really a Nix bug, not nixpkgs
marsel has joined #nixos
<domenkozar> nh2: thanks
byteflame has joined #nixos
<domenkozar> path vs string is really the a pain
<domenkozar> need to document those conversions and tradeoffs
<nh2> domenkozar: when I filed it, I didn't know it was a nix bug
<domenkozar> nh2: oh that's ok, if you find the willpower to migrate that'd be perfect
<nh2> domenkozar: I also think it's bad, especially because what a ./path is magically changes based on into what function you feed it. To me it doesn't make sense that in a pure language an expression means two different things depending on the *consuming* function
<nh2> domenkozar: also (toString ./nonexistent/..) is clearly a hack, at least we should make it possible to do (toString ./), but nix doesn't like that so far
<nh2> domenkozar: but please still put it into the cookbook for now, would have saved me some time couple days ago to have that
<gchristensen> wait a sec
hexanode has joined #nixos
<domenkozar> nh2: yeah I have a few notes on that
<LnL> nh2: domenkozar: builtins.getEnv "PWD" will also work in most cases
<domenkozar> maybe deserves a blog post
<gchristensen> this is exactly the dang problem with relative paths, is what does it mean? is it relative to the call site or relative to the code's position?
<copumpkin> this is a fun thing to see in my NixOS box:
<copumpkin> sudo: /run/current-system/sw/bin/sudo must be owned by uid 0 and have the setuid bit set
<LnL> copumpkin: updated to 17.03?
<copumpkin> I'm guessing some system switch/upgrade b0rked
<LnL> copumpkin: start a new shell / reboot
hexanode has quit [(Client Quit)]
<copumpkin> 16.09pre85931.125ffff (Flounder)
<gchristensen> bash -l maybe
<LnL> the path of the setuid wrappers changed
<LnL> oh :/
<domenkozar> copumpkin: that's a gift for beta testing
<copumpkin> :D
<copumpkin> joy
<domenkozar> afaik it's fixed in 17.03
<domenkozar> but you probably upgraded before it was fixed
<copumpkin> I guess I can boot into a single-user mode
<domenkozar> (that's my assumption)
<domenkozar> copumpkin: no need to, /run/wrappers/bin/sudo should work
<copumpkin> aha!
<copumpkin> you're right
ertesx has joined #nixos
<copumpkin> <3 <3
<LnL> ^ the path moved, but an existing process won't pick it up
<domenkozar> pff first time today, thought it's going to be a wrong day
<domenkozar> (been working for the whole day, excuse my illusional comments)
<nh2> LnL: getEnv "PWD" does not work if you use it in a file that is imported from e.g. a subdir
<LnL> yeah
byteflame has quit [(Quit: Lost terminal)]
<domenkozar> yeah nh2's hack is pretty good, I have to verify that it really doesn't create the store path
ertes has quit [(Ping timeout: 240 seconds)]
ertesx is now known as ertes
<nh2> domenkozar: trace it, that proved it for my use case
Guest75582 has quit [(Remote host closed the connection)]
seanz has quit [(Quit: Leaving.)]
seanz has joined #nixos
<NixOS_GitHub> [nix] copumpkin opened pull request #1306: Retry downloads on transient SSL errors too (master...retry-on-ssl-error) https://git.io/vSawn
<copumpkin> oh whoops
<domenkozar> also interesting is: Nix can't handle bytes, so if you have random data (secret) you have to encode it
<dash> domenkozar: alternate choice: make all of your secrets be emoji
xadi has quit [(Ping timeout: 240 seconds)]
<domenkozar> X company bankrupted because all their secrets smiled
<nh2> domenkozar: what do you mean with "can't handle bytes", like you can't literal-declare them or you can't read them from disk?
<domenkozar> nh2: both
<NixOS_GitHub> [nixpkgs] xNWDD opened pull request #24684: gitkraken: 2.3.1 -> 2.3.2 (master...gitkraken/2.3.2) https://git.io/vSawa
<dash> nh2: nix doesn't have a bytes type, just unicode strings
<Dezgeg> it's actually not unicode, but rather null-terminated C string so no null bytes allowed
marsam has quit [(Read error: Connection reset by peer)]
<nh2> hmm, that sounds inconvenient
<domenkozar> is there an issue for it?
<domenkozar> nope
<nh2> if you make it I +1 it
<dash> Dezgeg: yikes! i'm even more poorly informed than i thought :)
<dash> nh2: don't listen to me about nix internals apparently
marsam has joined #nixos
bennofs has joined #nixos
marsam has quit [(Remote host closed the connection)]
katyucha has quit [(Killed (niven.freenode.net (Nickname regained by services)))]
katyucha_ is now known as katyucha
katyucha_ has joined #nixos
xadi has joined #nixos
arjen-jo1 has quit [(Quit: WeeChat 1.7)]
seanz1 has joined #nixos
seanz1 has quit [(Client Quit)]
agjacome has joined #nixos
<copumpkin> niksnut: if you can merge that, I'll build myself an AMI with nixUnstable and test a lot more than I have been :)
seanz has quit [(Ping timeout: 246 seconds)]
v0|d has joined #nixos
<nh2> domenkozar: thanks
xadi has quit [(Quit: Leaving.)]
<copumpkin> it looks like a ton of the new failures on staging are due to a random timeout on boehm-gc
<copumpkin> on linux
<v0|d> hello, is there way to replace ".." in ../os-specific/ with <nixpkgs>/os-specific/ ?
<SovereignBleak> What to do if two things define a variable differently but one is defined in hardware-configuration.nix and that tells me not to edit it?
<v0|d> im trying to override some pkgs.
<copumpkin> niksnut, ikwildrpepper: also, it looks like the aarch64 packet box has a full disk: http://hydra.nixos.org/build/51282869/nixlog/1
<copumpkin> or gchristensen if you still have access to it
<symphorien> Maybe try mkforce ?
<gchristensen> copumpkin: I do, ugh, I've thought-i-fixed-that twice now
<copumpkin> nix-collect-garbage -d on a cron job? :)
<copumpkin> anyway, I think that's a large chunk of the failures on staging, but the others I think are the random boehm failure
<SovereignBleak> symphorien: Is that to me? I'm guessing this is a pkgoverride kind of solution?
marsel has quit [(Ping timeout: 246 seconds)]
<symphorien> SovereignBleak: https://nixos.org/nixos/manual/#sec-modularity search for mkforce
coltfred has quit [(Ping timeout: 240 seconds)]
<steveeJ> has anyone tried if /nix can be cached between runs on travis?
<gchristensen> IIRC it _could_ be but would have to be copied to and from another directory each time
<steveeJ> gchristensen: the travis native cache handler can't do it?
<gchristensen> I don't think so, can it?
<gchristensen> I thought the travis cache handler required it be in like ~/.cache
<steveeJ> you can specify any directory
<gchristensen> hmm neat
<gchristensen> should try it!
v0|d has quit [(Remote host closed the connection)]
<copumpkin> niksnut: found my first issue with nixUnstable :) I can't build images with it anymore, because I think some of the substituter voodoo we do in the VM doesn't work
* copumpkin motions vaguely in the direction of his image improvement PRs
<NixOS_GitHub> [nixpkgs] twhitehead opened pull request #24686: tensorflow: depend on cudatoolkit 8 and cudnn 5.1 (release-17.03...release-17.03) https://git.io/vSaPE
aminechikhaoui has joined #nixos
andrewrk_ is now known as andrewrk
<grillon> hi there
coltfred has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm opened pull request #24687: slack: add libs to runtime (master...fix-slack) https://git.io/vSaXU
<steveeJ> Havvy: have you by chance seen this problem with rust-overlay? https://s3.amazonaws.com/archive.travis-ci.org/jobs/219395776/log.txt
civodul has joined #nixos
<pingveno> Has anyone tried to get virtualfish working on nixos?
<NixOS_GitHub> [nixpkgs] mbrgm opened pull request #24688: mopidy: Add gst-plugins-bad to buildInputs (master...mopidy-gst-plugins) https://git.io/vSa18
civodul` has joined #nixos
AllanEspinosa has joined #nixos
<pingveno> Its the fish equivalent to virtualenvwrapper
marsam has joined #nixos
civodul has quit [(Ping timeout: 268 seconds)]
brodul has quit [(Quit: My hovercraft is full of eels!!)]
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vSaDY
<NixOS_GitHub> nixpkgs/master d3ef8dc Franz Pletz: gitlab: 8.17.4 -> 8.17.5...
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to release-17.03: https://git.io/vSaDs
<NixOS_GitHub> nixpkgs/release-17.03 536d3ca Franz Pletz: gitlab: 8.17.4 -> 8.17.5...
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to release-16.09: https://git.io/vSaDc
<NixOS_GitHub> nixpkgs/release-16.09 c78c5e9 Franz Pletz: gitlab: 8.17.4 -> 8.17.5...
mkoenig has quit [(Read error: Connection reset by peer)]
mkoenig has joined #nixos
nckx has quit [(Quit: restarting my ZNC)]
nckx has joined #nixos
nckx has quit [(Client Quit)]
nckx has joined #nixos
aminechikhaoui has quit [(Quit: leaving)]
phpfpm has joined #nixos
<SovereignBleak> symphorien: This is exactly what I wanted. Thank you!
civodul` is now known as civodul
<phpfpm> I just updated my server to NixOS 17.03, but now I get an error when running PHP scripts via nginx: "Primary script unknown" while reading response header...
<phpfpm> I have googled different terms, looked at all the posts I could find, checked the SCRIPT_FILENAME, checked the user of phpfpm, and checked whether the user matched the PHP files it tried to request, and all seem OK
<phpfpm> I saw that PHP updated to 7.1 with the upgrade to 17.03, but other than that, does anyone have any idea what might be the cause of it failing after the upgrade?
Itkovian has joined #nixos
<phpfpm> Only thing left I can think of is to copy back the config of phpfpm as it was on 16.09, and otherwise I will just have to revert back completely to 16.09 for the time being
Itkovian_ has joined #nixos
<manveru> phpfpm: did you try to google for the error?
<exarkun> Any chance I can nix-build to stdout instead of to a file in the store?
<copumpkin> exarkun: what would that mean?
takle has quit [(Remote host closed the connection)]
<copumpkin> the store could be an arbitrary folder
<exarkun> er
Itkovian has quit [(Ping timeout: 240 seconds)]
<exarkun> I'm sorry, I don't understand.
<dash> exarkun: what do you want written to stdout?
<phpfpm> manveru: Like I said, I have googled different variations of the error message and looked at every potential lead I could find
<exarkun> I'm using dockerTools.buildImage so it's writing a Docker tar archive thing to the store. Which I then read out to load into Docker.
<dash> exarkun: Ah.
<phpfpm> manveru: All solutions basically state the same, the most complete answer I could find was here: http://serverfault.com/a/754378 but I tried looking at all of them, without any progress
mojjo has joined #nixos
<dash> exarkun: Having a look at dockerTools now to see how it does stuff...
Wizek_ has quit [(Ping timeout: 240 seconds)]
<exarkun> dash: It ends with `tar -C image --mtime=0 -c . | pigz -nT > $out` I think
<phpfpm> manveru: It has to be something that is now different under 17.03 since the configuration works fine on 16.09
Itkovian_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<exarkun> (So keeping the .tar.gz off disk saves _one_ I/O round-trip but there's actually a lot more hiding inside... but one thing at a time)
<manveru> phpfpm: there was some change for the php configuration for 17.03 in the release notes
jrolfs has joined #nixos
<manveru> my internet is hell today, even loading github takes minutes :(
andymandias has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<dash> exarkun: Yeah. My guess is that it's going to be tough to make $out not be a store path
<manveru> but maybe https://github.com/NixOS/nixpkgs/pull/24648 is related
andymandias has joined #nixos
<phpfpm> manveru: Reverting back phpfpm's changes made in 17.03 fixed it! Yay!
<exarkun> dash: I don't even really have an idea what mechanism I might able to employ with nix-build other than store paths
<exarkun> dash: _not_ stdout I'm assuming because when does that ever work
<exarkun> dash: So ... like ... fifos? yea right like that ever works.
<manveru> exarkun: making /dev/shm your nix store ;)
patrickmn is now known as pmn
<exarkun> manveru: I thought about a tmpfs but the nix store is also the build cache so I have a hard time believing that's going to make the overall process faster
<mojjo> does someone have a good Idea how to update a nix file at a specific point with the output of nix-prefetch-git?
jrolfs has quit [(Ping timeout: 260 seconds)]
<mbrgm> I'm currently upgrading the nixpkgs of the entire elk stack (elasticsearch, logstash, kibana). should I create separate pull requests for each of the packages? they're all on 2.x and the newer versions 5.x don't interoperate with the 2.x ones...
<manveru> exarkun: yeah... was just joking, i mostly do a nix-store --delete for the tgz after building
<mbrgm> so i thought I'd better create one pull request for all 3 components
<manveru> img=$(nix-build --no-out-link nix/docker.nix -A fullImage) && docker load -i $img && nix-store --remove $img
<manveru> something along these lines
derjohn_mob has quit [(Read error: Connection timed out)]
derjohn_mob has joined #nixos
<exarkun> manveru: mm interesting
<manveru> if you don't have massively more ram than diskspace, that might be an option :)
<exarkun> I'm more interested in the latency the I/O introduces than the disk usage (although presumably at some point I'll have to think about cleaning out my store)
tsmeets[m] has joined #nixos
<exarkun> I suppose a tmpfs is still _pretty_ long lived... I wonder how big it would actually have to be
<manveru> in my experience, building docker images is slow as hell, because of the constant un/repacking
<dash> exarkun: ok i don't have a good answer for you other than "it probably has to be a store path"
<manveru> a few months ago there was a guy that had a better implementation, but he didn't want to release it until it was "ready"
<exarkun> ehhh about 16GiB in my nix store right now. pretty big I guess.
<exarkun> manveru: yea I heard that in here a week or three ago
<exarkun> manveru: probably should stop telling people about it
<exarkun> because that guy is never going to release it
takle has joined #nixos
<manveru> :(
<exarkun> and anyone who hears about it is never going to try to work on dockerTools themselves
<manveru> true that
<manveru> sorry, it's all the hope i have anyway
Supersonic112 has quit [(Ping timeout: 240 seconds)]
reinzelmann has quit [(Read error: Connection timed out)]
<manveru> it was horribly slow a year ago, now i can at least use nix to build images :)
<manveru> my /nix/store is about 100G atm
<manveru> uses up half of my SSD... i should clean up again
reinzelmann has joined #nixos
<copumpkin> exarkun: what guy?
takle has quit [(Ping timeout: 260 seconds)]
<mojjo> I think it makes sense that fetchgit/fetchFromGitHub need to point to specific revisions. I'm looking however for a way to express 'grab the latest', as nix-prefetch-git does. Macros would be nice for this...
CcxWrk has quit [(Remote host closed the connection)]
<dash> mojjo: a nix expression should correspond to a single build artifact so I don't think "grab the latest" is meaningful
<exarkun> copumpkin: I only have third-hand information.
Supersonic112 has joined #nixos
reinzelmann has quit [(Client Quit)]
<mojjo> dash: yeah, this is right.. but say, you point to many git repos in a nix expression. you might want to have a command/shell script or so, that updates your nix file with the latest shas/revisions when you run it..
<dash> mojjo: Sure. What you _can_ do is put the revisions and hashes in a JSON file
<dash> mojjo: and use readJSON in your nix expression to get 'em.
takle has joined #nixos
takle has quit [(Remote host closed the connection)]
CcxWrk has joined #nixos
takle has joined #nixos
<copumpkin> niksnut: std::uniform_real_distribution<>(0.0, 0.5)(downloader.mt19937))
<copumpkin> :)
<copumpkin> I'm glad we have a quality PRNG for our random backoff!
ma9e has joined #nixos
<ma9e> anyone know if there's a trick to getting i3 working? i get "could not create graphical context" and something about "no sockets passed"
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
alx741 has joined #nixos
alx741 has quit [(Client Quit)]
alx741 has joined #nixos
<phpfpm> ma9e: is this under 17.03 or 16.09? I am currently running i3 on my desktop which is running on 16.09
<ma9e> phpfpm, it's 17.03
eacameron has joined #nixos
<phpfpm> ma9e: then I will postpone upgrading my desktop for now, until I have more time available, all I can suggest is to try and downgrade to what it was on 16.09, the changes in the window manager service are unlikely the cause, but you could try and downgrade the i3 package: https://github.com/NixOS/nixpkgs/blob/release-16.09/pkgs/applications/window-managers/i3/default.nix
<NixOS_GitHub> [nixpkgs] lverns opened pull request #24689: shotwell: 0.25.90 -> 0.26.0 (master...bump-shotwell) https://git.io/vSVet
hexagoxel has quit [(K-Lined)]
cpennington has quit [(Remote host closed the connection)]
lambdamu has joined #nixos
tsmeets[m] has quit [(Remote host closed the connection)]
<lambdamu> I just replaced the dreaded build-remote.pl NIX_BUILD_HOOK with this tiny, tiny script http://lpaste.net/354381
<lambdamu> I feel so liberated, no more 3GB closure uploads
eacameron has quit [(Remote host closed the connection)]
<ma9e> phpfpm, if downgrading to 16.09 fixes my problem, should i file an issue?
jrolfs has joined #nixos
<phpfpm> ma9e: You should yes, but know that I just learned from a friend of mine that he is running 17.03 with i3 without any issue, so it is likely something else, but still, it could be worth a try, maybe the thing causing the problem is not an issue in the previous version, dunno, it is all I can think of without more info
<ajp_> hello all - I'm trying to test the new overlays, but it seems to not pick up any new packages/attributes which I add
<ajp_> I've put what I'm doing here http://lpaste.net/354382 - any idea where I've gone wrong?
<ma9e> phpfpm, it's probably because im using vnc tbh
jrolfs has quit [(Ping timeout: 260 seconds)]
Dezgeg_ has quit [(Ping timeout: 240 seconds)]
<phpfpm> ma9e: Well yeah, that is quite an important piece of context you left out, I always run into problems with the window/desktop manager when doing VNC unless I connect directly to the local display. The VNC servers I had the best experience with are either x0vncserver (https://wiki.archlinux.org/index.php/TigerVNC#Running_vncserver_to_directly_control_the_local_display) or https://wiki.archlinux.org/index.php/Vino
brodul has joined #nixos
andymandias has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
marsam has quit [(Remote host closed the connection)]
arianvp2 has joined #nixos
<arianvp2> How do I access common linux man pages in nixos?
<arianvp2> for example, man unistd.h doesn't do anything
<arianvp2> neither does `man termios`
<benley> huh, I'm actually not sure and now I want to know too
<arianvp2> same for `man epoll`
<arianvp2> basically any basic linux man page for C programming isn't there :(
<arianvp2> which makes C programming really hard :P
<phpfpm> arianvp2: man man unistd.h
<arianvp2> there's probably something obvious that I am missing
<benley> nixpkgs.stdmanpages appears to cover the c++ stdlib/STL
<phpfpm> phpfpm: lol, nevermind me
<arianvp2> hmm
<benley> and uh .. nixpkgs.stdman too?
* benley greps around
<lambdamu> I did nix-env -i man-pages once
<benley> aha, you want nixpkgs.posix_man_pages
<arianvp2> hmm
<arianvp2> I get the following error now
Itkovian has joined #nixos
<arianvp2> use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages
<arianvp2> what does that mean? :(
<benley> what else is in the output?
<benley> it's telling you that two packages are providing the same file(s) and it wants you to decide which one is more important
<arianvp2> ah
<arianvp2> std-man-pages and man-pages both give the same file apparently
<arianvp2> hehe
<benley> one of those packages may be a superset of the other, I haven't looked yet
<benley> posix_man_pages is the one that includes things like termios
drasich has joined #nixos
<arianvp2> okay I did nix-env -iA nixos.posix_man_pages and nix-env -iA nixos.stdman
<arianvp2> but still no man pages when I type man
<arianvp2> :(
<arianvp2> do I need to login and logout?
<benley> dunno. I'm tinkering too now
<arianvp2> we're probably doing something stupid
<avn> arianvp2: it definelly works, if you add it to systemEnvironment in configuration.nix, but idk about nix-env
<arianvp2> ahh I can try that
<benley> I think it will work if you set MANPATH=$HOME/.nix-profile/share/man
<arianvp2> hey so the profile is built up using symlinks right?
<benley> yeah
<arianvp2> has nix ever considered using an overlayfs instead?
<arianvp2> seems like a good usecase for it
<arianvp2> instead of maintaing all the symlinks yourself
<benley> For build sandboxes yes, but for user profiles imho that would be excessively complex
<benley> and it would only work on linux
<MichaelRaskin> Tons of layers of overlayfs?
<MichaelRaskin> That wouldn't work fast
<MichaelRaskin> Symlinks are basically a cache of what is taken from what path
<arianvp2> oh wait overlayfs only supports two layers
<arianvp2> iirc
<MichaelRaskin> You can try layering
romildo has joined #nixos
<arianvp2> Docker et al do it
marsam has joined #nixos
<arianvp2> right?
<MichaelRaskin> Even if you get one that does support more layers, it needs to do a stat on all the unioned possible locations
<benley> yes, and docker has significant IO overhead incurred by layering
seanz has joined #nixos
<MichaelRaskin> (it doesn't depend on whether it is a single mount or a pancake stack of mounts)
<benley> (depending on which storage driver is in use)
andymandias has joined #nixos
<arianvp2> ah
<benley> anyway - using an overlayfs type thing for user profiles would only work on linux, and nix needs to support Darwin and ideally any normal unix system
<arianvp2> hmm fair enough
<MichaelRaskin> We-ell, there is funionfs
<gchristensen> when the nix daemon finds eligible build users (ie: nixbld{1,2,3,...}) it uses getgrnam() and then iterates over ->gr_mem, will this include build users which have the build group as the user's gid, or does it require the build group be a supplementary group?
agjacome has quit [(Quit: leaving)]
andymandias has quit [(Client Quit)]
<MichaelRaskin> I think the latter is true
<gchristensen> that is what I thought too, but wasn't 100% sure
andymandias has joined #nixos
<MichaelRaskin> I think I have tried, but it basically just reads the line in groups without touching passwd
<MichaelRaskin> POSIX says «The structure shall contain an entry from the group database with a matching name.» which is incompatible with checking primary group
<disasm> I'm hitting a brick wall on trying to get this elf binary patched... I keep getting no such file or directory. Here's the readelf output: http://nixpaste.lbr.uno/A_S1qotO and this is my nix file doing the patching: http://nixpaste.lbr.uno/Xu1TvluI
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
leothrix has quit [(Ping timeout: 240 seconds)]
<gchristensen> MichaelRaskin: ahhh excellent, thank you for the reference
<bennofs> disasm: what's wrong with the readelf output?
<MichaelRaskin> Of course one day libsystemd will shadow getgrnam with a One True Way of doing getgrnam
<gchristensen> And Everything Will Be Correct
<gchristensen> D
<MichaelRaskin> Just like journald logs that cannot log vsftpd failure to start
<gchristensen> does vsftpd fail too quickly?
<MichaelRaskin> (at least in any reasonable place; it does get logged somewhere weird)
Itkovian has joined #nixos
<MichaelRaskin> Like every secure program, when it doesn't like the config too much, it prints a meaningful message and immediately exits
<MichaelRaskin> journald logging model requires the corresponding cgroup to exist at the moment journald reads the message from the queue
<MichaelRaskin> write(2,"…"); exit_group(1); doesn't leave much time for a context switch…
<disasm> bennofs: I ls'd all those dirs in the rpath and I'm pretty sure I have all the libs it's requesting, but still getting no such file or directory.
<gchristensen> yeah, I've heard of that bug via fpletz before
<bennofs> disasm: what does ldd say?
<MichaelRaskin> Reading logs is not much better, of course — an equivalent of tail -n 10 reads the entire log file (total volume of reads more than the size of the file) in random order
phpfpm has quit [(Quit: Page closed)]
<disasm> bennofs: /run/current-system/sw/bin/ldd: line 117: result/bin/forticlientsslvpn: No such file or directory
<bennofs> disasm: does the file printed out by patchelf --print-interpreter forticlientsslvpn exist?
Filystyn has quit [(Quit: Konversation terminated!)]
<NixOS_GitHub> [nixpkgs] offlinehacker closed pull request #23135: earlyoom service: init (master...earlyoom-service-init) https://git.io/vyfX4
<NixOS_GitHub> [nixpkgs] offlinehacker closed pull request #24689: shotwell: 0.25.90 -> 0.26.0 (master...bump-shotwell) https://git.io/vSVet
<disasm> haha, it does not... checking what I screwed up
arianvp2 has quit [(Quit: Page closed)]
<disasm> ah, -x86-64
<disasm> bingo! thanks bennofs!
BlessJah has left #nixos []
<bennofs> disasm: you can use $(cat $NIX_CC/nix-support/dynamic-linker) i think
<gchristensen> lol I love that the nix-daemon is considered a 'misc' service
dbmikus has quit [(Quit: WeeChat 1.7)]
jrolfs has joined #nixos
<mojjo> no chance to read in a JSON file relative to the nix expr? readFile seems to just like absolute paths..
<disasm> how can I determine the variable name for /nix/store/w9isfi04krx3ak9g15gx8j61kjzfhwan-pango-1.40.3? I tried pango bot that points to a dir with just the binaries
<bennofs> mojjo: builtins.readFile ./fileName.json
hiratara has quit [(Ping timeout: 246 seconds)]
<mojjo> bennofs: interesting, when putting it into a string, it complains.
<bennofs> mojjo: file names a special in nix, they are not just strings
<adelbertc> what is the difference btwn ${variableName} vs. $variableName? It seems in a `mkDerivation` I can do ${src} (which refers to an earlier expression that calls fetchurl) but I can't refer to $out
<benley> In a string, ${variableName} gets expanded by nix (it's quasiquoting)
<bennofs> mojjo: builtins.toString ./fileName.json will return something like "/nix/store-..."
<bennofs> mojjo: because it will copy the file to the nix store and returns the path of the nix store entry
<benley> whereas nix does not touch $variableName; it's left in the string and bash expands that when nix runs the build
<adelbertc> benley: ah ok, so with braces it expands within nix, without it expands in bash (i guess using an environment variable?)
hiratara has joined #nixos
<benley> exactly
<adelbertc> coolio, thanks
<gchristensen> erm, is this math right? nix.gc.options = ''--max-freed "$((15 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print $4 }')))"'';
jrolfs has quit [(Ping timeout: 264 seconds)]
<mojjo> bennofs: wondering how I can put a var in a relative path: f = x: readFile "./dir/${x}.json"
<bennofs> mojjo: ./dir/${x}.json
<bennofs> mojjo: without quotes
<benley> huh I forgot that the ${stuff} syntax works outside of strings
<gchristensen> ohhh sorry the subtraction is the available space, not the used space
<mojjo> bennofs: nee, does not compile..
<benley> heh okay maybe it doesn't
<bennofs> wait wat
<adelbertc> benley: so for the bash expansion, does $out refer to an envrionment variable called `out` ?
<benley> adelbertc: correct
<bennofs> i could have sworn it works like that
<adelbertc> 👍
<mojjo> is it maybe on purpose in order to keep rel. paths hard-coded?
aminechikhaoui has joined #nixos
<benley> something like that - paths must get expanded (by copying them into the store) before the rest of evaluation happens
mkoenig has quit [(Remote host closed the connection)]
mkoenig has joined #nixos
codygman_ has joined #nixos
<codygman_> Does the nix package manager make a configuration.nix by default and where is it located? If not, is there a default configuration i can copy and where should i place the configuration.nix?
<sphalerite> codygman_: use nixos-generate-config
<avn> codygman_: configuration.nix is part of nixos, it part of keyed path in $NIX_PATH -- nixos-config=/etc/nixos/configuration.nix (is possible do define it to hostname based filename)
phpfpm has joined #nixos
<Heffalump> is it normal for the nixos tmp dir - the one in $TEMP, $TMP, $TMPDIR - to be /run/user/{nnn} ?
<mojjo> is there actually a "deeper" meaning of "_type" attribute names? I think I've seen the same sets having both, a "_type" and a "type" key, which slightly made me wonder...
<codygman_> sphalerite: i don't seem to have nixos-generate-config
<gchristensen> Heffalump: yeah
<gchristensen> that is a systemd thing I think, Heffalump
<Ralith> Heffalump: none of those variables are set in my environment
<Heffalump> it's a RAM disk, right? and 10% of my available memory by default? It's not really a great choice for a temp folder :-)
<Heffalump> feels like I'm missing something about what is intended
<Ralith> why do you need to store large amounts of data there?
<gchristensen> Heffalump: not sure if it is in ram or not
<phpfpm> My nix store is currently at 30GB, which is about all I have available for it. It used to be like 12GB, but now after garbage collection it stays at 30GB, any tips on how to reduce this, other than manually going through duplicates and finding out why they are kept?
<Heffalump> isn't that where you're supposed to store things you only want temporarily? In this case I'm running something that is tracking down a failure in a test suite
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #24688: mopidy: Add gst-plugins-bad to buildInputs (master...mopidy-gst-plugins) https://git.io/vSa18
<gchristensen> phpfpm: have you deleted old profiles?
<Heffalump> anyway, TMPDIR=/tmp ... is solving my immediate problem
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
drasich has quit [(Ping timeout: 246 seconds)]
romildo has quit [(Quit: Leaving)]
<gchristensen> phpfpm: do you do a lot of nix-build's? `find / -name result -type -l` will show you all the `result`s left by nix-build you may not have deleted
<phpfpm> gchristensen, for example I have like 3 times libreoffice 5.1.5.2
<gchristensen> phpfpm: did you collect garbage as root, or as your user?
<sphalerite> gchristensen: wouldn't nix-env --gc --print-roots be more helpful for that?
drasich has joined #nixos
<gchristensen> sphalerite: can be, yeah
<gchristensen> good point
<phpfpm> gchristensen: wow, how I missed that, I made a shell alias, and was using that, but I did not have my usual sudo in front of it, 20GB of free space :D
<gchristensen> nice :)
<gchristensen> guh, a nice thing systemd's timers have over crons: ability to trigger them at will, in exactly the same way systemd would
<phpfpm> now I can actually upgrade to 17.03, because I had only one 1GB remaining
ma9e has quit [(Remote host closed the connection)]
<samae> Is there any way to donate to the NixOS Foundation via Bitcoin?
<phpfpm> systemd has a bit of the same pros and cons as nixos, often more painful to setup, especially the getting the environment right and such, but once you do, it also tends to be more flexible and more guarantees it will run as you expect every time
<gchristensen> samae: not that I know of
<MichaelRaskin> phpfm: flexible? systemd? Erm
hamishmack has quit [(Quit: hamishmack)]
hamishmack has joined #nixos
leothrix has joined #nixos
<gchristensen> less flexible, exactly why I like it
hiratara has quit [(Quit: ZNC - http://znc.in)]
<MichaelRaskin> unflexible enough to bring a system down to a level of carefully configured Windows
xadi has joined #nixos
lambdamu has quit [(Remote host closed the connection)]
codygman_ has quit [(Ping timeout: 240 seconds)]
hiratara has joined #nixos
<phpfpm> well not flexible as in, everything is possible, but flexible in that they cover a lot of use cases
<phpfpm> in a consistent way
ericsagnes has quit [(Ping timeout: 240 seconds)]
<MichaelRaskin> There is some consistency, yes, if I like some feature, it is guaranteed to be broken sooner or later (I gave up on having any meaningful init system after systemd raised the number of hoops to make xinit work above my tolerance)
jsgrant has quit [(Read error: Connection reset by peer)]
<MichaelRaskin> Busybox seems nice and unassuming in the role of PID1, though
calvertvl has joined #nixos
steshaw has joined #nixos
<phpfpm> but is more a rule by now, things will break sooner or later, almost always when you update something that is big enough, things break
<MichaelRaskin> systemd solves problems I don't have by creating new problems I don't currently have
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<phpfpm> just like my first smartphone, it was great, it has so many features compared to my "dumb" mobile phone, but it was worthless for calling people (bad sound) :P
<MichaelRaskin> Also, Firefox update can break _Firefox_, systemd update breaks _screen_
<MichaelRaskin> My anchor point about portable computing device is N810… smartphones are trash, and systemd wants to bring desktop to the same place.
<NixOS_GitHub> [nixpkgs] Profpatsch pushed 1 new commit to master: https://git.io/vSVWB
<NixOS_GitHub> nixpkgs/master bde6e3d Hamish Mackenzie: Fix geoclue build on Darwin
<MichaelRaskin> But I want more RAM in a pocket device, so I slowly learn to shift what I need into terminal-friendly things that can be installed into the Debian chroot
<MichaelRaskin> (I am bad at cross-compiling NixPkgs packages to ARM)
xadi has quit [(Read error: Connection reset by peer)]
<phpfpm> I just have been in luck I guess, I have yet to ran into any issues with systemd, and even though we could do better, I think it is an improvement from what the situation was before in many ways (others, like it doing stuff it has not business doing, not so much)
jluttine has quit [(Ping timeout: 240 seconds)]
<bennofs> there are good reasons for systemd breaking screen though. it was really weird that you can have "hangover" processes from a session like that
<bennofs> having persistent processes be managed by a supervisor seems like a good idea to me
<MichaelRaskin> I am OK with what it does for service management. _Everything_ else (starting with logging) is a regression compared to busybox as init and &>/var/log/service.log for logging
jrolfs has joined #nixos
<bennofs> MichaelRaskin: in systemd's model your session is just another service perhaps? So that's why it wants to manage it aswell :)
<MichaelRaskin> bennofs: well, it breaks clearly described POSIX functionality because Gnome cannot manage its own processes
<bennofs> MichaelRaskin: I think my xmonad with skype also sometimes left skype running after logoff
calvertvl has quit [(Quit: leaving)]
calvertvl has joined #nixos
<MichaelRaskin> I think Mandrake solved the problem before being called Mandriva, by _optionally_ running slay on logout
ericsagnes has joined #nixos
<phpfpm> bennofs, I prefer xmonad over i3 (which I run currently), but do you not also run into problems with qt applications not drawing submenus?
<MichaelRaskin> My idea of logoff includes restarting X server, though (well, my real idea of log off includes stopping X server, because I log in via tty…); if I had a problem with Skype survivng that, I would just solve the problem of Skype not being killed
<bennofs> phpfpm: don't think i had that problem
jrolfs has quit [(Ping timeout: 246 seconds)]
<phpfpm> it was qt5 specific if I remember
<bennofs> MichaelRaskin: I like a strict hierarchical model for resources though, it makes everything easier to understand
<MichaelRaskin> Erm, it's not like systemd was the force pushing for cgroups
<MichaelRaskin> They just want to make sure they are the only ones allowed to manage them
<bennofs> MichaelRaskin: well but the "screen dying" is a consequence of that
<MichaelRaskin> Exactly, of systemd trying to monopolize everything
<bennofs> MichaelRaskin: i mean, it is a consequence if you want your process tree to be be hierarchical where children are not allowed to outlive parents
<MichaelRaskin> I want my init to do _less_ things by count than I would want systemd to _stop_ doing
ebzzry has joined #nixos
<MichaelRaskin> Normal cgroups allow you hierarchy of cgroups which keeps the child in the same cgroup even if the parent dies
<MichaelRaskin> Not sure how this is not hierarchical
<bennofs> MichaelRaskin: well I think if a process dies, it should kill its children. else you've got some child that has no one to take care of
<MichaelRaskin> Resource management is via the hierarchy of _cgroups_, not just processes, after all
calvertvl has quit [(Remote host closed the connection)]
<bennofs> if you have that property, it creates a very simple model of "ownership" which I like
<MichaelRaskin> Inheritance of orphans by the closes ancestor is, of course, a new and unproven idea
<MichaelRaskin> systemd manages to implement this simple model in a way that doesn't allow it to log vsftpd configuration failures correctly
<gchristensen> a very new idea indeed, and most things handle it extremely poorly
<bennofs> MichaelRaskin: yeah I know that this is not how it works right now but it is how I would like it to work
<MichaelRaskin> Why do you need it to be via PID hierarchy and not just cgroup hierarchy?
<abcrawf> I'm having trouble figuring out how to add entries to /etc/binfmt.d. Does anyone know how to do that?
<bennofs> MichaelRaskin: so that I know that no processes are "leaking", because I'm sure that the parent will clean them up?
<MichaelRaskin> It gets implemented via cgroup hierarchy anyway, judging from bugs…
<gchristensen> let's ont miss abcrawf's question in the conversation
<MichaelRaskin> I am actually checking the option name
<gchristensen> just making sure :) I really like #emacs' rule, "Emacs questions trump off-topic chatter, so ask!"
thc202 has quit [(Ping timeout: 240 seconds)]
alunduil has joined #nixos
<gchristensen> ^ no attempt to shut down off-topic talk, just make sure to re-focus to active questions
<MichaelRaskin> environment.etc."binfmt.d/file".source = /file/to/ink
<MichaelRaskin> abcrawf
drasich has quit [(Ping timeout: 246 seconds)]
<MichaelRaskin> ^^^
<MichaelRaskin> You can also use .text to provide literal content
<MichaelRaskin> nixpkgs/nixos/modules/system/etc/etc.nix
<abcrawf> MichaelRaskin: thanks, I'll look into that
<MichaelRaskin> gchristensen: I would answer such questions faster if systemd didn't force me to migrate off the mainline NixOS
Sergio965 has joined #nixos
<Sergio965> Hi all! How do I create a "symlink" to an existing binary?
<Sergio965> The equivalent of `ln -s /usr/bin/this /usr/bin/that`
ambro718 has quit [(Ping timeout: 260 seconds)]
<gchristensen> MichaelRaskin: :)
<MichaelRaskin> Where do you want the symlink to be located?
<alunduil> Anyone have pointers for using builtin functions in logical configurations used by nixops? Everytime I add them, nixops says that module is a function with unapplied arguments.
<Sergio965> MichaelRaskin: I don't know.
<adelbertc> in http://nixos.org/nix/manual/#note is the "Nixpkgs set" just the scope of top-level/all-packages.nix https://github.com/adelbertc/nixpkgs/blob/master/pkgs/top-level/all-packages.nix
<MichaelRaskin> bennofs: you could just destroy the cgroup you want to kill
<gchristensen> alunduil: can you paste an example?
<MichaelRaskin> Sergio965: what is the use case you want to enable?
<Sergio965> MichaelRaskin: I want `cc` to point to `gcc`
<MichaelRaskin> Doesn't it do it already if you instal gcc into systemPackages or profile?
<alunduil> gchristensen, sure. Also, you still in Austin?
<dmj`> how does one query cache.nixos.org
<Sergio965> MichaelRaskin: No
<Sergio965> Or, maybe I didn't do that?
<Sergio965> I did `nix-env -i gcc`
<Sergio965> I got `gcc` but not `cc`.
<MichaelRaskin> Erm. /nix/store/7x4my0kkxvpailqa636g6cf69w3xjjdf-gcc-wrapper-5.4.0//bin/cc -> gcc
<Sergio965> Sorry, I've been using Nix for all of 30 minutes.
<gchristensen> alunduil: no, I moved to Berkshire County, MA
<gchristensen> dmj`: to what end?
<MichaelRaskin> What $(readlink -f $(type -P gcc)) says?
<MichaelRaskin> Oops
<alunduil> That's the configuration I'm getting this output from:
<MichaelRaskin> readlink -f $(type -P gcc)
<dmj`> gchristensen: just want to see what version of `nix` is in the cache
<alunduil> gchristensen, error: value is a function while a set was expected
<dmj`> gchristensen: version(s)
<Sergio965> "/nix/store/h840iyhv5r9k08vkihr2dl39nprlscnc-gcc-5.4.0/bin/gcc"
zeus_ has quit [(Read error: Connection reset by peer)]
<gchristensen> dmj`: basically all of them
mojjo has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
zeus_ has joined #nixos
<gchristensen> alunduil: etcd.nix // { services if you replace with etcd.nix # { services does that fix it? IE comment out the //... portion
<alunduil> gchristensen, let me give that a shot.
bennofs has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin> Hm. Try nix-env -e gcc; nix-env -iA gcc
<alunduil> gchristensen, that does.
<MichaelRaskin> Or maybe -iA nixos.gcc
<alunduil> gchristensen, does that mean you know the answer?
<phpfpm> Sergio965: Add this to your systemPackages: https://pastebin.com/JeNuhPNj
mudri has quit [(Quit: WeeChat 1.7)]
<Sergio965> MichaelRaskin: error: attribute ‘gcc’ in selection path ‘gcc’ not found
<Sergio965> MichaelRaskin: With the -A, it works just fine, but still no `cc`.
<Sergio965> phpfpm: So the `gcc` package doesn't already include this link?
<MichaelRaskin> With the -A but without -i?
<MichaelRaskin> Did you try -iA nixos.gcc ?
<Sergio965> -iA nixos.gcc did it
<Sergio965> For the future, how would I have known to use nixos.gcc instead of gcc?
<MichaelRaskin> gchristensen: any idea why unwrapped gcc got higher priority than wrapper?
<phpfpm> Sergio965: It does on my system, but regarding you initial question, how do you create a symlink to a binary in NixOS, my snippet is what I use for these kind of custom things I want kept explicit in my config
<MichaelRaskin> The true point is -iA (use attribute name, like variable name) instead of -i (search by name)
<Sergio965> I see
<Sergio965> Are you saying -iA nixos.gcc is equivalent to -i gcc ?
<MichaelRaskin> nixos is the name of the channel which acts as a namespace for the packages
<MichaelRaskin> Well, clearly not completely equivalent
<Sergio965> Yeah
<MichaelRaskin> -iA is much faster
<MichaelRaskin> Also more debuggable
<phpfpm> On my system cc is located in gcc-wrapper
<Sergio965> Why is it faster? Presumably there's a local cache?
<Sergio965> Searching a local cache should be very fast.
<MichaelRaskin> Well, -iA is just about evaluating what you need, -i evaluates names of every package in the repository (well, not really every, but most)
sellout- has joined #nixos
seanz has quit [(Quit: Leaving.)]
<MichaelRaskin> Not sure about caching
markus1209 has joined #nixos
markus1219 has joined #nixos
aminechikhaoui has quit [(Ping timeout: 268 seconds)]
<Sergio965> Hmm, okay.
<Sergio965> So why did nixos.gcc do "the right thing" why gcc didn't?
markus1189 has quit [(Ping timeout: 240 seconds)]
<gchristensen> MichaelRaskin, alunduil sorry went to make supper
<MichaelRaskin> There is a complicated story how gcc gets build, there is a core biuld, then there is a wrapper
<alunduil> gchristensen, figured as much. No worries.
marsam has quit [(Remote host closed the connection)]
<MichaelRaskin> You got the core build without the wrapper, which has various drawbacks
markus1199 has quit [(Ping timeout: 260 seconds)]
clever_ has joined #nixos
<alunduil> gchristensen, so your suggestion worked but I'm a little fuzzy as to why.
<alunduil> gchristensen, it also obliterates my customization to that set (I thought it was anyway).
<Sergio965> MichaelRaskin: That seems rather unintuitive.
<Sergio965> But okay.
<pingveno> I'm trying to figure out how to install both python 2 and 3 on my user profile. I think I need to use nix-env --set-flag, but I can't find the correct packages for Python.
<gchristensen> still doing supper, back in a bit -- hang tight!
<MichaelRaskin> gcc is a very central package, and Nix needs to change how dependency resolution works, so it has to be wrapped in an unintuitive way.
<Sergio965> So, now I'm trying to link to sqlite3. I installed sqlite3 via `nix-env -i sqlite-3.17.0`, but the library isn't being found by my compiler, so my guess is that the library wasn't installed.
<pingveno> error: selector ‘python2’ matches no derivations
<MichaelRaskin> It's more complicated…
<Sergio965> Typically I need to install a `sqlite3-dev` package to get the library and headers.
<clever_> Sergio965: you need to do nix-shell -p sqlite3
<Sergio965> But there's only a single sqlite package.
<clever_> Sergio965: nix will never search for libraries in things you nix-env -i
<Sergio965> Huh.
<Sergio965> There's a lot going on here.
zeus__ has joined #nixos
<clever_> Sergio965: oops, nix-shell -p sqlite
<Sergio965> So that puts me in a subshell where the library will be found?
<clever_> yeah
<clever_> thats how all manual compiles are supposed to be done on nix
<Sergio965> That's a lot to ask for.
<clever_> why?
<clever_> if you make a default.nix file, it gets even easyer
<gchristensen> alunduil: I'd recommend trying (builtins.concatStringsSep "," members)
<clever_> with import <nixpkgs> {}; stdenv.mkDerivation { name="foo"; src = ./.; buildInputs = [ sqlite ]; }
<MichaelRaskin> Basically, it is a cost of not having a notion of a conflict between installed packages
<Sergio965> Well, I generally install all of the libraries I use constantly and then compilation just works.
<clever_> Sergio965: put this into a file called default.nix and then run just nix-shell in that dir to get the shell
<alunduil> gchristensen, I was looking for something like that.
<clever_> Sergio965: or nix-build to make nix build it
<Sergio965> This means that I need to know which libraries something's going to use, spin up a nix-shell for that thing, and only then can I compile.
<gchristensen> alunduil: back in a bibt, again :)
<Sergio965> clever_: The `default.nix` is a per-directory thing?
<clever_> Sergio965: yeah
<alunduil> gchristensen, sounds good.
<MichaelRaskin> Well, you can explicitly user default.nix from a different directory
zeus_ has quit [(Ping timeout: 246 seconds)]
<clever_> Sergio965: you can also just call it something else, like foo.nix, and then run nix-(shell|build) foo.nix, and now you can put several in the same dir
<MichaelRaskin> Maybe even ~/default-build-env.nix
<clever_> or that
<Sergio965> Hmm, okay.
<Sergio965> That's not so bad then.
<Sergio965> Thanks for explaining that. :)
<clever_> this solves a lot of conflicts that can potentialy come up
<clever_> i can write a default.nix, that specifies a specific build of sqlite
<clever_> and it will never accidentaly be used by another project
<Sergio965> Hmm, I still got "can't find -lsqlite3"
<MichaelRaskin> There is actually a way to install things into system environment and have the compiler find them, it will become obvious at the same time as you will see its good and bad sides
<clever_> Sergio965: can you gist all of the output from the shell?
<Sergio965> clever_: There isn't much to gist.
<Sergio965> That's just it.
<clever_> including the commands you ran and the prompts
<Sergio965> "ld: cannot find -lsqlite3"
<clever_> need more context around that error
erasmas has quit [(Quit: leaving)]
<Sergio965> clever_: Wait, maybe I was in a directory with a `.nix` thing in there.
<Sergio965> So, I run `nix-shell sqlite`?
<clever_> nix-shell -p sqlite
<clever_> or make a default.nix like above, and then just nix-shell with no args
<Sergio965> Okay, yeah.
<Sergio965> I'm just running `gcc test.c -lsqlite3`.
<Sergio965> And the library isn't found.
<clever_> what does 'type gcc' say?
<NixOS_GitHub> [nixpkgs] basvandijk opened pull request #24692: haskell: add the linkWithGold function to link packages with ld.gold (master...haskell-link-with-gold) https://git.io/vSVEL
bennofs has joined #nixos
<Sergio965> clever_: gcc is /usr/bin/gcc
<clever_> yeah, that gcc isnt aware of how to find nix packages
<clever_> you need "nix-shell -p gcc sqlite"
<Sergio965> Er, sorry.
<Sergio965> One second.
<clever_> and now "type gcc" should give a storepath to the cc-wrapper
<phpfpm> Sergio965: maybe this helps: nix-shell --packages sqlite --run 'gcc -lm -lsqlite3 -o main main.c && ./main'
<Sergio965> I actually get 'gcc is /home/sergio/.nix-profile/bin/gcc'
<clever_> phpfpm: by default, nix-shell now lacks a gcc
radvendii has joined #nixos
<clever_> Sergio965: what did my last nix-shell command do?
<Sergio965> clever_: Which?
<Sergio965> Oh, let me try.
<clever_> you need "nix-shell -p gcc sqlite"
<clever_> and now "type gcc" should give a storepath to the cc-wrapper
<Sergio965> That worked.
<Sergio965> :|
<clever_> what does this say? "ls -lh /home/sergio/.nix-profile/bin/gcc"
<Sergio965> lrwxrwxrwx 1 root root 69 Dec 31 1969 /home/sergio/.nix-profile/bin/gcc -> /nix/store/r54jv402shjggj3fn2dy895iycy3afxi-gcc-wrapper-5.4.0/bin/gcc
<clever_> its probably a missing setup-hook then
<phpfpm> clever_: does it? Is that not only when running with --pure?
<clever_> gcc has to actualy be in the -p list (or use stdenv.mkDerviation), otherwise, the libs just wont work
coltfred has quit [(Ping timeout: 256 seconds)]
<clever_> phpfpm: nix-shell -p uses runCommand, and runCommand is now an alias to runCommandNoCC
<phpfpm> now = 17.03?
<clever_> i think 16.09 might have also done it
<radvendii> I'm trying to write a nix package for geomview, which requires motif. For some reason it can't find Motif, even though I have it as a build input and have --with-motif=${motif} in configureOptions (that is the way the install instructions said to specify the location of motif). It still can't find it though, anyone know what might be happening?
<phpfpm> nope, I am using it and have access to gcc when calling it without being present explicitly in --packages
<clever_> phpfpm: i mainly use unstable, so im not always following what channels are doing
<gchristensen> alunduil: hi
<phpfpm> clever_: ah, ok, I tend to be on the latest stable and copy some of the unstable over when I really need to
MP2E has joined #nixos
filterfish has joined #nixos
<alunduil> gchristensen, hola.
<gchristensen> alunduil: did the concat function work?
<alunduil> gchristensen, I think my problem stems from my not understanding functions and imports.
<phpfpm> radvendii: I am a complete beginner with building things, but could it be that you wanted: --with-motif=${motif}/bin/motiv or some such?
<alunduil> gchristensen, I believe so but I'm still not groking the way my etcd module acts as a function.
<clever_> alunduil: import just loads a given file and returns the top level value of the file, whatever it may be
<gchristensen> alunduil: so same error, then?
jrolfs has joined #nixos
<radvendii> phpfpm: I checked out what ${motif} links to, and it seems to be the right place. I need the folder that has include/ and lib/ folders inside it, which is ${motif}
<clever_> alunduil: imports is a vastly different beast, and it will recursively load any nixos module loaded under imports, and merge them all together
<alunduil> gchristensen, not anymore but I've started applying arguments to the etcd function I defined.
<alunduil> clever_, yep, I'm just not thinking through the mechanics of functions as results in this context yet.
<gchristensen> alunduil: wait, what etcd function?
<gchristensen> alunduil: can you paste ./services/etcd.nix?
<alunduil> gchristensen, import ./services/etcd.nix is a function that I'm now contemplating.
<alunduil> gchristensen, sure thing
<gchristensen> OH
<gchristensen> yeah paste it :)
<gchristensen> ah ha!
<alunduil> gchristensen, now I think progress will be made.
<alunduil> gchristensen, what is obvious that I'm missing?
<gchristensen> alunduil: well, import doesn't call the function, so you're trying to merge an attrset in to a function
<alunduil> gchristensen, yep I've figured that out. Now I'm playing with calling it but that context doesn't seem to have the arguments I need where I call it.
jrolfs has quit [(Ping timeout: 260 seconds)]
<phpfpm> radvendii: I have managed to package a few packages myself, but I truly feel like when I was starting with learning to programming, just copy pasting and tweaking bits, so what I tend to do is check other distributions first, e.g. https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=geomview seems simple enough, is --with-motiv really necessary?
filterfish has quit [(Ping timeout: 256 seconds)]
<gchristensen> alunduil: before line one of etcd.nix, you could do: { initialCluster }:
<gchristensen> then after line 4 add initialCluster = initialCluster;
<gchristensen> and on line 6 import ./services/etcd.nix // { services.etcd.initialCluster = (builtins.foldl' (x: y: x + "," + y) (builtins.head etcdClusterMembers) (builtins.tail etcdClusterMembers)); };
<alunduil> gchristensen, I was thinking about that. Why do I keep wanting to start with { config, pkgs, ... }: ?
<gchristensen> oops, etcd = import ./services/etcd.nix (that builtins.concat...);
<alunduil> gchristensen, I see that in all modules and want to emulate it but I'm beginning to think it's incorrect.
<alunduil> gchristensen, I follow.
<radvendii> phpfpm: That's what I tried at first, and it complained about not being able to find motif. I checked other packages on nixpkgs that use motif, and one of them had something like "--with-motif" so I looked at how to do that for geomview
<clever_> alunduil: all modules are passed the arguments config, options, pkgs, and a few misc other things
<radvendii> but it's still complaining about not being able to find it
<clever_> alunduil: the ... allows you to silently drop arguments you didnt name
<alunduil> clever_, yep, my confusion is more around the import not requiring a module?
<clever_> alunduil: and those modules must be bare paths within the imports list, you dont import them directly
<alunduil> clever_, I understand the syntax of argument abstraction.
<clever_> alunduil: yeah, import doesnt need a module, import just returns the top level object
<gchristensen> alunduil: here is really how I'd do it...
<clever_> alunduil: and if you import a module, the top level object is likely a function that wants config and pkgs
<alunduil> clever_, ah, so modules go into an imports list and any arbitrary re-usable component can be import-ed?
<alunduil> gchristensen, lay it on me.
<gchristensen> alunduil: you want it to be a function so you an access config.networking....
<alunduil> gchristensen, that makes sense.
eacameron has joined #nixos