jgrasser has quit [(Remote host closed the connection)]
<spinus>
biggest fun I was unwinding was 10y php code developed on the server, code versioning was done by creating new file, was thousands of them. on the machine there was dozed of users with different cron jobs, and crazy directory structure was symlinked over whole disk (like links in /usr/share/bla pointing to app code). Took quite a few weeks and downtimes to get it into shape.
Eisfreak7 has joined #nixos
<Infinisil>
spinus: Sounds horrible
<spinus>
it was :)
mudri has quit [(Ping timeout: 240 seconds)]
page has quit [(Ping timeout: 268 seconds)]
<yegortimoshenko>
is there a way to prepend to a list other than ["1"] ++ ["2" "3"]?
<yegortimoshenko>
prepend a single element*
<Infinisil>
yegortimoshenko: What's so bad on `list + [ single_element ]`?
JagaJaga has joined #nixos
mrcheeks has joined #nixos
vaibhavsagar has joined #nixos
<Infinisil>
s/+/++
<yegortimoshenko>
i need to prepend, not append
danl1240 has quit [(Quit: My iMac has gone to sleep. ZZZzzz…)]
<Infinisil>
yegortimoshenko: Oh right, so what is so bad on the normal way?
<Infinisil>
` [ elem ] ++ list `?
<yegortimoshenko>
well, it is O(n), I'd like O(1) if possible
<manveru>
lists are immutable, no?
<Infinisil>
yegortimoshenko: If you struggle with too high complexity (and i don't even think that's what's happening here), then you're definitely using nix wrong
<Infinisil>
nix isn't a computational language
page has joined #nixos
<yegortimoshenko>
i just think it's kind of ugly
<yegortimoshenko>
i want something like cons
<Infinisil>
cons = elem: list: [ elem ] ++ list
<simpson>
yegortimoshenko: Have you perused the `lib` folder of nixpkgs yet?
filterfish has joined #nixos
<Infinisil>
simpson: I just checked, there isn't such a thing
<yegortimoshenko>
simpson: quite extensively, but haven't found anything just yet
<Infinisil>
yegortimoshenko: Really just use [ elem ] ++ list, it doesn't matter
filterfish has quit [(Read error: Connection reset by peer)]
<simpson>
yegortimoshenko: Your desire is apparently an extremely uncommon one! Feel free to `let` a cons function at the top of your module if you really do need it.
taktoa has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ankhers opened pull request #27295: Generalize building of LFE (master...generalize_lfe) https://git.io/vQ1US
NixOS_GitHub has left #nixos []
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
hellrazor has joined #nixos
hellrazo1 has quit [(Ping timeout: 240 seconds)]
tikhon has joined #nixos
<manveru>
is there some way to run nix-shell with bash --norc ?
<yegortimoshenko>
how to persist /run/keys?
pie__ has quit [(Ping timeout: 260 seconds)]
<spinus>
yegortimoshenko: are you using nixops?
<yegortimoshenko>
spinus: no, just plain nixos
<spinus>
so I'm not sure in nixos itself, you could add systemd services to copy them during stop/start of the machine
<spinus>
that's how it's done in nixops I think
necronian has quit [(Ping timeout: 240 seconds)]
<spinus>
depends on your needs, you could also keep keys on the storage and do bind mount to /run/keys
necronian has joined #nixos
<yegortimoshenko>
got you. i'll probably use /root instead, just need some persistent place
<Infinisil>
manveru: I found the NIX_BUILD_SHELL which you could use to set the interactive command used
<manveru>
i found --run 'bash --norc' :)
ericsagnes has quit [(Ping timeout: 276 seconds)]
<Infinisil>
Ahh
<manveru>
works excellent if all you want is run a shellHook
<Infinisil>
manveru: Doesn't that run bash inside bash?
<Infinisil>
Yeah looks like it, with what I said you could avoid a double-bash
<Infinisil>
But it's not as simple
<manveru>
can't say i feel strong enough about it to replace it now
<Infinisil>
I really wish bash wasn't as tightly integrated into nix
<spinus>
Infinisil: what would you have instead?
<spinus>
btw, there is attribute which tells you if you are in nix shell or not
<Infinisil>
spinus: Something like "#!/bin/sh \n exec bash --norc" in a file, then NIX_BUILD_SHELL="./file" nix-shell ...
<spinus>
you don't need to use NIX_BUILD_SHELL or NIX_SHELL
vaibhavsagar has quit [(Ping timeout: 248 seconds)]
<Infinisil>
Ohh, actually `nix-shell -p bash --run 'exec bash --norc'` works too
<Infinisil>
Duh
<spinus>
Infinisil: -i does not do what you want?
<Infinisil>
spinus: Doesn't look like -i can be used with "bash --norc" because it needs an executable
<Infinisil>
spinus: Actually I don't know, manveru just needs a bash with --norc, seems like nix-shell --run 'exec bash --norc' is the best solution
hellrazo1 has joined #nixos
<Infinisil>
The -i is only for Shebangs, which I don't quite understand yet
hellrazor has quit [(Ping timeout: 240 seconds)]
pxc1 has quit [(Ping timeout: 260 seconds)]
pie__ has joined #nixos
vaibhavsagar has joined #nixos
ennui has quit [(Ping timeout: 268 seconds)]
ericsagnes has joined #nixos
Dezgeg has quit [(Ping timeout: 246 seconds)]
datakurre has quit [(Ping timeout: 255 seconds)]
ent has quit [(Ping timeout: 240 seconds)]
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
datakurre has joined #nixos
Dezgeg has joined #nixos
ent has joined #nixos
ison111 has joined #nixos
georges-duperon has quit [(Ping timeout: 255 seconds)]
elninja44 has joined #nixos
lambdamu_ has joined #nixos
obadz has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jwiegley pushed 4 new commits to master: https://git.io/vQ1t4
<NixOS_GitHub>
nixpkgs/master e78b9a6 John Wiegley: coqPackages.paco: 1.2.7 -> 1.2.8
<NixOS_GitHub>
nixpkgs/master d40dd2c John Wiegley: coqPackages.QuickChick: 20170422 -> 20170710
<NixOS_GitHub>
nixpkgs/master 399dee9 John Wiegley: coqPackages.autosubst: New expression
NixOS_GitHub has left #nixos []
lambdamu has quit [(Ping timeout: 268 seconds)]
obadz has joined #nixos
darlan has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQ1t5
<NixOS_GitHub>
nixpkgs/master 3095a46 Vincent Laporte: ocamlPackages.oasis: 0.4.7 -> 0.4.10
NixOS_GitHub has left #nixos []
<vaibhavsagar>
hey, how would I replicate the generic builder for Haskell in a nix-shell?
<vaibhavsagar>
unpackPhase, configurePhase, buildPhase etc. seem to assume the presence of a Makefile or configure scripts
<vaibhavsagar>
I could use cabal but that's different from the generic builder
AllanEspinosa has joined #nixos
<AllanEspinosa>
is there a way / tooling how to generate one-click packages by hand?
yegortimoshenko has left #nixos ["ERC (IRC client for Emacs 25.2.1)"]
s33se has joined #nixos
<spinus>
vaibhavsagar: if I remember correctly there was something in the nix manual, you could generate build directory and then execute "stdenv" to jump into it
<spinus>
AllanEspinosa: what is one-click package?
<spinus>
one-click to build it, one click to run it?
<spinus>
probably you can do this with few lines of bash
<AllanEspinosa>
thanks
mrcheeks has quit [(Remote host closed the connection)]
<spinus>
I don't know any tool, but maybe worth to grep hydra code for it :)
<AllanEspinosa>
currently looking at https://github.com/NixOS/nix/issues/831 . would you know what eelco's referring to (nix-env -i ...) to download packages from the cache no longer available in channels?
<vaibhavsagar>
spinus: the manual recommends cabal
<spinus>
AllanEspinosa: yeah, you can just directly say what you want to download and from
<pxc>
how does string interpolation work with multi-output derivations? if some package foo has outputs dev, bin, and doc, what does "${pkgs.foo}"/some/path mean in a Nix file?
<spinus>
I think out is default one
<vaibhavsagar>
aha, thanks spinus!
<spinus>
or actually first on the list is the default if I remember correctly
<pxc>
spinus: if outputsToInstall is defined does it look in all of them or the first one or what?
<spinus>
there is variable like outputs=["out" "bin"];
<spinus>
I don't remember exactly, let me check
<spinus>
I found that because some packages has "dev" as default :[
<aanderse>
unure of how to run a game i just downloaded... steam-run doesn't work
<aanderse>
openmorrowind
<aanderse>
so i point steam-run to the executable but then
<catern>
aanderse: openmw is in nix, fyi
<aanderse>
>_<
<catern>
nixpkgs
<aanderse>
thanks catern!
<aanderse>
ha ha ha
<catern>
:)
<aanderse>
<3 nixos
pie__ has quit [(Ping timeout: 260 seconds)]
nckx has joined #nixos
ebzzry has quit [(Ping timeout: 248 seconds)]
ebzzry has joined #nixos
felipedvorak has joined #nixos
<felipedvorak>
Has anybody experienced this: Tmux cant see nix-installed packages even though the shell that launches it can, and if inside the Tmux shell you run the same shell again it can then see Nix packages.
reinzelmann has joined #nixos
felipedvorak has quit [(Quit: felipedvorak)]
vaibhavsagar has quit [(Ping timeout: 240 seconds)]
ChongLi has quit [(Quit: leaving)]
mattzers has quit [(Ping timeout: 240 seconds)]
AllanEspinosa has quit [(Ping timeout: 260 seconds)]
ChongLi has joined #nixos
Fare has quit [(Ping timeout: 240 seconds)]
vaibhavsagar has joined #nixos
alx741 has quit [(Quit: alx741)]
zeus_ has quit [(Remote host closed the connection)]
zeus_ has joined #nixos
ChongLi has quit [(Ping timeout: 240 seconds)]
zeus_ has quit [(Ping timeout: 255 seconds)]
greglearns has joined #nixos
zeus_ has joined #nixos
<TheNumb>
felipedvorak: PATH is probably not set properly
magnetophon1 has quit [(Ping timeout: 248 seconds)]
ebzzry has quit [(Ping timeout: 248 seconds)]
ebzzry has joined #nixos
pxc1 has quit [(Ping timeout: 260 seconds)]
ChongLi has joined #nixos
greglearns has quit [(Ping timeout: 255 seconds)]
pxc1 has joined #nixos
p5cm has quit [(Quit: -a- IRC for Android 2.1.35)]
Sonarpulse has quit [(Ping timeout: 246 seconds)]
alfie has quit [(Ping timeout: 260 seconds)]
alfie has joined #nixos
rootnode has quit [(Quit: Quit)]
hamishmack has quit [(Quit: hamishmack)]
newhoggy has joined #nixos
ChongLi has quit [(Read error: No route to host)]
vincent_vdk has joined #nixos
ebzzry has quit [(Ping timeout: 240 seconds)]
reinzelmann has quit [(Quit: Leaving)]
arianvp2 has joined #nixos
hamishmack has joined #nixos
freusque has joined #nixos
justbeingglad has joined #nixos
justbeingglad has quit [(Client Quit)]
freusque has quit [(Quit: WeeChat 1.7.1)]
arianvp2 has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
endformationage has quit [(Quit: WeeChat 1.7)]
freusque has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
arianvp2 has quit [(Quit: arianvp2)]
arianvp2 has joined #nixos
blahdodo has quit [(Quit: Bye bye)]
freusque has quit [(Quit: WeeChat 1.7.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vQ1EI
<NixOS_GitHub>
nixpkgs/master 0be14a5 Vladimír Čunát: nixos tests.misc: unblock a man-page test...
NixOS_GitHub has left #nixos []
blahdodo has joined #nixos
ChongLi has joined #nixos
freusque has joined #nixos
Ivanych has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
arianvp2 has joined #nixos
marsel has joined #nixos
<hyper_ch>
hydra having issues with nixos-unstable?
mudri has joined #nixos
mojjo has joined #nixos
pxc1 has quit [(Ping timeout: 276 seconds)]
pxc1 has joined #nixos
leat has quit [(Ping timeout: 240 seconds)]
reinzelmann has joined #nixos
arianvp2 has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
MagneticDuck has quit [(Quit: WeeChat 1.6)]
indi_ has quit [(Ping timeout: 268 seconds)]
orivej has joined #nixos
mudri has quit [(Ping timeout: 276 seconds)]
magnetophon has joined #nixos
georges-duperon has joined #nixos
kuznero has joined #nixos
<kuznero>
Hi All!
<kuznero>
I have a couple of bash scripts to be used in my derivation, how do I patch them to use proper `#!${bash}/bin/sh` instead of `#!/usr/bin/env bash`?
jgertm has joined #nixos
FRidh has joined #nixos
arianvp2 has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
<c74d>
kuznero: usually Nix should do that automatically
<c74d>
can you tell that it's not doing that?
<kuznero>
c74d: yes, but my case is a bit special - I am building docker image adding some content in the form of another derivation that contains only some bash scripts with hardcoded reference to bash. Here you can see my `docker.nix`: https://github.com/kuznero/scripts/blob/master/monitoring/monitor/docker.nix
mudri has joined #nixos
<kuznero>
c74d: though in `checks.nix` I only have unpack and install phases. Should I also add patchPhase to have it?
georges-duperon has quit [(Ping timeout: 255 seconds)]
<manveru>
kuznero: you can call patchShebangs .
<kuznero>
manveru: thanks, will try that
<manveru>
i think you need bash in your buildInputs for that
<NixOS_GitHub>
[nixpkgs] jtojnar opened pull request #27297: ghex: init at 3.18.3 (master...fix/ghex) https://git.io/vQ12w
NixOS_GitHub has left #nixos []
arianvp2_ has quit [(Quit: arianvp2_)]
ertes has quit [(Ping timeout: 240 seconds)]
newhoggy has quit [(Remote host closed the connection)]
davidak has joined #nixos
newhoggy has joined #nixos
erictapen has joined #nixos
Fare has joined #nixos
newhoggy has quit [(Ping timeout: 258 seconds)]
__Sander__ has joined #nixos
<joepie91>
is there something I'm missing, or is the stacktrace output by --trace not actually a complete stacktrace, but rather length-limited?
pxc has quit [(Ping timeout: 255 seconds)]
<clever>
kuznero: oh, /usr/bin/env doesnt exist inside the build sandbox
<clever>
kuznero: so the script cant be ran until after you run patchShebangs on the directory
ris has joined #nixos
thc202 has joined #nixos
<clever>
joepie91: it should be full, but its mainly a function call level trace, not a thunk by thunk trace thru every attribute
<kuznero>
clever: will that help to move `patchShebangs` into install phase then?
<clever>
joepie91: and it can be tricky to read
<joepie91>
clever: my trace starts at a very odd point
<clever>
kuznero: it needs to be before check-services-running.sh gets ran
<joepie91>
sec
arianvp2_ has joined #nixos
<kuznero>
clever: that part of the log is when I was manually loading docker image (from result) and running temporary container to check the content. So, those scripts are not to be run as part of building the derivation, but when docker container is running.
<clever>
kuznero: and the patch function isnt recursive
<clever>
kuznero: i see your patching the stuff in . but your copying from ../checks/
<clever>
so the patch wont find it
<joepie91>
clever: actually nevermind
<clever>
usually better to patchShebangs $out/checks/
<joepie91>
need to re-evaluate some stuff first :P
<clever>
oh wait
<kuznero>
clever: meaning to patchShebang in install phase?
<clever>
yeah
<kuznero>
ok, will try
<clever>
and youve set src to ../checks, so nix will have copied the scripts to the current dir already
<clever>
add a -v to the cp
<clever>
and also try ls -ltrh in the installPhase
<clever>
and i should probably get some sleep, its 5am now
<kuznero>
clever: good point, thanks
<kuznero>
clever: thanks for help! always useful
<joepie91>
clever: what command do I use to execute an arbitrary .nix file and show the result?
<joepie91>
or well
<joepie91>
s/execute/evaluate/
<joepie91>
it doesn't do anything derivation-y
<clever>
joepie91: if it starts with { stdenv,, then it must be loaded with callPackage
<clever>
pretty obvious why it has infinite recursion
arianvp2_ has quit [(Read error: Connection reset by peer)]
<clever>
the value of foo is bar, which is baz, which is foo, which is bar, which is baz, which is foo, which is bar,which is baz, which is foo, which is bar,which is baz, which is foo, which is bar,
arianvp2_ has joined #nixos
* clever
heads to bed
<joepie91>
clever: well yes, the point was to trigger an infinite recursion error
<joepie91>
to better understand how it puts together a stacktrace under those circumstances
<joepie91>
but given that I'm not getting a stacktrace, that's where the problem lies :P
arianvp2_ has quit [(Read error: Connection reset by peer)]
<joepie91>
hence the code I gisted is specifically written *to* cause that error
ertes-w has joined #nixos
arianvp2_ has joined #nixos
arianvp2 has joined #nixos
arianvp2_ has quit [(Read error: Connection reset by peer)]
ThatDocsLady has joined #nixos
nh2 has joined #nixos
sibi_ has joined #nixos
ertes-w has quit [(Quit: Bye!)]
arianvp2 has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
ertes-w has joined #nixos
pietranera has joined #nixos
<hyper_ch>
hydra having issues with nixos-unstable?
<niksnut>
?
georges-duperon has quit [(Ping timeout: 255 seconds)]
georges-duperon has quit [(Ping timeout: 255 seconds)]
magnetophon has quit [(Ping timeout: 248 seconds)]
mudri has joined #nixos
<joepie91>
domenkozar: looks like something is trying to use a non-monospace font in a monospace layout
<joepie91>
domenkozar: terminal?
<domenkozar>
xfce-terminal
<joepie91>
domenkozar: right, check your font settings. perhaps whichever font you had set previously is somehow no longer included in your environment?
<joepie91>
(xfce-terminal works fine for me on 17.03)
<joepie91>
or well, not any worse than it normally does anyway :P
<joepie91>
my font is set to "Monospace"
arianvp2 has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
takle has joined #nixos
pie_ has joined #nixos
hyphon81 has joined #nixos
<hyphon81>
Hello.
AllanEspinosa has joined #nixos
<hyphon81>
I'm trying to use gcc-5.4.0-lib from ~/.nix-profile/lib. However, it was not include to ~/.nix-profile/lib with nix-env -i nixos.gcc.
arianvp2 has quit [(Client Quit)]
arianvp2 has joined #nixos
mkoenig has quit [(Ping timeout: 240 seconds)]
<hyphon81>
How include path to multi outputs at derivation with nix-env for ~/.nix-profile/lib?
hotfuzz_ is now known as hotfuzz
AllanEspinosa has quit [(Ping timeout: 268 seconds)]
mkoenig has joined #nixos
<hyphon81>
And, why is separated the gcc outputs to [ "out" "lib" "man" "info" ]?
gurmble is now known as grumble
cynede has joined #nixos
<cynede>
is gnome 3.24 available yet?
arianvp2 has quit [(Ping timeout: 240 seconds)]
<domenkozar>
joepie91: thanks, I'll take a look
arianvp2 has joined #nixos
<cynede>
seems like guix packages base is growing faster
<joepie91>
domenkozar: related thought: if your terminal is set to Monospace too, which I believe is a font class rather than a specific font, it's possible that your fontconfig is misconfigured and wrongly falling back to a sans-serif font when what you wanted is a real monospace font
<domenkozar>
maybe it's just the wrong font?
<joepie91>
this could occur if eg. you had no monospace fonts installed at all
<joepie91>
sure, might be - this is just the answer to "but it says Monospace, why is it still not a monospace font" :)
<joepie91>
in case that's what you run across
<joepie91>
if it's just set to a sans-serif font explicitly, then that'll be the issue
<joepie91>
I don't think xfce-terminal has any non-monospace-font awareness anyway so it just dumps every font into a monospace grid
nh2 has quit [(Quit: Leaving.)]
<joepie91>
monospace or otherwise
<avn>
hyphon81: splitted, because most of gcc' compiled software need libgcc. To not pull whole gcc by this dependency.
<domenkozar>
even if I set it to regular nothing changes
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
<joepie91>
domenkozar: which font family did you selecft?
<joepie91>
select*
pxc1 has joined #nixos
mpcsh has joined #nixos
<hyphon81>
avn: Thanks!
arjen-jonathan has joined #nixos
<hyphon81>
I would like to use libgomp.so.1. This is in /nix/store/*gcc-5.4.0-lib. But it is not linked to ~/.nix-profile/lib...
<domenkozar>
joepie91: I only have: DejaVu Sans, Monospace, Serif, Sans
<domenkozar>
and the result is always the same, hinting that no fonts are being picked up
pxc1 has quit [(Ping timeout: 240 seconds)]
<joepie91>
domenkozar: right, so then you just literally have no monospace fonts installed :)
<joepie91>
domenkozar: Monospace, Serif and Sans are all font categories, where the font is selected based on the installed fonts and their indicated classes and priorities
arianvp2 has quit [(Quit: arianvp2)]
<domenkozar>
but it used to work! :)
<joepie91>
domenkozar: in other words: the only 'real' font on your system is DejaVu Sans, and therefore every font category resolves to that font
<joepie91>
including Monospace
<joepie91>
domenkozar: right, that just means you need to figure out where your fonts went :P
FRidh has joined #nixos
erictapen has joined #nixos
<joepie91>
domenkozar: once you get one or more true monospace fonts installed back into your environment, xfce-terminal will automatically use the right font again, no config changes needed (ie. just leave it on "Monospace")
<joepie91>
I don't know if anything changed in 17.03 in terms of default fonts available
<joepie91>
but I have a bunch of font packages installed myself so that may be why I didn't have this issue
magnetophon has joined #nixos
<domenkozar>
I never cared about fonts as long as they don't overlap :D
arianvp2 has joined #nixos
<Hinidu>
Hello guys! I'm trying to rebuild nixos using my custom version of nixpkgs but it seems to ignore it. Though on another machine I do the same thing and it works. How I can troubleshoot that?
<domenkozar>
I changed about 10 things so no idea what fixed it
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vQ1Dd
<NixOS_GitHub>
nixpkgs/master 196273e Frederik Rietdijk: virtualenvwrapper: only add Python to $PATH, fixes #26982
<NixOS_GitHub>
nixpkgs/master b612382 Frederik Rietdijk: Merge pull request #27079 from FRidh/virtualenvwrapper...
NixOS_GitHub has left #nixos []
<hyphon81>
Hmm, perhaps, is it more easy way writing the derivation nix code for the mxnet?
erictapen has quit [(Ping timeout: 268 seconds)]
<joepie91>
heh
<joepie91>
domenkozar: did you get your fonts back? :)
mudri has quit [(Ping timeout: 246 seconds)]
<hyphon81>
Actually, I wrote a dirty code for mxnet and I built it for GPU. I just should be going to change it for CPU and take a 20~30 min for building...
pie_ has quit [(Ping timeout: 240 seconds)]
nh2 has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
arianvp2 has joined #nixos
pie_ has joined #nixos
<Hinidu>
I've tried to change path to something non-existent or break some code in nixpkgs and nixos-rebuild still works(
<gchristensen>
hahaha "bug report: nixos-rebuild is too resilient" ;) I'm kidding of course. what did you try, Hinidu?
arianvp2 has quit [(Quit: arianvp2)]
arianvp2 has joined #nixos
vaibhavsagar has quit [(Ping timeout: 240 seconds)]
<schoppenhauer>
hi. does anyone know which fonts I need to install to get newer emoji-characters like 🆙 working?
<schoppenhauer>
manveru: ok thx, I will just install your font list :3
<manveru>
btw, you don't happen to know if there's a way to have bluetooth headset full duplex?
<manveru>
might need a better dongle i guess
<schoppenhauer>
no sorry
<Hinidu>
gchristensen: I was trying to check whether nixos-rebuild ignore -I nixpkgs=path or not. And it looks like it ignores.
<gchristensen>
Hinidu: ahh, that is annoying. try `NIX_PATH=nixpkgs=path nixos-rebuild`
erictapen has joined #nixos
ef has joined #nixos
ThatDocsLady_brb is now known as ThatDocsLady
<Hinidu>
gchristensen: thank you for suggestion, I will try after lunch)
<gchristensen>
sounds great!
leat has joined #nixos
main17 has joined #nixos
erictapen has quit [(Ping timeout: 240 seconds)]
peti has quit [(Ping timeout: 255 seconds)]
peti has joined #nixos
jgertm has quit [(Ping timeout: 260 seconds)]
<hyphon81>
OK, the mxnet code with scala on CPU only seems running fine now.
iyzsong has joined #nixos
<ef>
strange issue: opera46/vivaldi are crashing when you try to save resources (save as) BUT it works fine if running from bash... what could be the reason or how to find out?
pxc1 has joined #nixos
mudri has quit [(Ping timeout: 276 seconds)]
<ef>
my guess is the save as dialog (gtk3) but why does it work if browser is started from bash?
leat has quit [(Ping timeout: 240 seconds)]
pxc1 has quit [(Ping timeout: 246 seconds)]
<hyphon81>
I have not understood yet why a shared object can find other objects if that build by nix derivation code.
arianvp2 has quit [(Quit: arianvp2)]
pie_ has quit [(Ping timeout: 255 seconds)]
nh2 has quit [(Ping timeout: 248 seconds)]
obadz has quit [(Ping timeout: 240 seconds)]
<hyphon81>
I check ldd about built shared object with Nix derivation code on NixOS and Ubuntu.
<hyphon81>
On NixOS, libraries are linked to path in nix store. And, on Ubuntu, those are linked to path on the Ubuntu.
<pstn>
Has anybody gotten taskserver from 17.03 running with an Android 7 Client working?
<pietranera>
hyphon81 I think that it's due to the use of the patchelf tool
obadz has joined #nixos
sibi_ has quit [(Quit: Connection closed for inactivity)]
<hyphon81>
pietranera: So, dose the patchelf solve linking pathes on Nix and others? That's sounds great. :)
<pietranera>
AFAIK it enables using shared libraries independently of where they are. I may be mistaken though.
<pietranera>
The "conda" Python tool uses patchelf too to install binary libraries in its environment.
nh2 has joined #nixos
<hyphon81>
pietranera: Thank you!
main17 has left #nixos []
arianvp2 has joined #nixos
<hyphon81>
The patchelf tool solve a shared object's libraries path suit for multi environments. So, we can use nix objects built with Nix in multi environment. Nice!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to staging: https://git.io/vQ1AB
<NixOS_GitHub>
nixpkgs/staging 43ff1c8 Tuomas Tynkkynen: Merge remote-tracking branch 'upstream/master' into staging
NixOS_GitHub has left #nixos []
<domenkozar>
joepie91: they are different but really I don't care
kuznero has quit [(Quit: Page closed)]
<Gravious>
why doesn't nix-shell have a -f option?
<MoreTea>
pstn, yes, you have to be following the instructions very precisely.
<canndrew>
simpson: thanks! that sounds like exactly what I'm looking for.
warbo has joined #nixos
<hyphon81>
Is there only me who want to use mxnet on NixOS?
ef has quit [(Quit: Lost terminal)]
<LnL>
MoreTea: do you mind if I steal one of your images for my slides?
darlan has joined #nixos
darlan has quit [(Client Quit)]
nh2 has joined #nixos
<hyphon81>
I think, it t seems to be fit for Nix because it is compatible for multi OS/languages/GPU-CPU and so on. http://mxnet.io/
<MoreTea>
LnL, not at all.
<MoreTea>
as long as you'd allow me to steal some of yours later on :D
ilyaigpetrov has joined #nixos
<MoreTea>
LnL, going to present at a meetup?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 1 new commit to master: https://git.io/vQ1jM
<NixOS_GitHub>
nixpkgs/master 8fd6393 Peter Simons: data: update hackage snapshot for 'callCabal'
NixOS_GitHub has left #nixos []
nh2 has quit [(Ping timeout: 240 seconds)]
MoreTea has quit [(Remote host closed the connection)]
chakerbenhamed has joined #nixos
MoreTea has joined #nixos
MoreTea has quit [(Client Quit)]
p5cm has joined #nixos
MoreTea has joined #nixos
<chakerbenhamed>
Is there any documentation of the declarative jobsets functionality??
<chakerbenhamed>
cc gchristensen
ThatDocsLady is now known as ThatDocsLady_lun
<chakerbenhamed>
cc shlevy
hellrazo1 is now known as hellrazor
<p5cm>
Any suggestions on how I go about diagnosing suspend/sleep issues on a laptop?
<chakerbenhamed>
I'm trying to automate the build of PRs in Hydra. So if a user create a new PR in one of the project that I'm working on. A new jobset will be created for that PR.
<LnL>
MoreTea: I don't have any nice doodles tho :)
<MoreTea>
LnL, hehe. I drew them on my Galaxy NotePro 12". Awesome tablet to doodle on :)
<chakerbenhamed>
I'm thinking about using a hydra.json file in the root of the source code of the project. And when a new PR is created a 3rd party will fetch the hydra.json file from the repo and will automaticly create the jobset.
ThatDocsLady_lun has quit [(Ping timeout: 268 seconds)]
<chpatrick>
gchristensen: it would be great if this was logged, the build failed and it told you to put it the build depends yourself
<chpatrick>
or if that was an option at least
<chpatrick>
because this way it's kind of magic and unexpected
<chpatrick>
especially when it pulls in something huge like ghc or cudatoolkit
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 1 new commit to master: https://git.io/vQMUG
<NixOS_GitHub>
nixpkgs/master dd27e21 Peter Simons: data: update hackage snapshot some more
NixOS_GitHub has left #nixos []
simukis has joined #nixos
ebzzry has joined #nixos
pxc1 has joined #nixos
adev_ has joined #nixos
freusque has quit [(Quit: WeeChat 1.7.1)]
pxc1 has quit [(Ping timeout: 240 seconds)]
arianvp2 has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
freusque has joined #nixos
p5cm has quit [(Quit: -a- IRC for Android 2.1.35)]
freusque has quit [(Quit: WeeChat 1.7.1)]
jgertm has joined #nixos
<FRidh>
chpatrick: $ nix-store -qR $(nix-build -A python) and you see which dependencies you have, and with grep you can find which files are refer to which dependencies. Where's then the need to log?
freusque has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
nh2 has quit [(Read error: Connection reset by peer)]
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
mudri has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
arianvp2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vQML5
<NixOS_GitHub>
nixpkgs/master b108122 Vladimír Čunát: unbound: bugfix 1.6.3 -> 1.6.4...
NixOS_GitHub has left #nixos []
Rotaerk has quit [(Read error: Connection reset by peer)]
cpennington has joined #nixos
mudri has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
Ivanych has quit [(Ping timeout: 246 seconds)]
arianvp2 has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
nh2 has joined #nixos
ThatDocsLady has joined #nixos
freusque has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vQMq9
<NixOS_GitHub>
nixpkgs/master 7d547a6 Vladimír Čunát: texlive: switch to a *working* temporary mirror...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/vQMq5
<NixOS_GitHub>
nixpkgs/release-17.03 9948e91 Vladimír Čunát: texlive: switch to a *working* temporary mirror...
NixOS_GitHub has left #nixos []
arianvp2 has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
bennofs has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
georges-duperon has joined #nixos
aw has joined #nixos
roconnor has joined #nixos
newhoggy has joined #nixos
tvon has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
arianvp2 has quit [(Quit: arianvp2)]
newhoggy has quit [(Ping timeout: 268 seconds)]
nvd has joined #nixos
jtojnar has joined #nixos
ThatDocsLady has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
arianvp2 has joined #nixos
arianvp2 has quit [(Remote host closed the connection)]
<nvd>
shlevy: is there a preferred way to set up hail on a new machine?
arianvp2 has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
<warbo>
hello, I've got some builds that use many GB of RAM, and every now and then my build machine becomes unresponsive (to ssh or keyboard) requiring a hard reset
cpennington has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
<warbo>
you can't necessarily work out "the package" that gives rise to a store path though
<warbo>
since a) store paths only tell you the derivation it's come from, not where that derivation came from (e.g. "when you ran 'nix-shell -p "foobar.override { baz; }"')
jgeerds has quit [(Quit: Leaving)]
<warbo>
and b) store paths are shared by all derivations with matching dependencies
MoreTea has quit [(Remote host closed the connection)]
magnetophon has quit [(Ping timeout: 255 seconds)]
newhoggy has quit [(Ping timeout: 268 seconds)]
bennofs1 has quit [(Ping timeout: 240 seconds)]
<pstn>
Can I set networking.firewall.allowed* in a container config and expect that only this container will be able to communicate on this port with the outside, when I have no special network settings for it?
<ij>
Thanks all!
cpennington has joined #nixos
erasmas has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/vQMCS
<jtojnar>
warbo: Is there a way I can force the use of the binaries?
<jtojnar>
s/use/propagation/
<warbo>
In the Nix language, I think you'd go from 'foo' to 'foo.dev' (where 'foo' is however you're getting glib, e.g. from <nixpkgs>, an override, whatever)
newhoggy has joined #nixos
<warbo>
if you're using a command, there should be some way to supply a Nix language expression as an argument (usually '-E', except for 'nix-shell' you might want '-p')
bennofs has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
pxc1 has joined #nixos
arianvp2 has quit [(Read error: Connection reset by peer)]
cpennington has quit [(Remote host closed the connection)]
arianvp2 has joined #nixos
newhoggy has joined #nixos
pxc1 has quit [(Ping timeout: 255 seconds)]
ison111 has quit [(Quit: WeeChat 1.7.1)]
newhoggy has quit [(Ping timeout: 248 seconds)]
<jtojnar>
warbo: thanks, I tried `nix-env -i glib.dev` but it works in configuration.nix
<ertes-w>
with buildPythonPackage is there a way to disable tests?
newhoggy has joined #nixos
<avn>
ertes-w: doCheck = false; like with all other derivations
erictapen has quit [(Ping timeout: 268 seconds)]
[0x4A6F] has joined #nixos
pxc1 has joined #nixos
<ertes-w>
ah, thanks
newhoggy has quit [(Ping timeout: 246 seconds)]
orivej has quit [(Ping timeout: 268 seconds)]
ixxie has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
orivej has joined #nixos
newhoggy has joined #nixos
nvd has quit [(Quit: leaving)]
Tucky has quit [(Ping timeout: 260 seconds)]
danl1240 has joined #nixos
peacememories has joined #nixos
taktoa has quit [(Ping timeout: 258 seconds)]
erictapen has joined #nixos
newhoggy has quit [(Ping timeout: 255 seconds)]
Sonarpulse has joined #nixos
mudri has joined #nixos
arianvp2 has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
zeus_ has joined #nixos
newhoggy has joined #nixos
davidak has quit [(Ping timeout: 240 seconds)]
arjen-jonathan has quit [(Ping timeout: 276 seconds)]
newhoggy has quit [(Ping timeout: 240 seconds)]
Fare has quit [(Ping timeout: 248 seconds)]
ertes-w has quit [(Ping timeout: 276 seconds)]
newhoggy has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
zraexy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Radvendii opened pull request #27306: opendht: init at 1.3.4 (master...master) https://git.io/vQMMv
NixOS_GitHub has left #nixos []
radvendii has joined #nixos
<mpcsh>
hey everyone, I'm new to nixos- just took the dive and installed on my laptop. is there a way to view the files installed by a package? (equivalent to pacman -Ql on arch)
<symphorien>
tree /nix/store/(hash of the package)
newhoggy has quit [(Ping timeout: 240 seconds)]
<mpcsh>
symphorien: huh, ok. and is there a way to do the reverse? given a file, figure out which package owns it?
<symphorien>
can you give an example ?
<symphorien>
because package can only own files within nix store
<gchristensen>
mpcsh: what file specifically do you want to know about?
<symphorien>
if a file outside the store "belongs" to a package then it is a symlink to the store
<gchristensen>
b/c for example, bash is in /nix/store/<hash>-bash/.. or /nix/store/zxcnwil68491mm7kc7a9m3msr10s8mza-zsh-5.3.1/bin/zsh
<mpcsh>
gchristensen: so, for example, I have an empty /etc/gdm folder that I did not create. My current generation is not using gdm. Why is it there?
<gchristensen>
I dunno, maybe when nix places symlinks in subdirs, and the removes the links, it doesn't clean up the dir? but I don't know
iyzsong has quit [(Ping timeout: 246 seconds)]
<symphorien>
it may be created by the service at startup
<gchristensen>
also that
<mpcsh>
symphorien: I thought the point was that services couldn't do that under nixos?
<greglearns>
Has anyone figured out the best way to build Rust code using the nightly rust compiler? I've seen buildRustPackage.nix, mkCrate, and the normal documentation.
<Sonarpulse>
(glibc gets a non-null runpath)
<copumpkin>
Sonarpulse: of the various things that need doing, the one-per-line doesn't feel super pressing :P
<copumpkin>
not that I wouldn't enjoy seeing it merged
zeus_ has quit [(Read error: Connection reset by peer)]
<gchristensen>
same
<Sonarpulse>
copumpkin: heh
<Sonarpulse>
essentialy it was a distraction
<Sonarpulse>
I did by mistake
<Sonarpulse>
when converting things to arrays
<Sonarpulse>
also excuse to use {fd}<....
<Sonarpulse>
redirection
zeus_ has joined #nixos
<copumpkin>
it's definitely a PITA to parse a giant line
<copumpkin>
it's been annoying to me in the past
<Sonarpulse>
I got pretty bad bash stockholm syndrom
<Sonarpulse>
learning all the weirdness with that feeling of wonder
<gchristensen>
echo "foo bar" | tr ' ' '\n'
<gchristensen>
Sonarpulse: do you shellcheck?
jgertm has quit [(Ping timeout: 246 seconds)]
newhoggy has quit [(Ping timeout: 268 seconds)]
<Sonarpulse>
when it's just shittiness and should inspire feeling of disgust
<Sonarpulse>
gchristensen: I haven't learend that one yet
<Sonarpulse>
gchristensen: what's wrong with -o in [[ .. ]] ?
<bennofs>
gchristensen: note that this normally only happens when running nix-index, which creates many parallel connections to cloudfront (but this shouldn't be a problem right?)
<gchristensen>
Sonarpulse: it is poorly defined I guess
<Sonarpulse>
ok
<bennofs>
gchristensen: here's what that script returns right now: http://ix.io/yro (i don't experience the problem right now. it only appears after some time that nix-index is running. if I wait the cache TTL (5 min) for 500 responses and then retry, it will work fine)
<bennofs>
gchristensen: part of the issue, at least to me, seems to be that cloudfront caches 500 responses, so even though the docs for S3 say that these can happen from time to time and you need to retry, i cannot retry because cloudfront caches the request
<Sonarpulse>
gchristensen: neat!
newhoggy has quit [(Ping timeout: 246 seconds)]
<gchristensen>
Sonarpulse: right? :D
<Sonarpulse>
I'm very curious what it will say on mine now
<Sonarpulse>
also it seems to understand many shells?
Fare has joined #nixos
newhoggy has joined #nixos
greglearns has quit [(Remote host closed the connection)]
greglearns has joined #nixos
zeus_ has quit [(Read error: Connection reset by peer)]
zeus_ has joined #nixos
leat has quit [(Ping timeout: 246 seconds)]
<bennofs>
How can i make my nixos config installable with two commands? (copy config, <some command>)
newhoggy has quit [(Ping timeout: 240 seconds)]
<bennofs>
nixos-install has the problem that it builds to the install cd's nix store first, which is too small to contain all the derivations for my system
<bennofs>
is there an alternative, apart from splitting my config in a way to allow for a "minimal" install?
<gchristensen>
bennofs: can you prebuild a custom installer?
<bennofs>
generally, i only have my git repo available
<Dezgeg>
umm, it's a regression if it does build on the cd store...
<bennofs>
Dezgeg: it does. my last install failed because of that
<bennofs>
Is there a way to get an absolute path to nixpkgs (not a symlink?)? <nixpkgs> gives a symlink to "." sometimes (because of the way the nixos channel works)
<bennofs>
ah, pkgs.path should do the trick
warbo has quit [(Ping timeout: 248 seconds)]
zeus_ has quit [(Read error: Connection reset by peer)]
zeus_ has joined #nixos
newhoggy has joined #nixos
<sudoreboot[m]>
When you have a function which takes a bunch of parameters which is then called with just a pair of empty brackets, what's going on there? Does it magically take all it needs from the scope or something?
<bennofs>
sudoreboot[m]: callPackage does the magic
<sudoreboot[m]>
So magic
<bennofs>
sudoreboot[m]: in particular, there's a builtin called `builtins.functionArgs` I believe
<bennofs>
sudoreboot[m]: callPackage is a function that looks up every non-explictly given arg in a scope that was given to callPackage when it was defined
nckx has quit [(Quit: I'm probably just restarting my server.)]
<bennofs>
sudoreboot[m]: it is defined like: callPackage = mkScope (..set of all packages here...), so it'll look up the package in ..set of all packages.. whenever it is not explictly given
<sudoreboot[m]>
That's very non-obvious lol
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 closed pull request #27284: stdenv: Store one package per line in nix-support/propagated-* (staging...prop-lines) https://git.io/vQXvR
NixOS_GitHub has left #nixos []
<sudoreboot[m]>
So inside a let statement you can put all kinds of things you want callpackage to know about and it just gets all it needs?
newhoggy has quit [(Ping timeout: 240 seconds)]
<bennofs>
sudoreboot[m]: no. callPackage only knows about everything that is an attribute of pkgs
nckx has joined #nixos
<bennofs>
sudoreboot[m]: let me construct a small example
<sudoreboot[m]>
So you just need nixpkgs in scope
<simpson>
sudoreboot[m]: This magic really only works for the very top level of a default.nix in nixpkgs, so don't assume that it works anyplace else.
<srhb>
radvendii: What do other packagers (if any) call it?
pie_ has joined #nixos
<srhb>
radvendii: It's ring-daemon in debian, for instance.
taktoa has joined #nixos
<srhb>
radvendii: Arch too. Seems like a safe bet :)
simendsjo has joined #nixos
<radvendii>
srhb: Mmkay, cool. Thanks.
ennui has quit [(Remote host closed the connection)]
michalrus has quit [(Ping timeout: 246 seconds)]
<bennofs>
sudoreboot[m]: hmm, i just noticed that the concrete functions seem to have changed in current nixpkgs. so take that as an illustration of the idea, even if it doesn't evaluate with current nixpkgs :)
<srhb>
radvendii: Apologies for the boring pragmatism :-P
<radvendii>
srhb: Haha, no, that seems like a good way to do it. I just didn't htink of it
<srhb>
:-)
michalrus has joined #nixos
<bennofs>
ok, so now the example actually works as intended. this stuff is hard to get right even if you know about it :)
Gravious has quit [(Quit: leaving)]
alx741 has joined #nixos
arianvp2 has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
newhoggy has joined #nixos
jonte has quit [(Ping timeout: 240 seconds)]
chakerbenhamed has joined #nixos
TheNumb has left #nixos []
newhoggy has quit [(Ping timeout: 240 seconds)]
justelex_ has joined #nixos
vaibhavsagar has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] cstrahan pushed 12 new commits to master: https://git.io/vQDel
<NixOS_GitHub>
nixpkgs/master 442f76d Katyucha: Vault: 0.6.5 -> 0.7.2 with services
<greglearns>
work with Rust nightly and/or I couldn't make it work with my code running with Nix on Ubuntu.
erictapen has quit [(Ping timeout: 268 seconds)]
justelex has joined #nixos
justelex_ has quit [(Ping timeout: 260 seconds)]
<bennofs>
greglearns: there are no best practices for compiling rust yet afaik. but buildRustPackage should defintely work, as long as you're not using git dependencies in your cargo toml
<bennofs>
greglearns: let me try your example project
newhoggy has joined #nixos
arianvp2 has quit [(Read error: Connection reset by peer)]
chakerbenhamed has quit [(Ping timeout: 240 seconds)]
yegortimoshenko has joined #nixos
erictapen has joined #nixos
justelex has quit [(Ping timeout: 246 seconds)]
jtojnar has quit [(Quit: Page closed)]
<bennofs>
greglearns: you seem to be using a custom buildRustPackage, why is that?
adev_ has quit [(Quit: Ex-Chat)]
simendsjo has quit [(Remote host closed the connection)]
<bennofs>
greglearns: note that anything that does use the network and is not a fixed output derivation (specifying the hash upfront) will fail if you use nix with sandboxing enabled (as is the default on NixOS afaik)
<copumpkin>
niksnut, gchristensen: just tested, the Locked extended attribute applies to both sides of the hardlink
<copumpkin>
so same issue
newhoggy has quit [(Ping timeout: 255 seconds)]
<gchristensen>
:)
erictapen has quit [(Ping timeout: 255 seconds)]
simendsjo has joined #nixos
<copumpkin>
so if we want the feature, we'd need to maintain the hard links ourselves
erictapen has joined #nixos
<copumpkin>
or disable optimization
<copumpkin>
which is also not awful, if we're using APFS
<copumpkin>
but nobody is :P
simendsjo has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
simendsjo has joined #nixos
newhoggy has quit [(Ping timeout: 255 seconds)]
yegortimoshenko has left #nixos ["ERC (IRC client for Emacs 25.2.1)"]
tvon has left #nixos []
takle has quit [(Remote host closed the connection)]
<radvendii>
So I use nix-prefetch-git <git url>, and then I paste the current commit and sha256 into a fetchgit in a nixpkg, but then I get an error fatal: reference is not a tree <commit-rev>
<radvendii>
nope! i typed it in wrong!
<radvendii>
*turns away, embarassed*
newhoggy has joined #nixos
oida has joined #nixos
newhoggy has quit [(Ping timeout: 248 seconds)]
oida_ has quit [(Ping timeout: 248 seconds)]
greglearns has quit [(Remote host closed the connection)]
<greglearns>
Any idea how to proceed for Nix/Rust (nightly)? Rust nightly is almost more common than normal Rust.
<greglearns>
Any idea how to proceed for Nix/Rust (nightly)? Rust nightly is almost more common than normal Rust. (Ralith, bennofs)
<Ralith>
I dunno, stable's always been plenty for me
<bennofs>
manveru: oh right, that one is definitely wrong. although it is right when it says that http://crates.io should probably be replaced with https://crates.io
<copumpkin>
in general, the Nix model is antithetical to "nightly"
<copumpkin>
unless it's a reproducible nightly :)
<copumpkin>
meaning you have the option on staying on last year's nightly indefinitely
<copumpkin>
s/on s/of s/
<bennofs>
copumpkin: i think rust nightlies are pretty reproducible
<Ralith>
yeah, we do package such a nightly, and it has its uses
<Ralith>
I dunno if we can build packages with it though
newhoggy has joined #nixos
<bennofs>
copumpkin, Ralith: there's even a mozilla overlay that provides the compilers as packages i think
<copumpkin>
yeah, I just mean that if your goal is to always get the latest thing without having to think about it, Nix might not be the best fit
gpyh has joined #nixos
<gpyh>
hi
takle has joined #nixos
<Ralith>
bennofs: yes, I use that
<Ralith>
don't think that does greglearns much good
DutchWolfie has joined #nixos
arianvp2 has joined #nixos
<gpyh>
I was wondering: it is possible with nixos to deploy containers on a remote machine? The documented envs are either local containers or remote NixOS but I'd like containers on a remote NixOS
<Ralith>
copumpkin: the mozilla overlay actually does exacty that and it's a little bit annoying
<greglearns>
copumpkin I'm not trying to always have the most recent, I just need a nightly version since certain compile flags are only allowed on nightly.
<copumpkin>
ah okay
mudri has joined #nixos
<greglearns>
ralith copumpkin bennofs I'm new to Nix, so not sure of the best way to proceed. As long as I have access to any (somewhat recent) nightly Rust, to satisfy the compile flags issus, I'm fine, but I'm not sure how to get that.
<copumpkin>
I'm not a big rust user in Nix unfortunately, so can't help on specifics
newhoggy has quit [(Ping timeout: 246 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
<Ralith>
greglearns: it looks like you can override `rust` in buildRustPackage
<Ralith>
hm
<Ralith>
in fact
<Ralith>
greglearns: I think you can just do `rustNightly.buildRustPackage`
<Sonarpulse>
copumpkin: import from derivation + impure derivations
<Sonarpulse>
should make nightly finally feasible
<Sonarpulse>
on a philophical level
<copumpkin>
you mean the speculative feature that doesn't exist yet?
<Sonarpulse>
no!
<copumpkin>
that we'd both love to exist :)
<Sonarpulse>
niksnut added a commit, right?
<Sonarpulse>
it's not everything I want, but....
<Sonarpulse>
a good step in the right direction
<greglearns>
how do I get "rustNightly"?
<Sonarpulse>
greglearns: I am way out of date, but the mozilla nixpkgs overlay is probably nice
jgertm has joined #nixos
<copumpkin>
Sonarpulse: nothing can depend on those ones
<Sonarpulse>
yeah
<copumpkin>
so niksnut's thing is a first step, but we couldn't do anything useful with it yet
<Sonarpulse>
ok 1/2th step :)
<copumpkin>
I'd love to extend it
<Sonarpulse>
intentional store and it all falls out soooooo nicely
<Sonarpulse>
gchristensen: shellcheck is not in haskellPackages?
<gchristensen>
Sonarpulse: I dunno, nix-shell -p shellcheck
<Sonarpulse>
oh
<greglearns>
sonarpulse the documentation says how to nix-env -i the overlay, but doesn't explain how to use the nigthly overlay in a default.nix. ideas?
<copumpkin>
niksnut: perhaps discussion group on how to make that all a reality at NixCon 2017? :D
<copumpkin>
Sonarpulse: you coming?
newhoggy has joined #nixos
<Sonarpulse>
copumpkin: it seems increasingly necessary :D
<Ralith>
greglearns: rustNightly is an attribute in nixpkgs
<Sonarpulse>
gchristensen: ahh ShellCheck on hackage
<Ralith>
you "get" it the same way you get anything in nixpkgs
<Sonarpulse>
Ralith: I meant the mozilla one nbp made
<Ralith>
I don't think greglearns needs the mozilla overlay
<Ralith>
or wants, even
<Sonarpulse>
fair
<Sonarpulse>
I defer
arianvp2 has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
newhoggy has quit [(Ping timeout: 248 seconds)]
endformationage has joined #nixos
<greglearns>
ralith on https://nixos.org/nixos/packages.html, it says this for rust nightly: nix-env -iA nixos.rustNightly.cargo (NixOS channel) ... does that mean that this only works on NixOS (but not Ubuntu using Nix)?
<Ralith>
greglearns: you keep switching back and forth between talking about referring to stuff in a nix expression and installing the compiler in your user environment; it's not clear which you actually want
<Ralith>
on nix-on-linux, to use nix-env -iA, just replace "nixos" with "nixpkgs" iirc
takle has joined #nixos
newhoggy has joined #nixos
<greglearns>
ralith, sorry, that's cuz I'm not sure how to refer to things. I'm building developer environments on Ubuntu and MacOSX using Nix, and writing default.nix files so that developers can do nix-shell do develop (which means that I think I can't use the NixOS channel???) ... but ALSO, I'm using those same default.nix files for NixOps to deploy to AWS (which CAN use the NixOS channel?)...
civodul has joined #nixos
<Ralith>
greglearns: nix-env shouldn't be involved in any of those things
<Ralith>
nix-env is only for managing your user's default environment
<greglearns>
ralith... got it. So, I should talk about "default.nix" expressions and "nix-shell" and "nixops"... so, can I use things from the NixOS channel in nix-shell and nixos as deployed via nixops?
<Ralith>
I don't have any experience with nixops
takle has quit [(Ping timeout: 255 seconds)]
newhoggy has quit [(Ping timeout: 240 seconds)]
<Ralith>
generally nix expressions don't care what channel you're using
<Ralith>
different channels are all just different exact versions of nixpkgs
<Ralith>
no, again, the channel you're using is not particularly important
k2s has quit [(Remote host closed the connection)]
DutchWolfie has quit [(Quit: Konversation terminated!)]
newhoggy has joined #nixos
ybit2 is now known as ybit
<greglearns>
but, when I put "rustNightly.buildRustPackage" in my default.nix, I get "nix-build error: attribute ‘buildRustPackage’ missing, at .../files/default.nix:46:1" ... but, if I put "rustPlatform.buildRustPackage" in my default.nix, it starts to compile (good), but then I get an error: "error: failed to open: /tmp/nix-build-searchspring-feedexplorer-api-0.1.drv-0/deps/registry/index/-ba82b75dd6681d6f/.cargo-index-lock" er
<greglearns>
ror and can't proceed.
takle has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Radvendii opened pull request #27311: ring-daemon: init at 2017-07-11 (master...master) https://git.io/vQD3f
NixOS_GitHub has left #nixos []
arianvp2 has joined #nixos
<Sonarpulse>
gchristensen: it doesn't complain about `local foo=$1`
<Sonarpulse>
why would that be?
<gchristensen>
hmm should it?
<gchristensen>
you mean b/c $1 may not be defined?
<Sonarpulse>
if there is a space
<Sonarpulse>
wouldn't that define two locals?
<gchristensen>
hmm good question, I'm not sure!
<pie_>
is there docs for setting up apache anywhere?
takle has quit [(Ping timeout: 268 seconds)]
<Sonarpulse>
gchristensen: wat
<Sonarpulse>
it doesn't
<Sonarpulse>
set -x
<gchristensen>
reallllyy.... and there we go, shellcheck is good
<gchristensen>
"Trolls get their power from anonymity and a perceived lack of consequences. If you're ever finding someone is getting harassed in a thread, you can say 'hey, let's have a video chat about that' and the troll disappears."
<gchristensen>
#NixOS video chats!
newhoggy has joined #nixos
drakonis has joined #nixos
<bennofs>
should I be worried when 'writing objects' for a git push takes ages?
chakerbenhamed has joined #nixos
<bennofs>
am i pushing something wrong? a git diff HEAD origin/master looked OK
<gchristensen>
maybe push to a different branch Just In Case bennofs
<bennofs>
ah it was the wrong remote, I was pushing to my nixpkgs fork
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bennofs pushed 3 new commits to master: https://git.io/vQDG0
<NixOS_GitHub>
nixpkgs/master f3cbde9 Benno Fünfstück: codesearch: correct version number
<bennofs>
gchristensen: do you think it is ok if I push a commit that adds a system.copySystemNixpkgs option or should I make that go through a PR? its a pretty trivial change, but I'm never sure with the nixos module system
chakerbenhamed has quit [(Read error: Connection reset by peer)]
<bennofs>
s/change/addition
<gchristensen>
bennofs: me? I'd do a PR :)
lambdael has quit [(Quit: WeeChat 1.7.1)]
<bennofs>
problem I've found with a PR in these cases is often i get no comments, nobody says anything and PR stays around forever :)
lambdael has joined #nixos
<bennofs>
perhaps is because everybody thinks "nothing wrong with this", and moves on
<gchristensen>
well
<gchristensen>
if nobody comments merge it
newhoggy has joined #nixos
<gchristensen>
but at least you gave a fair chance to. if I'm debating between a PR and just pushing, I'll PR it and say "I'm going to merge this in 1 day cc @people @who @are @really @busy" this way it is clearly described when I'm going to merge it and they can review it if they find it important
<gchristensen>
gotta run, though :) good luck
<bennofs>
trying to extract useful bits from my nixos config currently
newhoggy has quit [(Ping timeout: 248 seconds)]
drakonis has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQDZF
<NixOS_GitHub>
nixpkgs/master 4a370d7 Vincent Laporte: ocamlPackages.fmt: 0.8.2 -> 0.8.4
NixOS_GitHub has left #nixos []
tikhon has joined #nixos
bennofs has quit [(Ping timeout: 255 seconds)]
newhoggy has joined #nixos
bennofs has joined #nixos
mudri has quit [(Ping timeout: 276 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQDct
<NixOS_GitHub>
nixpkgs/master 1d7aefd Vincent Laporte: ocamlPackages.fpath: 0.7.1 -> 0.7.2
NixOS_GitHub has left #nixos []
hamishmack has quit [(Quit: hamishmack)]
chakerbenhamed has joined #nixos
newhoggy has quit [(Ping timeout: 260 seconds)]
Havvy has quit [(Read error: Connection reset by peer)]
<bennofs>
why do we need a different tool for nixops and for install nixos? shouldn't those be the same thing?
spinus has quit [(Remote host closed the connection)]
newhoggy has quit [(Ping timeout: 260 seconds)]
arianvp2 has quit [(Quit: arianvp2)]
Guest31447 has quit [(Quit: Lost terminal)]
takle has joined #nixos
newhoggy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 2 new commits to master: https://git.io/vQDlL
<NixOS_GitHub>
nix/master 8e8caf7 Eelco Dolstra: fetchTarball: Prevent concurrent downloads of the same file...
<NixOS_GitHub>
nix/master 2965d40 Eelco Dolstra: replaceSymlink(): Handle the case where the temporary file already exists...
NixOS_GitHub has left #nixos []
takle has quit [(Remote host closed the connection)]
mk-fg has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
marsel has quit [(Ping timeout: 240 seconds)]
drakonis has joined #nixos
chakerbenhamed has quit [(Read error: Connection reset by peer)]
Filystyn has quit [(Remote host closed the connection)]
justbeingglad has joined #nixos
justbeingglad has left #nixos []
simukis has quit [(Quit: simukis)]
newhoggy has quit [(Remote host closed the connection)]
Mateon3 has joined #nixos
Mateon2 has quit [(Ping timeout: 255 seconds)]
Mateon3 is now known as Mateon1
<Mic92>
bennofs: I have the feeling, we already had a similar feature. But I am not sure.
<Mic92>
maybe it was only a discussion on the mailing list
<mpcsh>
hi everyone - I'm a tad confused on how nixpkgs work. so I want to install spotify, and I run nix-env -qa .*spotify.* and the only two options that come up are mopidy-spotify and mopidy-spotify-tunigo. so I googled "nixos spotify" and lo and behold, I find a .nix file in the nixpkgs repo! why doesn't it show up in nix-env -qa?
takle has quit [(Read error: Connection timed out)]
<LnL>
see step 5. :P
aanderse has quit [(Ping timeout: 260 seconds)]
<mpcsh>
LnL: haha yep. I agree with grahamc that it should be on by default...
takle has joined #nixos
<bennofs>
Mic92: there is copySystemConfiguration already
<bennofs>
Mic92: which copies the configuration.nix file
<Mic92>
I see
<LnL>
mpcsh: nix-env -f '<nixpkgs>' -iA spotify will give you a nice error message with instructions, but that doesn't really help when trying to find stuff
<mpcsh>
so now I'm having the opposite problem! I want to install the mplus fonts, and when I run nix-env -qa mplus, it shows up. I can run nix-env -i mplus and it installs fine and I can use the font. But if I put "pkgs.mplus" in my configuration.nix and run nixos-rebuild switch, it gives me "attribute 'mplus' missing"
<bennofs>
mpcsh: try nix-env -qaP mplus
<mpcsh>
"nixos.mplus-outline-fonts mplus-062"
<bennofs>
mpcsh: it tells you that the attribute path is nixpkgs.mplus-outline-fonts
<LnL>
there's a difference between the package name used by nix-env -i and the attribute, used in nix expressions
hiratara has quit [(Ping timeout: 246 seconds)]
<bennofs>
mpcsh: so you need to use pkgs.mplus-outline-fonts in configuration.nix
celldee has joined #nixos
<bennofs>
(i generally only use attribute paths. nix-env -i -A makes it take an attribute path as well (so nix-env -iA nixos.mplus-outline-fonts would work as well))
<LnL>
^ that's also faster
<mpcsh>
bennofs: got it. Why does "nixos.*" become "pkgs.*" in configuration.nix?
hiratara has joined #nixos
chakerbenhamed has quit [(Ping timeout: 276 seconds)]
<bennofs>
mpcsh: it's because nix-env uses channels. `pkgs` in configuration.nix is just a variable that stands for the set of nix packages. in nix env, the packagesets are named according to the channel they belong to, so nixos gives you the packages of the nixos channel
<mpcsh>
so is a channel just a particular version of nixpkgs?
<bennofs>
mpcsh: if you look at the top of configuration.nix, you can see that it says { pkgs, ... }:, that says it takes pkgs as an argument. the convention is that nixos-rebuild will supply nixpkgs as pkgs
<bennofs>
mpcsh: yes
<Ralith>
yep
<bennofs>
(or more accurately, the pkgs argument is supplied by the nixos module system which is what defines the options etc that are available in configuration.nix)
<mpcsh>
bennofs: so now here's a problem. When I install mplus-outline-fonts via configuration.nix and run nixos-rebuild switch, I can't see the font in any of my programs
<bennofs>
mpcsh: or, I think there is a fonts.fonts option that can be set to a list
<bennofs>
mpcsh: so you could try something like: fonts.fonts = [ pkgs.mplus-outline-fonts ];
<mpcsh>
bennofs: oooooooo that's nice
<mpcsh>
what's environment.pathsToLink?
<mpcsh>
(I read the entry in the manual, it's not clear to me)
<bennofs>
mpcsh: it specifies what paths from each pkg in systemPackages gets linked into /run/current-system/sw
<LnL>
yes, you probably want to use the fonts option instead of systemPackages, that's intended for binaries, etc.
<bennofs>
mpcsh: so if you add /share to it, all the /share directories from every package listed in systemPackages will be merged into /run/current-system/sw/share
<mpcsh>
is /share a thing? or do you mean /usr/share?
<bennofs>
mpcsh: nixos generally does not use /usr. each package has its own share directory (so there is for example /nix/store/szcsl6jrxz1np21nr492x7l61mg7yxac-poppler-utils-0.50.0/share)
<mpcsh>
how the fuck do you people efficiently tab-complete within the nix store directory
chakerbenhamed has quit [(Read error: Connection reset by peer)]
arianvp2 has quit [(Ping timeout: 248 seconds)]
<bennofs>
mpcsh: ssd?
<grahamc>
We don't
<grahamc>
Why would we?
<bennofs>
mpcsh: and have a shell that tab-completes based on substrings, not just prefixes
<mpcsh>
no no I mean like let's say you want to go to the directory of a certain package and look inside
NixOS_GitHub has joined #nixos
<mpcsh>
yeah I guess that
<NixOS_GitHub>
[nixpkgs] cstrahan closed pull request #26127: Fixed meteor Future is not defined error (master...upstream-master) https://git.io/vHZmf
NixOS_GitHub has left #nixos []
<mpcsh>
I really should switch to zsh
<bennofs>
mpcsh: or use ls | grep or find
<mpcsh>
ls | grep just feels so 1990s, ya know?
<LnL>
you can use nix-build which will create a symlink called result for you that points to the package
<mpcsh>
meh
<bennofs>
mpcsh: or alternatively, use nix-build '<nixpkgs>' -A attr (here attr is without nixpkgs or pkgs, just so just mplus-outline-fonts for example)
<bennofs>
that'll give you a result symlink in the current dir with the package contents
<bennofs>
if you don't want a symlink, you could also do: cd $(nix-build --no-out-link '<nixpkgs>' -A attr)
__Sander__ has quit [(Quit: Konversation terminated!)]
<mpcsh>
interesting
<bennofs>
and perhaps make a bash alias / script for that? (Is there anyone here who's used nixos for a longer time without any custom aliases/scripts? we really need to improve the tools!)
<mpcsh>
ok everyone hold the fuck up I just ran "killall sxhkd" and got "bash: killall: command not found"
<bennofs>
mpcsh: you need to install psmisc
<mpcsh>
thanks, kinda feel like those should be installed by default...
<LnL>
didn't you get some instructions from commandmissing?
<bennofs>
LnL: not sure if we're in a "command-not-found works" or a "command-not-found is broken" phase :)
<mpcsh>
what's that?
<gpyh>
I was wondering: it is possible with nixos to deploy containers on a remote machine? The documented envs are either local containers or remote NixOS but I'd like containers on a remote NixOS
<bennofs>
mpcsh: normally nixos installs a command-not-found hook that recommends a nix-env command to install the package that provides a certain exe
<bennofs>
mpcsh: (you may know that from ubuntu where they provide apt-get commands)
<mpcsh>
bennofs: did I disable it somehow?
<mpcsh>
yeah I'm familiar with the concept
<mpcsh>
haven't seen it though
<bennofs>
mpcsh: if you didn't do anything special it shouldn't be disabled
<mpcsh>
LnL: that's awesome! I don't have it though :(
<LnL>
what release are you using?
CrazedProgrammer has quit [(Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)]
<mpcsh>
LnL: unstable ^-^ coming from arch, I wanted rolling release
<LnL>
ah, must be broken there then
endformationage has quit [(Quit: WeeChat 1.7)]
coolcrazedprogra has joined #nixos
<LnL>
I wouldn't really recommend using unstable, you're not limited to a single channel with nixos
<bennofs>
mpcsh: many people here use unstable though :)
<mpcsh>
LnL: I asked a while ago if nixos was rolling release, and someone said "no, but unstable is"
<mpcsh>
is that true?
<LnL>
so it's very easy to pick a bunch of packages from unstable while keeping the rest of the system on a stable release
pxc1 has quit [(Quit: WeeChat 1.8)]
<mpcsh>
LnL: the situation I'm trying to avoid is the whole ubuntu-style "oh great they just released 17.04, time to go burn a usb and boot into it and run the updater"
<bennofs>
LnL: it gets complicated when you need modules from unstable :)
<LnL>
true
<mpcsh>
LnL: if a new channel is released, and I run nixos-rebuild switch --upgrade, do I get the new channel?
<mpcsh>
or, more likely, do I manually switch to the new channel and then run the upgrade?
<bennofs>
mpcsh: yeah, you manually need to switch between nixos stable releases AFAIK
Fare has quit [(Ping timeout: 260 seconds)]
<bennofs>
so if you go from nixos 16.x to nixos 17.03 you need to change your channel
<LnL>
bennofs: true, will be better with with the next release since you can disable modules now
chakerbenhamed has joined #nixos
<bennofs>
mpcsh: but, if there haven't been too many changes to the modules that you're using in your nixos configuration, you should be able to switch between nixos stable and unstable in a few commands :)
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
chakerbenhamed has quit [(Read error: Connection reset by peer)]
<bennofs>
(and if it won't work, you normally won't break your system. you'll only get some evaluation errors because config options have been renamed etc)
<mpcsh>
bennofs: yeah, I see it in the manual. Should I switch back? I'm fine with manually switching channels as long as a) there's some kind of notification system (email?) and b) I don't lose any user data when changing channels
<bennofs>
mpcsh: idk. personally, i'm mostly using nixos-unstable and sometimes even building from a certain nixpkgs git commit (when I added a new change to nixpkgs and its not in unstable yet. then, i normally cherry-pick the commit onto the latest nixos-unstable commit and build my system against that)
<mpcsh>
oh shit boys I think I just lost my configuration.nix through a messed up `tee` command
takle has quit [(Remote host closed the connection)]
<mpcsh>
bennofs: thanks for that, looks good. in the meantime, I'm definitely just SOL, right?
<mpcsh>
like configuration.nix doesn't persist through generations, does it?
eacameron has quit [(Remote host closed the connection)]
<mpcsh>
er, rather, it does persist, so there won't be a slightly older copy of it in a previous generation, right?
<bennofs>
mpcsh: there's a system.copySystemConfiguration option, but it defaults to false. there have been various discussions about changing that default. one problem with it is that it only copies configuration.nix, not any other files that configuration.nix may import if your config gets more complex
<bennofs>
mpcsh: i just have my config in a git repo
<mpcsh>
bennofs: that was the eventual plan but I hadn't gotten around to it yet, fuck my liiiiiiiiiiiiife
<bennofs>
although that requires a little bit of carefulness if you're putting any secrets into it
coolcrazedprogra has quit [(Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)]
lambdael has quit [(Quit: WeeChat 1.7.1)]
<mpcsh>
do you recommend using immutableUsers?
<bennofs>
i use it because i'd like my system to be almost fully configured by a single nixos-install/nixos-rebuild
<mpcsh>
so then I can't just put my hashed passwords in a public git repo, can I
<bennofs>
mpcsh: yeah, I have an extra file for that
<mpcsh>
I mean I'd be relying on the security of sha-512
<bennofs>
mpcsh: see passwordFile
<bennofs>
mpcsh: for the current install, I created a /etc/local directory where I put passwordFile, wpa_supplicant config etc
<bennofs>
anyway, i should go catch some sleep, good look with your config! :)
nckx has quit [(Quit: I'm probably just restarting my server.)]
ericsagnes has quit [(Ping timeout: 240 seconds)]
nckx has joined #nixos
<mpcsh>
if anybody was curious I actually managed to recover my configuration.nix by grepping my raw device from a recovery iso for some text in the file
<mpcsh>
worked beautifully
dbmikus has quit [(Quit: WeeChat 1.9)]
yegortimoshenko has joined #nixos
<yegortimoshenko>
i'm not sure about the behavior i'm seeing... do paths (opposed to strings) end up in /nix/store?
<spinus>
yegortimoshenko: depends
<spinus>
what's your use case?
<yegortimoshenko>
spinus: used a path to configure nginx and acme webroots, in this case /var/www
ericsagnes has joined #nixos
sigmundv_ has joined #nixos
<spinus>
so this path is not going to nix store
<yegortimoshenko>
ended up with this in journalctl:
<yegortimoshenko>
by the way, changing webroot type to string solves the issue, but still leaves me puzzled
erasmas has quit [(Quit: leaving)]
takle has quit [(Remote host closed the connection)]
<spinus>
yegortimoshenko: you are probably right and they end up in nix store
<yegortimoshenko>
i think the problem might be that on line 88 it is casted to string, and on line 93 it is a path. but judging from the nix manual i thought that path type is just like a string with additional sanity checks, and in this case it seems that by casting i lose some information that results in the mismatch
markus1199 has joined #nixos
<spinus>
I only found that it's mentioned, the paths are copied when passed as arguments to module, so maybe this is happening under the hood
<yegortimoshenko>
spinus: thanks! by the way, it isn't right if *anything* changes in /nix/store after it got there, correct?
indi_ has joined #nixos
<spinus>
yes, there is even command which checks that
<spinus>
and there is another one --repair (man nix-store)
markus1189 has quit [(Ping timeout: 248 seconds)]
bb2000 has quit [(Quit: Page closed)]
Nobabs27 has joined #nixos
sigmundv_ has quit [(Ping timeout: 248 seconds)]
jtojnar has joined #nixos
newhoggy has joined #nixos
JagaJaga has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] yegortimoshenko opened pull request #27316: nftables: drop services prefix in an error message (release-17.03...patch-1) https://git.io/vQDoi