<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
<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>
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)]
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)]
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
<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>
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
<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 :)
<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
<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
<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
<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>
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
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
<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
<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?
<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
<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?
<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)]
<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
<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>
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 ?
<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>
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
<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 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
<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
<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...
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)]
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
<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
<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!)]
<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
<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
<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
<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>
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
<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: 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
<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"
<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, 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, ... }: ?
<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....