gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<pie_> issue seems to be scp related i thik
<pie_> blody 'ell
<pie_> so in my remote .bashrc i had "exec fish" and somehow that borks it
<samueldr> infinisil: never touched the channels thing, all gchristensen's work
jperras has quit [Ping timeout: 265 seconds]
<pie_> i find it odd that ssh should be so sensitive to remote shell config but i guess thats how its implemented...
rprije has quit [Ping timeout: 264 seconds]
rprije has joined #nixos
jbboehr has joined #nixos
<samueldr> pie_: how were you executing e.g. ls?
<samueldr> I'm curious
<colemickens> do folks have gnome and emojis all working?
<samueldr> gnome no, emoji 🐈
<colemickens> I'm used to just installing noto-emoji in Arch and having it work but no dice so far here.
<samueldr> if you enable ibus, you get mod+ctr+shift+E to pick emojis
<samueldr> colemickens: you do know fonts don'T go in systemPackages?
<pie_> samueldr, literally just ls in the parent directory of where i was mointing to
<samueldr> ah, sshfs
<pie_> i tried scp too
<pie_> it had the same issue, which kind of gave me the epiphany that i was screwind with my bashrc, well also a push from reading on the internet something about sshh and bashrc
Ralith_ has quit [Ping timeout: 264 seconds]
<colemickens> oh well, not going to spend too much time, plasma 5.13 looks great and I'm going to try switching back again.
rprije has quit [Ping timeout: 240 seconds]
Ralith_ has joined #nixos
rprije has joined #nixos
<samueldr> I just had warm fuzzies thinking about how it's nice to just show our configuration files to know how stuff is setup :)
<colemickens> yes, x100
<colemickens> When packaging something new should I prefer fetchFromGithub over fetchTarball (w/ hash)?
<pie_> im gonna go crash (sleep :P)
nschoe has quit [Read error: Connection reset by peer]
thetet has quit [Ping timeout: 256 seconds]
pie_ has quit [Ping timeout: 240 seconds]
semilattice has joined #nixos
<samueldr> colemickens: use what upstream releases
<samueldr> git != release tarballs
<samueldr> some projets will e.g. run autotools or some other preparation scripts before making a tarball
<samueldr> uh, autogen or one of those
<colemickens> Good point. Though I hate that.
<{^_^}> [nixpkgs] @Ericson2314 pushed to staging Β« compiler-rt 5: Fix double space Β»: https://git.io/vhPap
<samueldr> the big idea being, use it as close to what upstream does
<colemickens> Well, I hate when they do some translation and don't document it anywhere and then I need to build a specific revision that wasn't "released".
<colemickens> anyway, makes sense
acarrico has joined #nixos
guest-35gcfv has quit [Quit: Page closed]
Lev50 has quit [Quit: This computer has gone to sleep]
jperras has joined #nixos
andreabedini has joined #nixos
jperras has quit [Ping timeout: 256 seconds]
aarvar has quit [Ping timeout: 245 seconds]
Sonarpulse has quit [Ping timeout: 256 seconds]
goibhniu has quit [Quit: Leaving.]
blankhart has quit [Quit: WeeChat 1.9.1]
ericsagn1 has joined #nixos
judson has quit [Remote host closed the connection]
thc202 has quit [Ping timeout: 276 seconds]
semilattice has quit [Ping timeout: 255 seconds]
semilattice_ has joined #nixos
silver has quit [Read error: Connection reset by peer]
page has quit [Ping timeout: 240 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
steell has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #42049 β†’ pass: 1.7.1 -> 1.7.2 β†’ https://git.io/vhPCu
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhPwX
TonyTheL1on has joined #nixos
markus1199 has joined #nixos
TonyTheLion has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #42018 β†’ go: 1.10.2 -> 1.10.3 β†’ https://github.com/NixOS/nixpkgs/pull/42018
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhPwy
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #42015 β†’ gnupg1orig: 1.4.22 -> 1.4.23 β†’ https://git.io/vhiV2
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhPwH
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #42020 β†’ cppcheck: 1.83 -> 1.84 β†’ https://git.io/vhiXW
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhPwQ
steell has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #42021 β†’ closurecompiler: 20180506 -> 20180610 β†’ https://git.io/vhi1k
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhPw7
markus1189 has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #42008 β†’ innoextract: 1.6 -> 1.7 β†’ https://git.io/vhinn
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhPwb
page has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko pushed 3 commits to master: https://git.io/vhPwA
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #41777 β†’ rambox: 0.5.13 -> 0.5.17 β†’ https://git.io/vh2H0
zearen has quit [Ping timeout: 276 seconds]
trevorriles has joined #nixos
rain1 has joined #nixos
trevorriles has quit [Client Quit]
judson has joined #nixos
xcmw has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #41999 β†’ libuv: 1.20.2 -> 1.20.3 β†’ https://git.io/vhiIN
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhPrs
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #41998 β†’ libidn: 1.34 -> 1.35 β†’ https://git.io/vhiI6
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhPrZ
xcmw has quit [Client Quit]
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #41995 β†’ libnftnl: 1.1.0 -> 1.1.1 β†’ https://git.io/vhiTF
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhPrW
bluej774 has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #41981 β†’ libgcrypt: 1.8.2 -> 1.8.3 (for CVE-2018-0495) β†’ https://git.io/vh6d0
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhPrl
<judson> Nope. Finally set videoDrivers to include nv and nouveau, rebuilt rebooted. No dice with Zoom. It still complains glibc-2.26-131/lib/libc.so.6: version `GLIBC_2.27' not found
zearen has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #41780 β†’ sqlite{,-analyzer}: 2.23.1 -> 2.24.0 β†’ https://git.io/vh2dA
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhPrB
<{^_^}> [nixpkgs] @yegortimoshenko closed pull request #41961 β†’ sqlite: 3.23.1 -> 3.24.0 β†’ https://git.io/vh6iY
jperras has joined #nixos
hamishmack has joined #nixos
xcmw has joined #nixos
<nh2[m]> how can I build all `haskellPackages`?
<nh2[m]> just `-A haskellPackages` gives me an error about Elm being marked as broken
hamishmack has quit [Client Quit]
acarrico has quit [Ping timeout: 264 seconds]
Mr_Keyser_Soze has quit [Ping timeout: 240 seconds]
<rotaerk> nh2[m], what if you build `-A haskellPackages.Elm' ?
<rotaerk> same error?
<rotaerk> if so, maybe you just *can't* build all of them, because not all can be built
<rotaerk> (why would you want to, anyway?)
<nh2[m]> rotaerk: yes, same error. How can build all those that aren't broken? I want to do this because I'm running the musl cross toolchain and I want to measure how many packages compile successfully
<manveru> Judson: did you install zoom via your configuration.nix?
tmaekawa has joined #nixos
<manveru> damn, i should really sleep :P
<{^_^}> [nixpkgs] @yegortimoshenko pushed commit from @lsix to release-18.03 Β« libgcrypt: 1.8.2 -> 1.8.3 Β»: https://git.io/vhPr9
sorixelle has joined #nixos
<manveru> Judson: i found that for GL stuff, you must make sure it's using exactly the same libraries as your graphic driver... so installing via `nix-env` or `home-manager` is broken
<dtz> nh2: hydra jobset does it somehow....
<dtz> but I don't think there's an easy way.
<manveru> anw, gn8
<judson> manveru, you're probably right. Thanks. Sleep well!
<rotaerk> where is Elm even marked as broken?
<rotaerk> how is that specified?
<nh2[m]> rotaerk: one can give `broken = true; ` in a haskell package, I assume that's what's happening for Elm
Lev50 has joined #nixos
jbboehr has quit [Remote host closed the connection]
<nh2[m]> dtz: so for this problem with haddock failing libgmp. The issue is that
<nh2[m]> ldd /nix/store/dsabjys8z7pkiqz6jbdj939cv7dv4yy7-ghc-8.2.2/lib/ghc-8.2.2/bin/haddock | grep gmp
<nh2[m]> shows
<nh2[m]> libgmp.so.10 => /nix/store/ia29i0pfv4d8rwr4z76z6m8b5j7ng3g9-gmp-6.1.2/lib/libgmp.so.10
<nh2[m]> which looks right but somehow it can't load it when it's called during the build
<judson> That got the Zoom client working. Eventually I'll remember...
<rotaerk> I was just thinking maybe you could filter out the broken ones, but then of course they would have dependencies and dependents and all hell breaks loose
<rotaerk> well, just dependents
<nh2[m]> right
Mr_Keyser_Soze has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko closed pull request #42046 β†’ [18.03] libgcrypt: 1.8.2 -> 1.8.3 β†’ https://git.io/vhPZi
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
<nh2[m]> dtz: so for some reason it looks only in ghc-8.2.2 and glibc-2.26-131 for libgmp.so, instead of what is written in the ldd
tmaekawa has quit [Quit: tmaekawa]
Supersonic112 is now known as Supersonic
olto has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko closed pull request #42044 β†’ libgcrypt: 1.8.2 -> 1.8.3 β†’ https://git.io/vhPZG
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oltoAltn has quit [Ping timeout: 264 seconds]
<rotaerk> nh2[m], did you try allowBroken = true; to see if it actually builds?
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #42009 β†’ iproute: 4.16.0 -> 4.17.0 β†’ https://git.io/vhi4S
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhPon
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #41974 β†’ libinput: 1.10.3 -> 1.11.0 β†’ https://git.io/vh6Mk
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhPoc
<nh2[m]> rotaerk: tried now, but then I get some `assertion failed` in openjdk which is very unrelated to my haskell :D -- I think I'll postpone this testing of all packages a couple days
<rotaerk> heh
<catern> help, why is my resolution on NixOS with the nvidia proprietary drivers, stuck at a weird not-the-resolution-I-want
<catern> and even if I open nvidia-settings, and change the resolution, and hit apply, it does nothing
<samueldr> catern: bigger than 1080p on non-dual-dvi cable?
<samueldr> or the resolution is actually wrong?
<catern> errrr
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #41937 β†’ gnome3.webkitgtk: 2.20.2 -> 2.20.3 β†’ https://git.io/vhKN7
<{^_^}> [nixpkgs] @yegortimoshenko pushed 3 commits to master: https://git.io/vhPo0
<catern> well, what happened AFAICT is, the resolution/monitor configuration is stuck to what it was before I removed my second monitor
<catern> which was a different size from my main monitor
hamishmack has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #41779 β†’ bash: 4.4p19 -> 4.4p23 β†’ https://git.io/vh2dM
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhPou
<catern> and now my main monitor is stuck at that smaller size, and also xmonad (at least) seems to believe there's a second monitor
<samueldr> hmm, on intel hardware it sometimes sticks, what I do is unplug and replug the cable
<catern> let me try that I guess
<catern> omg!!! it worked!
<catern> thank you :)
imalison has joined #nixos
woodson_ has quit [Ping timeout: 256 seconds]
<imalison> Is there an equivalent to nix-prefetch-git for pypi?
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #41880 β†’ nodejs: 10.3.0 -> 10.4.1 β†’ https://git.io/vhwy0
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhPoz
<{^_^}> [nixpkgs] @yegortimoshenko closed pull request #41980 β†’ nodejs-slim-10_x: 10.3.0 -> 10.4.1 β†’ https://git.io/vh65v
Lev50 has quit [Quit: This computer has gone to sleep]
<imalison> I realize that all I need to do is download the appropirate tar ball, but its kind of a pain to have to figure that out manually
JasonGrossman has joined #nixos
<rotaerk> maybe make one
hamishmack has quit [Client Quit]
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #41933 β†’ unbound: 1.7.1 -> 1.7.2 β†’ https://git.io/vhKM7
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhPo6
<rotaerk> there does *not* appear to be a pypi one there
Mr_Keyser_Soze has quit [Ping timeout: 240 seconds]
<imalison> rotaerk: Yeah I looked there and didnt see one, but I find it hard to believe that people are doing a manual download to figure out that sha256 for every pypi package there
<rotaerk> but there is a nix function called fetchPypi
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #41706 β†’ harfbuzz: 1.7.6 -> 1.8.0 β†’ https://git.io/vhgBC
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhPoP
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #41690 β†’ harfbuzz-icu: 1.7.6 -> 1.8.0 β†’ https://git.io/vhgmj
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhPoM
Mr_Keyser_Soze has joined #nixos
<rotaerk> imalison, oh, yeah that's a pain
<gchristensen> !tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<imalison> ghristensen: Thanks, that was what I was looking for
<rotaerk> this is a sh script I wrote that helps me manage project references, and it uses nix-prefetch-url to get that sha256
<rotaerk> with github even
andreabedini has joined #nixos
<rotaerk> so maybe that approach would work for pypi
Lev50 has joined #nixos
semilattice_ has quit [Ping timeout: 268 seconds]
matthewbauer has quit [Remote host closed the connection]
hamishmack has joined #nixos
Mr_Keyser_Soze has quit [Ping timeout: 260 seconds]
Lev50 has quit [Quit: This computer has gone to sleep]
steell has joined #nixos
tzemanovic has quit [Remote host closed the connection]
zearen has quit [Ping timeout: 264 seconds]
semilattice has joined #nixos
steell has quit [Ping timeout: 240 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shad has quit [Ping timeout: 276 seconds]
shad has joined #nixos
mkoenig has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer opened pull request #42060 β†’ Remove legacy cross, add aliases β†’ https://git.io/vhP6E
tzemanovic has joined #nixos
mkoenig_ has quit [Ping timeout: 240 seconds]
steell has joined #nixos
orivej has joined #nixos
<JasonGrossman> The fact that we have to go !tofu in this channel so often suggests to me that it needs to be made more discoverable!
Wharncliffe has quit [Ping timeout: 248 seconds]
woodson has joined #nixos
steell has quit [Ping timeout: 264 seconds]
Mr_Keyser_Soze has joined #nixos
lukelau has joined #nixos
<colemickens> Anyone have any good docs/resources on using s3 as a binary cache?
<colemickens> I'm hoping to use minio with [something] as a intermediate layer and am curious how hard this will be to accomplish.
steell has joined #nixos
hyper_ch has quit [Read error: Connection reset by peer]
hyper_ch has joined #nixos
rprije has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @matthewbauer opened pull request #42061 β†’ [wip] aliases: add old aliases Nixpkgs version β†’ https://git.io/vhPiL
rprije has joined #nixos
Mr_Keyser_Soze has quit [Ping timeout: 240 seconds]
smallville7123 has joined #nixos
lassulus_ has joined #nixos
smallville7123 has quit [Quit: rosa]
<{^_^}> [nixpkgs] @worldofpeace opened pull request #42062 β†’ elisa: 0.1 -> 0.1.80 β†’ https://git.io/vhPia
sanscoeur has joined #nixos
lassulus has quit [Ping timeout: 264 seconds]
lassulus_ is now known as lassulus
schoppenhauer has quit [Ping timeout: 260 seconds]
JasonGrossman has quit [Ping timeout: 264 seconds]
schoppenhauer has joined #nixos
hyper_ch has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @IvanMalison opened pull request #42063 β†’ Udiskie appindicator β†’ https://git.io/vhPi5
phdoerfler has joined #nixos
hyper_ch has joined #nixos
phdoerfler has quit [Quit: Leaving.]
steell has quit [Ping timeout: 256 seconds]
sigmundv has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
nallar has joined #nixos
Ross has quit [Ping timeout: 256 seconds]
nallar is now known as Ross
sigmundv has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 260 seconds]
srl295 has quit [Quit: Connection closed for inactivity]
reinzelmann has joined #nixos
aarvar has joined #nixos
JasonGrossman has joined #nixos
shad has quit [Ping timeout: 256 seconds]
shad has joined #nixos
mahalel_ has quit [Remote host closed the connection]
JasonGrossman has quit [Remote host closed the connection]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/f3c913d466f (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shad has quit [Ping timeout: 245 seconds]
shad has joined #nixos
igo95862 has joined #nixos
mkoenig_ has joined #nixos
reinzelmann has quit [Quit: Leaving]
Rusty1_ has quit [Quit: Konversation terminated!]
mkoenig has quit [Ping timeout: 245 seconds]
andreabedini has joined #nixos
Sonarpulse has joined #nixos
woodson has quit [Ping timeout: 248 seconds]
slack1256 has joined #nixos
jperras has joined #nixos
shah^ has quit [Ping timeout: 276 seconds]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
shah^ has joined #nixos
shah^ has quit [Max SendQ exceeded]
jperras has quit [Ping timeout: 264 seconds]
myshoe has joined #nixos
pacmeister has joined #nixos
Guanin has quit [Ping timeout: 256 seconds]
justanotheruser has quit [Quit: WeeChat 2.0]
justanotheruser has joined #nixos
rprije has quit [Ping timeout: 240 seconds]
nekroze has joined #nixos
Ariakenom has joined #nixos
<nekroze> how can I declare in configuration.nix that I want to install a package into the systemPacakges but a 32 bit version where everything else is 64 bit? I am having this problem and trying to do the solution but nixos https://www.questarter.com/q/after-upgrade-to-17-04-steam-won-39-t-download-updates-3_906844.html
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/f3c913d466f (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
Guanin has joined #nixos
stepcut has joined #nixos
<stepcut> when I tried to do nix-shell -p 'pkgs.haskell.packages.ghcjs.ghcWithPackages (p: with p; [ vector ])' I get an error, ghcjs-pkg: Couldn't open database /nix/store/il2rhydf6s3m9m3nbsw40b7ryxl7217q-ghcjs-with-packages/lib/ghcjs-8.2.0.1/package.conf.d for modification: /nix/store/il2rhydf6s3m9m3nbsw40b7ryxl7217q-ghcjs-with-packages/lib/ghcjs-8.2.0.1/package.conf.d: getDirectoryContents:openDirStream: does not exist (No such
<stepcut> file or directory)
pacmeister has quit [Ping timeout: 276 seconds]
slack1256 has quit [Remote host closed the connection]
tertle||eltret has joined #nixos
johnw has quit [Read error: Connection reset by peer]
nekroze has quit [Quit: Lost terminal]
johnw has joined #nixos
joshie has quit [Quit: No Ping reply in 180 seconds.]
joshie has joined #nixos
<cocreature> stepcut: I opened an issue for that yesterday https://github.com/NixOS/nixpkgs/issues/42032
<cocreature> hm although your error message seems different
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tzemanovic has quit [Remote host closed the connection]
reinzelmann has joined #nixos
asuryawanshi has joined #nixos
blankhart has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
tzemanovic has joined #nixos
semilattice has quit [Remote host closed the connection]
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
karlguy_ has joined #nixos
woodson has joined #nixos
stepcut has quit [Read error: Connection reset by peer]
karlguy has quit [Ping timeout: 264 seconds]
asuryawanshi has quit [Ping timeout: 264 seconds]
andreabedini has joined #nixos
Sonarpulse has quit [Ping timeout: 245 seconds]
testuser_ has joined #nixos
hyper_ch2 has joined #nixos
hyper_ch2 has quit [Changing host]
hyper_ch2 has joined #nixos
<tg> trying to upgrade from 17.09 to 18.03.. `nixos-rebuild build` seems to hang with `download-from-binary-cache.pl --query` waiting for stdin.. any ideas what's going on?
xAFFE has joined #nixos
<tg> ok maybe i'm just impatient, seems to be doing *something*
bluej774 has quit [Quit: Leaving]
slack1256 has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tzemanovic has quit []
robstr has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
blankhart has quit [Quit: WeeChat 1.9.1]
asuryawanshi has joined #nixos
jensens has joined #nixos
jperras has joined #nixos
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos
{^_^} has joined #nixos
{^_^} has quit [Changing host]
<{^_^}> [nixpkgs] @vcunat pushed 226 commits to master: https://git.io/vhPyH
jperras has quit [Ping timeout: 260 seconds]
keegans has quit [Write error: Connection reset by peer]
oida has quit [Write error: Connection reset by peer]
keegans has joined #nixos
oida has joined #nixos
<{^_^}> [nixpkgs] @Fuuzetsu merged pull request #42017 β†’ gloox: 1.0.20 -> 1.0.21 β†’ https://git.io/vhios
<{^_^}> [nixpkgs] @Fuuzetsu pushed 2 commits to master: https://git.io/vhPSt
slack1256 has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @Fuuzetsu merged pull request #41983 β†’ mkvtoolnix: 23.0.0 -> 24.0.0 β†’ https://git.io/vh6NA
<{^_^}> [nixpkgs] @Fuuzetsu pushed 2 commits to master: https://git.io/vhPSq
imalison has quit [Remote host closed the connection]
tzemanovic has joined #nixos
johanot has joined #nixos
JasonGrossman has joined #nixos
ThatDocsLady has joined #nixos
<aminechikhaoui> colemickens: I'm not sure what kind of docs you're looking for. But creating an s3 binary cache is as easy as doing nix copy --to s3://foo <store_paths>
tzemanovic has quit [Remote host closed the connection]
Ariakenom has quit [Quit: Leaving]
civodul has joined #nixos
vaninwagen has joined #nixos
igo95862 has quit [Quit: igo95862]
olto has quit [Quit: ZNC - https://znc.in]
johanot has quit [Quit: Leaving.]
olto has joined #nixos
johanot has joined #nixos
winem_ has joined #nixos
tv1 has joined #nixos
<{^_^}> [nixpkgs] @lsix pushed to staging-18.03 Β« libgcrypt: 1.8.2 -> 1.8.3 Β»: https://git.io/vhP9F
vaninwagen_ has joined #nixos
tv2 has joined #nixos
tv has quit [Ping timeout: 240 seconds]
vaninwagen has quit [Ping timeout: 256 seconds]
tv1 has quit [Ping timeout: 240 seconds]
logzet has joined #nixos
thc202 has joined #nixos
mahalel_ has joined #nixos
Ariakenom has joined #nixos
mahalel_ has left #nixos [#nixos]
roberth has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
work_ has joined #nixos
jackdk has quit [Ping timeout: 256 seconds]
reinzelmann has quit [Ping timeout: 240 seconds]
johanot has quit [Quit: Leaving.]
tertle||eltret has quit [Quit: Connection closed for inactivity]
johanot has joined #nixos
yenzenz has joined #nixos
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jensens has quit [Ping timeout: 264 seconds]
tzemanovic has joined #nixos
tzemanovic has quit [Ping timeout: 268 seconds]
johanot has quit [Quit: Leaving.]
reinzelmann has joined #nixos
Guest21370 has joined #nixos
woodson has quit [Ping timeout: 268 seconds]
tzemanovic has joined #nixos
andymandias has quit [Ping timeout: 264 seconds]
charlesh` has quit [Remote host closed the connection]
tzemanovic has quit [Ping timeout: 256 seconds]
mahalel_ has joined #nixos
mahalel_ has quit [Read error: Connection reset by peer]
mahalel_ has joined #nixos
hamishmack has joined #nixos
sanscoeu_ has joined #nixos
seku has quit [Ping timeout: 256 seconds]
johanot has joined #nixos
xy2_ has joined #nixos
sanscoeur has quit [Ping timeout: 265 seconds]
Guest21370 has quit [Ping timeout: 264 seconds]
tzemanovic has joined #nixos
johanot has quit [Client Quit]
yenzenz has quit [Ping timeout: 268 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johanot has joined #nixos
crmlt has joined #nixos
rprije has joined #nixos
mahalel_ has left #nixos [#nixos]
tzemanovic has quit [Ping timeout: 256 seconds]
tzemanovic has joined #nixos
hamishmack has joined #nixos
johanot1 has joined #nixos
jperras has joined #nixos
fendor has joined #nixos
alex`` has joined #nixos
jperras has quit [Ping timeout: 260 seconds]
taharqa has joined #nixos
tzemanovic has quit [Read error: Connection timed out]
johanot1 has quit [Quit: Leaving.]
Neo--- has joined #nixos
Neo-- has joined #nixos
johanot has quit [Ping timeout: 240 seconds]
crmlt has quit [Quit: Lost terminal]
tzemanovic has joined #nixos
johanot has joined #nixos
betaboon has joined #nixos
<betaboon> hello #nixos, i have a question regarding pythonPackages, fetchgit and setuptools_scm: I am evaluating using setuptools_scm to retrieve the package version from git-tags. but the make_deterministic_repo of nix-prefetch-git destroys all the information required for that to work. any ideas on how to get around that problem ?
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
andymandias has joined #nixos
<LnL> tg: the 1.11 -> 2.0 upgrade might look a bit weird while partially updated
Neo--- has quit [Ping timeout: 260 seconds]
tzemanovic has quit [Ping timeout: 260 seconds]
<ben> betaboon: is nix-prefetch-git --leave-dotGit better?
Neo-- has quit [Ping timeout: 276 seconds]
aarvar has quit [Ping timeout: 240 seconds]
<betaboon> ben: nope that doesnt work. as with leave-dotGit the make_deterministic_repo function is called, which does a whole bunch of things to the git-state. for reference: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchgit/nix-prefetch-git#L237
<tg> LnL: ah it's actually doing things now, but initally was not seeing any output for a long time not even with --verbose hence i was wondering what was going on.. but strace showed me it's busy and now it's installing all the packages since..
<LnL> yeah, while upgrading you'll be using a 2.0 client with a 1.11 daemon
<LnL> that works fine, but output handling might be a bit strange
orivej has quit [Ping timeout: 245 seconds]
<ben> i see, that seems fairly bad
<betaboon> ben: it is done for good reason. but currently it is standing in my way
nschoe has joined #nixos
Guest21370 has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/vhPjf
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<Taneb> If I'm making a fixed output derivation from files I already have on my disk, how can I figure out the hash for them?
Neo-- has joined #nixos
Neo--- has joined #nixos
<Taneb> sha256sum gets me something too long
<ben> nix-prefetch-url file:///foo/bar?
<Taneb> ben: I'll give it a go
lonokhov has joined #nixos
<ben> or maybe: nix-hash --type sha256 --to-base32 $(sha256sum /foo/bar | head -c 64)
<JasonGrossman> ben's solution works for me
<tilpner> Taneb - nix-hash --flat --type sha256 --base32 foo should work too
masse has quit [Ping timeout: 240 seconds]
mkoenig has joined #nixos
<Taneb> nix-prefetch-url ran out of memory (it's a very large file :()
<ben> tilpner: duh, now i feel silly
Ariakenom has quit [Ping timeout: 276 seconds]
jtojnar has quit [Read error: Connection reset by peer]
ma27 has quit [Quit: WeeChat 2.0]
jtojnar has joined #nixos
<Taneb> ben: that worked prefectly
mkoenig_ has quit [Ping timeout: 260 seconds]
ma27 has joined #nixos
simukis has joined #nixos
rardiol1 has left #nixos [#nixos]
Guest21370 has quit [Ping timeout: 276 seconds]
dje4321_ has joined #nixos
<betaboon> ben: it seems like deepClone atleast preservers the tags up to some point. but still not good enough for setuptools_scm
thetet has joined #nixos
rardiol1 has joined #nixos
ma27 has quit [Quit: WeeChat 2.0]
jensens has joined #nixos
ma27 has joined #nixos
Neo-- has quit [Remote host closed the connection]
Neo--- has quit [Read error: Connection reset by peer]
thetet has quit [Ping timeout: 256 seconds]
averell has quit [Ping timeout: 240 seconds]
pie_ has joined #nixos
dje4321_ has quit [Ping timeout: 260 seconds]
andymandias has quit [Ping timeout: 248 seconds]
thetet has joined #nixos
averell has joined #nixos
ericsagn1 has quit [Ping timeout: 260 seconds]
NightTrain has joined #nixos
thetet has left #nixos [#nixos]
andymandias has joined #nixos
averell has quit [Ping timeout: 245 seconds]
TonyTheLion has joined #nixos
silver has joined #nixos
justbeingglad1 has joined #nixos
TonyTheL1on has quit [Quit: leaving]
rprije has quit [Ping timeout: 260 seconds]
averell has joined #nixos
knupfer has joined #nixos
isidore has joined #nixos
<pie_> if i have key files and stuff, is it acceptable if i make them root readable only and put them in /etc/nixos then readFile them into my configuration?
isidore has quit [Client Quit]
<tilpner> pie_ - Yes, but you have to be really careful they don't end up in the store somehow
<pie_> uh
<pie_> ok idk what to do then
kreetx has joined #nixos
<tilpner> I think the safest option is to never let your config have access to your secrets
<tilpner> Instead configure services to read them at runtime from a safe directory that's not the store
Guest21370 has joined #nixos
<tilpner> But that's hard-ish, because it means you can't generate configuration files with Nix, if the service doesn't explicitly support this case
SemiHonest has joined #nixos
fendor has quit [Ping timeout: 240 seconds]
<tilpner> Are there any attempts to generate security profiles to forbid applications from reading files outside their runtime closure?
reinzelmann has quit [Ping timeout: 265 seconds]
Ariakenom has joined #nixos
<pie_> i know ive seen *stuff* about people wanting to do suff abu secrets but idk if it ever got anywhere
jensens has quit [Ping timeout: 240 seconds]
<pie_> though im only now noticing i only readfile-d public key stuff, and did the path thing for the private keys, so i dont actually have a problem at the moment, but still good to know
<pie_> what should i pay attention to for "make sure directories dont end up in the store"
<pie_> tilpner, might also be useful to just have some kind of check feature for forbidden files
johanot1 has joined #nixos
knupfer has quit [Ping timeout: 264 seconds]
xy2_ has quit [Ping timeout: 260 seconds]
<manveru> well, if you reference the file in your nix config, and just the path, it'll end up in the nix store
<manveru> *and not just the path
jperras has joined #nixos
reinzelmann has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #42065 β†’ python.pkgs.pythonix: 0.1.0 -> 0.1.1 β†’ https://git.io/vhXTv
<manveru> unfortunately that's not always so straightforward...
fendor has joined #nixos
jperras has quit [Ping timeout: 276 seconds]
<catern> hahahahahahahahaha https://lwn.net/Articles/757447/
<pie_> lol physically separated from each other by cutting segments out of the hard disk platter so that it resembles a ceiling fan.
<pie_> oh wait is this satire
<johanot1> :D
work_ has quit [Quit: Connection closed for inactivity]
<pie_> im guessing its wrong to want to do this because PURE FUNCTIONAL, but can i do something like networking = {a = ...; b = ...;} and then later networking = {c = ...}
<pie_> basically im just trying to group stuff a bit
nschoe has quit [Ping timeout: 255 seconds]
xy2_ has joined #nixos
<pie_> basically i want to merge networking.defaultGateway = "192.168.0.1"; networking.nameservers = [ "192.168.0.1" ]; into something like networking.{defaultGateway = ...; nameservers = ...;} and be able to add more stuff later
karlguy_ has quit [Remote host closed the connection]
<fendor> how can i set a different color scheme for neovim?
palo_ is now known as palo
karlguy_ has joined #nixos
alex`` has quit [Ping timeout: 240 seconds]
johanot has quit [Ping timeout: 276 seconds]
Ariakenom has quit [Quit: Leaving]
Ariakenom has joined #nixos
<fendor> pie_, doesnt seem to work
Ariakenom has quit [Remote host closed the connection]
Ariakenom has joined #nixos
<fendor> at least, not straight forward
init_6 has joined #nixos
knupfer has joined #nixos
johanot has joined #nixos
<{^_^}> [nixpkgs] @zimbatm merged pull request #42055 β†’ gem-config: add fog-dnsimple, redis-rack, ffi-rzmq-core, mini_magick β†’ https://git.io/vhP0Z
<{^_^}> [nixpkgs] @zimbatm pushed commit from @manveru to master Β« gem-config: add fog-dnsimple, redis-rack, ffi-rzmq-core, mini_magick (#42055) Β»: https://git.io/vhXL8
<hyper_ch2> hmmm, configure: error: The pkg-config script could not be found or is too old. Make sure it --> is that a nixos package?
johanot1 has quit [Ping timeout: 264 seconds]
johanot1 has joined #nixos
alexteves_ has joined #nixos
<tilpner> Yes, it's "pkgconfig"
<fendor> still cant make it work :(
<hyper_ch2> but shouldn't that be automagically available?
tmplt has quit [Ping timeout: 265 seconds]
<tilpner> That depends on the context
<hyper_ch2> tried to use clever's kexec and was builidng that and at some point it failed :(
tmplt has joined #nixos
<tilpner> Building what?
<hyper_ch2> clever's kexec
<tilpner> Sure, but what output?
<hyper_ch2> too late... updating the system now.... thought it might be related to that
<{^_^}> [nixpkgs] @Mic92 merged pull request #42065 β†’ python.pkgs.pythonix: 0.1.0 -> 0.1.1 β†’ https://git.io/vhXTv
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vhXtB
<{^_^}> [nixpkgs] @Mic92 opened pull request #42066 β†’ python.pkgs.pythonix: 0.1.0 -> 0.1.4 β†’ https://git.io/vhXta
<{^_^}> [nixpkgs] @Mic92 merged pull request #42066 β†’ [18.03] python3.pkgs.pythonix: 0.1.0 -> 0.1.4 β†’ https://git.io/vhXta
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to release-18.03: https://git.io/vhXtM
andymandias has quit [Ping timeout: 260 seconds]
philippD has joined #nixos
alex`` has joined #nixos
tzemanovic has joined #nixos
<manveru> zimbatm: thx
<zimbatm> +
<manveru> would be nice to have a better way to modify gemspec before build... but that worked too
<hyper_ch2> ktorrent fails to build
andymandias has joined #nixos
<pie_> how do i import system configuration? in nix repl for example. i know i can do import <nixpkgs> but thats just nixpkgs?
<manveru> pie_: your configuration.nix you mean?
m0rphism has quit [Quit: WeeChat 1.9.1]
<tilpner> pie_ - nix repl '<nixpkgs/nixos>'
<tilpner> Now you can access e.g. config.*
<pie_> manveru, basically yes i think so, tilpner: thanks.
<pie_> tilpner, how does that work?
<hyper_ch2> Mic92: I searched issues for ktorrent, didn't find anything and then filed bug report
<tilpner> It's equivalent to :l <nixpkgs/nixos>, which is equivalent (in spirit) to with import <nixpkgs/nixos>;
<betaboon> fendor: what seems to be the problem ?
<tilpner> * It's equivalent to :l <nixpkgs/nixos>, which is equivalent (in spirit) to with import <nixpkgs/nixos> {};
<hyper_ch2> clever: how to fix this? https://paste.simplylinux.ch/view/raw/f45e06db got newest repo from you and also upgraded systme... yet it still cmoplains about pkg-config
kiloreux has quit [Read error: Connection reset by peer]
<pie_> tilpner, sorry i mean why is the config in nixpkgs/nixos? or
<tilpner> pie_ - It's not. But <nixpkgs/nixos> is a function of the following signature:
<tilpner> { configuration ? import ./lib/from-env.nix "NIXOS_CONFIG" <nixos-config>, ... }: ...
<pie_> aha
aarvar has joined #nixos
<tilpner> Does your NIX_PATH contain a nixos-config element?
<pie_> that seems to use my current configuration file that im editing and not the one running in the system?
<tilpner> Correct
<pie_> (or at elast its giving an error about a let and im guessing thts because i have syntax errors)
<pie_> ah yes it does contain that element
<pie_> so what if i want to get the current running configuration?
<tilpner> There is no way to do that
<pie_> do i have to get it from the store somehow?
<tilpner> (Not generally, at least)
<pie_> s/running/evaluated/
<tilpner> You can store a copy of the system configuration next to the system, but that only affects future generations
<tilpner> (And even that may not include self-inflicted impurities)
<pie_> so there is no way to get what settings were used for the current system?
<tilpner> Not generally, no
<manveru> i wrote this a while ago
<pie_> i understand that it may not reflect the actual config due to mutability but i still find that odd
<manveru> you can use it like this: `nix-instantiate --show-trace --json --eval ./nixos-options.nix --strict --argstr query options.nix.sshServe`
<tilpner> manveru - I don't think that helps here
<manveru> well, you can query config (current system config) or options (available config)
<manveru> since it also uses <nixos-config> in the background
<LnL> manveru: isn't that the same as the nixos-option command?
<manveru> LnL: yeah, just without the bash
<tilpner> manveru - But pie_ wants to query a running system, not what nixos-config describes
<manveru> ah...
<manveru> yeah, that's impossible :(
<pie_> i mean technically the config should be in the store no?
<tilpner> No
<pie_> its only used to generate /etc?
<pie_> how do you roll back generations then?
<gchristensen> did you put pkgconfig in your build inputs?
<gchristensen> oops
<gchristensen> nixos-option does it
<manveru> generations are symlinks
<gchristensen> nixos-option nix.useSandbox
<LnL> nope, your current system might not even have used '<nixos-config>'
<pie_> i mean how do you get your old configuration.nix when you roll back
<gchristensen> oh oops
<manveru> you don't
<LnL> pie_: git?
<LnL> :p
<pie_> wut
<pie_> you dont? til.
<gchristensen> pie_: the rollback doeesn't need the configuration.nix
<manveru> rollback rolls back the system, not your config
<gchristensen> the rollback is saying "go back to this other pre-built thing"
<pie_> uh that seems kind of bad?
<gchristensen> well, you should probably track your config in git
<manveru> like, when you use `nix build`, you get a symlink to the result, but not all the .nix files involved in making it
<LnL> yeah, you can rollback but you can't reconstruct the original expression back from that
<tilpner> pie_ - I save each generations config with tx0.co/1f , so that I can inspect what config built the system I booted
iyzsong has joined #nixos
<gchristensen> it is hard to know what files are involved in calculating the system, so it is very hard to capture all the files neeeded to rollback
<pie_> but wouldnt nix know when evaluating it?
NightTrain has quit [Ping timeout: 240 seconds]
<johanot1> project for the summer: NixOS decompiler :P
<pie_> i mean just to mea at least it sounds like the actual config exrpession would be useful/important to save
rsa_ has joined #nixos
<tilpner> There's an option for that
<pie_> johnazoidberg, hah
<tilpner> It's off by default though
<gchristensen> because it doesn't work in all cases
<pie_> * johanot1
<tilpner> And it doesn't cover imports
<manveru> system.copySystemConfiguration
<tilpner> The paste I sent you works better
<tilpner> (For my case. But it doesn't get everything either)
<pie_> are there any plans to get this to work better? :P
<pie_> when would it fail
<tilpner> When I reference files outside of /cfg
<tilpner> (In your case, outside of /etc/nixos)
<manveru> i guess you could parse all the derivations and input files, but that'd also copy half of nixpkgs for your config
<pie_> manveru, well why would you need to do that though
<manveru> it's kinda hard to determine what's your config and what's nixos config
<pie_> i mean ok sure, maybe 1 copy of nixpkgs in store and then just refer to the head
<pie_> or whatever
rsa has quit [Ping timeout: 256 seconds]
<manveru> well, i think it'd be a cool project anyway
alex`` has quit [Quit: WeeChat 2.1]
<gchristensen> pie_: well my configuratino.nix imports /home/grahamc/grahams-config.nix and /var/lib/foo/config.nix and (builtins.getEnv "SECRET_EXTRA_CONFIG") too
<pie_> johanot1, i thing decompilers are really cool but im not even sure how youd begin to do that :P
<tilpner> Oh, and it makes your config world-readable
<tilpner> Which is really great for hiding secrets
<pie_> hehe
<gchristensen> and don't forget all my extra modules in the NIXOS_EXTRA_MODULE_PATH env var
<pie_> ok i suppose you have a point on that last point
<pie_> i dont want to suggest adding a __private attribute :p
<pie_> OBJECT ORIENTED NIX HUEHEUHEUHEU
rsa has joined #nixos
<pie_> which would just mean dont add this to store
rsa_ has quit [Ping timeout: 240 seconds]
<manveru> you could maybe wrap `nixos-rebuild switch` in a strace
<manveru> lemme try that :D
<tilpner> Noooo
<pie_> would need to get inherited by any readers
<pie_> i mean __private
<pie_> manveru, lol, i mean cmon, just information theory-wise the nix interpreter obviously has the information ot save the config
<manveru> yeah, but that's C++...
<manveru> i mean cmon, who'd ever touch that
<gchristensen> manveru: there is another way, but it won't work with NIOS_EXTRA_MODULE_PATH b/c it won't capture that
<gchristensen> or the other getEnv imports
<pie_> manveru, tru
<gchristensen> would it rewrite a dynamic import path (getEnv) too use a static path?
kiloreux has joined #nixos
<pie_> gchristensen, what does that imply/men
<pie_> *mean
<gchristensen> import (builtins.getEnv "MY_SECRET_CONFIG")
* pie_ still pretty nooby
<gchristensen> does it now rewrite that in the capatured expression to be the value of MY_SECRET_CONFIG at the time of eval, or just capture the file it imported and not that you have eto set MY_SECRET_CONFIG to use it properly
<pie_> i mean if we establish that there may be mutable stuff in /etc that gets ignored...if we ACCEPT this, then i suppose it might limit the utility but mean we should accept mutable portions
<pie_> then again i guess that would be bad because false expectations
<johanot1> pie_: Decompile steps.. 1. Reconstruct pkgs attribute names from /run/current-system .. Thats doable to some extend. 2: Reconstruct module options values from scattered config files and systemd unit configs... Less doable :D
<pie_> "nix reverse" kekeke
<pie_> "nix regenerate"
<gchristensen> pie_: and now you know why system.copySystemConfiguration defaults to false
<pie_> "nix magic"
<pie_> gchristensen, alternatively, immutable /etc, and a secure store? :D
<johanot1> "nix reduce-entropy"
<pie_> ^^^
<pie_> immutable /etc would have problems for some programs though
<manveru> `sudo strace -f -e trace=file nixos-rebuild switch 2&>1 | grep \\.nix strace-out | grep -v /nix/store | grep -v /nix/var | grep -v ENOENT | grep openat | cut -d, -f2`
<manveru> there ya go
<gchristensen> manveru: nix-instantiate can tell you the files it looked at
<manveru> uh, sorry, that strace-out shouldn't be there
<pie_> tinc drops some configuration files in /etc during runtime that it aquires from other nodes, it would be interesting to patch it to drop .nix files that could be included later on a regen run or something
<gchristensen> manveru: nix-instantiate -v '<nixpkgs>' -A hello
<manveru> gchristensen: and how does that work with nixos-rebuild?
steell has joined #nixos
<pie_> immutable /etc, a new directory somewhere with human readable generated config deltas or something, which you can then choose to pull in
<pie_> neat idea or overcomplicated? :p
<pie_> i guess that if it still applies at runtime though it would kind of be just a second /etc though...
<gchristensen> heh yea
<gchristensen> manveru: nix-instantiate -v '<nixpkgs/nixos>'
<manveru> `nix-instantiate -v '<nixpkgs/nixos>' 2>&1 | grep \\.nix | egrep -v '/nix/(store|var)'`
<manveru> alright
<manveru> so... if you back that stuff and your <nixpkgs> up, you should be fine
<manveru> but i really think that should be a feature :)
<pie_> maye there's an issue on github already? i deleted my github
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #41095 β†’ qt5: 5.10 -> 5.11 β†’ https://git.io/vhqmg
<{^_^}> [nixpkgs] @yegortimoshenko pushed 9 commits to master: https://git.io/vhXOL
<manveru> gchristensen: thanks man, i really like that much more :)
johanot has quit [Ping timeout: 245 seconds]
<elvishjerricco> Anyone here use wifi on a 2013 macbook pro? It hasn't been working for me since upgrading to NixOS 18.03
<gchristensen> manveru: + anything in the env which is relevant + files it is checking with readdir / etc.
<gchristensen> ie, the "why" behind those were evaluated is missing
<manveru> gchristensen: for my use-case that's fine
<gchristensen> cool :)
sorixelle has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<manveru> usually much easier to restore a system if you have at least that much :)
<gchristensen> one thing I've played with is requiring my nixos system to have its files in a clean & pushed commit before it'll allow itself to be evaluated
<manveru> in my config the only thing i rely on is usually nixpkgs and /etc/hostname
<infinisil> gchristensen: ah and you test stuff by creating a new branch?
<gchristensen> that'd be an idea, for sure
<gchristensen> but for personal stuff I don't care
sorixelle has joined #nixos
<manveru> i'm writing a new wordpress services drv atm
<gchristensen> neat
<manveru> working with nixos-shell is pretty fun :)
<pie_> the reason why i was asking abot this query stuff is if you group stuff by topic in your configuration
<pie_> not everything may be in the same place
thetet has joined #nixos
reinzelmann has quit [Quit: Leaving]
thetet has left #nixos [#nixos]
sir_guy_carleton has joined #nixos
<manveru> gchristensen: not sure you'd like it... it won't do plugins and themes purely declarative anymore, got a customer that wants to manage them themselves
<gchristensen> eh, needs are needs
steell has quit [Ping timeout: 268 seconds]
<gchristensen> I don't like hosting wordpress, certainly. did plenty of that back in the day.
<manveru> likewise...
<gchristensen> probably the second worst death-march job of my career
johanot has joined #nixos
<manveru> i proposed a ton of alternatives, but well, that's all he knows :|
<manveru> and their new UX actually isn't repulsive anymore
<gchristensen> to be clear, WP is pretty good, actually. the plugins are where you get in trouble, and if you leave it out of date you'll get in trouble
<broccoli> top
<manveru> yeah, i'll just wait until he settles on a list of plugins/themes and then automate that part
<manveru> shouldn't be too hard
<manveru> what surprised me is that wordpress actually sshs into its own server to modify stuff
<manveru> like... what year is this
<etu> manveru: Doesn't wordpress do crazy shit like asking you for your FTP-password so it can go outloading an plugin for you?
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/3a87c1aabae (from 60 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
michiell2 has joined #nixos
<manveru> etu: exactly
<gchristensen> its the year of "wordpress works super super hard to automatically update your wordpress to keep you from being pwned"
<manveru> etu: it also has ssh now, but you still have to jail this stuff hard, and it only allows password auth
mkoenig_ has joined #nixos
sorixelle has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
michiell has quit [Ping timeout: 245 seconds]
<etu> manveru: Uh... amazing... or something.
<manveru> i'm constantly getting flashbacks to 2005
mkoenig has quit [Ping timeout: 240 seconds]
<etu> manveru: I heard about someone (might have been adisbladis[m]) who made a "hardened wordpress install" which really was wordpress on a server that wasn't exposed to the internet and then a "wget --mirror" of that page :p
kier has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #40893 β†’ plasma5: 5.12 -> 5.13 β†’ https://git.io/vheFX
<{^_^}> [nixpkgs] @yegortimoshenko pushed 4 commits to master: https://git.io/vhXs2
<etu> And then serve the static files
<manveru> sounds reasonable
<etu> Yeah, I agree
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #41795 β†’ kde-applications: 18.04.1 -> 18.04.2 β†’ https://git.io/vhavV
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhXsr
<manveru> i might do that as well :)
sorixelle has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #41796 β†’ kde-frameworks: 5.46 -> 5.47 β†’ https://git.io/vhavr
<gchristensen> that basic idea is fairly common for major deployments
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhXs6
keegans has quit [Quit: WeeChat 1.4]
<etu> Depends on if you have dynamic stuff with users that want to input data and things
<etu> But for a page that is readonly to the user it's reasonable
<gchristensen> varnish edge side includes to the rescue
<gchristensen> and notice many large deployments use a javascript-based comment thing
jperras has joined #nixos
<etu> One could just use this: https://github.com/tessalt/echo-chamber-js :D
<manveru> :D
asuryawa_ has joined #nixos
asuryawanshi has quit [Ping timeout: 260 seconds]
asuryawa_ has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<pie_> can anyone explain "The simplest way is to us the networing module. But it has some minor flaws on package updates. " https://nixos.wiki/wiki/Tinc
<pie_> god fuck that, makes my noscript sad :( <gchristensen> and notice many large deployments use a javascript-based comment thing
<pie_> alternatively, yay lighter web pages?
<gchristensen> I'm not saying what you use or would choose to use
jperras has quit [Ping timeout: 245 seconds]
<etu> pie_: You're probably better off without comments anyways tbh
<manveru> comments are hardly every useful
<manveru> *y
<pie_> yeah i was waiting for someone to say that haha
<mupf> Hey guys, I found an outdated package and tried to contact it's maintainer. Unfortunately the email is invalid. What's the way to go in a situation like this?
asuryawa_ has joined #nixos
asuryawanshi has quit [Read error: Connection reset by peer]
<manveru> mupf: looks like we found a new maintainer :D
asuryawa_ has quit [Remote host closed the connection]
<mupf> manveru I would love to
<mupf> But how?
asuryawanshi has joined #nixos
<manveru> you can add yourself to https://github.com/NixOS/nixpkgs/blob/master/maintainers/maintainer-list.nix and update the package via a PR
spear2 has quit [Ping timeout: 240 seconds]
<mupf> Perfect, thanks
<manveru> provided the update isn't too hard, but we can help you with that
<mupf> I will have a closer look later
freeman42x]NixOS has joined #nixos
<etu> mupf: Just throw the questions in here if you have any:)
freeman42x]NixOS has quit [Remote host closed the connection]
<mupf> Will do, thanks. I'm quite new to nix
freeman42x]NixOS has joined #nixos
<mupf> But I'm quite affiliated with the project I would love to see updated
<mupf> Also in contact with the developers.
<mupf> bbl
<pie_> i think i saw something in a release not somewhere about new support for path objects or something?
<pie_> what i mean to say is, how should i deal with paths and concatenating them and stuff?
jtojnar has quit [Ping timeout: 264 seconds]
dbmikus has joined #nixos
jtojnar has joined #nixos
<infinisil> pie_: In Nix?
<pie_> yes
<infinisil> Just + will do, they are pretty much just strings
<infinisil> But this won't work:
<infinisil> > ./. + "/" + "foo"
<{^_^}> /foo
<infinisil> Um, I mean
MP2E has quit [Remote host closed the connection]
<infinisil> > ./. + "/" + "/" + "/"
<{^_^}> /
<infinisil> > ./.
<{^_^}> /
johanot has quit [Ping timeout: 256 seconds]
<philippD> Has anyone used Nix to build pdfs with pandoc using a template?
rardiol1 has quit [Remote host closed the connection]
<infinisil> I have, hold on
<gchristensen> same
<{^_^}> [nixpkgs] @symphorien opened pull request #42068 β†’ etherape: 0.9.17 -> 0.9.18 β†’ https://git.io/vhXZV
<{^_^}> [nixpkgs] @volth closed pull request #41923 β†’ staging: cpan2nix updates β†’ https://git.io/vhKRg
xy2_ has quit [Ping timeout: 245 seconds]
<pie_> like, this seems kind of ugly builtins.readFile (networkpath + "hosts/pi")
<pie_> infinisil, ^
<betaboon> this problem with buildPythonApplication, setuptools_scm and fetchgit is realy driving me nuts ...
<pie_> where networkPath = "tinc/${networkName}/"
<infinisil> philippD: Well it's not using a template, but this is what I did: https://gist.github.com/29d68613380e550a358ee1d6c96c1c6a
<philippD> infinisil: Thanks
<infinisil> A tex template, right? Should be just a pandoc flag along with ${./path/to/template}
<philippD> Yeah. eisvogel to be specific.
<infinisil> pie_: You can do "${networkpath}/hosts/pi"
<infinisil> Didn't think of that before
<pie_> infinisil, oh haha good point, ive been doing that already xD
<pie_> gotta love it when that happens
<pie_> the usual kind of crappy thing with this approach tough is the / between the components
<symphorien> how can I get nix-instantiate to create a result symlink to the corresponding drvs like nix-build does for the output path ?
<fendor> htop
<infinisil> pie_: What's crappy about that?
<pie_> infinisil, i mean whether networkpath does or doesnt have a / at the end
<pie_> and then like this you get redundant slashed
<pie_> slashes
<infinisil> symphorien: nix-instantiate '<nixpkgs>' -A hello --add-root $PWD/result --indirect
<symphorien> thanks
<infinisil> pie_: Hmm.. I'd just not put a "/" at the end of networkPath
<infinisil> Or is there a reason for that?
<pie_> not really
<pie_> but its nicer if you dont have to think about it
<infinisil> Not getting that, what do you not have to think about when you add a "/" at the end?
knupfer has quit [Ping timeout: 240 seconds]
xAFFE has left #nixos ["Error from remote client"]
camsbury has joined #nixos
<fendor> sorry, os froze and i tried to type in htop :D
<bkchr[m]> Can I define systemd network/netdev in Nixos?
<pie_> infinisil, hm.
<{^_^}> [nixpkgs] @Mic92 merged pull request #41944 β†’ ktorrent: fix build with CMake 3.11 β†’ https://git.io/vh6IH
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vhXcJ
<{^_^}> logs defined
JasonGrossman has quit [Remote host closed the connection]
JasonGrossman has joined #nixos
<hyper_ch2> hmmm, Mr. clever is still sleeping
xy2_ has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/e701948f5a3 (from 3 days ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<das-g[m]> Is it expected that `nixos-rebuild` takes very long after setting `nixpkgs.config.virtualbox.enableExtensionPack = true;`? (From the terminal output, it seems like the whole of VirtualBox is being re-compiled.)
<hyper_ch2> das: yes
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
ar has left #nixos [#nixos]
jerengie[m] has left #nixos ["User left"]
asuryawanshi has quit [Ping timeout: 256 seconds]
hyper_ch2 has quit [Quit: Page closed]
steell has joined #nixos
jtojnar has quit [Quit: jtojnar]
<philippD> How do I make files available at a specific location when installing?
jtojnar has joined #nixos
<manveru> philippD: can you be a bit more specific? :)
<philippD> I want to build a derivation that downloads https://github.com/Wandmalfarbe/pandoc-latex-template and makes the eisvogel.tex file available at ~/.pandoc/templates/eisvogel.latex
agile has quit [Ping timeout: 264 seconds]
jperras has joined #nixos
<manveru> nix packages can only have files in the nix store
<philippD> ok
<pie_> manveru, doh
<pie_> something something symlinks?
<srhb> philippD: Some packages do certain tricks where they wrap the program with a script that will symlink into place things into the user's homedir
<srhb> philippD: I think the game dwarf fortress is one example of this.
<srhb> philippD: Use only if you can't avoid it, really.
<manveru> srhb: but that needs an executable
ryantrinkle has quit [Ping timeout: 264 seconds]
<philippD> Ok, maybe I'm approaching this the wrong way
sorixelle has quit [Read error: Connection reset by peer]
<manveru> if you want to manage the user environment, look into home-manager
<srhb> manveru: The wrapping does, providing a script should be easy enough, if desired..
<philippD> What I want to do is use the specified file as a pandoc template in another derivation
<srhb> philippD: Provided you can point pandoc to a template location that should be easy enough
<Myrl-saki> NixOps doesn't seem to be autoformatting EBS volumes.
<srhb> philippD: "${pandoc}/bin/pandoc --magical-template-switch ${yourTemplatePackage}/file ..."
<srhb> philippD: Intended as pseudocode of course. The point is that you can easily get the store path in a string like that just by using ${}
sorixelle has joined #nixos
olto has quit [Read error: Connection reset by peer]
organixpear has joined #nixos
olto has joined #nixos
<philippD> I don't quiet get how I would make the output of one derivation available inside another
<organixpear> Well I got my wine game running yesterday. I just had to read the user contributed manual to find out about enabling 32bit dri...really like nixos
<srhb> philippD: the simplest way in this case might be let eisvogel = callPackage ./eisvogel.nix {}; in ...
<pie_> organixpear, yeah i ran into that too i think xD
<srhb> philippD: There's other solutions as well, like overlays, that you might want to look up in the manual at some point.
<pie_> organixpear, better than having to try rebuilding on debian last i did that heh
<pie_> ^orhtogonal to the dri think
<pie_> *orthogonal, thing
<srhb> philippD: With eisvogel defined like that, MAGIC_GOES_HERE would become something like ${eisvogel}/eisvogel.latex
<pie_> so, if im changing the networking configuration on a remote node, is there some way to make it do a timed fallback if the change cuts me off?
jtojnar has quit [Quit: jtojnar]
<pie_> i.e. restore to the old config
<manveru> i think someone implemented that
steell has quit [Ping timeout: 264 seconds]
<infinisil> Oh yes, I remember somebody explaining that in a talk at nixcon
<pie_> oh cool
knupfer has joined #nixos
<pie_> though i figure something like rebuild switch; sleep 500; whatever the revert thing is; might work?
<srhb> infinisil, pie: I believe basvandijk had something like that
sorixelle has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<srhb> As I recall it was a simple systemd timer set on activation that required manual intervention to shut off
<srhb> Very simple
<infinisil> Ah yes, this is his talk: https://www.youtube.com/watch?v=J4DgATIjx9E
<pie_> Profpatsch, ^ $COOL_THINGS
<infinisil> Ah yes, with the timestamp where he starts talking about automatic rollback: https://youtu.be/J4DgATIjx9E?t=19m31s
sorixelle has joined #nixos
SemiHonest is now known as semihonest
<cransom> does anyone use hydra with the s3backup plugin with credentials fetched from metadata rather than supplying id + secret key?
<kreetx> I'm trying to get a linux build slave in docker working from macos, I run this command: nix build '(with import <nixpkgs> { system = "i686-linux"; }; runCommand "foo" {} "uname > $out")' --builders 'ssh://nix-docker-build-slave i686-linux'
<kreetx> the error is: error: a 'i686-linux' is required to build '/nix/store/lw0h1abpfmy1q9j78rf0qvf568wi6mr6-foo.drv', but I am a 'x86_64-darwin'
<clever> kreetx: i think you need to be root for --builders to work
<clever> kreetx: or in the trusted users of the local nix.conf
johanot1 has quit [Quit: Leaving.]
semihonest has quit [Quit: WeeChat 2.1]
<kreetx> clever: root in macos I take it?
<clever> kreetx: yes
agile has joined #nixos
Ariakenom has quit [Ping timeout: 256 seconds]
semihonest has joined #nixos
<kreetx> clever: I think I need to do something to make nix visible for root because sudo'ing the same command got me this: error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:14
<kreetx> but I think it simply means the bash env is not set up
<clever> kreetx: thats $NIX_PATH being cleared
semihonest has quit [Client Quit]
<kreetx> clever: how do you mean?
halfbit has quit [Ping timeout: 245 seconds]
<clever> kreetx: sudo is configured to sanitize things
<clever> without $NIX_PATH, nix cant find <nixpkgs>
camsbury has quit [Ping timeout: 245 seconds]
<infinisil> kreetx: Try adding -i to the sudo command
<Myrl-saki> Ugh, how does `fileSystem =` set the .mount? I want to make it mount with a+rwx.
<Myrl-saki> I've been trying to follow the code path for like 20 minutes already.
<infinisil> Myrl-saki: Permissions have nothing to do with mounting I'm pretty sure
<clever> Myrl-saki: after you mount, it will use the permissions of the root directory of whatever you mounted
<clever> which you can just chmod normally
<Myrl-saki> clever: Hmm
<Myrl-saki> Okay. I'm a bit more confused now.
<Myrl-saki> Oh wait no.
<Myrl-saki> drwx------ 4 98 root 4096 Jun 8 23:56 mongodb
<Myrl-saki> 98 is a uid, I believe.
camsbury has joined #nixos
<infinisil> Yea
<infinisil> chown?
<Myrl-saki> But /var/db itself is u+rwx.
<clever> Myrl-saki: use stat instead of ls
<Myrl-saki> I think a race condition happneed on my program.
<Myrl-saki> clever: Oh cool. TIL. Thanks.
<clever> Myrl-saki: did you flag the service as requiring the mounts for its own data dir?
<Myrl-saki> clever: Nope.
<Myrl-saki> That's what I was thinking of doing after.
<clever> /etc/systemd/system/nix-daemon.service:RequiresMountsFor=/nix/var
<Myrl-saki> Oh wait. I think I know what's happening now.
johanot has joined #nixos
<Myrl-saki> mongodb sees that the directory is already created, so it won't chmod it.
kreisys has joined #nixos
<gchristensen> any ideas why passing "console=tty0 console=ttys1,115200" to a kernel would temporarily break a network bond? :P
<Myrl-saki> Or chown it either.
<Myrl-saki> File: /var/db/mongodb
<Myrl-saki> Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
<tilpner> How could one get the runtime closure of a package in Nix?
<infinisil> tilpner: nix-store -qR of a derivation output
sbdchd has joined #nixos
<tilpner> infinisil - I thought recursive Nix wasn't allowed?
<infinisil> Ah you want it inside a derivation
<Myrl-saki> Yeah, it works after I chowned it.
<sbdchd> Hello, I am wondering how to best import a function from a package. E.g., I can do `with python36Packages' and have access to fetchPypi, but what would I do if I just want to have access to `fetchPypi` and not all of the python packages
<infinisil> tilpner: Have a look at nixpkgs/nixos/lib/make-system-tarball.nix
<Myrl-saki> clever: I think I need to chown /var/db/mongodb, but I'm not sure if I should add that to the preStart of mongodb or the postStart of the mount.
<sbdchd> ideally i would have something like `with buildPythonPackage, fetchPypi from python36Packages`
<infinisil> tilpner: Seems to be something in the direction you want, but I don't know more than that
jmackie has joined #nixos
<jmackie> Does anyone connect to a Cisco VPN for work? And if so, how do you do it?
migy has quit [Quit: migy]
migy has joined #nixos
<tilpner> infinisil - That lead me to pkgs/build-support/closure-info.nix. Thanks! :)
<infinisil> jmackie: I don't because of some DNS problems, but there's `networking.vpnc.services` which puts them into /etc/vpnc, then you can call `sudo vpnc <name>` to start it (add --debug=1 or --debug=2 for debugging)
<Myrl-saki> system.build.earlyMountScript = makeSpecialMounts (toposort fsBefore (attrValues config.boot.specialFileSystems)).result;
<Myrl-saki> Seems like it's this.
<Myrl-saki> Or something related.
<Myrl-saki> Like system.build.fileSystems = fileSystems;
fader has joined #nixos
fader is now known as et4te
<Myrl-saki> mountConfig = mkOption {
stepcut has joined #nixos
<Myrl-saki> default = {};
<Myrl-saki> example = { DirectoryMode = "0775"; };
<Myrl-saki> Apparently there's this.
<kreetx> clever: infinisil: thanks for the help! just fyi if the next macos user comes along: the root's shell was 'sh' and had no $NIX_PATH, just running/starting bash fixed this. I got my docker image 'nix-docker-build-slave' from LnL7 (which you probably know), and its setup scrip sets up a ssh host with name, user, key and port 3022. Maybe all these could be somehow set in the 'nix build ..' command, but I just
<kreetx> copied my users .ssh/config to /var/root/.ssh. And now it finally built! :)
<et4te> I'm trying to build amdgpu-pro driver on NixOS but can't seem to change which kernel is chosen. I've looked through the code but can't find why it keeps picking version 4.9 instead of the one I specified in the configuration.nix. If I remove "amdgpu-pro" from videoDrivers then it uses latest kernel instead. Anyone have any idea how to force it to build with a different kernel version?
mkoenig has joined #nixos
<infinisil> Myrl-saki: Huh yeah, I didn't know systemd could do that. Probably translates to just a chmod after the mount
<Myrl-saki> infinisil: Yeah.
<Myrl-saki> Accepts octal, even.
<infinisil> Oh wait
<infinisil> Myrl-saki: "Directories of mount points (and any parent directories) are automatically created if needed. This option specifies the file system access mode used when creating these directories. Takes an access mode in octal notation. Defaults to 0755."
<Myrl-saki> Yeah.
<LnL> kreetx: yeah you need to configure ssh for root, my instructions where written before the installer for darwin was updated to use the nix-daemon
<Myrl-saki> Not what I want either.
<Myrl-saki> infinisil: There's no "owner" either. :/
mkoenig_ has quit [Ping timeout: 256 seconds]
<infinisil> Myrl-saki: You could just run a chmod after the mount
<infinisil> and chown
<LnL> kreetx: I don't think you can configure the port with --option builders, same with known_hosts
<Myrl-saki> infinisil: That's what I'm trying to do.
<Myrl-saki> infinisil: I'm thinking of either adding it to the postStart of local-fs.target
<Myrl-saki> infinisil: Or the preStart of mongodb.
<{^_^}> [nixpkgs] @primeos pushed to master Β« signal-desktop: 1.12.0 -> 1.12.1 Β»: https://git.io/vhXEu
<Myrl-saki> infinisil: My first goal was to add it to the postStart of the mount, but that doesn't really seem possible anymore.
<Myrl-saki> Or of course, use the `root` user.
Sonarpulse has joined #nixos
<infinisil> PartOf and After should work
<infinisil> Create a new service that chmods, and set PartOf = [ "....mount" ] and After = [ "....mount" ];
<Myrl-saki> infinisil: My problem is that `mounts` is an loa, I don't think the merge would happen that
<Myrl-saki> infinisil: Oh, didn't know you could do that, actually.
<Myrl-saki> infinisil: Cool. Thanks. I'll take a look at that after.
<Myrl-saki> Way better than messing around with preStart.
<infinisil> :)
<infinisil> Well since the service is really what needs it, I think preStart would make more sense
<infinisil> Or a service that runs before the db
Guest21370 has quit [Ping timeout: 260 seconds]
<infinisil> As in, use PartOf,Before = [ "mongodb.service" ]; instead
tmaekawa has joined #nixos
<Myrl-saki> Alternatively, I think I should just rune everything as root, as every machine is single-application.
<Myrl-saki> s/rune/run/
<kreetx> LnL: thanks for the images! On connecting with ssh: I didn't even want to know if the --builders syntax supports port, but just bravely copied the .ssh/ and crossed my firgers :p. I never do anything elaborate in macos' root and that's why it's in this entirely unconfigured state..
sanscoeu_ has quit [Remote host closed the connection]
<Myrl-saki> Any thoughts on that?
<Myrl-saki> Security implications, etc.
<pie_> manveru, the thing you linked looks pretty good but its got that part with the ????
kreisys has quit [Remote host closed the connection]
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<pie_> manveru, otherwise, do i just import this?
johanot has quit [Remote host closed the connection]
<LnL> kreetx: yeah, with the daemon you go through root
<LnL> kreetx: nix-build -> nix-daemon (root) -> ssh -> sshd (builder) -> nix-daemon (root) -> actual build (nixbld1)
charlesh` has joined #nixos
<charlesh`> Hi guys
ixxie has joined #nixos
<charlesh`> still trying to package some closed-source game to nixos. Do you think it's okay to write a script wrapper for the game that copy the game data to $HOME so you have write permission and the game won't meh you
<charlesh`> ?
tmaekawa has quit [Quit: tmaekawa]
stepcut has quit [Remote host closed the connection]
thc202 has quit [Remote host closed the connection]
stepcut has joined #nixos
jmackie has quit [Quit: Page closed]
<Myrl-saki> How to make resources access a machine's config?
<Myrl-saki> (nixops)
<Myrl-saki> Oh wait, ignore that.
<Myrl-saki> Okay, don't ignore that.
thc202 has joined #nixos
ixxie_ has joined #nixos
ixxie has quit [Ping timeout: 260 seconds]
<Myrl-saki> I tried {machines, ...}:
<gchristensen> { nodes, ... }
<Myrl-saki> Oh.
<Myrl-saki> gchristensen: Thanks.
roberth has quit [Ping timeout: 276 seconds]
stepcut has quit [Ping timeout: 264 seconds]
<ixxie_> yo
<philippD> Is it possible to disable tests for a haskellPackages.callPackage call?
<Myrl-saki> Okay, uh.. I have this. inherit (nodes.mongodb.deployment.ec2) zone;
<Myrl-saki> Where mongodb is the name of the machine.
<Myrl-saki> It says `deployment` doesn't exist. I tried `.config.deployment` too.
<Myrl-saki> error: attribute 'config' missing, at /////network-ec2.nix:59:14
<Myrl-saki> And s/config/deployment/
<srhb> philippD: pkgs.haskell.lib.dontCheck (yourthing) iirc
<et4te> so no one has any idea how to force a particular kernel version on nixos?
<gchristensen> et4te: how have you tried specifying it?
<Myrl-saki> Turns out I didn't need to add deployment to it.
<et4te> gchristensen: boot.kernelPackages = pkgs.linuxPackages_4_17;
seanparsons has quit [Quit: ZNC 1.6.5 - http://znc.in]
<Dezgeg> 03
<Dezgeg> oops
<et4te> gchristensen: this works but when I set xserver.videoDrivers = [ "amdgpu-pro" ]; the kernel version gets changed to 4_9 and the drivers try to build against this ...
<philippD> srhb: thanks
seanparsons has joined #nixos
fendor has quit [Ping timeout: 260 seconds]
<et4te> gchristensen: but since I'm trying to upgrade the driver used and it needs to build against 4.13 at least - I need this to be configurable. In the package default.nix there isn't any variable I could find which I could override or change to force the kernel version to be higher.
johanot has joined #nixos
kreetx has quit [Ping timeout: 260 seconds]
matthewbauer has joined #nixos
<et4te> its inherited by the config (the params have kernel ? null) inherited somewhere... then in all-packages.nix, no trace of specifying the kernel version either as far as I could see.
<Myrl-saki> Uh.
jD91mZM2 has joined #nixos
<et4te> looking throuhg nixpkgs doesn't help either, can't find where this 4_9 version is being chosen from (using master branch of nixpkgs to build against, modified package for 18.10 driver instead of the older 17.40)
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/3a87c1aabae (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<gchristensen> et4te: can you share your full config?
<nyanloutre[m]> hello, I would like to migrate a nixos installation. Is it possible to use nixos-install from an already installed system ?
<WilliamHamilton> hi, I'm forced to use an eclipse plugin that I have locally, but I can't install it via the eclipse menu, because that server seems to be down. Is there a way to copy the jars in the plugin directory?
<et4te> gchristensen: kinda hard to do that atm because the machine graphics drivers don't work and I don't have IRC setup on there
<{^_^}> [nixops] @rbvermaa closed pull request #901 β†’ Allow non-subdomains in EC2 Route53 β†’ https://git.io/vANi4
<gchristensen> cat yourfileS | curl -F 'f:1=<-' ix.io
<et4te> gchristensen: the issue though is in services.xserver.videoDrivers = [ "amdgpu-pro" ]; which forces version 4_9 of kernel
<et4te> gchristensen: If I remove this then it will build with latest kernel as expected
<gchristensen> where do you see thaht?
<gchristensen> weird :/
<et4te> in configuration.nix
<{^_^}> [nixops] @rbvermaa merged pull request #967 β†’ Update hacking.xml β†’ https://git.io/vh20M
<{^_^}> [nixops] @rbvermaa pushed 4 commits to master: https://git.io/vhXav
<gchristensen> et4te: ok you can either change https://github.ccom/NixOS/nixpkgs/blob/master/nixos/modules/hardware/video/amdgpu-pro.nix#L40 to 4_17 by changing the copy of nixpkgs you have
<gchristensen> or you can redefine 4_9 to mean 4_17, which is a much more evil but maybe easier way to do it
<et4te> gchristensen: jeeez thanks man I've been looking for this file forever
ixxie has joined #nixos
<et4te> !!!
<et4te> :D
<gchristensen> :)
<gchristensen> et4te: https://search.nix.gsc.io/?q=amdgpu-pro&i=nope&files=&repos= I went here and then looked for files that did some logic around the string :)
<gchristensen> and `enabled` looked super promising
ixxie_ has quit [Ping timeout: 240 seconds]
ryantrinkle has joined #nixos
<infinisil> nyanloutre[m]: Totally
<infinisil> nyanloutre[m]: In fact, the live cd is really just a nixos system
ixxie_ has joined #nixos
ixxie has quit [Ping timeout: 260 seconds]
<charlesh`> Got a problem, I have some source code in one place (grabbed by fetchurl) and one additional script in the same dir as default.nix. How do I add my script in the unpacked directory of the sources ?
winem_ has quit [Ping timeout: 256 seconds]
iyzsong has quit [Ping timeout: 245 seconds]
<charlesh`> Ah maybe if I set sourceRoot I can access my script with ../myscript.sh ?
<et4te> gchristensen: cool man thanks for the tip. It looks like its building ... if it succeeds I can contribute a pull req to master for people with Vega graphics cards
<gchristensen> great!
<et4te> I have a canyon hades, would be cool for NixOS to be supported :)
<infinisil> charlesh`: you could just do `prePatch = "cp ${./otherfile} otherfile"`
<charlesh`> oh yeah the ${ } syntax. That's it, thanks
ixxie_ has quit [Ping timeout: 260 seconds]
<philippD> Ok, I give up. I just don't know how to use haskell.lib.dontCheck. I have tried to understand the nix files in the nixpkgs repo and read the manual, but I can't make sense of this. https://gist.github.com/chisui/311bb6d68746d67c888dee59e7af3f62
knupfer has quit [Ping timeout: 265 seconds]
kreetx has joined #nixos
<bkchr[m]> philippD: what is your problem?
erasmas has joined #nixos
<philippD> bkchr[m]: I'm trying to disable tests while building pkgs.haskellPackages.pandoc-include-code. They currently don't seem to run but I need that filter.
kreetx has quit [Ping timeout: 260 seconds]
ixxie has joined #nixos
jperras has quit [Quit: WeeChat 2.1]
asymmetric has joined #nixos
<{^_^}> [nixpkgs] @erosennin opened pull request #42071 β†’ ktorrent: fix build with Qt 5.11 β†’ https://git.io/vhXwM
<bkchr[m]> philippD: https://pastebin.com/AYrB3W1h
<bkchr[m]> You don't need to call `callPackage`
ixxie_ has joined #nixos
<nyanloutre[m]> infinisil: thanks !
nuncanada has joined #nixos
<philippD> bkchr[m]: How can I see when to use callPackage and when not?
ixxie has quit [Ping timeout: 248 seconds]
<WilliamHamilton> I encounter the following error when trying to use a standalone version of eclipse: https://lpaste.net/6650481198265008128
kreetx has joined #nixos
<WilliamHamilton> I gather the problem is the missing libXtst.so.6, but I installed libXtst
ixxie_ has quit [Ping timeout: 256 seconds]
ixxie has joined #nixos
asuryawanshi has joined #nixos
<bkchr[m]> philippD: Good question. But I think `callPackage` is only required for packages in "extra" files
knupfer has joined #nixos
lonokhov has quit [Quit: WeeChat 2.0]
kreetx has quit [Ping timeout: 256 seconds]
kreetx has joined #nixos
stepcut has joined #nixos
ixxie has quit [Ping timeout: 240 seconds]
woodson has joined #nixos
ixxie has joined #nixos
halfbit has joined #nixos
<infinisil> ,callPackage
<{^_^}> If a Nix file ./foo.nix starts with something like `{ bar, baz }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
stepcut has quit [Remote host closed the connection]
<infinisil> philippD: It's only needed for those kinda files ^^
johanot has quit [Ping timeout: 248 seconds]
<philippD> infinisil: Thanks. That's still kind of hard to find out since it's defined in pkgs/development/haskell-modules/hackage-packages.nix
ixxie_ has joined #nixos
<hodapp> blargh. I think I started having OpenGL issues since I upgraded to 18.03 on my Thinkpad T410 (Intel graphics only), but I got rid of my old configuration because I didn't realize the issue until weeks/months later
joeyh has joined #nixos
<infinisil> philippD: It's really just: if you have such a file, use callPackage. And if you just refer to an attribute like haskellPackages.hello then you don't need it, because that's not even a file
organixpear has quit [Remote host closed the connection]
halfbit has quit [Ping timeout: 240 seconds]
ixxie has quit [Ping timeout: 268 seconds]
<hodapp> it will work upon a full reboot, but as soon as I switch screens around with xrandr or something it will just flicker the first frame and never update or let me interact (anytime OpenGL is involved)
<joeyh> does nixos have a process for handling embargoed security issues? Would like to get in touch with whoever about one
<philippD> infinisil: Ah, ok.
<niksnut> joeyh: yes, there is a security team
betaboon has quit [Ping timeout: 256 seconds]
<joeyh> ah thanks.. I asked because http://oss-security.openwall.org/wiki/mailing-lists/distros doesn't list it
sanscoeur has joined #nixos
ixxie_ has quit [Ping timeout: 268 seconds]
ixxie has joined #nixos
thblt has left #nixos ["ERC (IRC client for Emacs 26.1)"]
ixxie has quit [Ping timeout: 248 seconds]
tv2 has quit [Quit: WeeChat 2.0]
tv has joined #nixos
sanscoeur has quit [Remote host closed the connection]
<gchristensen> joeyh: we'll sort that out right away, thank you
alexteves_ has quit [Remote host closed the connection]
<gchristensen> actually, sorry -- we can't get on that list yet as we are not part of the private list. however, we do have a team and are working to be on the distro list.
ixxie has joined #nixos
nuncanada2 has joined #nixos
sanscoeur has joined #nixos
<joeyh> gchristensen: see your inbox
<gchristensen> ok
<joeyh> I picked you because you're lucky 1st listed
<gchristensen> :)
nuncanada has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @johnchildren opened pull request #42072 β†’ LanguageClient-neovim : 2018-03-6 -> 2018-06-12 β†’ https://git.io/vhXie
ixxie_ has joined #nixos
ixxie has quit [Ping timeout: 260 seconds]
<ixxie_> is anybody here passionate about philosophy?
sorixelle has quit [Ping timeout: 260 seconds]
mkoenig_ has joined #nixos
mkoenig has quit [Ping timeout: 240 seconds]
ixxie has joined #nixos
ixxie has quit [Client Quit]
<infinisil> ixxie_: #nixos-chat?
<LnL> :)
ixxie_ has quit [Ping timeout: 256 seconds]
sbdchd has quit [Remote host closed the connection]
sbdchd has joined #nixos
igo95862 has joined #nixos
endformationage has joined #nixos
sbdchd has quit [Ping timeout: 240 seconds]
johanot has joined #nixos
<{^_^}> [nixpkgs] @volth reopened pull request #32893 β†’ hadoop: 2.2.0 -> 2.7.5, 2.8.3, 2.9.0, 3.0.0 β†’ https://git.io/vbMSh
karlguy_ has quit [Remote host closed the connection]
karlguy_ has joined #nixos
tos9 has joined #nixos
<tos9> Hi. I see neovim 0.3 is merged in https://github.com/NixOS/nixpkgs (3 days ago), but when I nix-env -i neovim I get 0.2.2 still, even though I have nixos-unstable as my channel -- how do I see why that is?
<Taneb> tos9: have you updated your channel?
<tos9> Taneb: Yes
<tos9> (I ran nix-channel --update)
<Taneb> Well, that's one obvious thing ruled out
alex`` has joined #nixos
<tos9> The Hydra website is incredibly slow :/ -- I assume one other explanation is "it hasn't been built by that yet"?
<Taneb> I think it would prefer building from source to that, but I could be wrong
<gchristensen> run nix-shell -p nix-info --run nix-info
<gchristensen> ,nix-info = run and share the output from: nix-shell -p nix-info --run nix-info
<{^_^}> nix-info defined
xAFFE has joined #nixos
<tos9> gchristensen: that was to me I assume?
<gchristensen> yeah
<gchristensen> so nix-env is using root's channel there
<gchristensen> "nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixpkgs"
<gchristensen> which is a bit out of date, so maybe `sudo nix-channel --update` will fix it up for you
<tos9> hmmmm... do I really have nix installed for root in the first place
<gchristensen> ohh darwin
<gchristensen> extra annoying :(R
<gchristensen> can you run nix-channel --list, as your user?
<gchristensen> ok, so maybe delete it and re-add it called nixpkgs
<pie_> touch catgirlwallpapers.nix
<pie_> ...
<pie_> IT'S NOT WHAT IT LOOKS LIKE
sbdchd has joined #nixos
<infinisil> tos9: gchristensen: nixos-unstable is 4 days old
<infinisil> Oh wait
<infinisil> http://howoldis.herokuapp.com/ shows it's 2 days old
<infinisil> Oh, but the latest commit is from 4 days ago, as seen here: https://github.com/NixOS/nixpkgs-channels/commits/nixos-unstable
<infinisil> So yeah, something that got merged 3 days ago isn't in it yet
<gchristensen> I wish I could go back in time 3mo and have all the data so this chart can be useful again https://channels.nix.gsc.io/graph.html
<infinisil> gchristensen: Does it use the commit date or the channel update date?
<gchristensen> before: commit date, now: update date
<tos9> infinisil: got it, ok thanks for the pointer to that
elasticdog has quit [Ping timeout: 244 seconds]
<infinisil> gchristensen: Ah, where before=v1 and after=v2?
<infinisil> Oh, there are 2 columns in v2, I think you meant those
<Baughn> Just on the off chance there's something better than overrideAttrs w/wrapProgram...
<gchristensen> infinisil: yeah
<Baughn> What would be the way to get diff3 & git into the path for PHP programs run through apache?
<gchristensen> joeyh: I have received and understood your report, thank you, I will reach out to involved parties and reply shortly.
<copumpkin> is systemd.services.foo.path = [ "/run/current-system/sw/bin" ]; expected to work?
srl295 has joined #nixos
<gchristensen> I would expect it to
<gchristensen> * on a normal nixos env
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<pie_> can i override this attribute for my configuration.nix? https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/networking/tinc.nix#L151
<pie_> i want to add an option for making the interface name different than the network name
elasticdog has joined #nixos
<pie_> hm, well id also need to override one more thing in that case: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/networking/tinc.nix#L144
jr_ has joined #nixos
jr_ has left #nixos [#nixos]
joro has joined #nixos
joro has left #nixos [#nixos]
jperras has joined #nixos
lo_mlatu has joined #nixos
<lo_mlatu> 1:26 上午 <lo_mlatu> how can I avoid the `name collision` warning every time I use `nix-env`?
tschotscho has joined #nixos
johanot has quit [Ping timeout: 256 seconds]
<pie_> ok so i decided to just patch the .nix file. now im unsure how to handle default setting: i added from line 78, and changed 153 and 161
<tschotscho> Is there a standard way of declaring alternative dependencies in nixpkgs? In my case i don't care whether to use gnused or busybox, so this choice could be exposed to the user.
<pie_> here is the source https://bpaste.net/show/047267c8272b
TonyTheLion has quit [Quit: leaving]
<pie_> last i looked nix is bad at exposing choices like that and people just choose something.....but i dont really know
<pie_> if you're going to take a parameter though it will be through the arguments
<pie_> i think the keyword you want is optional dependencies
<hodapp> laptop users: what models are you using on NixOS that have no trouble with OpenGL?
<hodapp> and perhaps support a docking station
<tschotscho> Yes, but how to restrict the choice to the options i know are ok? Otherwise one could also specify e.g. flightgear but this clearly does not work here.
foldingcookie has quit [Remote host closed the connection]
johanot has joined #nixos
<gerschtli> hey, does anyone has experience with nixos on raspberry pi 3 b+ with ARMv7?
<maurer> hodapp: I'm uaing a P50, no trouble with OGL, but I can't make bumblebee work, so switching between nvidia/integrated uses reboot
<hodapp> darn
<tschotscho> Everything I found about optional dependencies only refers to biased binary choices. But given there was a third sed this would not suffice.
<hodapp> my integrated Intel was working fine until it wasn't
<hodapp> but it's fine upon a fresh reboot. xrandr/switching monitor setup causes problems.
<pie_> tschotscho, this looks relevant https://github.com/NixOS/nixpkgs/issues/7446
<pie_> tschotscho, ah, so validation?
<pie_> tschotscho, well i mean it looks to me like what usually happens is setting a flag, not passing a package to use...
<pie_> tschotscho, mkOption seems to have the possibility of something like type = types.enum [ "tun" "tap" ]; but im not sure if that helps
reinzelmann has joined #nixos
elasticdog has quit [Ping timeout: 276 seconds]
<tschotscho> pie_, can mkOption be used in packages in a way that makes sense? My understanding of packages vs modules is not so good yet.
Sonarpulse has quit [Ping timeout: 260 seconds]
<pie_> i have no idea...i think mkoptions is used for config stuff so i dont think that is even good for arguments
<tschotscho> Of course, the choice must somehow be biased, because there would be a default option.
<gerschtli> tschotscho: why not use an enum as type and map the enum value to a package? if i understand your problem correct..
<tschotscho> gerschtli: yes, i had this idea, but how can i require a type for a package argument? I think this is the same problem as with mkOption, isn't it?
<{^_^}> [nixpkgs] @peti pushed to release-18.03 Β« git-annex: update from version 6.20180227 to 6.20180529 Β»: https://git.io/vhX9g
<gerschtli> tschotscho: you want an option with mkOption and the value provided through this option should be a package? is that right? then use type = types.package
<infinisil> tschotscho: I don't think this should be enforced
<tschotscho> getschtli: Of course i can check the type via assert or meta.broken or something like that. But then, how does anyone know about the options? Or, does anyone know about any optional dependency at all?
elasticdog has joined #nixos
<infinisil> tschotscho: Users should be able to pass in whatever they want, e.g. a modified version of sed or their own sed, and you can't reasonably detect that
joko has quit [Ping timeout: 268 seconds]
joko has joined #nixos
<infinisil> The users will have to expect it to just not work when they pass the hello package as the sed dependency
<tschotscho> infinisil: You have a point there, but then they could override the type or create their own modified expression.
<infinisil> Is that something bad?
igo95862 has quit [Quit: igo95862]
<tschotscho> infinisil: The advantage of such a constraint (in real world) would be that the package maintainer can check which available versions of sed work, which needs investigation and/or testing of the program, because e.g. gnused has more features than posix sed.
<tschotscho> infinisil: Users being able to create a modified expression... is no problem, it's only an alternative way to achieve the same, even if the maintainer specify constraints.
<infinisil> Ah, then I'd just do some loose warnings based on the dependency name
stanibanani has joined #nixos
<infinisil> > builtins.parseDrvName gnused.name
<{^_^}> { name = "gnused"; version = "4.5"; }
<pie_> ok so i think im now trying to do the typical thing where i want configuration.nix to specify how to use stuff from a local repo, but i dont know what to read for this. help?
<infinisil> tschotscho: ^^
knupfer has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @cwhy opened pull request #42074 β†’ Fix the problem of it not compling in macOS β†’ https://git.io/vhXHI
<gchristensen> LnL: should we be fixing these packages in a more systemic way? I also have a public GPG key (id: 1A4F63A13A4649B632F65EE141BC28FE99089D72, fingerprint: 1A4F 63A1 3A46 49B6 32F6 5EE1 41BC 28FE 9908 9D72).
<gchristensen> oops
<LnL> hmm?
<tschotscho> pie_: ? I don't think i understand your previous post correctly. configuration.nix is not used outside NixOS but dependencies should be specified in the package.
<infinisil> pie_: I don't get what you're trying to do either
<LnL> gchristensen: that looks really strange to me
<pie_> i want to modify a package, so i figured i have to clone nixpkgs, make a patch, and add that to $NIXPKGS or however it works
<pie_> but i want configuration.nix to set this up
<gerschtli> pie_: nixos-rebuild switch -I nixpkgs=/my/sources/nixpkgs ?
<pie_> yeah i guess. but I dont want to need to pass -I
<pie_> ah it was called NIX_PATH i think
<tschotscho> pie_: ah, so a new issue. let pkgs = /my/sources/nixpkgs?
<tschotscho> this would then be hardcoded
<pie_> yeah
<infinisil> > option "nix.nixPath"
<pie_> but i think i figured out how to google it now
<{^_^}> "The default Nix expression search path, used by the Nix\nevaluator to look up paths enclosed in angle brackets\n(e.g. <literal>&lt;nixpkgs&gt;</literal>).\n"
<pie_> infinisil, thanks
<gerschtli> you could also use NIX_PATH and add "nixpkgs=/path/to/nixpkgs" with a colon separated before or after NIX_PATH, dont know the right ordering
<pie_> well, ideally id be replacing it so it doesnt matter, but since there's a config option for it...
<hodapp> huh, seems meshlab build is broken on 18.03
<tschotscho> I think my problem now reduces to the general problem of exposing options to users. But the alternatives should then probably be specified in the long description. Thanks, all!
<hodapp> I am trying to figure out the actual *error* in the build but I'm sort of falling asleep halfway through
crmlt has joined #nixos
Lev50 has joined #nixos
<infinisil> tschotscho: The module system is usable outside of NixOS, but unfortunately there's nothing in nixpkgs to automatically create a man pages of those options like `man configuration.nix`
<infinisil> s/a//
<{^_^}> [nixpkgs] @Chiiruno opened pull request #42075 β†’ lutris: init at 0.4.18 β†’ https://git.io/vhXQq
<hodapp> given that there are no binaries for this, is it already known that the meshlab build is failing?
i0-dfn has quit [Remote host closed the connection]
<pie_> can i use overlays to override services?
<gerschtli> pie_: AFAIK no, but why do you want to do this via overlays?
mkoenig has joined #nixos
mkoenig_ has quit [Ping timeout: 256 seconds]
<pie_> gerschtli, no specific reason
<pie_> the alternative is patches in a local repo yes?
<pie_> i guess if i override nixpath i cant use channels anymore
<gerschtli> you can still override in your configuration.nix
<pie_> yeah thats what im doing
<pie_> though i guess channels arent really ideal anyway
<hodapp> is there a page that I can see the results of current builds in Hydra?
<pie_> i could probably write a script that fetches the latest rev, shoves it in a file, and have my configuration.nix import that or something
<hodapp> google is not helping
<pie_> hodapp, i think there is but i cant remember where :D
<infinisil> pie_: You can prevent the inclusion of certain nixos modules, then import a modified version yourself
tos9 has left #nixos [#nixos]
<hodapp> oh, meshlab is just alreadyh marked as broken
<{^_^}> [nixpkgs] @yegortimoshenko closed pull request #35609 β†’ lutris: init at 0.4.14 β†’ https://git.io/vAr6y
<hodapp> woo, I guess I'm going to go sift through 193,700 lines of C++ compiler errors
<pie_> jesus christ lol
woodson has quit [Ping timeout: 240 seconds]
<hyper_ch> hi clever
<pie_> ah wait wrong link
<hyper_ch> due to a train accident my way back home too 2 1/2h longer :(
xAFFE has left #nixos ["Error from remote client"]
johanot has quit [Ping timeout: 256 seconds]
<gchristensen> that would probably not break hydra
johanot has joined #nixos
<pie_> id hope it kills long running jobs?
<pie_> or someuch
karlguy_ has quit [Ping timeout: 245 seconds]
inquisitiv3 has joined #nixos
<hodapp> that's what I always try to do in my professional career
karlguy_ has joined #nixos
<{^_^}> [nixpkgs] @bkchr opened pull request #42076 β†’ WIP: anbox: Init β†’ https://git.io/vhX5w
<eisbaer-north> do i need to load certain kernel modules to get thunderbolt to working ?
slack1256 has joined #nixos
kreetx has quit [Ping timeout: 240 seconds]
<pie_> hodapp, haha
<gchristensen> pie_: it does
<pie_> makes sense
andymandias has quit [Ping timeout: 240 seconds]
<pie_> ok so this seems like a good way to fetch a given nixpkgs https://nixos.wiki/wiki/How_to_fetch_Nixpkgs_with_an_empty_NIX_PATH
<pie_> then again if im using a local repo i dont really need tarballs
<pie_> im thinking about doin that then applying patches or just fetching from a local repo or something
<pie_> i guess the latter would be simpler
<pie_> and easier to work with
* pie_ doesnt know why he's making this so complicated
<infinisil> I did recently put together an example on how to have a nixpkgs with patches from pull requests
<pie_> ive never seen this idea of leaving nixpath empty like in that wiki post
<pie_> would that make sense to do at a system level?
<infinisil> With an empty NIX_PATH you can't use any files that use <nixpkgs>
<infinisil> Which sounds really inconvenient
reinzelmann has quit [Quit: Leaving]
andymandias has joined #nixos
<infinisil> You can set nixpkgs=/path/to/your/nixpkgs/fetcher.nix in NIX_PATH though
<pie_> cool
<pie_> idk im just having a lot of trouble not so much understanding a lot of stuff but with fixiguing out the context things are in or something
acarrico has joined #nixos
<pie_> ok so i have a local repo
<pie_> lets say i make a branch for each isolated change i perhaps want to upstream later
<pie_> how do i deal with wanting to use several of those changes?
robstr has quit [Quit: WeeChat 1.9.1]
<infinisil> A different branch containing all the changes you want
<infinisil> Applied via cherry-picking or so
kreetx has joined #nixos
MichaelRaskin has joined #nixos
<pie_> can i make nix do that?
<infinisil> No
<{^_^}> [nixpkgs] @woffs opened pull request #42077 β†’ nixos/zfs: mount AFTER import β†’ https://git.io/vhXFC
<clever> pie_: you could potentially make a nix derivation that applies a .patch file to a copy of nixpkgs
<clever> pie_: then use IFD in the above fetcher.nix to import the result of patching nixpkgs
<clever> but overlays are probably simpler
<infinisil> clever: That's exactly what my gist does: https://gist.github.com/Infinisil/1fdc1c606f9e5a0d65dcd2b1851ba69c
<pie_> i would have used overlays but apparently those dont work for services?
<clever> pie_: oh, i have a fix for services
<clever> #disabledModules = [ "services/networking/ntpd.nix" ];
<clever> #imports = [ ./ntpd.nix ];
<clever> the first part causes nixos to just ignore the ntpd.nix in nixpkgs, so you effectively loose ntp support
<clever> the 2nd line then loads a copy of ntpd.nix, which you are now free to edit
<LnL> yeah, services are a bit more tricky but that's also possible since 17.09
<pie_> soooo then overlays work for everything?
<clever> pie_: the above has to be done in configuration.nix, not an overlay
<pie_> ah ok
<clever> and you also need an overlay to change the version of nixpkgs that the module uses
<clever> LnL: ah, i was wondering if this was documented anywhere
<LnL> yeah, I did but it could be better
<Taneb> Is there a convenient way to package binaries built with nix for distributing to non-nix places?
<clever> Taneb: nix-bundle is one option
<Taneb> Oooh, thanks
<pie_> :D
<clever> infinisil: can you guess what ive been busy all day with? https://gist.github.com/cleverca22/ee3c5b7e567aae52e5890f3e8f82367b
jD91mZM2 has quit [Quit: WeeChat 2.0]
<pie_> someone told me i have to use modules to do this but i havent gotten to trying to figure that out yet: if i have multiple config files and i might want to disable modules in more than on place for overriding, then what do i do?
<clever> pie_: configuration.nix is just a nixos module, and the imports field has a list of paths to more modules, so you can create a tree of modules that refer to eachother
<pie_> right but i mean if i end up wanting to do disabledModules in in two files (so they should get merged)
<LnL> you have to disable each file explicitly
<infinisil> clever: packaging chrome?
<clever> infinisil: building chrome with a custom patch to stop it from crashing in about 5mins
<clever> pie_: nixos should merge that value between all files
igo95862 has joined #nixos
<infinisil> clever: Good luck with that :)
<clever> [30317/32348] CXX obj/third_party/WebKit/Source/modules/webgl/webgl/WebGLContextAttributeHelpers.o
<clever> infinisil: its almost done building
<pie_> clever, ah great then
<pie_> clever, as you can see i am finally starting to learn some nix :p
<clever> :D
<pie_> clever, reinstalled another machine i wasnt using and im trying to go full declarative on it
roconnor has quit [Remote host closed the connection]
<pie_> clever, did oyu ever get civ6 or what was it running lol?
roconnor has joined #nixos
<clever> pie_: nope
<hodapp> isn't civ one of those games that if clever got it running you'd know because you'd not hear from him for 7 months?
<clever> lol
<pie_> heh
<hodapp> hm. I still need to play through Riven
asuryawanshi has quit [Remote host closed the connection]
<hodapp> I have purposely avoided Civilization because I've heard it's very dangerous
stanibanani has quit [Ping timeout: 268 seconds]
<hodapp> already know from my childhood that I can sink many many hours into games like Sim City and Dune II and Warcraft
<MichaelRaskin> Who needs fancy graphics. We have freeciv and xconq
asuryawanshi has joined #nixos
<hodapp> I need fancy OpenGL graphics on my laptop
<hodapp> and for some reason only WebGL works right
<pie_> ive been doing some opus magnum to procrastinate from studying :(
<pie_> after i spent several days on and off trying to figure out why it wouldnt run in wine and noone else reporting any issues
<pie_> ...turns out i just needed a new wine prefix (fucking wine .... <3)
<hodapp> the crazy thing I just found out is that ScummVM can now run a bunch of other games
<pie_> nix for WINE when
matthewbauer has quit [Read error: Connection reset by peer]
* pie_ needs some sort of NIX ALL THE THINGS sticker
orivej has joined #nixos
<hodapp> ScummVM sat in my brain as "that thing that can play Monkey Island and some other similar things, like Beneath a Steel Sky" until this year when I realized it could play Myst, Riven, 7th Guest, and Return to Zork, among other things
<pie_> clever, i poked the guys in nix-dev for a syntax feature i thought might be nice, what do you think : https://bpaste.net/show/fb184e879edf
matthewbauer has joined #nixos
<hl> yeah, scummvm is a dumping ground for 2D engine reimplementations
<hl> ...also this is the second time someone's mentioned scummvm and riven in IRC today, weird
<pie_> so for disabledModules do i need to pass a path or can i pass services.tinc? i think i saw somewhere it should accept something like that as well
<clever> pie_: those 2 blocks of code appear to do almost the same thing
<pie_> or is that only for packages
<clever> pie_: it has to be a string representing the path to the module, check the example i pasted above
<pie_> clever, they do, its the .{} based assignment, for grouping. pretty much just aesthetic i guess
<pie_> ok makes sense
<pie_> yeah i was looking at youre example :)
<pie_> *your >_>
matthewbauer has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
andymandias has quit [Ping timeout: 276 seconds]
<infinisil> pie_: Um, networking.interfaces = { ...?
<infinisil> Replace the "." on line 18 with a "=" and it's valid nix syntax that does what you want
<pie_> oh this isnt the example i fixed...the point would have been you can define disjunct sets like this, so you could so networking.interfaces.{a="b";j="k"} and later networking.interfaces.{c="d";e="f";}
<pie_> or something like that
<pie_> obviously you arent allowed to assign to overlapping sets because of immutability
<infinisil> mkMerge is there for that
<infinisil> mkMerge takes a list of assignments and combines them
<infinisil> with proper merging and recursion and stuff
<pie_> ok but then youd have to keep references around and just makes it noisier?
<infinisil> references?
<pie_> i mean idk how mkmerge works but im guessing youd have to pass sets as its arguments
<infinisil> Yeah, it is noisier
<infinisil> There is a language proposal which might help with that
* infinisil tries to find *the* gist
<pie_> this would basically just be syntactic sugar for networking.interfaces.a="b"; networking.interfaces.j="k";
<pie_> (well obviously again thats an example not sufficient to *necessitate* it)
<infinisil> Ah I see what you mean
<infinisil> > p { x.y = 10; x.z = 20; }
<{^_^}> "{ x = { y = 10; z = 20; }; }"
<pie_> \o/ sorry for the bad explanation
<infinisil> This works, but the other way doesn't:
<infinisil> > p { x = { y = 10; }; x = { z = 20; }; }
<{^_^}> error: attribute 'x' at (string):149:22 already defined at (string):149:5
<pie_> yeah kind of like that i guess, but that forces you to define everything in the same assignment
<pie_> ah, yes
<infinisil> Yeah, with attributes set this could indeed work
<infinisil> The problem is when the right hand side is no attribute set
<hodapp> hmmm, any examples for applying a patch outside of sourceRoot?
<pie_> infinisil, what do you mean
<pie_> (presumably this syntax would only be for sets :P, so im obviously missing what you mena)
<hodapp> meshlab has ../vcglib hardcoded all over the place, so the build puts that there relative to $src (I guess)
<infinisil> > p { x = (x: 1) "foo"; x = { z = 20; }; }
<{^_^}> error: attribute 'x' at (string):149:23 already defined at (string):149:5
<pie_> infinisil, that should probably error
<infinisil> Yeah
<hodapp> but I need to patch ../vcglib, but it's not ../vcglib until buildPhase (it's vcglib-${vcblibRev} prior)
<infinisil> pie_: I think it should work if all right hand side values are attribute sets, but apparently that's not implemented
<pie_> infinisil, i dont think there need to be any semantic changes (the syntactic sugar view seems suficient? not saying no problems will crop up, i just dont see any obvious issues yet)
sbdchd has quit [Remote host closed the connection]
<pie_> infinisil, what do you mean not implemented?
andymandias has joined #nixos
<infinisil> (Never mind that)
<pie_> :D
sbdchd has joined #nixos
<infinisil> But yeah, I can't see a program that would give incorrect behaviour with this new feature
roconnor has quit [Ping timeout: 265 seconds]
<infinisil> Would only make now-erroring programs work
roconnor has joined #nixos
<pie_> didnt even think of that. well youd still have to rewrite them with the syntax :p
<pie_> im not able to implement this though so its all just wishful thinking xD
<pie_> unless someone wants to
<infinisil> Why rewrite?
sbdchd has quit [Remote host closed the connection]
sbdchd has joined #nixos
<pie_> i mean, its new syntax so if someone has colliding assigments it wont be automatically fixed?
<infinisil> Ohh you still think of this weird . syntax?
<pie_> yeah, i dont know what you were thinking of then :D
<hodapp> hm. I guess I could paste the patch into default.nix and use ../vcglib-${vcglibRev} rather than vcglib
<pie_> you mena automatically merging disjunct sets?
johanot has quit [Ping timeout: 248 seconds]
<infinisil> pie_: The compiler should easily allow this: { x = { y = 10; }; x = { z = 20; }; }
<pie_> well i guesss that could also work
andymandias_ has joined #nixos
<infinisil> Just a matter of some program analysis
<pie_> but isnt it kind of implicit that those sets dont have additional elements?
<pie_> i.e. the sets are exactly {y} and exactly {z}
<infinisil> Yeah, and?
andymandias has quit [Ping timeout: 260 seconds]
<pie_> merging them would mean sometihng else
<pie_> you no longer have immutability (?)
<infinisil> Ah, you mean to merge them, I think this could only work with attrsets on the language level. The module system has lots of other types which require different merging, but that merging behaviour is encoded in nixpkgs, not on the language level
<pie_> (?) because i guess technically it really isnt so different than networking.interfaces.a="b"; networking.interfaces.j="k";
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #42062 β†’ elisa: 0.1 -> 0.1.80 β†’ https://git.io/vhPia
<{^_^}> [nixpkgs] @yegortimoshenko pushed 3 commits to master: https://git.io/vhXA4
<infinisil> pie_: It's in fact the same
<pie_> infinisil, its funny because i was saying that too
slack1256 has quit [Remote host closed the connection]
<hodapp> but why does this use 'name = "vcglib-${vcglibRev}" in fetchFromGitHub, and then during buildPhase rename that to just "vcglib"? I don't see anything prior to buildphase that relies on that name
lo_mlatu has quit [Quit: Connection closed for inactivity]
<pie_> i guess i think of it differently because { ... } means the entire set is finished and defined, whereas doing stuff like a.b=c doesnt feel like that as much
<pie_> im not sure.
johanot has joined #nixos
<clever> pie_: a.b = { c = 3; }; is identical to a = { b = { c = 3; }; }; };
<pie_> s/because .. means/ because i feel like ... means
<clever> and its also identical to a.b.c = 3;
<clever> a."b.c" = 3; will also look similar in some outputs, but is logically a different option
<pie_> i guess what im trying to say is do doing a.b=c; a.d=e; but not being able to do a = {b = c} ; a = { d = e } ; is fine i think
<pie_> i havent quite been able to figure out why i think that.
johanot has quit [Read error: Connection reset by peer]
<pie_> ok lets look at it the other way around, what if you want some {} assignment to be immutable?
<pie_> (after having applied the change to the set assignment semantics)
Mateon2 has joined #nixos
woodson has joined #nixos
phdoerfler has joined #nixos
<infinisil> there ain't no mutations
<infinisil> not sure where that's coming from
<acarrico> Has anyone tried cloning a nixos system?
roconnor has quit [Read error: Connection reset by peer]
roconnor_ has joined #nixos
<acarrico> I did so, from one usb thumb drive to another.
<acarrico> I used tar for the boot partiton, and btrfs send for root.
<pie_> acarrico, not sure what you mean, i think it worked fine for me at some point
<pie_> i just dd-d the disk over
<acarrico> I updated the UUIDs in the config.
camsbury has quit [Ping timeout: 240 seconds]
<pie_> the one issue i did have was another time i needed to fix the graphics driver settings
<pie_> also brb
<acarrico> Didn't use DD, because it would try to copy too much space.
johanot has joined #nixos
<acarrico> After the clone, I mounted the file systems at /mnt/ and /mnt/boot.
<acarrico> And did nixos-install.
<acarrico> This didn't work.
<acarrico> It didn't update the fstab.
<acarrico> pie_: Hey there.
<acarrico> I could manually update the fstab, but wondering what else might be off.
<acarrico> (the ssh keys are stale and refer to the old hostname also).
andymandias_ has quit [Ping timeout: 264 seconds]
<acarrico> Seems like mabe nixos-install is reluctant to overwrite things in fstab?
<acarrico> err. I mean in /etc/ ?
phdoerfler has quit [Quit: Leaving.]
phdoerfler has joined #nixos
<acarrico> Also nixos-install still did a bunch of downloading, so I'm wondering if it would be better to run nixos rebuild on the /mnt somehow.
<acarrico> Intead of trying to use nixos-install.
Sonarpulse has joined #nixos
roconnor_ has quit [Ping timeout: 264 seconds]
<acarrico> Anyway, seems like this is an under documented process.
pie_ has quit [Ping timeout: 260 seconds]
fresheyeball has joined #nixos
<fresheyeball> hey
<fresheyeball> is there a way to setup all the deps needed for a nix-shell without entering the shell?
<acarrico> fresheyeball: write a default.nix?
<infinisil> fresheyeball: nix-shell -p hello --run exit
<fresheyeball> infinisil: clever!
<infinisil> ;)
roconnor_ has joined #nixos
igo95862 has quit [Quit: igo95862]
andymandias has joined #nixos
<acarrico> ... Skimming the nixos-rebuild man page, I don't see an option to run it on /mnt rather than the current system.
<sphalerite> acarrico: you may want nixos-install instead?
<infinisil> acarrico: Oh, how about nixos-enter
phdoerfler1 has joined #nixos
phdoerfler has quit [Read error: Connection reset by peer]
<acarrico> sphalerite: see above for nixos-install not quite working for my attempt to clone a nixos flash drive install.
<acarrico> infinisil: that sound promising.
fresheyeball has quit [Quit: WeeChat 2.0]
roconnor_ has quit [Ping timeout: 240 seconds]
matthewbauer has joined #nixos
Guest21370 has joined #nixos
<acarrico> infinisil: Is nixos-enter still a thing? Can't seem to find it.
<acarrico> Is it just an alias for chroot?
<infinisil> Well I have it, including a man page
<infinisil> I think I've never seen it before though, it might be something new?
dbmikus has quit [Quit: WeeChat 2.1]
<acarrico> infinisil: can you check the path to see what package it came in?
<gchristensen> its new
pie_ has joined #nixos
<acarrico> gchristensen: Ah, ok.
<infinisil> acarrico: It's from the nixos-enter package :P, should be in NixOS itself, installed by default
roconnor_ has joined #nixos
<sphalerite> acarrico: nix-env -f '<nixpkgs/nixos>' -iA config.system.build.nixos-enter
<sphalerite> er, you may also need --arg configuration {}
<acarrico> sphalerite: I'm just pointed to an older nixos os apparently.
<sphalerite> you'll want to upgrade then. 17.09 isn't getting updates anymore, including security updates
<sphalerite> sudo nix-channel --add https://nixos.org/channels/nixos-18.03 nixos && sudo nix-channel --update should get that command to work
<infinisil> sphalerite: I was just wondering about that, because according to http://howoldis.herokuapp.com/ nixos-17.09 is 4 days old
<infinisil> Something is still getting updated there apparently
<sphalerite> huh \:|
<gchristensen> very rarely does it update
<infinisil> a flashplayer update??
<infinisil> How did that get there
<gchristensen> most critical
<pie_> infinisil, well, i cnat figure it out. i guess you have a valid point
<acarrico> sphalerite: Thanks. I'll update this machine.
<infinisil> pie_: What do you mean?
atu has joined #nixos
<pie_> i mean its not like you didnt have a valid point to begin with i just cant figure out why i dont like it
<pie_> @ out previous discussion before i logged off
Guest21370 has quit [Ping timeout: 265 seconds]
<sphalerite> although that was in April
<sphalerite> Β―\_(ツ)_/Β―
matthewbauer has quit [Read error: Connection reset by peer]
pie__ has joined #nixos
pie_ has quit [Read error: Connection reset by peer]
toby1851 has joined #nixos
<acarrico> I guess I have a little time to wait while that updates. I'll go back to my cloning experiment later.
Lev50 has quit [Quit: This computer has gone to sleep]
<{^_^}> [nixpkgs] @Gerschtli opened pull request #42078 β†’ soapui: init at 5.4.0 β†’ https://git.io/vhXjQ
matthewbauer has joined #nixos
jperras has quit [Ping timeout: 255 seconds]
johnw has quit [Ping timeout: 256 seconds]
jperras has joined #nixos
<{^_^}> [nixpkgs] @Gerschtli opened pull request #42079 β†’ dwm-status: 0.4.0 -> 0.5.0 β†’ https://git.io/vh1eH
crmlt has quit [Ping timeout: 265 seconds]
ThatPako has joined #nixos
<ThatPako> Are there any docs explaining how to write a wrapper creating a derivation which also modifies the build command so dependencies are loaded by the compiler?
<infinisil> ThatPako: Can you be a bit more specific?
shad has quit [Quit: No Ping reply in 180 seconds.]
<ThatPako> basically I want the function to get all the dependencies, check if they provide a package and if so append that to the include path of the command called to compile the program
shad has joined #nixos
<pie__> clever, i think i just ran into the issue where nixPath only works after already having done a successful build
<clever> ThatPako: the stdenv already automates all of that
<pie__> well actually...i guess i could manually set the env var for the initial bootstrap
<clever> pie__: yeah, all nix.nixPath does is set the value of NIX_PATH at runtime, it has no effects on the current build
<ThatPako> clever: how? I don't think the stdenv can handle emojicode by default :/
matthewbauer has quit [Ping timeout: 248 seconds]
<pie__> clever, unless you have any good ideas
<pie__> ah well i guess the whole fetcher concept would be useful here
* pie__ attempts to implement
<clever> ThatPako: this bash function is ran for everything in buildInputs
<clever> ThatPako: and then hooks like this can integrate into it
shad has quit [Client Quit]
<ThatPako> that bintools example looks like chinese to me (mostly) :/
matthewbauer has joined #nixos
<ThatPako> Where is $targetOffset coming from?
shad has joined #nixos
<pie__> clever, ok so configuration.nix takes the parameters { config, pkgs, ... }: , which kind of doesnt make sense if i try to override the nixpkgs used in configuration.nix?
<clever> /home/clever/apps/nixpkgs/pkgs/stdenv/generic/setup.sh: for targetOffset in "${allPlatOffsets[@]}"; do
<clever> ThatPako: it appears to be a var within setup.sh
<ThatPako> hm...
<infinisil> I think you just want to add to buildInputs
matthewbauer has quit [Read error: Connection reset by peer]
<clever> pie__: you can override the nixpkgs itself, with nixpkgs.pkgs = import ...; but you cant override the modules that nixos is using so easily
<pie__> but that uses nixops so i dont really know about that
<ThatPako> how would I get the stuff out of setup.sh? I don't see the LDFLAGS being used anywhere in default.nix
<pie__> clever, hm
matthewbauer has joined #nixos
<clever> ThatPako: cc-wrapper will obey NIX_LDFLAGS_LINK and a few others
<pie__> clever, looks like changing the env var is the only okayish option
<pie__> which is kind of disappointing
<ThatPako> clever: do I need that role stuff then?
sbdchd has quit [Remote host closed the connection]
<clever> dont think so
<pie__> but it looks like it works, so theres that.
<pie__> error: infinite recursion encountered, at /etc/nixos/nixpkgs/nixos/modules/services/networking/tinc.nix:138:29
<pie__> oh dear xD
<ThatPako> Is it possible to use exported env var in my build phase too?
<clever> ThatPako: yeah
<pie__> ahh i did a self reference in a let
<clever> ThatPako: all of setup.sh, your build phase, and the setup-hooks are just sourced into a single bash
<clever> so they can mutate the state and effect eachother
<ThatPako> ohh, I see
myshoe has quit [Quit: Lost terminal]
shad has quit [Quit: No Ping reply in 180 seconds.]
atu has quit [Ping timeout: 264 seconds]
shad has joined #nixos
<ThatPako> clever: um... How would I get that function into my "scope" when executing a .nix file in my project? Right now I just `import` the default.nix that builds the emojicode compiler. Can I add the function there?
toby1851 has quit [Ping timeout: 256 seconds]
aarvar has quit [Ping timeout: 240 seconds]
michiell2 has quit [Ping timeout: 276 seconds]
<hyper_ch> clever: I can't get kexec to properly "build" anymore
shad has quit [Quit: No Ping reply in 180 seconds.]
<clever> hyper_ch: is it giving an error?
<Taneb> Is there a recommended way to write nix derivations for executables which call other executables
<Taneb> So I want to a) make sure the other executables exist
<Taneb> And b) make sure I can find them
<clever> Taneb: if possible, embed the paths to those executables into the binary
<sir_guy_carleton> according to the NixOS manual, NixOS has a special config options for controlling test VMs for test VMs
<clever> Taneb: nix will then ensure they always exist
shad has joined #nixos
<sir_guy_carleton> but they aren't there in the options list anymore
Sonarpulse has quit [Ping timeout: 240 seconds]
<clever> hyper_ch: can you build again with -j 1, the error is corrupted
<hyper_ch> clever: I can :)
<sir_guy_carleton> virtualisation.memorySize, virtualisation.vlans and virtualisation.writableStore
<clever> sir_guy_carleton: the qemu options are special and dont appear in any of the automated docs
* pie__ waits for head to break his whole system
<clever> sir_guy_carleton: you have to read their definitions: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualisation/qemu-vm.nix#L193
<pie__> should i fix this?: "trace: warning: The option `system.stateVersion' defined in `/etc/nixos/configuration.nix' has been renamed to `system.nixos.stateVersion'.
<clever> pie__: yes
<clever> hyper_ch: do you want network manager in the image?
<hyper_ch> preferrably yes...
hoshineko has quit [Ping timeout: 264 seconds]
* pie__ waits for whole system rebuild
<clever> hyper_ch: which nixpkgs channel are you using?
<sir_guy_carleton> clever: okay thanks
<hyper_ch> clever: unstable
<clever> hyper_ch: nixos or nixpkgs?
<hyper_ch> nixos
<clever> hyper_ch: does network manager build on that nixpkgs?
<hyper_ch> clever: on the system it runs fine
hoshineko has joined #nixos
<clever> hyper_ch: nix-store -qR /run/current-system | grep NetworkManager-iodine
pie_ has joined #nixos
sanscoeur has quit [Remote host closed the connection]
<hyper_ch> clever: /nix/store/p7yd6a9i37jdwxi4v04ldrb1jnmsb6x9-NetworkManager-iodine-gnome-1.2.0
<pie_> something is really messed up with my power stuff, machine crashes often when im not on AC power. either that or something else is correlated with ti
<clever> hyper_ch: that is a different package from what is failing
sanscoeur has joined #nixos
<hyper_ch> clever: I'm trying on two machines and both fail
<hyper_ch> the other one: nix-store -qR /run/current-system | grep NetworkManager-iodine --> no result
<clever> hyper_ch: try building just the failing network-manager derivation with nix-build
<hyper_ch> no idea how to do that
<hyper_ch> but why does it even require gtk?
<clever> hyper_ch: first, look at the name of the derivation: NetworkManager-iodine
pie__ has quit [Ping timeout: 240 seconds]
<clever> hyper_ch: then poke around in nixpkgs and find networkmanager_iodine
<clever> hyper_ch: nix-build '<nixpkgs>' -A networkmanager_iodine
<clever> then read the nix expressions for it, it has a withGnome ? true option
<hyper_ch> hmmm, actually not sure if I even need network manager... I made a note that it's mainly for easy wifi setup... but on a server...
<clever> hyper_ch: then disable it with the normal nixos options, in the configuration.nix used by kexec
phdoerfler1 has quit [Read error: Connection reset by peer]
phdoerfler has joined #nixos
<hyper_ch> but it used to work just like that
logzet has quit [Remote host closed the connection]
<pie_> wow my password manager broke...
<clever> i'm guessing network manager broke upstream
<hyper_ch> clever: possibly
<hyper_ch> on my notebook it all upgraded nicely today and there I do use network manager
<clever> hyper_ch: there are 2 versions of it, with and without gui
<hyper_ch> might be using unstable small though on the notebook
<hyper_ch> pie_: you're using "pass"?
<pie_> keepass
<hyper_ch> pass ftw :)
<pie_> it worked 5 minutes ago, machin hung
<pie_> now it hangs after 10 seconds
<hyper_ch> clever: on the notebook I also have networkmanager.enable = true;
sanscoeu_ has joined #nixos
sanscoeu_ has quit [Remote host closed the connection]
sanscoeur has quit [Read error: Connection reset by peer]
matthewbauer has quit [Ping timeout: 256 seconds]
sanscoeur has joined #nixos
roberth has joined #nixos
<hyper_ch> clever: thx so far
<pie_> it would suck if my database got corrupted though idk how that would happen since i didnt do any writes...ugh
<hyper_ch> pie_: that's why we have backups and snapshots :)
<pie_> yeah i uh...usually do that
<clever> zfs time!
<hyper_ch> or just use pass :)
shad has quit [Quit: No Ping reply in 180 seconds.]
<pie_> hm that cnat be the issue because it hangs before it even gets that far...
shad has joined #nixos
<pie_> man this is idiotic
<pie_> something always randomly breaks when i make progress on something
<pie_> i hate computers lol
<clever> chrome segfaulted 5 times in a row on me today
<clever> so i spent 5 hours building it under nix-shell, got one segfault out of it, added more debug, and now it wont crash :P
<hyper_ch> clever: without network manager: "[root@kexec:~]# "
<clever> hyper_ch: yay
<hyper_ch> still awesome
<clever> hyper_ch: death to network manager!
phdoerfler1 has joined #nixos
sanscoeu_ has joined #nixos
phdoerfler has quit [Read error: Connection reset by peer]
woodson has quit [Ping timeout: 248 seconds]
sanscoeu_ has quit [Remote host closed the connection]
<pie_> yeah looks like mono/keepass is just being broken as hell...but why...
<pie_> iirc there was a way to get the store to check itselg?
<pie_> itself
<clever> pie_: nix-store --verify --check-contents
<pie_> thanks
kreetx has quit [Quit: leaving]
<pie_> wow df also hangs
<pie_> something is really really broken here
<pie_> dmesg doesnt have any errors
<clever> pie_: are these all graphical programs installed with nix-env?
<pie_> no df is the disk free thing
<clever> pie_: ah, df is also dwarf fortress
<pie_> re: dmesg,or do i now need to ask journalctl for whatever
<clever> pie_: journalctl -f as root
sanscoeur has quit [Ping timeout: 264 seconds]
justbeingglad1 has quit [Ping timeout: 240 seconds]
<pie_> fking systemd
<pie_> :p
<clever> yeah
matthewbauer has joined #nixos
<pie_> well thats kind of cool i guess, that tails every log?
<clever> yep
<pie_> nothing.
<pie_> man this is really weird
<pie_> lsblk works fine...
<clever> strace df -h
<woffs> ps xaur
<pie_> since no errors its not like half my ssd decided to die
<pie_> clever, that exited
toby1851 has joined #nixos
<clever> pie_: and df -h?
<hyper_ch> pie_: do you neeed cross-device access?
<pie_> wow and it has the df results to
<pie_> and now it runs properly too
<pie_> wtf
<woffs> disk hang
<pie_> i am so lost
<pie_> woffs, on an ssd?
<woffs> never had SSDs yet ;)
<hyper_ch> woffs: oO
<woffs> but, sure, there are buses and stuff
<pie_> my password file loaded
<pie_> matbe the ssd was doing some kind of internal shuffling?
<pie_> my mind is full of fuck
<woffs> neutrinos flowing through it
<pie_> if only
<hyper_ch> pie_: if you only need access from linux and android, have a look at pass :)
<pie_> hyper_ch, eh. i do use windows on and off
<pie_> thanks though
praticamentetild has joined #nixos
<hyper_ch> windows... that's the gaming OS right?
<hyper_ch> it comes now also with bash :)
<pie_> hehe
<pie_> and someone got nix on it a bit earlier today
<hyper_ch> bash + ssh + linux
<woffs> nixos comes with 12 bashes at least
<hyper_ch> one can never get enough bashes :)
<pie_> ok seriously though this was really damn weird. should i be afraid of my drive dying or somehting
<clever> pie_: smartctl -a /dev/sdX
<woffs> $ ls /nix/store/|grep -c -- -bash-
<woffs> 61
<hyper_ch> what ssd is it?
<pie_> ive actually been setting up the backup server all day :P
<hyper_ch> smartcl should give output
<hyper_ch> also if you can take it out and put it into a windows machine you can run magician on it to check it
<hyper_ch> at least I think magician can handle all samsung ssds
NightTrain has joined #nixos
<hyper_ch> discard enable?
<woffs> ok, ls /nix/store/|grep -c -- -bash-4.4- -> 46. So 46 fucking bashes
emmanuelrosa has joined #nixos
<pie_> ah wait no this is a different ssd
<pie_> i forgot
<pie_> its an evo 850 i think
<pie_> woffs, wonderful haha
<pie_> smart doesnt look like theres anything horrible...
<hyper_ch> evo... run magician on it if you can
<hyper_ch> the evos did have that slow down problem and need firmware upgrade
<pie_> not sure how to read this one: 195 ECC_Error_Rate 0x001a 200 200 000 Old_age Always - 0
<woffs> nah, ls /nix/store/|grep -- '-bash-4.4-p[^.-]*$' -> only 9. I'm disappointed
<pie_> hyper_ch, is firmware upgrade doable on linux?
<hyper_ch> no idea
jperras has quit [Ping timeout: 240 seconds]
<pie_> i think mine is relatively recent but i suppose it could have been on the shelf for a while
<pie_> this would be kind of a weird time for it to strike though
<pie_> well, time to put paranoia back in the background and get backups working...eventually
<pie_> thanks for the uhh making me feel less crazy
* pie_ dials down the panic
hiratara has quit [Ping timeout: 265 seconds]
<pie_> this is 850 though, i havent really heard of issues with those
<hyper_ch> just get the right firmware for it
<pie_> though i didnt look
<hyper_ch> hdparm -I /dev/sda
<woffs> SSD = super soon dying ;)
<pie_> heh
<pie_> not sure about my write rates but i think i was seeing numbers like 10 years for this
<maurer> IME my SSDs have been routinely outliving laptop HDDs
<gchristensen> laptop hdds suffer serious abuse
<pie_> actually iirc they gave a 10 year guarantee on it? i cant remember, that seems a bit much, but its why i bought it
<maurer> There are certainly lemons though, just like with HDDs
<pie_> as opposed to 3 year guarantees on other stuff
<andi-> rotation < non-rotation
hiratara has joined #nixos
<maurer> Rotato potato
<pie_> i switched to ssd because i kept having hdds die on me
<hyper_ch> I do have 2x samsung 1tb pros insie my notebook
<maurer> I switched because compilation times
<pie_> i dont even abuse stuff
<maurer> SSDs are so good for compilation
igo95862 has joined #nixos
<maurer> Also battery life
<pie_> hyper_ch, i'd raid0 that if i had so much money xD
<pie_> or whichever one does straight up mirroring
<hyper_ch> pie_: raid0? are you crazy?
<hyper_ch> zfs mirror
<andi-> why so much storage on a mobile device? Just means I have too much junk IMO..
<hyper_ch> andi-: one can never have enouogh storage
<andi-> o.O
<pie_> especially with nixos
<pie_> lol
<hyper_ch> even that 80TB on the home server (mirrored 40TB) aren't enough
<gchristensen> I smell an r/datahoarder
<pie_> hyper_ch, ok even i couldnt store that much wtf :D
<andi-> well I have about 100GB of /nix/store on my 500G disk..
<hyper_ch> I do clean out nixos regularly
<andi-> I only have git repos + mails on my disks (with compression enabled on btrfs level)
<hyper_ch> intersting, the 3x 4TB drives at the office have been sufficient for the last 4 years
<hyper_ch> compression=lz4 :)
<pie_> tbh i dont kno where all my space went
<andi-> For r/datahoarder is the "basement storage" ;-)
<hyper_ch> the more space you have, the more you'll use
justbeingglad has joined #nixos
<pie_> though theres archives of old disk images i need to sift through
<gchristensen> this is too much data.
* pie_ tries to figure out where he was in the tmux session
<gchristensen> I don't think I could fill 2tb if I tried right now
<pie_> id just like to note that archive.org is amazing.
<hyper_ch> tankBTN1 7.1T 6.9T 131G 99% /mnt/tankBTN1
<hyper_ch> tankBTN2 7.1T 7.0T 81G 99% /mnt/tankBTN2
<hyper_ch> 8TB disks just don't cut it anymore
matthewbauer has quit [Ping timeout: 245 seconds]
JasonGrossman has quit [Ping timeout: 245 seconds]
<andi-> You can easily fill disks... As soon as I stopped storing my vacation videos on disks and decided that I'll never watch them again I could get rid of 80% of my disks..
<hyper_ch> I need those 100TB SSDs
<woffs> My 12y old 60GB laptop disk still works well. :)
igo95862 has quit [Quit: igo95862]
<pie_> i have bad luck or something :p
<andi-> I have a pair of 500G disks that are approaching 10y.
<maurer> Since I have a work laptop, I'm running two nmve 1TB SSDs in zfs mirror mode
<woffs> it's hdparm and luck in my case
<maurer> god I would never have paid for this myself
<maurer> but it's very nice
<maurer> I find 1TB to be sufficient storage for local use though
<hyper_ch> why would you never have paid for it yourself?
<maurer> hyper_ch: 1TB nvme drives are expensive!
<hyper_ch> they ain't that expensive anymore
<maurer> I'd have only bought one, or a smaller size
<woffs> I must confess that I have a 1TB USB disk in my case ;)
<hyper_ch> the only problem I have I can't find a decent 14" notebook with 2x nvme or 2x m.2 or mixed slots
<YegorTimoshenko[> woffs: depends on where are you located
<pie_> oh wait *NVME*
<YegorTimoshenko[> here 1tb nvme starts from $300
<hyper_ch> no that expensive anymore
<YegorTimoshenko[> (samsung evo)
<pie_> i thikn i paid 500$ for mine...
<pie_> its just sata
<hyper_ch> the pro is like $500
<pie_> ah
<pie_> ok
<infinisil> There's #nixos-chat for offtopic discussions btw ;)
* pie_ really hopes it lasts 10 years
<pie_> ah :)
<pie_> anyway
<pie_> "error: The option `services.tinc.networks.iaa_cluster.interfaceName' defined in `/etc/nixos/networking.nix' does not exist."
<hyper_ch> (isn't talking about offtopic-channel offtopic itself?)
* pie_ tries to figure out how to copy the file
<hyper_ch> cp file1 /path/to/new/file2.
<{^_^}> [nixpkgs] @LnL7 opened pull request #42080 β†’ ycmd: 2017-11-05 -> 2018-06-14 β†’ https://git.io/vh1Im
<hyper_ch> woffs: is that the 4.16 bug?
phdoerfler1 has quit [Ping timeout: 240 seconds]
matthewbauer has joined #nixos
<pie_> i added the option on line 78 so i dont understand why its erroring https://bpaste.net/show/994e3defd175
ThatPako has quit [Remote host closed the connection]
<woffs> hyper_ch, no it isn't
<woffs> not that I'm aware of
<hyper_ch> awwwww
<hyper_ch> btw, I only want to uncrypt the root pool
<woffs> hyper_ch, so we need a separate option?
<pie_> nevermind user error
<pie_> i left the environment unset for that execution and it was using the old file
<hyper_ch> kernel 4.16 has some problem
<pie_> im sorry
<hyper_ch> woffs: I have multiple datasets encrypted and I don't want to unlock them all upon powering up
phdoerfler has joined #nixos
<woffs> hyper_ch, but my PR just does what the doc already says ("all pools") ;)
<hyper_ch> I don't want that :(
<woffs> hyper_ch, so we should make a separate option, or a list which pools should be unlocked, or an option to do mount -al, or ...
<hyper_ch> I opt for "or"
<woffs> hyper_ch, but I think only the mounted and the extraPools would be decrypted
<woffs> hyper_ch, do you import your pools but not unlock'em?
<pie_> ok so apparently rebuild-switch brings down ssh?
knupfer1 has joined #nixos
<clever> pie_: if ssh has been modified, it restarts ssh
<hyper_ch> woffs: nope
<pie_> ah looks like my connection is back though
<clever> pie_: and if anything network related has been modified, it restarts the network
knupfer has quit [Ping timeout: 260 seconds]
knupfer1 is now known as knupfer
<pie_> makes sense
<pie_> i mean, of course it does *facepalm*
sbdchd has joined #nixos
<pie_> ah hey it looks like everyhting worked :D
<hyper_ch> woffs: I don't import all pools... some are just backup pools for other machines so they get imported and unlocked when needed
erasmas has quit [Quit: leaving]
<woffs> hyper_ch, so my patch shouldn't change that. Maybe you could try if #41846 does break your workflow. I must go to bed now. Thank y'all, good night
joeyh has left #nixos ["WeeChat 2.1"]
<{^_^}> https://github.com/NixOS/nixpkgs/pull/41846 (by woffs, open): nixos/zfs: load encryption keys for all pools
<hyper_ch> woffs: I wanted to go to bed 2h ago :)
<woffs> oh those europeans
<pie_> hyper_ch, also i guess zfs on linux doesnt suck anymore? :p
<pie_> everyone knows based zfs is solaris or freebsd or something
sbdchd has quit [Ping timeout: 240 seconds]
<pie_> tl;dr: openzfs is mature now?
<gchristensen> its pretty good yeah
<pie_> cool ill have to take a look \o/
jperras has joined #nixos
emmanuelrosa has quit [Quit: Leaving.]
Lev50 has joined #nixos
matthewbauer has quit [Read error: Connection reset by peer]
jperras has quit [Ping timeout: 240 seconds]
matthewbauer has joined #nixos
sbdchd has joined #nixos
hiratara has quit [Quit: ZNC - http://znc.in]
matthewbauer has quit [Ping timeout: 265 seconds]
hiratara has joined #nixos
drewr has quit [Ping timeout: 240 seconds]
matthewbauer has joined #nixos
woodson has joined #nixos
<pie_> did services.openssh get renamed or something
<pie_> my ssh daemon has gone awol
<pie_> i have enabled = true but theres nothing in systemctl that has ssh in it
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<MichaelRaskin> enable=true I hope
m0rphism has joined #nixos
<MichaelRaskin> My grabbing the NixOS' service sshd with services.openssh.enable=true does seem to work
<pie_> yes
<MichaelRaskin> But I don't use full ssh
<MichaelRaskin> full NixOS
<MichaelRaskin> maybe it is only launched on connection?
<MichaelRaskin> Socket activation and other ways to spray random latency
<pie_> theres an option for that and its disabled by default
<pie_> (at least im pretty sure it was)
<pie_> ok but shouldnt systemctl still at least list that it exists?
<gchristensen> systemctl status --all
<pie_> grepping for ssh lists nothing
<pie_> is it possible that current git head broke ssh somehow?
johnw has joined #nixos
lambdamu has joined #nixos
<gchristensen> it is possible, git head is obviously not tested like a channel is
lambdamu has quit [Client Quit]
<pie_> makes sense i guess
orivej has quit [Ping timeout: 245 seconds]
<pie_> so uh, how to i check out a channel from git? i imagine thats possible somehow
<pie_> i mean i presume i need to figure out which commit it is
lambdamu has joined #nixos
<gchristensen> you can track commits which became a channel at http://channels.nix.gsc.io/ and you can fetch the HEAD of any branch at https://github.com/NixOS/nixpkgs-channels
<pie_> so presumably just checkout -b nixos-unstable ?
<obadz> pie_: yes
<obadz> pie_: but I often check out commits that have been built but some tests that are not relevant to me have failed from this screen https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents
<obadz> pie_: commit hash is in the page you get if you click on column header
johnw has quit [Ping timeout: 260 seconds]
matthewbauer has quit [Read error: Connection reset by peer]
sbdchd has quit [Remote host closed the connection]
<pie_> why is that repo separate from the nixpkgs repo?
sbdchd has joined #nixos
<obadz> pie_: it's a fork, you can just add a remote to the main repo
* pie_ is way overdue on learning git
<obadz> git is amazing and a key pillar of nix
<pie_> yeah i know
matthewbauer has joined #nixos
<pie_> though github is too (somewhat) sadly :p
<obadz> git add remote channels https://github.com/NixOS/nixpkgs-channels
phdoerfler has quit [Ping timeout: 240 seconds]
<pie_> thanks
jperras has joined #nixos
<obadz> bah github is relateively easy to substitute so not too worried
<obadz> then git fetch channels -a
<obadz> then git checkout channels/nixpkgs-unstable
<pie_> good luck migrating issues and whatnot
<obadz> doesn't gitlab have a tool for that?
<pie_> the core is supstitutable, the community interaction a bit harder
<pie_> ah well idk :D
<pie_> anyway
<pie_> its not like they are planning to switch so im stuck having deleted my github acc :p
<pie_> i can tack --depth=1 on to the fetch right
<gchristensen> I can lend you one of my github accounts if you're in need
<pie_> it didnt like the git add command, complains about remote not matchign any files
<pie_> im guessing there needs to be something betweengit and add :p
<obadz> gchristensen: look forward to the 28th :)
<gchristensen> obadz: :D me too!
<gchristensen> a probably overdue trip!
MP2E has joined #nixos
<pie_> ah git remote add :D
jtojnar has joined #nixos
jperras has quit [Ping timeout: 265 seconds]
worldofpeace has joined #nixos
matthewbauer has quit [Ping timeout: 264 seconds]
alex`` has quit [Quit: WeeChat 2.1]
<pie_> oh dear it got all the branches lol
<pie_> *shrug*
vaninwagen_ has quit [Ping timeout: 265 seconds]
sbdchd has quit [Remote host closed the connection]
knupfer has quit [Ping timeout: 248 seconds]
matthewbauer has joined #nixos
sbdchd has joined #nixos
<pie_> rebuilding now \o/
<{^_^}> [nixpkgs] @ruuda opened pull request #42081 β†’ Update libressl β†’ https://git.io/vh1mC
woodson has quit [Ping timeout: 268 seconds]
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
matthewbauer has quit [Write error: Connection reset by peer]
xy2_ has quit [Ping timeout: 248 seconds]
<pie_> uhh...im on unstable now and ssh still isnt back
lord| has quit [Ping timeout: 256 seconds]
testuser_ has quit [Ping timeout: 265 seconds]
lord| has joined #nixos
matthewbauer has joined #nixos
ericsagn1 has joined #nixos
asymmetric has quit [Ping timeout: 255 seconds]
sorixelle has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko pushed to yegortimoshenko-patch-1 Β« cryptsetup: apply MatΓ­as Lang's patch Β»: https://git.io/vh1Yt
<pie_> i dont understand why but the issue was moving my ssh config stuff into the imported network.nix file
simukis has quit [Ping timeout: 256 seconds]
<pie_> i have imports = [ ./networking.nix (some other stuff) ] in my configuration.nix and this is the networking.nix:
daveo has joined #nixos
<pie_> if i copy the openssh section to configuration.nix, it creates the service, if i move it back it deletes it
<daveo> Curious if people here are thinking about running Cardano stake pools
<pie_> MichaelRaskin, any ideas maybe?
Lev50 has quit [Quit: This computer has gone to sleep]
palo has quit [Ping timeout: 248 seconds]
ericsagn1 has quit [Ping timeout: 264 seconds]
Lev50 has joined #nixos
Lev50 has quit [Client Quit]
tzemanovic has joined #nixos
jperras has joined #nixos
inquisitiv3 has quit [Ping timeout: 256 seconds]
<pie_> can services not be put in an import?
<pie_> do services NEED to be in configuration.nix? (if this isnt user error that kind of seems like a bug..)
matthewbauer has quit [Read error: Connection reset by peer]
igo95862 has joined #nixos
pie__ has joined #nixos
pie_ has quit [Read error: Connection reset by peer]
<pie__> There's no way there could be a bug like this though. I have to be doing something stupid.
palo has joined #nixos
<pie__> ok the manual actually has examples like this, so im lost.
ericsagn1 has joined #nixos
<{^_^}> [nixpkgs] @thorstenweber83 opened pull request #42082 β†’ slic3r-prusa3d: 1.39.2 -> 1.40.0 β†’ https://git.io/vh1O6
jperras has quit [Ping timeout: 245 seconds]
sbdchd has quit [Remote host closed the connection]
karlguy_ is now known as karlguy
<{^_^}> [nixpkgs] @LnL7 pushed to master Β« libgcrypt: disable tests on darwin Β»: https://git.io/vh13T
<pie__> ok so to be more specific i have { config, pkgs, ... }: {some stuff} // {other stuff} in the network.nix file
<pie__> i had the openssh stuff in the first {} but putting it in the second one makes it work again...
<infinisil> if you have a service declaration in both, the second will override the first
<infinisil> because that's how attrsets work
<pie__> oh.... *facepalm*
<infinisil> If you want to merge them, you need to use mkMerge: `lib.mkMerge [ { some stuff } { other stuff }]`
tzemanovic has quit [Remote host closed the connection]
<pie__> manual says "The // operator merges two attribute sets,"
<pie__> >_>
<infinisil> Just on the top attribute level though, not deeply, and not in regards to the types
<infinisil> > { a = { x = 10; }; } // { a = { y = 20; }; }
<{^_^}> { a = <CODE>; }
<infinisil> > p { a = { x = 10; }; } // { a = { y = 20; }; }
<{^_^}> value is a string while a set was expected
<infinisil> Oh, um
<infinisil> > p ({ a = { x = 10; }; } // { a = { y = 20; }; })
<{^_^}> "{ a = { y = 20; }; }"
<infinisil> > p (lib.mkMerge [ { a = { x = 10; }; } { a = { y = 20; }; } ])
<{^_^}> "{ _type = \"merge\"; contents = [ { a = ...; } { a = ...; } ]; }"
<infinisil> Yeah and it does some nixos module system stuff
<pie__> it didnt even give any warnings or anything
<infinisil> There's also the non-nixos module system way to do deep merging (that doesn't watch the types though):
<infinisil> > lib.recursiveUpdate { a = { x = 10; }; } { a = { y = 20; }; }
<{^_^}> { a = <CODE>; }