zimbatm changed the topic of #nixos to: NixCon 2018 - 25-27 Oct in London https://nixcon2018.org/ || 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, #nixcon
asymmetric_ has quit [Ping timeout: 252 seconds]
kiloreux has joined #nixos
earldouglas has joined #nixos
lsyoyom has quit [Ping timeout: 252 seconds]
<earldouglas> My nixops deployment appears to be stuck on "copying path '/nix/store...docker...' from 'https://cache.nixos.org'...
<earldouglas> Is there a way to investigate what's wrong? E.g. is it a network problem?
<clever> elvishjerricco: is aws involved?
<elvishjerricco> clever: you talking to me?
<clever> op[s
<clever> earldouglas: is aws and a vpc involved?
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/391bf82ca34 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
asymmetric has quit [Ping timeout: 252 seconds]
lsyoyom has joined #nixos
v0|d has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @jtojnar pushed 151 commits to gnome-3.30: https://git.io/fAxzm
hlolli has joined #nixos
palo has joined #nixos
<hlolli> I need to provide two seperate BusID values to two different video drivers, could I replace this stuff here somehow without going wild? https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/xserver.nix#L736
<{^_^}> [nixpkgs] @jtojnar pushed 11 commits to gnome-3.30: https://git.io/fAxz0
<hlolli> ah wait, nevermind
hlolli has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fAxzy
<{^_^}> [nixpkgs] @jtojnar pushed 63 commits to gnome-3.30: https://git.io/fAxzh
<{^_^}> [nixpkgs] @jraygauthier opened pull request #47376 → allure: init at 2.7.0 → https://git.io/fAxgW
Kelppo has quit [Ping timeout: 240 seconds]
aminb has quit [Quit: WeeChat 2.2]
aminb has joined #nixos
worldofpeace has joined #nixos
<{^_^}> [nixpkgs] @jonoabroad opened pull request #47378 → sublimeMerge: init at 1058 → https://git.io/fAxgD
Kelppo has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andreabedini has joined #nixos
graphene has quit [Remote host closed the connection]
Rusty1 has joined #nixos
graphene has joined #nixos
Boobuigi has quit [Quit: ReBoot!]
worldofpeace has quit [Quit: worldofpeace]
<{^_^}> [nixpkgs] @dtzWill opened pull request #47380 → libXinerama: 1.1.3 -> 1.1.4 → https://git.io/fAx2F
<ivan> earldouglas: there's a thing that cache.nixos.org does where it sends files at about ~70KB/s sometimes, it could be that
<ivan> you can look at dstat
<{^_^}> [nix] @ElvishJerricco opened pull request #2452 → Fix overflow when verifying signatures of content addressable paths → https://git.io/fAxaJ
<ivan> or iftop I guess
Kelppo has quit []
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
lassulus_ has joined #nixos
abueide has quit [Ping timeout: 244 seconds]
lassulus has quit [Ping timeout: 252 seconds]
lassulus_ is now known as lassulus
slack1256 has joined #nixos
Jmabsd has joined #nixos
<Jmabsd> Which Linux distribution(s) are in your mind the least crap?
orivej has quit [Ping timeout: 240 seconds]
<Jmabsd> Re NixOS, their default download URL contains only AMD64 builds, = a joke?
Supersonic has quit [Ping timeout: 250 seconds]
<Yaniel> nope
<Yaniel> x86_64 is also called amd64
<Yaniel> because hysterical raisins
<Ralith> if they weren't so hystrical they might make better decisions
<Ralith> but them's the breaks
Supersonic has joined #nixos
silver has quit [Read error: Connection reset by peer]
perrier-jouet has quit [Quit: WeeChat 2.2]
jasongrossman has quit [Ping timeout: 245 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/9bfd864c592 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<Jmabsd> Yaniel,Ralith: There are about 7 relevant CPU architectures.
<Jmabsd> Finding only ONE available prebuilt, which is the CRAPPIEST of all of them, is a great surprise
<clever> Jmabsd: 32bit x86 is also prebuilt
<Jmabsd> The Linux kernel itself has crap problems enough, so running a fairly crap kernel on ultra-crap CPU:s only, well.
<Jmabsd> Anyhow I see you're at another phase in the design process where CPU arch hasn't mattered so much so you just took commodity hardware, however, a grown up child knows more archs.
<Yaniel> that's a lot of salt for someone who just joined the channel
<{^_^}> [nixpkgs] @freepotion opened pull request #47381 → boohu: init at 0.10.0 → https://git.io/fAxVy
<Jmabsd> Yaniel: yes sorry. i was looking around for any Linux distributions to migrate to.
<Jmabsd> bbl.
Jmabsd has quit [Quit: Leaving]
<Yaniel> ...then mayyyybe you should also mention what special requirements you have
<samueldr> !?
<emily> gj feeding the troll
<samueldr> anyone up for the Z80 with 68k co-processor port? (jk)
mizu_no_oto has joined #nixos
jasongrossman has joined #nixos
dozn has joined #nixos
mayhewluke has quit [Ping timeout: 245 seconds]
mkoenig has joined #nixos
mayhewluke has joined #nixos
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
ADD_Sidekick has joined #nixos
<{^_^}> [nixpkgs] @magnetophon opened pull request #47382 → zita-njbridge: init at 0.4.4 → https://git.io/fAxwo
<ADD_Sidekick> So how is SElinux on NixOS these days? Still taking a back seat to apparmor and gsecurity?
sir_guy_carleton has joined #nixos
<hakujin> what am I doing wrong here? I want to install `nix-prefetch-git`. I'm on macOS mojave. I had a multi-user install but axed it in favor of a single user reinstall due to the mojave nonsense. when I run `nix-shell -p nix-prefetch-git` I build like all of clang, cmake, and a zillion other things (hours) before failing during building nix itself
<hakujin> error: `make: *** [mk/tests.mk:12: installcheck] Error 1` on `builder for '/nix/store/djlq3x3m31zaa4d5mcxm8qhijgfzgkna-nix-2.1.2.drv' failed with exit code 2`
<elvishjerricco> hakujin: Sounds like you're not using cache.nixos.org for some reason
<elvishjerricco> (also, I'm curious, what was wrong with multi-user on mojave?)]
<hakujin> yep appears that way
<elvishjerricco> hakujin: Does cache.nixos.org appear in `/etc/nix/nix.conf`?
<hakujin> elvishjerricco: this is the error re: multi-user https://gist.github.com/hakujin/44a1b3bd359a8b210aaa1035889e9042
<hakujin> elvishjerricco: hmm. `/etc/nix` doesn't exist in my install
<elvishjerricco> hakujin: Huh. What do you get with `nix show-config`?
<clever> hakujin: nix show-config | egrep 'substituters|trusted-public-keys'
<hakujin> clever: substituters does appear in the output
<clever> lines 57 and 62 show that the nixos cache is configured correctly
<elvishjerricco> Yea that's weird
<clever> hakujin: what does `nix-instantiate --find-file nixpkgs` return?
<hakujin> `/Users/hakujin/.nix-defexpr/channels/nixpkgs`
<clever> should be good
<hakujin> nix is using the unstable channel
<hakujin> is their some combo of mojave + unstable leading to recompiling everything?
<hakujin> s/their/there
<clever> clang should still be in the cache
ADD_Sidekick has quit [Quit: ADD_Sidekick]
graphene has quit [Remote host closed the connection]
jperras has quit [Quit: WeeChat 2.2]
<hakujin> clever: I'm happy to eradicate my (non-functional, ish) current install in favor of starting over. would lingering bits of multi-user interact strangely with a new single-user install?
<elvishjerricco> hakujin: What happens when you run `nix ping-store --store https://cache.nixos.org`?
graphene has joined #nixos
<hakujin> ah, hmm
<elvishjerricco> hakujin: Also, check that there's no `~/.config/nix/nix.conf` file
<hakujin> `error: executing SQLite statement 'delete from NARs where ((present = 0 and timestamp < ?) or (present = 1 and timestamp < ?))': attempt to write a readonly database (in '/Users/hakujin/.cache/nix/binary-cache-v5.sqlite')`
<elvishjerricco> oh
<elvishjerricco> hakujin: `rm -r ~/.cache/nix` :P
<clever> it sounds like you ran something with sudo, and darwin was nice enough to leave $HOME unchanged
<clever> so now root owns your cache!
<hakujin> hah!
<hakujin> yeah, immediate success
<hakujin> thanks!
<{^_^}> [nixpkgs] @jtojnar pushed 112 commits to gnome-3.30: https://git.io/fAxrH
slack1256 has quit [Ping timeout: 240 seconds]
acarrico has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @dtzWill merged pull request #47365 → spectral: init at 2018-09-24; nheko: 0.5.0 -> 0.6.0 and bump dep mtxclient → https://git.io/fAxtM
<{^_^}> [nixpkgs] @dtzWill pushed 4 commits to master: https://git.io/fAxok
<{^_^}> [nixpkgs] @dtzWill merged pull request #47327 → cairo: 1.15.12 -> 1.15.14 → https://git.io/fAAOk
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fAxoL
<{^_^}> [nixpkgs] @dtzWill merged pull request #47380 → libXinerama: 1.1.3 -> 1.1.4 → https://git.io/fAx2F
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fAxoq
phreedom_ has joined #nixos
phreedom has quit [Ping timeout: 256 seconds]
hakujin has quit [Quit: WeeChat 2.2]
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/391bf82ca34 (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
marusich has joined #nixos
reinzelmann has joined #nixos
Sonarpulse has joined #nixos
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lostman has quit [Quit: Connection closed for inactivity]
xok has joined #nixos
andreabedini has joined #nixos
<kandinski> I just installed a vagrant plugin using `vagrant plugin install` and it doesn't work. Before I try debugging it another way, should I have done anything differently?
<kandinski> To be clear: I followed instructions to create a nix-shell that would expose the right version of bundler, and installation of the plugin does work, the plugin installs. It's when I try to use it that I get an error.
sir_guy_carleton has quit [Quit: WeeChat 2.0]
Sonarpulse has quit [Quit: Leaving]
Rusty1 has quit [Quit: Konversation terminated!]
jasongrossman has quit [Ping timeout: 252 seconds]
jasongrossman has joined #nixos
jasongrossman has quit [Ping timeout: 252 seconds]
<teto> kandinski: does it install plugins in your $HOME ? probably the plugin assumes sthg that doesn't work on nixos. What d oyou mean by "doesn't work"; do you have any error message. Set verbosity to max and looks for hints. Or wait for someone whoc actually uses vagrant :) (what plugin?)
<kandinski> yeah, it's vagrant-lxd and I've already enabled verbosity, found it's trying to start a container but fails.
<kandinski> I don't know why yet
<kandinski> it appears lxc is failing to connect to the lxc command socket
<kandinski> this is no longer a vagrant issue: I'm running the lxc-start command by hand
<teto> kandinski: first thing would be to find the failing command (either in log or via strace) and try to do it manually. You might not have rights for the socket/ wrong location. Can you launch containers manually ?
endformationage has quit [Ping timeout: 252 seconds]
<kandinski> teto, that's what I've done
<kandinski> 05:22 < kandinski> it appears lxc is failing to connect to the lxc command socket
<kandinski> 05:23 < kandinski> this is no longer a vagrant issue: I'm running the lxc-start
<kandinski> command by hand
<kandinski> yes, I think it may be a permissions/group issu
<kandinski> e
jasongrossman has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mayhewluke has quit [Ping timeout: 240 seconds]
mayhewluke has joined #nixos
hyper_ch2 has joined #nixos
jasongrossman has quit [Ping timeout: 272 seconds]
semilattice has quit [Ping timeout: 246 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/a0248a0b681 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
trcc has joined #nixos
jasongrossman has joined #nixos
brejoc has joined #nixos
hotfuzz_ has joined #nixos
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Ariakenom has joined #nixos
hotfuzz has quit [Ping timeout: 246 seconds]
mkoenig has quit [Ping timeout: 272 seconds]
mkoenig has joined #nixos
<{^_^}> [nixpkgs] @rvolosatovs opened pull request #47384 → go-2fa: Init at 1.1.0 → https://git.io/fAxMt
alex`` has quit [Quit: WeeChat 2.2]
<teto> while running nix-index I got 'response to GET 'http://cache.nixos.org/7rvaglzhlx2q2dlnqi71nhj9z6n2jnay.ls' failed to parse' . The faulty GET is caused by https://transfer.sh/j22Tl/file_listing.json if anyone is interested (using 2.1.2)
<{^_^}> [nixpkgs] @xeji pushed commit from @Chiiruno to release-18.09 « linux_testing_bcachefs: 4.18.2018.08.31 -> 4.18.2018.09.21 »: https://git.io/fAxDU
georges-duperon has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #47373 → net_snmp: build with default perl → https://git.io/fAx8x
<{^_^}> [nixpkgs] @xeji pushed commit from @volth to master « net_snmp: build with default perl (#47373) »: https://git.io/fAxDI
reinzelmann has quit [Ping timeout: 245 seconds]
ThatDocsLady has joined #nixos
reinzelmann has joined #nixos
georges-duperon has quit [Ping timeout: 252 seconds]
Anton-Latukha has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer pushed to master « stdenv: partial revert of f2bb59 »: https://git.io/fAxyQ
<{^_^}> [nixpkgs] @matthewbauer opened pull request #47386 → rust: preliminary cross compilation support → https://git.io/fAxSt
<hyper_ch2> hmmm, how to get llvm-nm and llvm-ar on nixos?
jasongrossman has quit [Remote host closed the connection]
<srhb> hyper_ch2: llvm bin presumably
<srhb> ,locate bin llvm-ar
<{^_^}> Found in packages: llvm_4, emscriptenfastcomp
<hyper_ch2> thx, but it seems I need llvm 7
<srhb> hyper_ch2: I think 6 is our latest so far.
<hyper_ch2> Add the the LLVM APT repo for the appropriate LLVM version. # apt install clang-7.0 lld-7.0 llvm-7.0-dev python python3 ninja-build
Thra11 has joined #nixos
<srhb> I sort of doubt you need 7 unless there's a very specific problem with the package..
<srhb> Which might be the case, of course, but I'd probably try anyway.
<hyper_ch2> 19 September 2018: LLVM 7.0.0
thc202 has joined #nixos
<sphalerite> what is it for?
<{^_^}> [nixpkgs] @matthewbauer pushed to release-18.09 « stdenv: partial revert of f2bb59e »: https://git.io/fAxSa
<hyper_ch2> sphalerite: trying to compile googled-chromium
<hyper_ch2> ungoogled
<sphalerite> hyper_ch2: you'll probably want to use our existing chromium expression
<sphalerite> and adapt that instead
<sphalerite> also you are aware that chromium is immense to compile and are prepared to wait a whole day with the machine building?
Thra11 has quit [Ping timeout: 252 seconds]
<srhb> Who was the other person who had experienced user-runtime-dir failing during rebuild on 18.09?
<teto> srhb: hum that might be me ?
<srhb> teto: Finally had it happen again: https://github.com/NixOS/nixpkgs/issues/47387
<{^_^}> #47387 (by srhb, 8 minutes ago, open): 18.09 user-runtime-dir failure leaves system in bad state
palo has quit [Ping timeout: 250 seconds]
<Phlogistique> how do I get GCC's manpages under NixOS?
<teto> srhb: yes that was me, I haven't had it recently
<teto> Phlogistique: depending on the commit you might have it or not via `nix run gcc ` . It got broken/fixed/reverted/Idonknowcurrentstatus
<Phlogistique> teto: huh
<srhb> teto: I think I'll try switching back and forth between 18.09 and 19.03 a few times
<Phlogistique> teto: not in channel nixos-18.03 it seems
<srhb> I think that's how it usually happens...
<LnL> l
<sphalerite> Phlogistique: does gcc *have* manpages?
v0|d has joined #nixos
johanot has joined #nixos
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/0b70148bd6d (from 66 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<hyper_ch2> sphalerite: I looked at that and gave up :)
<Phlogistique> sphalerite: well, of course it does
<sphalerite> Phlogistique: huh, I don't think I've ever seen them. Maybe it's because I was on debian before nixos and debian has the whole GFDL-does-not-comply-with-DFSG issues, and now I'm on nixos where they're not visible because of a bug x)
<Myrl-saki> Yes, gcc does have man pages.
<Phlogistique> indeed, the manpage for GCC is a GFDL document with invariant sections
<Myrl-saki> NAME
<Myrl-saki> gcc - GNU project C and C++ compiler
<jonge> hi there, i have some integration tests (like the one in <nixpkgs>/nixos/tests/login.nix) in a project that is built by my local hydra instance. it does however build the project but does not schedule the actual tests. i _did_ add the following to my build machine config: supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"]; but to no avail. any ideas?
<Phlogistique> well, the manpage for GCC under Ubuntu mentions the titles of some invariant sections, but the invariant sections are just not there, so I wonder if Ubuntu is violating the GFDL
<Phlogistique> whatever...
<srhb> jonge: Can you gist /queue-runner-status from your hydra instance?
marusich has quit [Quit: Leaving]
<srhb> jonge: And when you say it doesn't schedule them, do you mean they're queued but never run?
<jonge> srhb. exactly: queued but never run. the /queue-runner-status gist: https://gist.github.com/tfc/97dc587620038e41b422383eed7b9f5b
<LnL> kvm is the only thing you need for nixos tests AFAIK
<srhb> jonge: "supportedFeatures" : [],
<jonge> wow, how can that be... it's in my nixos config.
<srhb> jonge: Maybe you're getting a local builder instead of the distributed setup?
<srhb> jonge: Might want to share the config :)
<LnL> I don't see any machines tho, is this just a single machine setup?
<jonge> oh right... the hydra config still says "buildMachinesFiles = [];", maybe that is a blocker? one moment, i will remove it.
<srhb> jonge: I think you just need distributedBuilds enabled and to have it in buildMachines..
<jonge> srhb: LnL: it does now work after i removed the buildMachinesFiles = [] item from the hydra config.
<srhb> jonge: Great :)
<LnL> ah, yeah you can make hydra use a different machines file
makefu has joined #nixos
<jonge> ok this is a stupid mistake. i was the one who clarified the nixos wiki a bit writing down exactly this solution. *facepalm*
<srhb> jonge: Haha. You win some, you lose some :-P
<Phlogistique> When I do 'nix-env -iA nixos.gcc nixos.glibc.static', 'gcc -static' says 'cannot find -lc'; however inside 'nix-shell -p gcc glibc.static' it works. How can I understand why?
<symphorien> ,library Phlogistique
<{^_^}> Phlogistique: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
jasongrossman has joined #nixos
<sphalerite> anybody have any fancy tricks for working out why a binary contains a reference to some path (gcc in this case) when it's not in the dynamic section?
<srhb> sphalerite: strings?
<sphalerite> srhb: that only really helps me determine that there *is* a reference, not so much how it gets there :/
<srhb> sphalerite: Well, once you have a binary that contains a string, don't you already know that the compiler did that?
<srhb> inb4 compiler breakpoints during nix build.
<{^_^}> [nixpkgs] @Mic92 merged pull request #47326 → bibutils: 6.6 -> 6.7 → https://git.io/fAAOe
<sphalerite> yes but whyyyyyy
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAx7a
<srhb> haha, yes, I see your problem... :P
<sphalerite> I ran genericBuild in a nix-shell to try and trace it
<symphorien> sphalerite: radare2 can probably answer that but it is not easy to use
<sphalerite> all the binaries seem to contain references to /nix/store/vv4r320p5yd1k01kld62q1lppjxcswhb-gcc-7.3.0/lib/gcc/x86_64-unknown-linux-gnu/7.3.0/include but I can't find it any source files or configure script or makefiles
<symphorien> if it is a store path in the cache, which one is it so that I can try ?
<sphalerite> symphorien: nfs-utils
<sphalerite> I want to remove its dependency on gcc to significantly improve the netboot image's closure size
<symphorien> ok let's see
<sphalerite> I suppose another way to achieve that would be to remove nfs-utils from netboot, but that feels like cheating. Especially since that sort of thing can be useful in a netboot environment!
trcc has quit [Remote host closed the connection]
<sphalerite> oooooh stripping the files removes the references
<srhb> Neat!
<sphalerite> although the expression doesn't have dontStrip
<sphalerite> I guess strip -s isn't sufficient?
<sphalerite> oh wait
<sphalerite> aaaaah okay! I've got it
<sphalerite> It's because etc/systemd/system-generators isn't included in dontStrip
<sphalerite> err rather the stripping hook
mojjoo has joined #nixos
<mojjoo> hi! Since a while rebuilding takes a long time here, it's due to restarting the polkit service(more than a minute..)... Any ideas how to improve this?
<sphalerite> symphorien: I've got it, thanks for helping!
<symphorien> :)
<symphorien> I can't even find the string with r2 for some reason :)
<sphalerite> maybe you're using a different version of nfs-utils?
<symphorien> no nix why-depends finds it
<symphorien> I guess r2 does not search in debug symbols
<symphorien> glad you found it
<symphorien> indeed binaries in /etc/ are strange
<sphalerite> symphorien: btw do you know about #nixos-fr?
<symphorien> no
<sphalerite> :) not the busiest of channels but hey, that's not going to be fixed by nobody joining it right? :D
<symphorien> exactly :)
<sphalerite> teto: you're francophone too right?
hamishmack has joined #nixos
<symphorien> ah got it (for reference next time): izz | grep vv4r320p5yd1k01kld62q1lppjxcswhb
<symphorien> gives result in sections .debug_line and .strtap
<symphorien> *.strtab
<symphorien> which confirms it is in debug symbols
<sphalerite> symphorien: aw poo, someone got it before me xD
<sphalerite> it's on master but not nixos-unstable yet
<sphalerite> that timing though
<symphorien> heh
<sphalerite> 1427c50cea8685daf8eb571301651cf347b27e23 by Matthew Bauer, Date: Mon Sep 24 15:05:39 2018 -0500
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/f9c4075873c (from 87 minutes ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
HalfWord has joined #nixos
Jetien has joined #nixos
civodul has joined #nixos
<hyper_ch2> what is missing here? https://paste.simplylinux.ch/view/raw/45aaebde
trcc has joined #nixos
<etu> I think it tries to run a command named cups_config and fails
<etu> because it's missing
orivej has joined #nixos
<hyper_ch2> ah ok, thx
troydm has quit [Ping timeout: 272 seconds]
<hyper_ch2> how do you see that it tries to run that command?
<etu> "subprocess.call([cups_config, '--api-version'])"
asymmetric has joined #nixos
<hyper_ch2> I auto-addded _helper.py there when I read it :)
patrl has joined #nixos
sigmundv has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
trcc has quit [Ping timeout: 252 seconds]
<hyper_ch2> hmmm, debian has cups-config in the libcups2-dev package.... I can't find anthing on nixos though
<hyper_ch2> ,locate bin cups-config
<sphalerite> ,locate cups-config
<sphalerite> great minds think alike
<{^_^}> Found in packages: cups.dev
<{^_^}> Found in packages: cups.dev
<hyper_ch2> nox didn't return cups.dev..... hmmmm
<sphalerite> cups is the package, dev is just the output
sie has joined #nixos
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
<{^_^}> [nixos-weekly] @domenkozar pushed to master « Add 2018/09 »: https://git.io/fAxNW
mayhewluke has quit [Ping timeout: 244 seconds]
<hyper_ch2> hmmm, it can find cups-config though but why does the script not find it
<{^_^}> [nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of 'c05401583ef31e18cb617e63f9936aac387b8427' commit built by Travis-CI \#433385820 »: https://git.io/fAxN6
<hyper_ch2> sphalerite: adding cups.dev to the list of installed packages on nixos did help
mayhewluke has joined #nixos
troydm has joined #nixos
orivej has joined #nixos
jasongrossman has quit [Ping timeout: 246 seconds]
<{^_^}> [nixos-weekly] @domenkozar pushed to master « Let's Engish. »: https://git.io/fAxAm
<{^_^}> [nixos-weekly] @domenkozar pushed to master « More English »: https://git.io/fAxAs
<{^_^}> [nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of '9b9b5610afd1b43f2322c7776a97ac91dd1015c0' commit built by Travis-CI \#433390077 »: https://git.io/fAxAG
<srhb> I'm puzzled, how does the user-runtime-dir@uid work? Do some things depend on it? I'm trying to find a minimal reproducing example of the switch failure, but I can't seem to find anything that needs that service.
<srhb> Yet, my full system clearly does depend on it, somehow.
<symphorien> from the name of it I'd say it creates /run/user/(id)
<{^_^}> [nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of '620de0016236dfec3bcb2aa530b4b6c984f79bc0' commit built by Travis-CI \#433390479 »: https://git.io/fAxAu
<{^_^}> [nixpkgs] @globin merged pull request #47325 → arpack: 3.5.0 -> 3.6.3 → https://git.io/fAAYb
<{^_^}> [nixpkgs] @globin pushed commit from @r-ryantm to master « arpack: 3.5.0 -> 3.6.3 »: https://git.io/fAxAa
<srhb> symphorien: Yep.. And I do have that on my test system, and yet it's inactive (dead) vs my full system which is active (exited)
<srhb> Mysterious...
<sphalerite> maybe the type isn't right?
<{^_^}> [nixos-weekly] @domenkozar pushed to master « 09: Add one more entry »: https://git.io/fAxAb
trcc has joined #nixos
<{^_^}> [nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of '7828681d935befde1792c23c96cbcf8adf31428a' commit built by Travis-CI \#433393185 »: https://git.io/fAxxk
globin has joined #nixos
<{^_^}> [nixos-weekly] @domenkozar pushed to master « 09: remove extra line »: https://git.io/fAxxq
<{^_^}> [nixpkgs] @globin merged pull request #47384 → go-2fa: Init at 1.1.0 → https://git.io/fAxMt
<{^_^}> [nixpkgs] @globin pushed commit from @rvolosatovs to master « go-2fa: Init at 1.1.0 »: https://git.io/fAxxZ
<{^_^}> [nixpkgs] @globin merged pull request #47001 → libsigrokdecode: 0.5.1 -> 0.5.2 → https://git.io/fAQP0
<{^_^}> [nixpkgs] @globin pushed commit from @r-ryantm to master « libsigrokdecode: 0.5.1 -> 0.5.2 »: https://git.io/fAxxl
<{^_^}> [nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of '712a9c21138010387300496e832fa11b6fe646b3' commit built by Travis-CI \#433394429 »: https://git.io/fAxx4
trcc has quit [Ping timeout: 244 seconds]
<{^_^}> [nixos-weekly] @domenkozar merged pull request #64 → Call for Content: 2018/09 → https://git.io/fARgW
<{^_^}> [nixos-weekly] @domenkozar pushed 7 commits to production: https://git.io/fAxx2
Ridout has joined #nixos
<{^_^}> [nixos-weekly] @domenkozar pushed to master « Call for Content: 2018/10 »: https://git.io/fAxxX
<{^_^}> [nixos-weekly] @domenkozar opened pull request #65 → Call for Content: 2018/10 → https://git.io/fAxxH
<{^_^}> [nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Release of (commit 'd6818ac0015fd85e28c0916a46e3e5138c2a60d0') built by Travis-CI \#433395965 »: https://git.io/fAxxd
simukis has joined #nixos
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/f9c4075873c (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
georges-duperon has joined #nixos
<sphalerite> domenkozar++
<{^_^}> domenkozar's karma got increased to 4
<{^_^}> [nixpkgs] @globin merged pull request #47372 → google-compute-engine: 20180510 -> 20180905 → https://git.io/fAxl0
<{^_^}> [nixpkgs] @globin pushed commit from @zimbatm to master « google-compute-engine: 20180510 -> 20180905 »: https://git.io/fAxpu
<{^_^}> [nixpkgs] @globin merged pull request #47352 → nodejs-10_x: 10.9.0 -> 10.11.0 → https://git.io/fAAds
<{^_^}> [nixpkgs] @globin pushed commit from @jwoudenberg to master « nodejs-10_x: 10.9.0 -> 10.11.0 »: https://git.io/fAxpa
<makefu> domenkozar: thanks for your effort!
carlosdagos has quit [Quit: Connection closed for inactivity]
georges-duperon has quit [Ping timeout: 260 seconds]
Dedalo has joined #nixos
<{^_^}> [nixpkgs] @vbgl opened pull request #47388 → coq: 8.8.1 -> 8.8.2 → https://git.io/fAxhD
<{^_^}> [nix] @edolstra pushed to master « Make NAR header check more robust »: https://git.io/fAxhQ
trcc has joined #nixos
trcc has quit [Ping timeout: 245 seconds]
obadz has quit [Ping timeout: 246 seconds]
<azazel> domenkozar: thanks
<jonge> the nix newsletter says that nix 2.1 is compatible with macos mojave, so one should upgrade that before upgrading to mojave. the link just points to the nix installation page. does that mean that one should re-install basically?
<LnL> no, there are upgrade instructions in the manual
<jonge> LnL: right, i see.
<jonge> thank you!
<jonge> wow, how flawlessly and quick that worked.
<jonge> i got used to nixos pretty quickly, but on mac it's sometimes a bit strange
<infinisil> jonge: Compare this to what happened recently when I tried to upgrade Nix by reinstalling it: https://github.com/NixOS/nix/issues/2410
<{^_^}> nix#2410 (by Infinisil, 2 weeks ago, open): Bad darwin reinstallation experience
<jonge> infinisil: oh yeah i had a similar experience some time ago, too...
<jonge> one time i ran the nix installer on a company laptop where some remote administration policy was to turn off sudo's "memory" so i had to re-enter my pw every few seconds. during nix installation i gave up and aborted it at some point
<jonge> then i fixed that sudo-memory thing, reran... and the problems began. :D
<infinisil> Phew..
<LnL> yeah, and this happened to a coworker recently :p https://github.com/NixOS/nixpkgs/pull/46207#issuecomment-420811472
<jonge> the workflow was: running installer --> installer asks me to tidy up a few things please. ok, tidied up... so next time it asked for _more_ things to tidy up... 5 repeats later it was installed, finally.
<jonge> oh his channel was at some ancient nixpkgs??
<LnL> yeah
<infinisil> !!! Digitalocean added support for uploading custom images!
<etu> infinisil: what?!
<etu> infinisil: Finally
<etu> It doesn't say on their website yet though: https://www.digitalocean.com/products/droplets/
<azazel> never used digitalocean, It always seemed costly to me
<tilpner> They do offer nested virtualisation though
trcc has joined #nixos
MichaelRaskin has left #nixos [#nixos]
<rawtaz> DO is known to be buggy as well
graphene has quit [Remote host closed the connection]
<infinisil> rawtaz: The online console yeah, but other than that I haven't encountered any
<infinisil> They have pretty good support
* etu thinks they are ok most of the time
<rawtaz> i mean things like their object storage and VPSs
<etu> But I wouldn't praise them more than that
<rawtaz> but i havent had first hand experience, just heard from others users
graphene has joined #nixos
<rawtaz> i use tilaa.com :)
<infinisil> Aw man, no iso's though
<rawtaz> shameless plug perhaps, but i have no affiliation with them
<rawtaz> infinisil: what instead?
<infinisil> "Any Linux OS that supports ext3/4 file systems and has cloudinit 0.7.7, cloudbase-init, coreos-cloudinit, ignition, or bsd-cloudinit installed should work with the import tool. Currently, ISO files are planned to be supported towards the end of 2018."
<rawtaz> oh
<infinisil> At least we get iso's too soon
<azazel> what's the story with nixos and cloudinit? I never used cloudinit
<LnL> infinisil: I want to discuss and hack on ideas to improve the install/upgrade process during the hackathon
<infinisil> LnL: Nice
trcc has quit [Ping timeout: 260 seconds]
<infinisil> I really think the installer should have an interactive mode where it asks you some questions and then does the stuff
<infinisil> This way it can also save the downloaded Nix and doesn't have to redownload it on every restart
abueide has joined #nixos
kiloreux has quit [Ping timeout: 272 seconds]
<azazel> infinisil: I know python, and some nice libraries to handle interactive sessions has emerged lately, like https://pypi.org/project/whaaaaat/#examples
<infinisil> That does look pretty good
<infinisil> But I'm not sure if it's okay to require python for installation
<LnL> azazel: you can deploy a nixos config using cloud-init with the aws images IIRC
<azazel> It would be nice to build something on it (a friend of mine developed a scaffolding generation application https://pypi.org/project/metapensiero.tool.tinject/ ), unfortunately I will not be attending the conference...
<azazel> LnL: ah I didn't know, thanks
jasongrossman has joined #nixos
fendor has joined #nixos
kiloreux has joined #nixos
simukis has quit [Quit: simukis]
<{^_^}> [nixpkgs] @domenkozar pushed to master « postgresql: give postgres user a shell »: https://git.io/fApkV
<{^_^}> [nixpkgs] @domenkozar pushed to release-18.09 « postgresql: give postgres user a shell »: https://git.io/fApkP
<domenkozar> good, sanity.
trcc has joined #nixos
<srhb> domenkozar: Why? :P
<domenkozar> so that I can have psql history
<srhb> Ah.
<srhb> sudo -u postgres psql you mean
<domenkozar> ye
<srhb> I see, makes sense.
kim0 has joined #nixos
iyzsong has joined #nixos
periklis has joined #nixos
<etu> domenkozar: Are you the one that publish the nixos weekly? If so I'm thankful for the note regarding nix on travis. I use nix on travis but installed it on every build, didn't know that they had nix :-)
trcc has quit [Ping timeout: 264 seconds]
<schmittlauch[m]> Hi, I'm a newbee who just installed NixOS and has a question about package-specific configuration flags in nixpkg:
semihonest has joined #nixos
<domenkozar> etu: you're welcome :)
<schmittlauch[m]> I manage my user software with home-manager. When installing clementine, I don't want the proprietary spotify plugin. The clementine nix expression even has a config option, `config.clementine.spotify`, so I added `nixpkgs.config.clementine.spotify = false` to my `~/nixpkgs/home.nix` config file.
<schmittlauch[m]> But the spotify plugin is still pulled in. What am I doing wrong?
<symphorien> schmittlauch[m]: according to https://nixos.org/nixos/packages.html#clementine there is a clementineFree, I guess it does the trick
<schmittlauch[m]> symphorien: If I understand correctly, clementineFree also does not pull in certain patented codecs, but I want these. Additionally I'd like to understand how to customize and configure nixpkgs :D
<etu> domenkozar++
<{^_^}> domenkozar's karma got increased to 5
<symphorien> schmittlauch[m]: does you customisation appear in` nix eval -f "<nixpkgs>" config ` ?
<hyper_ch2> hmmmm, it seems I need to explicitely add xxx.dev packages sometimes
<infinisil> symphorien: it shouldn't since they added it to the home manager config file
periklis has quit [Ping timeout: 264 seconds]
<symphorien> ah.
<symphorien> I missed the home-manager thing, sorry
<symphorien> then I don't know :)
<schmittlauch[m]> infinisil: symphorien but still it does
<schmittlauch[m]> { config = { clementine = { spotify = false; }; }; }
alex`` has joined #nixos
<symphorien> I am surprised you don't have allowUnfree in there
<infinisil> 2 things are weird here: Is your home.nix file really in ~/nixpkgs/home.nix? I think it should be ~/.config/nixpkgs/home.nix. And: This setting shouldn't influence above command, did you put it in config.nix instead?
<schmittlauch[m]> symphorien: I want to allow unfree only for specific packages :stallmanface:
<srhb> schmittlauch[m]: Looking at nix edit clementine, it does not appear t use config.clementine.spotify for anything
<symphorien> yes but I mean: nix should refuse to even evaluate libspotify without it
<etu> schmittlauch[m]: I don't see any home-manager specific options for clementine at all.
<srhb> Oh... Clearly I have a different version :-)
__monty__ has joined #nixos
<symphorien> this should be 18.03
<symphorien> (the link from the online package search)
<schmittlauch[m]> infinisil: I put it into both files, just to make sure: `config.clementine.spotify 0 false;` in ~/.config/nixpkgs/config.nix` and `nixpkgs.config.clementine.spotify = false;` in ~/.config/nixpkgs/home.nix
<srhb> yep, I see it in 18.03 indeed. Sorry for the noise.
<infinisil> etu: That's to be expected
<infinisil> config doesn't work like that
<symphorien> schmittlauch[m]: do you use nix on nixos or on another distribution ?
<infinisil> schmittlauch[m]: So, what's your nixpkgs version?
<schmittlauch[m]> symphorien: nixos. And yes, `home-manager switch` complains about the unfree stuff
<etu> infinisil: Oh?
<infinisil> etu: grep for `config\.` in all-packages.nix
<symphorien> can you run nix-info ? apparently the option you try to use has been removed between 18.03 and 18.09
<schmittlauch[m]> infinisil: I don't know how to query the exact version. I'm on the 18.03 channel
<{^_^}> [nixpkgs] @manveru opened pull request #47389 → ejson: init at 1.2.0 → https://git.io/fApL0
silver has joined #nixos
<schmittlauch[m]> symphorien: system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.0.4, channels(root): "nixos-18.03", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
emerson has quit [Quit: WeeChat 2.2]
<schmittlauch[m]> symphorien: And the option is still present in ~/.nix-defexpr/channels_root/nixos/pkgs/applications/audio/clementine/default.nix
emerson has joined #nixos
<symphorien> oh. I think the expression is badly written. blob should not be inherited. https://github.com/NixOS/nixpkgs/blob/d16a7abceb72aac85e0deb8c45fbcb7127baf628/pkgs/applications/audio/clementine/default.nix#L125
<symphorien> it forces evaluation even if it is not used
<symphorien> you probably should use the expression from master
<schmittlauch[m]> symphorien: Ah, you read my thoughts
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/29660a20855 (from 33 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
patrl has quit [Ping timeout: 260 seconds]
patrl has joined #nixos
orivej has quit [Ping timeout: 252 seconds]
<etu> infinisil: Is it like anyone can set whatever they want there?
<schmittlauch[m]> symphorien: Yay, it's building now. I guess it pulls in 700MiB because it pulls in different dependency versions from unstable?
<symphorien> yes
obadz has joined #nixos
trcc has joined #nixos
sie has quit [Quit: Connection closed for inactivity]
Ridout has quit [Ping timeout: 252 seconds]
trcc has quit [Ping timeout: 252 seconds]
Xiro` has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @NeQuissimus pushed 4 commits to master: https://git.io/fApYW
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.4.157 -> 4.4.158 »: https://git.io/fApY8
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.9.128 -> 4.9.129 »: https://git.io/fApYR
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.14.71 -> 4.14.72 »: https://git.io/fApYu
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.18.9 -> 4.18.10 »: https://git.io/fApYr
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to release-18.03: https://git.io/fApYX
Kelppo has joined #nixos
Mateon2 has joined #nixos
boogle has joined #nixos
Mateon1 has quit [Ping timeout: 252 seconds]
Mateon2 is now known as Mateon1
iviv has left #nixos [#nixos]
fuzzy_id has joined #nixos
<fuzzy_id> how can i get all names from an attribute set?
<symphorien> lib.attrNames iirc
<srhb> builtins.attrNames will do as well
<fuzzy_id> yep, thanks!
periklis has joined #nixos
duncan^ has quit [Ping timeout: 244 seconds]
jperras has joined #nixos
Rusty1 has joined #nixos
<aminb> hey Mic92, anything holding back merging of https://github.com/NixOS/nixpkgs/pull/47262 ?
<{^_^}> #47262 (by aminb, 2 days ago, open): alloy: add alloy5 and take maintainership
<hyper_ch2> ,locate pangocairo
<{^_^}> Found in packages: lazarus
trcc has joined #nixos
iyzsong has quit [Read error: Connection reset by peer]
iyzsong has joined #nixos
duncan^ has joined #nixos
Xiro` has joined #nixos
trcc has quit [Ping timeout: 240 seconds]
<srhb> aminb: fwiw 2 days is generally not a long time in the merge queue :)
<gchristensen> anyone here know C++, Linux kernel stuff, and willing to mentor me through debugging a Nix problem?
Synthetica has joined #nixos
<Synthetica> I'm trying to package a program that uses Meson as its build system, but the builder says it cannot find libraries I include in nativeBuildInputs (or buildInputs for that matter) any pointers?
<LnL> don't know much about linux specific stuff, but I'm also somewhat familiar with the nix codebase
<symphorien> Synthetica: add pkg-config ? sometimes it works
<teto> gchristensen: what's the problem ?
<Synthetica> symphorien: Already have that
<Synthetica> (pkgsconfig as arg, pkgconfig in nativeBuildInputs)
<Synthetica> s/pkgs/pkg/
wpcarro has joined #nixos
<gchristensen> I have a remote builder. the remote builder finished many days ago but my system still thinks the remote is building. so the remote builder has been going for several days. I'd like to try and understand why. under strace, the nix-store --serve --write process says: select(21, [9 15 18 20], NULL, NULL, NULL
<hyper_ch2> ,locate libva
<{^_^}> [nixpkgs] @Mic92 pushed commit from @vanzef to master « gitAndTools.pass-git-helper: init at 0.4 (#47056) »: https://git.io/fApGA
<{^_^}> [nixpkgs] @Mic92 merged pull request #47056 → gitAndTools.pass-git-helper: init at 0.4 → https://git.io/fA73a
<{^_^}> Found in packages: vala, dale, root, valum, vacuum, varnish, avidemux, libffcall, libva.dev, opendylan, vapoursynth, gnome3.totem, libva-minimal, gnome3.nemiver, libsForQt5.vlc
mayhewluke has quit [Ping timeout: 272 seconds]
<aminb> srhb: thanks for mentioning that :) i'll check back in a week then
<srhb> aminb: (It's usually fine to ask though! Just letting you know.)
polman has joined #nixos
mayhewluke has joined #nixos
polman has quit [Excess Flood]
<hyper_ch2> ,locate glib-2.0.pc
<aminb> srhb: good to know! still figuring out the logistics :)
<{^_^}> Found in packages: glib.dev
<srhb> aminb: aren't we all :-)
<aminb> srhb: :P
sigmundv has quit [Ping timeout: 260 seconds]
<sphalerite> gchristensen: what's the result of the select call? And what do the file descriptors 9, 15, 18 and 20 refer to? (check lsof -p pid)
<teto> gchristensen: seems more like a nix problem than kernel's
<sphalerite> gchristensen: or is it a single call without a timeout?
sigmundv has joined #nixos
<gchristensen> sphalerite: is the 9th rowfd 9?
<LnL> gchristensen: shouldn't the serve process die when the ssh connection closes?
<gchristensen> the parent sshd is still alive
<LnL> so the build finished but the serve process is still waiting?
boogle has quit [Quit: Leaving]
<gchristensen> that is a question I can't properly answer
trcc has joined #nixos
<LnL> how is the builder configured?
<gchristensen> oh I se the FD #s now
<LnL> foo@host -> nix-store -> nix-daemon or root@host -> nix-store with --store local
<Synthetica> symphorien: Fixed it btw, they had a weird way of needing to include dirs
periklis has quit [Ping timeout: 250 seconds]
<hyper_ch2> ,locate nss.pc
<{^_^}> Found in packages: nssTools.dev
<gchristensen> hyper_ch2: please PM {^_^} :)
<hyper_ch2> gchristensen: tried to and failed
<hyper_ch2> (didn't see it opened seperate tab instead of just /msg back)
<Dezgeg> I think via /proc/<pid>/fd/ you can determine which pipe is which
trcc has quit [Ping timeout: 252 seconds]
abueide has quit [Ping timeout: 252 seconds]
<gchristensen> what do I do with that info then?
<gchristensen> oh! lsof | grep the #?
patrl has quit [Ping timeout: 252 seconds]
<Dezgeg> via /proc you can find the symlinks like 0 -> 'pipe:[62487671]' where you can presumably locate the other end of the pipe by looking for something with the same number in the brackets
<hyper_ch2> wasn't there a command to fix shebang in scripts?
<srhb> patchShebangs
<hyper_ch2> thx
worldofpeace has joined #nixos
<azazel> srhb: too fast
<hyper_ch2> where to use it in a nix expression?
<hyper_ch2> in the unpack phase? or patch phase?
<srhb> It's a bash function
<srhb> Probably neither of those
<srhb> preBuild? preConfigure? Depends if it's the build script you're patching or the result
<azazel> buildPhase or installPhase?
<gchristensen> if I'm reading this right, all four of those pipes are self-pipes: https://gist.github.com/grahamc/e1e0762728f998954be9ea0292c081f5
<gchristensen> (lsof-fd-{9,15,18,20})
<hyper_ch2> srhb: thx
<manveru> does anyone know, if i have sandbox disabled in nix, and have remote builders that have sandbox enabled, will the remote build be using sandbox?
elitak has joined #nixos
<gchristensen> Dezgeg, sphalerite ^
<niksnut> manveru: yes
<manveru> awesome, thanks :)
<manveru> is there a list of flags that carry over from the host nix?
<Dezgeg> so no other process has pipes with the matching numbers open?
<elitak> I'm trying to dump a nixos-config expression into a file, but this doesnt work: nix eval '((import <nixpkgs/nixos/lib/eval-config.nix>) { modules = [ <nixpkgs/nixos/modules/profiles/minimal.nix> ]; }).config'
<elitak> what am i doing wrong?
<manveru> elitak: try wrapping it in another ()
<gchristensen> Dezgeg: I think so: for each fd listed in the original select call I looked at what the fd was linked to, ("/proc/34216/fd/18 -> 'pipe:[2729558909]") and ran `lsof | grep <number>`
<elitak> manveru: doesnt change anything
<tilpner> elitak - --json will get you farther
<tilpner> elitak - But it will fail when trying to print pkgs
<elitak> my real goal is to dump something into /etc/nixos/configuration.nix format
<elitak> i dont think im on that path
<manveru> i don't think there's a way to do that...
<elitak> because it's going to spit out something like {_module=...}
<tilpner> That's not going to work well, if at all
<Jetien> Hi, does anybody know how to recreate Hydra's "Git checkout" derivation with nix? I'
<elitak> i just want to pull in all the imports=[] into one file basically; it can be messy as long as it evaluates
<elitak> "flatten" the expression, essentially
acarrico has joined #nixos
<tilpner> Maybe you can use lib.module.closeModules somehow
<LnL> gchristensen: so root?
<gchristensen> yeah
<Dezgeg> hmm, I wonder if the number can even be reliably used
<elitak> tilpner: closeModules is called by eval-config.nix -> evalModules -> closeModules already i think
<tilpner> I know
<elitak> it's going to give me this internal representation {_module = {... rather than something you'd see in configuration.nix
<LnL> gchristensen: ok so it's writing to the store directly, can't be communication with the daemon on the builder
<elitak> i guess its not possible
<elitak> i'd still like to know why nix-eval is trying to evaluate all the pkgs including broken ones
<tilpner> elitak - _module.pkgs
<elitak> oh
<tilpner> Or _module.args.pkgs, not sure what the exact path is
<tilpner> But it's in there
<elitak> what are _module's siblings?
<tilpner> Let's find out
<Dezgeg> hm, yes 'yes | tac | tac > /dev/null' shows up properly in lsof
<tilpner> elitak - assertions, boot, gnu, services, etc.
<infinisil> elitak: not possible on the nix level in general
trcc has joined #nixos
<infinisil> Because the nixos config can include functions as well
<infinisil> If we ignore unserializible values, it might be possible
<Dezgeg> gchristensen: I guess you need to gdb the process then (and hope you can locate the debug symbols) and figure out what the threads in nix-serve are doing
<gchristensen> I was just preparing a paste :)
<infinisil> elitak: if we ignore non-printable values, it might be possible, but will need some internal module system rewriting in regards with submodules
<LnL> yeah figure out what pipe the select is waiting for
<LnL> L57 looks a bit suspicious tho
<elitak> ok, i think i will just write some script that pulls out the paths and recreates my import hierarchy then
<infinisil> elitak: However iirc i think johnw_ has been experimenting with something to flatten Nix expressions using hnix, not sure how far that is
<elitak> because yeah it makes sense that functions arent serializible after eval
<Dezgeg> humm right, I wonder how strace shows activity for each thread
<elitak> i would like to use hnix; is it still being worked on?
Denommus has quit [Remote host closed the connection]
<infinisil> Yup
trcc has quit [Ping timeout: 272 seconds]
<elitak> is it usable actually?
<infinisil> I am indeed using it for stuff
<elitak> ok i will try it out
<elitak> thanks for the help
<{^_^}> [nixpkgs] @xeji merged pull request #46989 → nfs-utils: 2.3.2 -> 2.3.3 → https://git.io/fAQaz
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « nfs-utils: 2.3.2 -> 2.3.3 (#46989) »: https://git.io/fApWc
<infinisil> Mostly the parser though, the evaluator isn't 100% standard nix equivalent just yet
<elitak> oh. what do you use just the parser for?
<elitak> i was intending to use it to just add typing
<infinisil> I once used hnix to replace all http src links for packages in nixpkgs with https ones (where possible)
<LnL> gchristensen: yeah, that looks like it's substituting something from the cache and libcurl got stuck?
<infinisil> (Well i used it as a library, there's no builtin functionality for that)
<gchristensen> it sure does look like that!
<Dezgeg> well libcurl isn't stuck but rather the callback we passed to libcurl is
<elitak> ok, so i can start with .hnix and emit .nix?
<elitak> thats all im after
<gchristensen> what is .hnix?
vaibhavsagar has joined #nixos
<elitak> nix expressions in haskell, i presume there's some grammar for it
<infinisil> you can parse nix with hnix, do some transformation, then emit the modified nix
<gchristensen> I don't think hnix allows you to write nix expressions in haskell?
<elitak> so where does typing get enforced?
<elitak> that was the appeal for me
<infinisil> hnix is just a nix implementation in haskell
<infinisil> Just because it's haskell doesn't get you types
<elitak> i know its not free, but i thought that was one of the objectives
<elitak> maybe im confusing some feature request issue i saw
<infinisil> Well there is some typing stuff in hnix, but I never used that and it's not part of nix evaluation or parsing
<elitak> ok. thanks
<__monty__> I think the most typed nix approach is dhall-to-nix rn?
<gchristensen> Dezgeg: it looks like frame #8 in thread 4 might be most interesting, what do you think?
<infinisil> __monty__: That's only one way though, which isn't that useful
<Dezgeg> thread 4: waiting for _state->lock(), thread 5: holds _state->lock() but is waiting for the state->avail condition variable
<gchristensen> ooh
<__monty__> infinisil: Didn't know elitak wanted to convert nix to "typed practically nix".
<Dezgeg> I wonder how that is supposed to work
MrAxilus[m] has joined #nixos
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/a3b7cd1fa3b (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<gchristensen> Dezgeg: not to state the obvious, but maybe a failure case triggered some weird scenario which isn't supposed to happen
<gchristensen> man, I really stated the obvious.
<gchristensen> sorry :)
elitak has quit [Quit: leaving]
<gchristensen> Dezgeg, LnL, sphalerite: thank you all so much for your help
<Dezgeg> those are all the threads?
<{^_^}> [nixpkgs] @lsix opened pull request #47391 → octave: 4.2.2 -> 4.4.1 → https://git.io/fAp8y
<{^_^}> [nixpkgs] @xeji merged pull request #43490 → arc-theme: 2017-05-12 -> 2018-07-13 → https://git.io/fNqQh
<{^_^}> [nixpkgs] @xeji pushed commit from @rembo10 to master « arc-theme: 2017-05-12 -> 20180715 (#43490) »: https://git.io/fAp8N
reinzelmann has quit [Quit: Leaving]
wpcarro has quit [Remote host closed the connection]
acarrico has quit [Ping timeout: 240 seconds]
vaibhavsagar__ has joined #nixos
vaibhavsagar has quit [Ping timeout: 246 seconds]
<ryantm> FYI all fetchFromGitLab is broken on master https://github.com/NixOS/nixpkgs/pull/46487/files#r220576764
astronavt_ has joined #nixos
astronavt has quit [Read error: Connection reset by peer]
hyper_ch2 has quit [Quit: Page closed]
wpcarro has joined #nixos
kim0 has quit [Quit: Connection closed for inactivity]
<johanot> how to list all dependencies of a give store path?
wpcarro has quit [Ping timeout: 252 seconds]
* symphorien hides
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/e163794cded (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<johanot> symphorien: did I scare you? :P
<symphorien> no ryantm did :þ
<symphorien> johanot: and by the way: nix-store -qR path for transitive depes
<symphorien> nix-store -q --references for direct deps
acarrico has joined #nixos
<johanot> symphorien: great.. thanks! :)
wpcarro has joined #nixos
<{^_^}> [nixpkgs] @aszlig pushed to master « fetchFromGitLab: Fix grouping issue for group arg »: https://git.io/fApRp
fuzzy_id has quit [Ping timeout: 276 seconds]
<infinisil> aszlig++
<{^_^}> aszlig's karma got increased to 2
<aszlig> infinisil: actually that was my error, as i didn't look too close on the change during the review of the PR
<infinisil> Karma for always writing such extensive commit messages <3
<aszlig> ryantm: and sorry for the noise
fendor has quit [Ping timeout: 240 seconds]
<aszlig> infinisil: would be good if a few more people would do that for more substantial changes
HalfWord has quit [Ping timeout: 240 seconds]
<aszlig> infinisil: sometimes it's very hard to find out the rationale about a certain commit if it only contains a subject and no other description
wpcarro has quit [Remote host closed the connection]
<aszlig> another thing is "some subject\n\nSee #1234" or even "Fix #1234", which makes it especially annoying when on the road with bad or no internet connectivity
Twey has joined #nixos
<{^_^}> https://github.com/NixOS/nixpkgs/pull/1234 (by lovek323, 4 years ago, merged): mpd: update to latest version
erasmas has joined #nixos
<exarkun1> services.tor.client.enable defaults to false but if you enable services.tor then you still get a tor daemon running a socks server for clients to use because it doesn't write a torrc that explicitly disables client-related features that default to enabled. nixos services.tor bug?
periklis has joined #nixos
pepesza has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
<{^_^}> [nixpkgs] @Synthetica9 opened pull request #47392 → lc0: init at 0.18.0-rc1 → https://git.io/fApuT
<infinisil> aszlig: Will try next time :) (for non-trivial commits)
adamt has joined #nixos
<adamt> Given a store path, how do I figure out the name of the corresponding nar-file?
* adamt is debugging why his local binary store isn't working
<samrose__> has anyone succeeded in using apparmor with nixos (systemd-nspawn) containers?
<adamt> So apparently the .narinfo file name is based on the derivation hash, and contains the name of the nar file
<d1rewolf> anyone here using Crossover Office on nixos?
<Dezgeg> gchristensen: does some other nix process have /nix/store/vrcrv7v62f3wxlmlzph1ahgk822bs82c-hwdb.bin.lock
<sphalerite> aszlig: good point! Will try to keep that in mind :)
<Dezgeg> open?
<Dezgeg> i.e. the path lock that thread 3 is waiting for
<srhb> adamt: iirc nar files can be named anything.
<srhb> adamt: I think the standard is just to rip off /nix/store/ from the path
<sphalerite> and the name
<srhb> No, not for nar files?
<srhb> That's the narinfo iirc
<sphalerite> both, I think?
<srhb> Oh, really.. Easy to check :-)
<sphalerite> 000033g38ad1bd54hhi9wq7rxrq7ydfzax2rlign2r3rffkyr0br.nar.xz
Ericson2314-work has joined #nixos
<sphalerite> first nar in my binary cache
<srhb> sphalerite: Yup, looks like cache.nixos.org is the same these days. :) url: nar/hash.nar.xz
<sphalerite> was it not always?
<srhb> Well, I certainly believed it wasn't, but I may be mistaken.
<sphalerite> in the GNU hello narinfo from 16.03: URL: nar/0n9fprg0pzsz0g36yxl0qky7hhwh2nj7bf9vwkcj88wi5gpp3zv9.nar.xz
<sphalerite> how long have you been using nix? :D
iyzsong has quit [Ping timeout: 245 seconds]
<srhb> :P Not that long
<sphalerite> I think 16.03 was my first nixos version?
<gchristensen> Dezgeg: many
<srhb> sphalerite: 17.03 for me I think.
<Dezgeg> huh
<Dezgeg> are they stuck as well?
<adamt> srhb: In that case "nix copy" isn't doing what is standard, but no matter, we found a way to follow the trail of bread crumbs :-)
<gchristensen> Dezgeg: yes!
<srhb> adamt: If you're producing nars not-on-the-fly I imagine you may be doing something needlessly complex.
<Dezgeg> ok, what's this pid 580 who owns that lock doing then
<adamt> our .narinfo is $hash.narinfo, and the nars themself don't match the narinfo files
<adamt> srhb: 1) nix build ... 2) nix copy --to file:///bleh $output-path-from-step-1
<adamt> Doesn't seem that complex?
<srhb> adamt: file:// sounds complex to me!
<srhb> adamt: At least, if the purpose is to serve them later
<srhb> adamt: If you could just copy them to the store of your cache you could serve the nars up transparently.
<adamt> srhb: I don't want to serve up files from /nix/store from the build host -- and that's not what cache.nixos.org is doing either
ekleog has quit [Quit: back soon]
<adamt> We'll replace it with an S3 (ceph) target once we're ready for that.
<srhb> adamt: ok :)
<sphalerite> srhb: what's wrong with file:// :)
<srhb> sphalerite: Nothing wrong with it, except it's usually easier to propagate a /nix/store :)
<sphalerite> srhb: lets you just fire a regular webserver at them
<srhb> Yup
<sphalerite> probably more efficient than nix-serve as well :p
<adamt> does nix pick a random cache from nix.binaryCaches, or does it try them all in order (doesn't look like the latter..)?!?
<srhb> Definitely more efficient.
<srhb> adamt: Pretty sure it's the latter.
<sphalerite> adamt: I think it tries them in order and uses the first one that it finds it on
<srhb> adamt: If you're experiencing confusion here, perhaps it's related to ~/.cache/nix/binary-cache* ? :)
<adamt> It really can't be. Now we're running nix-build -vvvvv (vomit) for debugging, and it references hashes that it apparently tried, but doesn't show up in the access log
<adamt> BUT says it tried to fetch them from cache.nixos.org
<sphalerite> how did you configure the cache?
<srhb> adamt: either the cache cache is the problem or the substituters isn't correctly configured, I'd say
astronavt_ is now known as astronavt
Ericson2314 has quit [Quit: Leaving]
<adamt> srhb: the nix module calls it nix.binaryCaches, but man nix.conf calls it substituters. What's the difference?
<srhb> adamt: Same thing, hysterical raisins.
<srhb> adamt: substituters is new since 2.x
<adamt> raisins?
<srhb> Historical reasons :P
<johanot> mmmmhhh hysterical raisins.. yum
<srhb> Meaning: We should probably start deprecating binaryCaches for substituters
<srhb> But I don't think `nix.substituters` even exists yet.
<sphalerite> since you can substitute from any store, not just "binary caches" i.e. narinfo/nar sources
<srhb> So someone needs to update the module to get the ball rolling.
<sphalerite> adamt: have you rebuilt the system after adding it? Or is that what you're trying to do currently and having issues with it not using the substitutes?
<adamt> nix.binaryCaches seem to create a substituters section in nix.conf
<srhb> Yep.
<adamt> So it's just the option that has to be renamed. I thought it was worse than that
<srhb> No no. everything works, there's just a naming mismatch.
endformationage has joined #nixos
<adamt> sphalerite: We have a build our gigantic derivation on a gitlab ci runner, and nix copy'ed the output to a dir served by nginx. Then we try to get johanot's laptop to use the cache, which fails in repeatedly weird ways, but does work for some paths.
<adamt> s/a//
<srhb> adamt: Can you try clearing the cache first and see if it's still weird?
<srhb> Negative cache hits last one hour by default.
<srhb> If that explains anything :)
<adamt> srhb: It is. But I think the next step is reproducing with something less than all software required for 43 hosts.
<sphalerite> does work for some paths? Yeah definitely sounds like a meta-cache issue
<adamt> srhb: What cache?
<srhb> adamt: ~/.cache/nix/binary-cache* as above :)
<adamt> srhb: Local on the machine needing the derivation?
<sphalerite> ~/.cache/nix/binary-cache-v5.sqlite
<sphalerite> both for root and for your user
<srhb> adamt: Yes, locally on the machine.
<cransom> when in doubt wipe, i wipe all my ~/.cache/nix directories completely
<sphalerite> actually the more elegant way is probably passing --narinfo-cache-negative-ttl 1
<srhb> or use --option narinfo-cache-negative-ttl 0
<sphalerite> but hey, that's a new option
<srhb> yeah...
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/29660a20855 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<sphalerite> srhb: good teamwork! :D
<srhb> sphalerite: :3
<adamt> srhb: Ah, that's far up. We'll try clearing that.
<adamt> Another question; I got the impression yesterday that to sign build outputs, it should be enough to set secret-key-files, but it doesn't seem like that causes nix to sign things on its own. Is `nix sign-paths` required as well?
<srhb> adamt: The daemon will sign the things it builds iirc if you have the secret key file set.
<srhb> If that's not the case, then you'll have to use sign-paths
<srhb> Actually, I probably need to look up the docs for this...
<adamt> srhb: The client just refuses to trust the few files it manages to download, despite having the public key.
<sphalerite> adamt: it'll sign newly built paths, but not existing ones
<srhb> adamt: Check the narinfo with curl?
<srhb> adamt: Specifically Sig: ...
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fApos
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to release-18.09: https://git.io/fApoR
<{^_^}> [nixpkgs] @Ericson2314 pushed 79 commits to staging: https://git.io/fApoz
<{^_^}> [nixpkgs] @Ericson2314 pushed 19 commits to staging-18.09: https://git.io/fApoV
<adamt> Nothing is signed it seems. I think this is a problem for future adam to debug tomorrow.
<srhb> adamt: Yeah, just put it on future adam's shoulders, that's fair. :P
<betaboon> is anyone using the current yarn2nix to build angular-js packages ?
<teto> is there a "nix shell" in the works to replace nix-shell ? if yes I would like to file a few requests :)
<symphorien> not yes, as far as I know
<symphorien> *yet
<symphorien> there is nix run, but not for build environments
<{^_^}> [nixpkgs] @romildo opened pull request #47393 → neap: init at 0.7.2 → https://git.io/fApK8
<adamt> I'm tired. Thanks for the help sphalerite and srhb. I'll be sure to pester #nixos again with this.
<sphalerite> teto: you could file an issue about it anyway
adamt has quit [Quit: WeeChat 2.0]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/e163794cded (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johanot has quit [Quit: leaving]
ekleog has joined #nixos
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/e06de91855b (from 23 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
jasongrossman has quit [Remote host closed the connection]
jasongrossman has joined #nixos
<d1rewolf> anyone here using Crossover Office on nixos? I assume you can't just download and install their tarball, right?
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47395 → paxctl: Fix darwin and cross and use for linux cross → https://git.io/fApi7
xok has quit [Ping timeout: 272 seconds]
goibhniu has joined #nixos
kyren has joined #nixos
kyren has left #nixos ["Textual IRC Client: www.textualapp.com"]
kyren has joined #nixos
Twey has quit [Quit: WeeChat 2.1]
Dedalo has joined #nixos
<d1rewolf> anyone been able to get office365 working with wine on nixos?
b1000101 has joined #nixos
ThatDocsLady has quit [Quit: Leaving]
<b1000101> Hi there, could someone please tell me what needs to be done in order to see a package here https://nixos.org/nixos/packages.html#trezord (i.e. for the user to be able to install the package right away without tweaking). I've successfully got a new version merged to both master and 18.03 branches. Thanks!
<b1000101> The version in the link is 2.0.12, the new/merged version is 2.0.19
<sphalerite> b1000101: just wait
<sphalerite> once the channel advances it iwll update
<b1000101> sphalerite how long does it take? I was looking here https://hydra.nixos.org/jobset/nixos/release-18.03 and thought it got built so it should be available
jasongrossman has quit [Ping timeout: 260 seconds]
<srhb> b1000101: See the boxes here for an explanation of how and when release-18.03 is promoted to nixos-18.03 http://howoldis.herokuapp.com/
<{^_^}> [nixpkgs] @fpletz pushed to master « shairport-sync: fix pulseaudio support & default arguments »: https://git.io/fApM0
<b1000101> Thanks srhb, you're a gem!
<srhb> yay, gem :)
<sphalerite> isn't that the ruby package manager?
<srhb> sphalerite: >:/
<b1000101> :D not that gem
periklis has quit [Ping timeout: 240 seconds]
<infinisil> b1000101: Shouldn't this have went to 18.09?
<infinisil> If it only went to 18.03 and master, you'll have the 18.09 release which would never have the package
<infinisil> Can also do 18.09 in addition
<Taneb> srhb: ooh, neat. I'm gonna bookmark that
<srhb> infinisil: I backported it master -> release-18.09
<manveru> why isn't stuff like allowed-uris allowed in nix.conf...
<infinisil> Ah alright
vaibhavsagar__ has quit [Ping timeout: 260 seconds]
<infinisil> manveru: Huh? Does it not work for you?
mayhewluke has quit [Ping timeout: 244 seconds]
<manveru> i get this: `warning: unknown setting 'restrict-eval'`
<manveru> i have `restrict-eval = true` for that one
<srhb> manveru: Sounds like an old nix?
<manveru> must be some daemon mismatch, yeah
<manveru> `nix (Nix) 2.1pre6338_45bcf541` is what nix --version says though
<srhb> manveru: Not the daemon though.
<infinisil> Nix should really have daemon-client version matching and fail if they don't
<manveru> i have `nix.package = pkgs.nixUnstable`
<manveru> shouldn't that be enough?
<srhb> infinisil: It does, iirc. It's just quite lenient.
<srhb> manveru: On which nixpkgs version?
<infinisil> Well it's obviously not strict enough if stuff like this happens
<manveru> 7c826371c492d673eab5a20b185e4ac312deeae5
mayhewluke has joined #nixos
<manveru> also got `error: unknown serve command 9`
<manveru> hmm
<srhb> manveru: Yes, that should be enough..
simukis has joined #nixos
<manveru> service is `/nix/store/gfd3lq0fg9hnqbi77lp13vvwbhjd86h8-nix-2.1pre6338_45bcf541/bin/nix-daemon`
<manveru> i have the same nix version across all machines, afaict
<{^_^}> [nixpkgs] @rycee opened pull request #47396 → Backport the noti package to 18.09 → https://git.io/fApyL
Czen has quit [Remote host closed the connection]
Czen has joined #nixos
patrl has joined #nixos
jedahan has joined #nixos
<sphalerite> infinisil: won't be much fun when suddenly you can't deploy your nixops hosts anymore because they're running an older nix :p
<manveru> something is still referencing nix 2.0.4 on that system
<Mic92> aminb: time
<{^_^}> [nixpkgs] @Mic92 merged pull request #47262 → alloy: add alloy5 and take maintainership → https://git.io/fAFyk
<{^_^}> [nixpkgs] @Mic92 pushed commit from @aminb to master « alloy: add alloy5 and take maintainership (#47262) »: https://git.io/fAp9k
Synthetica has quit [Quit: Connection closed for inactivity]
jperras has quit [Quit: WeeChat 2.2]
vaibhavsagar has joined #nixos
<manveru> ah, damn nixops...
zgrep has quit [Quit: This is me *really* leaving.]
zgrep has joined #nixos
Kelppo has quit []
zgrep has quit [Client Quit]
zgrep has joined #nixos
Thra11 has joined #nixos
hlolli has joined #nixos
Ariakenom has quit [Ping timeout: 240 seconds]
vaibhavsagar__ has joined #nixos
<hlolli> Shouldn't adding "docker" to users.extraUsers.[myusername].extraGroups be enough to be permitted to run a docker image? I'm getting permission denied errors, I've tried restarting the systemd service.
vaibhavsagar has quit [Ping timeout: 246 seconds]
<gchristensen> you need to log out and log back in for your users' groups to be updated
<andi-> hlolli: did you login again since adding it?
<hlolli> ah! No, didn't do that
<andi-> `newgrp docker`
<hlolli> newbish question, how do you log out without restarting, I never ever log out :P
georges-duperon has joined #nixos
<gchristensen> wow, I didn't know about newgrp!
<hlolli> I did new group, the zsh shell did some strange stuff
hlolli has quit [Remote host closed the connection]
hlolli has joined #nixos
<hlolli> logout in i3 Mod+shift+e and now I can run docker, thanks!
mojjoo has quit [Ping timeout: 260 seconds]
b1000101 has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @bkchr opened pull request #47397 → vscode: 1.26.1 -> 1.27.2 → https://git.io/fAp7i
<infinisil> The systemd way of logging out is: get your session id with `loginctl list-sessions`
<infinisil> Then terminate it with `loginctl terminate-session <session id>`
<hlolli> loginctl, wow, there's so much to linux I have no clue about.
<buckley310> welcome to the brave new world of systemd ^_^
tg has quit [Excess Flood]
tg has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #47396 → Backport the noti package to 18.09 → https://git.io/fApyL
<{^_^}> [nixpkgs] @xeji pushed 4 commits to release-18.09: https://git.io/fApdL
stanibanani has joined #nixos
Ariakenom has joined #nixos
jav has joined #nixos
<jav> Anyone use autojump here? The package used to have a autojump-share script which would output the install location, so one can source the init script from .bashrc like this: . $(autojump-share)/autojump.bash ... the latest version of the package has been reworked and does not have this anymore. How am I supposed to source the autojump script - I'm not sure I understand what the NixOS approach to this is.
vandenoever has joined #nixos
<sphalerite> jav: I don't use it myself, but by the looks of it using `. ~/.nix-profile/etc/profile.d/autojump.sh` instead should work if you install it via nix-env, otherwise `. /run/current-system/sw/etc/profile.d/autojump.sh`
<jav> sphalerite: thank you! I did install it as a system package and it does not appear in /run/current-system/sw/etc/profile.d
sigmundv has quit [Ping timeout: 252 seconds]
<exarkun1> how do I use a variable value on the left hand side of =?
<jav> or is environment.systemPackages = [ ... ] not the right place to put it? I kinda prefer having everything in configuration.nix and don't really install stuff via nix-env
Jetien has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @Ericson2314 pushed 3 commits to staging: https://git.io/fApbi
<symphorien> jav: http://xelpaste.net/jiVO50
<symphorien> there must be an equivalent for any shell
<dtz[m]> can probably install with users.users.will.packages = [ ... ];
<dtz[m]> (with appropriate username instead of 'will' :))
<jav> symphorien: aw, interesting - thank you, I'll look into that for bash
szicari has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47399 → paxctl: Fix darwin and cross and use for linux cross for 18.09 → https://git.io/fApbp
<infinisil> exarkun1: Not sure what you mean?
<infinisil> s/?//
<exarkun1> nginx virtualHost configuration is a set with keys giving host names and values giving config. what if I want to read the hostname from a file?
stanibanani has left #nixos [#nixos]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/e06de91855b (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
wucke13 has joined #nixos
<infinisil> > deepEval { foo.${"some" + "computed value"} = 10; }
<{^_^}> { foo = { "somecomputed value" = 10; }; }
<infinisil> exarkun1: ^
<wucke13> Hello. Has someone here tinkered arround with NixOS on arm? My serial console stops doing anything after `Starting kernel ...`. Is there a way to keep the console working?
betaboon has quit [Quit: WeeChat 2.0]
<sphalerite> wucke13: you probably need to pass the right console= parameter. Not sure what that is, I believe it depends on your device
<exarkun1> infinisil: thanks
mbrgm has joined #nixos
<wucke13> How do I doo that? I did not see an obvious way to modify the kernel line of uboot?
<Ralith> anyone else having issues with steam's system tray icon not being found?
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jedahan has joined #nixos
jedahan has quit [Client Quit]
jedahan has joined #nixos
jedahan has quit [Client Quit]
jav has quit [Quit: Leaving]
jedahan has joined #nixos
jedahan has quit [Client Quit]
<goibhniu> Ralith: are you using KDE/plasma?
jedahan has joined #nixos
jedahan has quit [Client Quit]
<goibhniu> if so, `kbuildsycoca5` may help
jedahan has joined #nixos
jedahan has quit [Client Quit]
<Ralith> nope
jD91mZM2 has joined #nixos
<Ralith> I'm just running i3
<{^_^}> [nixpkgs] @matthewbauer merged pull request #45934 → bluejeans-gui: init at 1.6.39 → https://git.io/fAlBd
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fAppO
jperras has joined #nixos
<symphorien> I am building something with pandoc as nativeBuildInput. It pulls ghc-doc and all sorts of doc outputs. isn't it wasteful ?
<samueldr> wucke13: when using the usual nixos images, the /boot partition, the smaller FAT32 partition, will have a extlinux/extlinux.conf file generated by nixos; you can modify the options here and they'll stick until a rebuild
<samueldr> for the rebuild to have the parameters you need, you would add them to the configuration
<wucke13> samueldr: Thanks!
<infinisil> symphorien: Did you use pkgs.pandoc?
<symphorien> nativeBuildInputs = [ pandoc ] yes
<infinisil> Hmm, that's a bit odd
<infinisil> > viewSource pandoc
<{^_^}> "all-packages.nix:4503 pandoc = haskell.lib.overrideCabal (haskell.lib.justStaticExecutables haskellPackages.pandoc) (drv: {"
vaibhavsagar has joined #nixos
<infinisil> The justStaticExecutables should prevent this I thought
<tilpner> How does pandoc manage to depend on gcc, lua, and ghc...
orivej has joined #nixos
Kim has quit [Quit: WeeChat 2.0]
vaibhavsagar__ has quit [Ping timeout: 252 seconds]
Kim has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47400 → paxctl: Fix darwin and cross without mass-rebuild → https://git.io/fAphr
<infinisil> tilpner: Apparently it supports custom filter written in lua
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47401 → Paxctl darwin no mass rebuild → https://git.io/fAphM
<tilpner> Okay, lua is fine, but what about the others? Just lack of stripping?
* tilpner why-depends
<tilpner> Ah, the lib directory depends on both
<{^_^}> [nixpkgs] @dtzWill opened pull request #47402 → nheko: 0.6.0 -> 0.6.1 → https://git.io/fAphj
<infinisil> There shouldn't be a lib directory in pkgs.pandoc
<wucke13> samueldr: In the extlinux conf a lot of consoles is enable, but the console is silent on boot anyways? (`console=ttyS0,115200n8 console=ttyAMA0,115200n8 console=tty0`)
<tilpner> infinisil - Right, I misinterpretred the output
<samueldr> wucke13: first, just to help guide: which ARM platform?
philippD has joined #nixos
<samueldr> though, what I think is happening, but am unsure how to confirm: the boot log won't show up on all of them, there is no service that outputs it to all console arguments, it default to the first (available?)
<samueldr> I recall something along the lines
<samueldr> though, once it is booted, it should give you a console on serial
<wucke13> samueldr: Raspberry Pi 3 B v1.2
<samueldr> okay
<samueldr> this one is pretty well supported
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/e5eabccb00c (from 79 minutes ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<samueldr> though I haven't verified how it acts with the serial console since hdmi out works right enough
<{^_^}> [nixpkgs] @Profpatsch opened pull request #47403 → include-what-you-use: 0.8 -> 0.10 → https://git.io/fApji
Kim has quit [Quit: WeeChat 2.0]
<samueldr> also note that the first boot will be MUCH longer as it resizes the partition to fit the whole media, and it also does house-keeping within the image for the nix store
<wucke13> I added ttyS1 as the wiki states that might help. However, no bootlog
<Dezgeg> raspberry probably needs enable_uart=1 in config.txt
<samueldr> wucke13: you do have u-boot serial output or not?
vaibhavsagar__ has joined #nixos
<wucke13> samueldr: yes, I do have uboot out. Which console should be the correct one on the pi 3 B?
ixxie has joined #nixos
<Dezgeg> hm, if u-boot gives output it's not config.txt probably then...
<samueldr> :)
<samueldr> wucke13: if you were to try hdmi out, at least for my setup, I have no stage-1 output at all, so I had/have to give it time to do all the misc things before getting a console
vaibhavsagar has quit [Ping timeout: 252 seconds]
<wucke13> Dezgeg: samueldr I reflashed the sd. config.txt says uart1=1. In extlinux ttyS0, ttyAMA0 and tty0 are enable. Am I guessing right that I should get no bootlog but a login console after a few minutes when booting now?
<Dezgeg> maybe raspi3 was weird and needed ttyS1 instead of ttyS1
<Dezgeg> er, ttyS1 instead of ttyS0
<ixxie> what the difference between gnupg and gnupg1? The description mentions 'symbolic links for gpg and gpgv' but I don't know what that means
<samueldr> (I should probably write an SD card with the image and test it in a zero-knowledge fashion to verify what bumps there may be on the road)
vaibhavsagar has joined #nixos
vaibhavsagar__ has quit [Ping timeout: 272 seconds]
jD91mZM2 has quit [Quit: WeeChat 2.0]
<exarkun1> ixxie: my guess is gnupg is gnupg2 which is incompatible in various ways with gnupg1
<wucke13> I added ttyS1 to the list. It is still booting since 4 minutes or so. I will report back later :) So far, many thanks samueldr and especially Dezgeg for putting effort into supporting arm boards!
rtjure has quit [Ping timeout: 246 seconds]
<ixxie> exarkun1: they are both 2.1 but the latter has some extra symlinks; just trying to understand what for
hlolli has quit [Remote host closed the connection]
trcc has joined #nixos
rtjure has joined #nixos
<exarkun1> okay, no idea
<rycee[m]> My one wish for Christmas is to have this fixed https://github.com/NixOS/nixpkgs/issues/17943 😀
<{^_^}> #17943 (by ttuegel, 2 years ago, open): dbus-update-activation-environment is broken
<philippD> I always forget how to create open a nix-shell with for a specific ghc version with some packages I want to use in ghci. Is there a good website I could bookmark for that?
<philippD> s/open //
<__monty__> philippD: I think there's something in the nixpkgs manual for that? You could bookmark the appropriate section.
<philippD> __monty__ Ah, yes. Thank you. I was just looking at the Nix language manual
IRCsum has quit [Ping timeout: 272 seconds]
<gchristensen> if you pass buildEnv a single path it will optimize itself and create symlinks to directories, instead of making a directory and a symlink for every file inside. is there something like buildEnv which doesn't make that optimisation?
<tilpner> Did you try symlinkJoin? Not sure if lndir does it
<gchristensen> ohh!
<gchristensen> you're the best!
<infinisil> cransom: Works in the version I have :)
<infinisil> Almost master that is
<cransom> i didn't think iwas that far off master, but lets update and see.
<ixxie> so... secret management & nixops: wat?
<ixxie> well I guess I don't even know how to properly do it with NixOS
<ixxie> I mean its no good putting them in the store
Kim has joined #nixos
<ixxie> right?
<infinisil> If nobody has access to your machine then it should be alright
<gchristensen> I like deployment.keys
<infinisil> Possibly also encrypt it
<ixxie> whats that gchristensen ?
<samueldr> or don't have secrets *ducks*
<infinisil> Ah right, nixops has that
sir_guy_carleton has joined #nixos
<gchristensen> ixxie: it is nixops' method of copying secrets to a host without using the nix store
<elvishjerricco> gchristensen: deployment.keys could do with some improvements though; preferably something like the `static` thing we do for `/etc`, so that keys can be removed automatically when they're no longer in the deployment.
<elvishjerricco> or at least become dead symlinks
<gchristensen> for sure
semihonest has quit [Ping timeout: 240 seconds]
<ixxie> but the deployer becomes a single point of failure still
<ixxie> everything is there
<elvishjerricco> I've been thinking about using user-owned chroot stores for key management
wucke13 has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @screendriver opened pull request #47405 → yarn: 1.9.4 -> 1.10.1 → https://git.io/fAhUV
<gchristensen> ixxie: what is your specific concern with that?
<elvishjerricco> Create an /etc-like script with Nix and put keys in a store that only the relevant user can read.
wucke13 has joined #nixos
<ixxie> gchristensen: its not so much a specific fear as vague paranoia due to my lack of knowledge in security areas xD
<gchristensen> well, yeah, it is a very valuable basket you'll hav ecreated
<ixxie> but I started to realize - if I deploy a cluster from my laptop.... they own my laptop, they own the cluster
<gchristensen> pretty much always true
<ixxie> I guess so
georges-duperon has quit [Ping timeout: 252 seconds]
<elvishjerricco> ixxie: Not if the secrets on the laptop are encrypted
<elvishjerricco> That's one reason I really wish nixops state files could be encrypted
<elvishjerricco> But there are fuse filesystems that can let you encrypt anything you want pretty easily :)
<gchristensen> lnl likes Vault for secrets, it'd be interesting to explore nixos + nixops + vault
<{^_^}> [nix] @edolstra pushed 3 commits to master: https://git.io/fAhUF
IRCsum has joined #nixos
<elvishjerricco> I just use pass and use nix-plugins to invoke it at eval-time for deployment.keys
<ixxie> looks like a lot of the hashicorp stack could be complementry to our ecosystem
<ixxie> you mentioned terraform
<LnL> gchristensen: yes!
<ixxie> LnL: have you setup vault with NixOps?
<ixxie> elvishjerricco: yeah need to look into encryption solutions really
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47400 → paxctl: Fix darwin and cross without mass-rebuild → https://git.io/fAphr
<{^_^}> [nixpkgs] @Ericson2314 pushed 3 commits to master: https://git.io/fAhTu
mayhewluke has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47401 → paxctl: Fix darwin and cross without mass-rebuild for 18.09 → https://git.io/fAphM
<{^_^}> [nixpkgs] @Ericson2314 pushed 3 commits to release-18.09: https://git.io/fAhTa
<cransom> i don't use nixops, but i did bogart the /run/keys for my own service that on deploy, builds a KMS encrypted bundle in the store where it sits until the machine runs and a start up service asks kms to decrypt the bundle and sticks it in /run/keys.
<gchristensen> nice :D
<{^_^}> [nixpkgs] @Ericson2314 pushed 8 commits to staging: https://git.io/fAhTd
<LnL> ixxie: no, but I think the vault approach is much better then whatever supporting secret files in nix would be
<{^_^}> [nixpkgs] @Ericson2314 pushed 8 commits to staging-18.09: https://git.io/fAhTA
mayhewluke has joined #nixos
<gchristensen> +1
<ixxie> makes sense of course
trcc has quit [Remote host closed the connection]
<vaibhavsagar> is there a way to get Nix 2.1 on 18.03?
<vaibhavsagar> like there was nixUnstable for 17.09?
<ixxie> still nixUnstable?
<LnL> treating secrets as something persistent inherently means that you loose access control
Ariakenom_ has joined #nixos
<elvishjerricco> ixxie: nixUnstable points to some prerelease, not the actual release.
<elvishjerricco> vaibhavsagar: I just import a nixpkgs-unstable checkout and set `nix.package = unstable.nix`
<elvishjerricco> Works fine
<LnL> and not knowing what might be compromised is worse then a secret that got compromised
<vaibhavsagar> elvishjerricco: that makes sense, but I would still like it to be included in 18.03
<ixxie> LnL so how does vault make it better?
<elvishjerricco> vaibhavsagar: Agreed
<vaibhavsagar> ideally something like nixStable21
trcc has joined #nixos
<vaibhavsagar> LnL: so the keys live on some remote store and we access it with some other secret that can be revoked?
Ariakenom_ has quit [Ping timeout: 252 seconds]
<elvishjerricco> Doesn't really sound inherently more secure. If that machine is compromised, the attacker still gets the same level of access. Except now you've got this single Vault that, if compromised, compromises everything
<LnL> vault can't read it's own secrets and the code is reviewed by security people every nth release
<wucke13> Dezgeg: samueldr I did not get an login until now. I think this way does not work. Any thoughts?
<{^_^}> [nixpkgs] @coreyoconnor opened pull request #47406 → vlc: 3.0.3 -> 3.0.4 → https://git.io/fAhIc
<{^_^}> [nixpkgs] @kalbasit closed pull request #46864 → terraform: update all providers and move nixos provider under terraform.withPlugins → https://git.io/fAS0F
<elvishjerricco> LnL: How does Vault have no access if it's the one doing all the issuing?
<LnL> and it encourages accessing secrets dynamically making things like rotating secrets actually work
<ixxie> it could give the keys back to the owner through its API
nDuff has joined #nixos
trcc has left #nixos [#nixos]
<elvishjerricco> ixxie: What do you mean by that?
SitiSchu has joined #nixos
<ixxie> I don't know for sure, I am just speculating - but if it encrypts something and knows microservice X owns it, it can send the private key to X through a networking service like Consul and then X can open the resource but Vault can't
<LnL> if you restart vault you can't access anything until it's unlocked by an admin
<elvishjerricco> LnL: But once it's unlocked, everything is for grabs?
<elvishjerricco> If so, that's a pretty massive single point of failure. Maybe the encouraged rotation makes up for that though
<{^_^}> [nixpkgs] @kalbasit opened pull request #47407 → terraform: update all providers and move nixos provider under terraform.withPlugins → https://git.io/fAhIQ
<nDuff> Do we have tools for fixing up .la or .pc files that don't include -L directives for the directories from which library dependencies were imported? (For dynamically-linked libraries, the rpath links us to the right version of their dependencies; for statically-linked libraries, if we don't have an entry in the pkgtool or libtool metadata, the dependency seems to just get lost).
<elvishjerricco> ixxie: If the vault is compromised, then sending a private key does no good, since the attacker can just retain the key
<LnL> with root on the host accessed secrets can probably be retrieved
<LnL> but that's no different from any other approach
georges-duperon has joined #nixos
<ixxie> does NixOps encrypt the closure it sends?
<elvishjerricco> LnL: The point is that it means only one machine has to be compromised to get *everything*, whereas otherwise you'd have to compromise *all* machines, which is presumably harder
<gchristensen> it sends it over SSH, does that count?
Anton-Latukha has quit [Quit: Leaving.]
<elvishjerricco> I'd hope SSH counts :)
<ixxie> of course xD
* ixxie facepalms
<{^_^}> [nixpkgs] @bhipple opened pull request #47408 → abi-compliance-checker: init at 2.3 → https://git.io/fAhLR
<LnL> elvishjerricco: that's not true, having secrets spread across machines means the weakest link is a vulnerability
<elvishjerricco> LnL: True, but the damage is scoped to only what that machine has access to. And Vault doesn't prevent that; if the weakest link is compromised, the attacker has all the same access as without Vault.
<ixxie> LnL I am not sure but I would guess it depends on the topology of such a network
<ixxie> I imagine you can design a network topology which improves security
<ixxie> but this is just a guess
SitiSchu has quit [Quit: Leaving]
<ixxie> anyhoo
<ixxie> bedtime
<ixxie> thanks for all the wisdom folks
<ixxie> lets see if I can put it to practice
<elvishjerricco> LnL: Hardening Vault doesn't make it invincible. I'm just saying it's adding a single point of failure where there previously may not have been one. But again, I'm willing to concede that key rotation might make up for it, especially since it's probably easy to make Vault insanely hard to penetrate.
<ixxie> :))
astronavt has quit [Ping timeout: 244 seconds]
jperras_ has joined #nixos
jperras has quit [Ping timeout: 252 seconds]
<LnL> exactly
<{^_^}> [nixpkgs] @xeji merged pull request #47388 → coq: 8.8.1 -> 8.8.2 → https://git.io/fAxhD
<{^_^}> [nixpkgs] @xeji pushed commit from @vbgl to master « coq: 8.8.1 -> 8.8.2 (#47388) »: https://git.io/fAht4
<LnL> the safest way to deal with secrets is /dev/null, but that's not particularly useful
ixxie has quit [Ping timeout: 252 seconds]
jperras has joined #nixos
jperras_ has quit [Ping timeout: 252 seconds]
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/e5eabccb00c (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
IRCsum has quit [Ping timeout: 244 seconds]
jperras has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @flokli opened pull request #47409 → golden-cheetah: add desktop item and icon → https://git.io/fAhqA
jperras has joined #nixos
bart- has quit [Ping timeout: 244 seconds]
klntsky has quit [Ping timeout: 256 seconds]
jperras has quit [Client Quit]
<wucke13> For future reference: the serial port of an RPi 3 B v1.2 might be ttyS1.
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
doyougnu has joined #nixos
phreedom_ has quit [Ping timeout: 256 seconds]
klntsky has joined #nixos
jperras has joined #nixos
<azazel> wucke13: it's surprising?
alex`` has quit [Quit: WeeChat 2.2]
Xiro` has quit [Read error: Connection reset by peer]
Xiro` has joined #nixos
<wucke13> azazel: Yes, as `console=ttyS0,115200n8 console=ttyS1,115200n8 console=tty0` did neither put out bootlog (expected) nor give me a login shell, while `console=ttyS1,115200n8` does both.
yesbox has quit [Quit: Alwyzon, cloud-powered IRC client and bouncer - http://alwyzon.com/]
wpcarro has joined #nixos
<wucke13> I would have expected the first one to not print the bootlog but still offer a login shell on the serial interface once the boot is done, which was not the case.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4586ff73955 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
worldofpeace has quit [Quit: worldofpeace]
phreedom has joined #nixos
jackjennings has joined #nixos
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
simukis has quit [Quit: simukis]
<jackjennings> Does anyone know a way to stop npm 6+ from trying to do a security audit when using node2nix to install node packages?
<{^_^}> [nixpkgs] @markuskowa opened pull request #47410 → openmolcas: 20180529 -> 18.09 → https://git.io/fAhsv
<jackjennings> A lot of working parts to that question…
<{^_^}> [nixpkgs] @xeji merged pull request #47406 → vlc: 3.0.3 -> 3.0.4 → https://git.io/fAhIc
<{^_^}> [nixpkgs] @xeji pushed commit from @coreyoconnor to master « vlc: 3.0.3 -> 3.0.4 (#47406) »: https://git.io/fAhsP
wpcarro has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @xeji pushed commit from @coreyoconnor to release-18.09 « vlc: 3.0.3 -> 3.0.4 (#47406) »: https://git.io/fAhGE
graphene has quit [Remote host closed the connection]
timon37 has joined #nixos
graphene has joined #nixos
<Ralith> npm's intense dedication to undermining reproducibility never stops being impressive
Ridout has joined #nixos
<hodapp> lol
jperras has quit [Read error: Connection reset by peer]
jperras has joined #nixos
mizu_no_oto has joined #nixos
Lisanna has joined #nixos
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/d26e830997d (from 28 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
Lisanna has quit [Client Quit]
__monty__ has quit [Quit: leaving]
<gchristensen> ok ok here comes something cool
<{^_^}> [nixpkgs] @grahamc opened pull request #47411 → Multi-Layered Docker Images → https://git.io/fAhnh
<gchristensen> manveru, vdemeester ^
doyougnu has quit [Ping timeout: 252 seconds]
mbrgm has quit [Ping timeout: 252 seconds]
mbrgm has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/23900febe79 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
sheyll has joined #nixos
<LnL> I should try that out for my image
<gchristensen> please do
<gchristensen> I tested it on a very complicated image, and some simple ones but I'm just one person
elevator_1 has joined #nixos
wucke13 has quit [Quit: WeeChat 2.2]
<manveru> gchristensen: it's odd that when i have nixUnstable in my image, it makes a layer with over 220MB and pushed it again...
<gchristensen> can you send me a reproducible sample?
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
Thra11 has quit [Ping timeout: 246 seconds]
<manveru> i'll see if it happens more than once
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
Ariakenom has quit [Quit: Leaving]
<gchristensen> ok, unfortunately there isn't much I can do without being able to reproduce
Khetzal has quit [Remote host closed the connection]
<manveru> well, i can reproduce it :)
<manveru> what's the latest commit btw?
<manveru> thanks, will try with that too
<{^_^}> [nixpkgs] @dtzWill merged pull request #47402 → nheko: 0.6.0 -> 0.6.1 → https://git.io/fAphj
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fAhCy
<manveru> just takes ages for the 200mb to upload :(
vaibhavsagar has quit [Ping timeout: 252 seconds]
<manveru> ah, just inspected the layer, it contains my app as well as nixUnstable
<manveru> that explains it
erasmas has quit [Quit: leaving]
<gchristensen> is it layer #24?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/24 (by antono, 6 years ago, merged): Fix ikarus download url (ikarus-scheme.org is down)
<manveru> how should i number them?
sheyll has quit [Quit: El Psy Congroo.]
<manveru> damn, 6 years for a PR :D
<gchristensen> it'll print layer numbers as they compress
<samueldr> no, the bot reacted to a line number :)
<samueldr> layer number*
<manveru> lol
<manveru> ok
<gchristensen> manveru: pass maxLayers = 125 and see how that changes your layers
<manveru> in the manifest it's layer 2
<manveru> if they're ordered
<manveru> let's hope quay can handle 125 layers
<schmittlauch[m]> What are useful tools to inspect the packages installed on a system: list files, show dependency trees, find packages providing certain commands?
<{^_^}> [nix] @dtzWill opened pull request #2454 → bump base nixpkgs used by default 18.03 -> 18.09 → https://git.io/fAhW3
<manveru> gchristensen: that's like turning docker registry into a nix store :)
jasongrossman has joined #nixos
<gchristensen> manveru: sure, why not? :)
<manveru> not that i'll complain :D
brejoc has quit [Ping timeout: 240 seconds]
jasongrossman has quit [Client Quit]
georges-duperon has quit [Ping timeout: 252 seconds]
<gchristensen> the more layers the faster it uploads and downloads
<sphalerite> onions have layers, ogres have layers. Images have layers too!
<schmittlauch[m]> (if someone knows Gentoo: I'm looking for something like equery)
<sphalerite> schmittlauch[m]: ls, find and tree are good for listing package contents ;)
<sphalerite> schmittlauch[m]: for dependencies, nix-store -q can do lots of things, have a look at the manpage
<schmittlauch[m]> …
<schmittlauch[m]> sphalerite: will do, thanks
<sphalerite> schmittlauch[m]: that was a serious answer, since each package has its own path it's easy to find out what each package contians
nDuff has quit [Quit: zzz]
<sphalerite> and finally for finding packages providing certain commands, nix-index and its nix-locate command. Currently still broken iirc but should hopefully start workign again soon
<schmittlauch[m]> sphalerite: I know, but still the long hashes at the start will take me a while to get used to.
<sphalerite> also available via infinisil's bot
<sphalerite> ,locate nethack
<{^_^}> Found in packages: nethack, nethack-x11
<manveru> gchristensen: i guess that's one way... so what's the limit of 42 about?
<sphalerite> right time for me to sleep, gnight folks!
timon37 has quit []
<schmittlauch[m]> `nix search` sometimes behaves a bit weird, but so far I'll use nox
astronavt has joined #nixos
<gchristensen> manveru: AUFS used to hard-code a max of 42
<schmittlauch[m]> seems like the nix 2.0 UX is still heavy WIP
<manveru> until when?
<gchristensen> I don't remember, maybe comment that in there as a question to look in to
<manveru> either way it'd be nice to split the layers a bit more based on size as well, no clue how that'd work though :|
jackjennings has left #nixos [#nixos]
<gchristensen> well and then you make the chance of a cache hit MUCH lower
sigmundv has joined #nixos
<gchristensen> and you enter "Sufficiently magic" territory
<manveru> sure, but i'd rather have a layer of like 150MB that never changes over one with 150KB :)
<manveru> anyway, i think i'll use the fromImage approach and use your function for the base image
<gchristensen> you can do that now with buildImage
<manveru> yeah
<manveru> that should give me the best of both worlds
jasongrossman has joined #nixos
<{^_^}> [nixpkgs] @Synthetica9 opened pull request #47412 → vivaldi: 1.15.1147.64-1 -> 2.0.1309.29-2 → https://git.io/fAhlu
<manveru> that doesn't seem to work either
<manveru> lemme try making a small example
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/d26e830997d (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
boomshroom has joined #nixos
<boomshroom> Hello! Any Rust developpers in here?
<boomshroom> I've been having trouble recently with rust-lld having trouble finding libstdc++.so.6
<boomshroom> `error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory`
<boomshroom> Strangely, I had the same issue using the mozilla-nixpkgs and rustup.
<manveru> gchristensen: fails like `standard_init_linux.go:190: exec user process caused "no such file or directory"`
<boomshroom> On an unrelated note, any chance of getting nwjs-sdk into nixpkgs? If so, then I can probably make a derivation for a CrossCode modding environment without a custom nix derivation.
patrl has quit [Ping timeout: 250 seconds]
<gchristensen> manveru: huh
<gchristensen> but why :P
<manveru> indeed :)
doyougnu has joined #nixos
<boomshroom> It seems to only happen when compiling for a riscv target.
<manveru> gchristensen: it's almost as if it's referencing the wrong layer as base?
<gchristensen> hmmm manveru buildImage seems to make invalid assumptions
<manveru> that previous steps squash everything?
<rawtaz> hey, project managers of Nix[OS]
<manveru> oh well, i'll leave you to it, gonna continue using layeredImage for now and just up the layer count
<gchristensen> hello rawtaz
<gchristensen> manveru: summary of the bug:
<rawtaz> boomshroom: developer is spelled with one p, not two :)
<rawtaz> just saying so you dont go all your life without knowing :-)
<gchristensen> rawtaz: surely you've made a typo in your life
<rawtaz> of course. so what?
<rawtaz> i do it all the time actually
<rawtaz> often blame the cat, though
<gchristensen> why be so rude to boomshroom for having made a typo?
<rawtaz> gchristensen: in what way was i rude?
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rawtaz> quite on the contrary, i used smileys to signal that i didnt mean it in a bad way
mayhewluke has quit [Ping timeout: 240 seconds]
<gchristensen> ah, ok :)
mayhewluke has joined #nixos
sigmundv has quit [Ping timeout: 260 seconds]
Dedalo has joined #nixos
<rawtaz> boomshroom: sorry if i offended you, didnt mean to
<gchristensen> manveru: from the spec, "An optional Parent field references the imageID of the parent image. This parent must be part of the same manifest.json file."
<manveru> yeah
graphene has quit [Remote host closed the connection]
<manveru> also i think it's missing in `docker history`
sigmundv has joined #nixos
<gchristensen> manveru: well so the bug is buildImage requires it, and the spec doesn't
<manveru> but parent doesn't really make sense with your approach
graphene has joined #nixos
jperras has quit [Ping timeout: 244 seconds]
<manveru> it'd be cool to have the contained packages listed there though :)
<gchristensen> agreed! I tried to but it was very annoying
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen> ok so `parent` is annoying, too
<gchristensen> manveru: well so my solution for now is I don't say you can use it with buildImage :X anymore.