samueldr changed the topic of #nixos to: NixCon 2018 - 25-27 Oct In London https://nixcon2018.org/ || NixOS 18.09 released https://discourse.nixos.org/t/1076 || 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
<tbenst> and beautiful, it worked :)
<{^_^}> [nixpkgs] @peterhoeg merged pull request #48630 → home-assistant: 0.77.3 -> 0.80.2 → https://git.io/fx2B2
<{^_^}> [nixpkgs] @peterhoeg pushed 4 commits to master: https://git.io/fxwR5
sigmundv__ has joined #nixos
ajs124 has joined #nixos
hamishmack has joined #nixos
orivej has quit [Ping timeout: 244 seconds]
<exarkun1> Anyone have an example of specifying gce instance root disk size with nixops?
<clever> deployment.gce.rootDiskSize
<exarkun1> thanks
zopsi has quit [Quit: Oops]
oldandwise has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fxwEl
<{^_^}> [nixpkgs] @magnetophon opened pull request #48691 → dragonfly-reverb: 0.9.1 -> 0.9.3 → https://git.io/fxwE8
zopsi has joined #nixos
romildo has joined #nixos
romildo has quit [Read error: Connection reset by peer]
romildo_ has joined #nixos
romildo_ has quit [Read error: Connection reset by peer]
romildo__ has joined #nixos
romildo__ has quit [Read error: Connection reset by peer]
<tbenst> clever and gchristensen, thx so much for help! Have a fancy new .nix overlay that seemlessly allows keeping package list consistent across machines, amazing! https://gist.github.com/tbenst/0e2c7bd0219eda87e3915182071f224b
romildo__ has joined #nixos
romildo__ has quit [Read error: Connection reset by peer]
romildo__ has joined #nixos
romildo__ has quit [Read error: Connection reset by peer]
romildo_ has joined #nixos
romildo_ has quit [Read error: Connection reset by peer]
rmra has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @ryantm merged pull request #48690 → haskellPackages.cabal-macosx: Tests don't build with Cabal >= 2.2 → https://git.io/fxw4Z
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fxwuP
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 244 seconds]
lassulus_ is now known as lassulus
astronavt has quit [Read error: Connection reset by peer]
jperras has quit [Quit: WeeChat 2.2]
<fiatjaf> is my user profile a derivation?
silver has quit [Read error: Connection reset by peer]
<clever> fiatjaf: yeah
<clever> fiatjaf: behind the scenes, nix will read ~/.nix-profile/manifest.nix, mutate it (based on your -e, -i and -r flags), then pass the mutated version to https://github.com/NixOS/nix/blob/master/corepkgs/buildenv.nix
<clever> which is used to build a new version of the profile
thc202 has quit [Ping timeout: 245 seconds]
<fiatjaf> and can't I write that derivation manually?
<clever> corepkgs/buildenv.nix was a c++ binary at one time, but now its become a builtin function of nix itself, so it just runs this function in the context of a build sandbox: https://github.com/NixOS/nix/blob/6924bdf2bf8f50f2e6ec5d490571594450aba13a/src/libstore/builtins/buildenv.cc#L149
<clever> fiatjaf: what is your end goal?
<fiatjaf> I mean, I want to have the same environment in multiple machines
<fiatjaf> I get it
<clever> you could also use nix-copy-closure to copy the current profile to another machine, and then run `nix-env --set -i /nix/store/thatpath` to overwrite your current profile with the copy
<fiatjaf> mostly
<clever> creating the derivation itself from nix is a bit more tricky
<oldandwise> can we have the latest haskell 8.4.3 in nixos jellyfish? Or i'm stuck at version 8.2.2
jb55 has quit [Quit: WeeChat 2.2]
<fiatjaf> I can't copy it because systems are different, one is x86_64 and the other i686
<fiatjaf> I guess no one uses i686 anymore, right?
<clever> fiatjaf: then youll want to use the above gist to create a mostly matching profile, that is 32bit (it will default to the same arch as the host nix-env was compiled for)
<fiatjaf> yes, I understand the essence of that
<fiatjaf> thanks
<fiatjaf> oldandwise, I know nothing about nix, but maybe you could 'nix-env -i /nix/store/g5ggsbqkwqiiq3qkpw8ji42axrna117y-ghc-8.4.3/' ?
<fiatjaf> (what would be wrong with that?)
<fiatjaf> I'm using nix the package manager and I love the concept, but it really uses a lot of disk space and sometimes installing a simple tool takes a lot of time. is that normal? would things be better on nixos? what are the advantages of nixos besides the pureness?
<clever> fiatjaf: you can regain some of the space it doesnt really need by running nix-collect-garbage
<clever> without flags, it will only collect the unused things
<oldandwise> fiatjaf: thanks, it works.
drakonis has joined #nixos
<{^_^}> [nixpkgs] @samueldr opened pull request #48692 → Backports misc. fixes for the new ofborg eval time checks → https://git.io/fxwz5
<oldandwise> so, the install was just a bunch of `copying ..`, so it's taking from binary cache, right?
<clever> oldandwise: yep, downloading things from the cache
<oldandwise> clever: but, if i do the same in my 32-bit netbook, it would recompile all from source, if no binary cache matches the checksum..!?
chreekat has joined #nixos
drakonis_ has quit [Ping timeout: 250 seconds]
<clever> oldandwise: the hash in that path is a hash over the build instructions, which includes the arch
<clever> oldandwise: so it will just blindly download the exact build you gave it (a 64bit build) which will then fail to start
<oldandwise> clever: ok. So, each one has his own fork of nixpkgs github, point it as the channel. Do changes in personal repo, and then do pull request? is this the big picture?
mayhewluke has quit [Ping timeout: 250 seconds]
<clever> oldandwise: no need to fork nixpkgs, if you properly use the nix expressions (rather then using the nix-env cmd fiatjaf gave), it will detect what arch its being ran on, and build for that arch (or download a prebuilt one)
<oldandwise> clever: I meant, I want to be able to do my own nix packaging too..
<clever> oldandwise: oh yeah, every contributor will have his own fork, where he makes some changes, and then files a PR
mayhewluke has joined #nixos
<oldandwise> clever: i saw, how it `fixed` or patch small tools (gtest, imgcat), to prepare in the nix way.. so am understanding a little
<fiatjaf> clever, oldandwise, I was trying to 'nix-env -i pandoc' on a 32bit machine today and it was failing. https://hydra.nixos.org/job/nixpkgs/trunk/pandoc.i686-linux was shown good builds for an older version, however
<clever> This job is not a member of the latest evaluation of its jobset. This means it was removed or had an evaluation error.
<clever> fiatjaf: it looks like it was removed from the release.nix, so hydra isnt building it anymore
<fiatjaf> in one of these successful build's page there was the nix store path of the successful build
<clever> fiatjaf: yeah, you can just run nix-env -i on that path if you want to
<fiatjaf> I called 'nix-env -i /nix/store/path'
<fiatjaf> and it worked
<fiatjaf> so what would be the correct thing to do?
<clever> fiatjaf: how exactly did the build fail?
<fiatjaf> I mean, the successful build is pandoc 1.19
<fiatjaf> nix-env -i pandoc tries to build pandoc 1.21
<fiatjaf> I don't remember how it failed, but it was somewhere in the compilation
<clever> try nix-env -iA nixpkgs.pandoc
<clever> which version does it start building?
<fiatjaf> but I'm not in the 32bit machine anymore
<fiatjaf> wait, I'll go there
<clever> the problem might be that -i is picking the wrong package, but its also very likely that hydra is not pre-building 32bit as well
<fiatjaf> replacing old 'pandoc-1.19.2.1'
<fiatjaf> installing 'pandoc-2.2.1'
<fiatjaf> but shouldn't I be able to specify that I want pandoc 1.19 instead of 2.2?
drakonis1 has joined #nixos
<fiatjaf> instead of searching for pandoc in the nixos hydra logs?
<clever> the old version was removed from nixpkgs, so you will need to either choose an older version of nixpkgs, or use an override
drakonis1 has quit [Client Quit]
<fiatjaf> is there an online database of old nixpkgs or something like that?
<fiatjaf> who stores all this prebuilt stuff?
<clever> `nix-env -f https://nixos.org/channels/nixos-18.03/nixexprs.tar.xz -iA pandoc` will install the verison from the 18.03 channel
<fiatjaf> how much disk space does it take?
<fiatjaf> who pays for it?
<clever> everything is stored in a single amazon S3 bucket, several terrabytes
<fiatjaf> :)
Dedalo has joined #nixos
<gchristensen> fiatjaf: some people and some companies.
<samueldr> could I get a printout?
<gchristensen> https://nixos.org/nixos/community.html some companies here ...
* samueldr thinks even the listing would be a tremendous waste of trees
chreekat has quit [Ping timeout: 245 seconds]
<gchristensen> haha
drakonis1 has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/43631e2b01b (from 13 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<{^_^}> [nixpkgs] @samueldr opened pull request #48693 → ruby: 2.5.2 -> 2.5.3 → https://git.io/fxwgj
bollu has quit [Quit: Ping timeout (120 seconds)]
bollu has joined #nixos
oldandwise has quit [Ping timeout: 268 seconds]
oldandwise has joined #nixos
Supersonic has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @dtzWill closed pull request #48217 → libdrm: 2.4.94 -> 2.4.95 → https://git.io/fxlQt
Supersonic has joined #nixos
<{^_^}> [nixpkgs] @dtzWill closed pull request #48218 → [WIP] libdrm: 2.4.94 -> 2.4.95, use meson → https://git.io/fxl7t
sigmundv__ has quit [Ping timeout: 245 seconds]
<jackdk> ,locate beam-migrate
<{^_^}> Found in packages: haskellPackages.beam-migrate
<jackdk> nix-shell -p haskellPackages.beam-migrate --run 'which beam-migrate' => which: no beam-migrate in (...)
<jackdk> wat
<samueldr> without qualifier, ,locate finds all filenames matching
lopsided98 has quit [Ping timeout: 250 seconds]
<samueldr> ,locate
<{^_^}> Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended).
<samueldr> ,locate bin beam-migrate
<{^_^}> Couldn't find in any packages
<jackdk> thanks
<samueldr> the "bin" qualifier is unique to the bot
<samueldr> (I thought it was part of the help text though)
<samueldr> I strongly recommend looking at nix-index / nix-locate to find out which files matched
<samueldr> (nix-locate is part of nix-index)
<{^_^}> [nixpkgs] @dtzWill merged pull request #47612 → google-chrome: use default patchelf, "fixes" nacl_helper crashing. → https://git.io/fxUoZ
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fxwaS
lopsided98 has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chreekat has joined #nixos
PolarIntersect has quit [Ping timeout: 245 seconds]
oldandwise has quit [Quit: leaving]
<{^_^}> [nixpkgs] @eadwu opened pull request #48694 → vscode: 1.28.0 -> 1.28.2 → https://git.io/fxwVV
rprije has quit [Ping timeout: 244 seconds]
rprije has joined #nixos
rprije has quit [Ping timeout: 244 seconds]
rprije has joined #nixos
bohadi has joined #nixos
rprije has quit [Ping timeout: 268 seconds]
dbmikus has joined #nixos
justanotheruser has joined #nixos
jackdk has quit [Ping timeout: 268 seconds]
jackdk has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #48685 → range-v3: 0.3.7 -> 0.4.0 → https://git.io/fxw38
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fxwwf
leotaku has quit [Ping timeout: 250 seconds]
<Arahael> Hmm, the latest nixOS live CD doesn't seem to work terribly well in VMware Fusion.
<Arahael> Hmm, seems to 'work' - but is *extremely* slow.
<Arahael> Hmm, surprisingly high CPU usage with unionfs, though that's now settled down.
justanotheruser has quit [Ping timeout: 252 seconds]
drakonis1 has quit [Quit: WeeChat 2.2]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/8e7dda36a4d (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
chreekat has quit [Ping timeout: 244 seconds]
justanotheruser has joined #nixos
Lisanna has joined #nixos
MP2E has quit [Remote host closed the connection]
Growpotkin has quit [Remote host closed the connection]
<sir_guy_carleton> what's the difference with chroot and chrootenv?
jasongrossman has joined #nixos
fragamus has joined #nixos
<Arahael> statusbot: I don't think chroot does anything special with the environment variables.
<Arahael> statusbot: It's not even a security mechanism.
sb0 has quit [Quit: Leaving]
<Lisanna> can I have the nix sandbox allow network access but still do all its usual filesystem namespace chroot stuff?
<clever> Lisanna: declare what the output hash is and it will do that
<Lisanna> clever I mean, apart from fixed-output derivations x_x
<Lisanna> I mean it's mostly just for experimentation, I guess I could just let the drv fail
<clever> nope
buckley310 has joined #nixos
iyzsong-x has joined #nixos
reinzelmann has joined #nixos
<sir_guy_carleton> is it safe to use previous nixos generations for a difference release?
<kyren> sir_guy_carleton: I'm not sure I understand what you mean, won't rolling back to a previous nixos generation mean that you're now on the previous release?
<sir_guy_carleton> well, i have several release generations
<Unode> hi all, I'm trying a 64bit app in wine64 and keep seeing: /nix/store/g240wk2bcrpdgin3zhd0s5ipwsxzizi3-wine-wow-3.0.2/bin/wine: not an ELF binary... don't know how to load it
<sir_guy_carleton> i have serveral generation for 18.03 not yet gc'ed, and i want to check stuff there
<Unode> I'm using: WINEPREFIX=~/.wine64 wine64 binary.exe - The error above is shown and nothing else happens
sir_guy_carleton has quit [Quit: WeeChat 2.2]
<Unode> any suggestions?
nD5Xjz has quit [Ping timeout: 244 seconds]
<buckley310> i would like to replace the default nvidia driver. i have coppied "pkgs/os-specific/linux/nvidia-x11" to a local path, modified it, and added the following configuration, but it seems to have no effect: nixpkgs.overlays = ([ ( self: super: { nvidia_x11 = (pkgs.callPackage /etc/nixos/nvidia-x11 {}).stable; } ) ]);
<kyren> Unode: I don't actually know what's going on, but what happens if you run 'file' on the binary
<jasongrossman> kyren: Thanks for your writing on Reddit.
<jasongrossman> kyren++
<{^_^}> kyren's karma got increased to 1
<Unode> kyren: PE32 executable (console) Intel 80386, for MS Windows
<kyren> jasongrossman: which writing haha?
<Unode> hum...
<kyren> Unode: huh, that's not what I expected
<Arahael> kyren: Your reference to "the binary" is very ambigious. ;)
<Unode> :)
<kyren> I mean it is, but I meant 'binary' as in the 'binary' referenced in "not an ELF binary"
<Unode> if you mean wine, it's not a binary. It's a shell scrippt
<Unode> script*
sir_guy_carleton has joined #nixos
<Arahael> Unode: In that case, the shebang line is relevant - that is, the #! line at the start.
<kyren> right, I'm just trying to follow the trail to figure out what's printing "not an ELF binary", but I don't actually have wine installed atm and don't actually know what I'm doing :P
nD5Xjz has joined #nixos
<Unode> ok guys, seems like there is something weird happening but in any case turns out the 'binary' I was running is actually not 64bits.
<kyren> jasongrossman: oh, you're very welcome! I hope it's accurate
<Unode> The installer was 64bits, the binary is 32... Lovely windows world...
<kyren> well, I guess I'm glad I got you to run file on the OTHER binary in that case
<Unode> I now moved the installed folder to ~/.wine32 and it worked
<Arahael> Unode: That's odd, usually it's the other way around. :)
<Unode> Arahael: the fact that these are mixed together is mind blowing enough :)
<Unode> but in any case, there does seem to be some issue with wine64
<Unode> need to look into a test-case to open an issue.
<Arahael> Unode: "Lovely windows world" is a good description. :)
<kyren> which build of wine runs both 64 bit and 32 bit binaries
<Arahael> But... Consider that windows has maintained quite reasonable ABI stability over decades no w.
vk3wtf has quit [Quit: WeeChat 2.2]
<kyren> I thought there was a build of wine that did that, but it's possible that was a hallucination
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Arahael> Unode: I recommend you check out the wine website - especially their https://wiki.winehq.org/FAQ#How_do_I_create_a_32_bit_wineprefix_on_a_64_bit_system.3F
jackdk has quit [Disconnected by services]
jackdk has joined #nixos
<kyren> sir_guy_carleton: sorry I didn't respond before you left before, you probably just figured out that you can just roll back across releases, there's nothing really special about release boundaries other than maybe some gotchas with system.stateVersion
<kyren> if you live on nixos-unstable, every update can be like just as exciting as a whole new release
<{^_^}> [nixpkgs] @peterhoeg opened pull request #48695 → matrix-synapse: move from python2 to python3 [WIP] → https://git.io/fxwK5
iyzsong-x has quit [Ping timeout: 252 seconds]
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/9779809e050 (from 8 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<sir_guy_carleton> kyren: that's what i figured. i just removed some programs i used nix-env to install after, just in case
mayhewluke has quit [Ping timeout: 245 seconds]
mayhewluke has joined #nixos
rprije has joined #nixos
rprije has quit [Ping timeout: 272 seconds]
hamishmack has quit [Ping timeout: 244 seconds]
jedahan has joined #nixos
robstr has joined #nixos
oldandwise has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Unode> kyren: wine-wow runs both
<Unode> but the 64bit one seems to have some issues
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rprije has joined #nixos
lawlesseel has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
lawlesseel has joined #nixos
rprije has quit [Ping timeout: 268 seconds]
rprije has joined #nixos
bohadi has quit [Quit: WeeChat 2.2]
bohadi has joined #nixos
bohadi has quit [Client Quit]
<Arahael> "wow" is "windows on windows".
judson has joined #nixos
<judson> I am currently trying to figure out if there's an existing NixOS module to add an extra loopback interface.
<judson> I'm trying to set up a purely-local unbound config, but docker gets very confused.
<judson> Because, if you don't know this joke yet, docker filters out localhost IPs from /etc/resolv.conf before copying it to containers - because obviously the containers don't have a resolver on 127.0.0.1
vbernat has quit [Quit: The future belongs to those who believe in the beauty of their dreams.]
<judson> So what I'm planning is a dummy interface with a 172 address.
hamishmack has joined #nixos
Izorkin has quit [Quit: ZNC 1.7.1 - https://znc.in]
Izorkin has joined #nixos
justanotheruser has quit [Ping timeout: 260 seconds]
endformationage has quit [Ping timeout: 252 seconds]
rprije has quit [Ping timeout: 252 seconds]
rprije has joined #nixos
<dhess> judson: that's what I do: add a dummy and assign an IP to it
<dhess> not for docker, but for any "virtual service" that's running on the host
oldandwise has quit [Quit: leaving]
<Arahael> Judson: Shouldn't you have a separate docker instance for that anyway? And set up a 'docker swarm'.
FaerieFly has quit [Ping timeout: 608 seconds]
<{^_^}> [nixpkgs] @bfortz opened pull request #48696 → xmr-stak: 2.4.7 -> 2.5.1 → https://git.io/fxw1i
<Lisanna> does remote nix building try to open multiple SSH connections to the target? ):
Itkovian has joined #nixos
Effilry has joined #nixos
alex`` has joined #nixos
Effilry is now known as FaerieFly
<elvishjerricco> Lisanna: Yea, I think it does one SSH connection per derivation. But you can configure SSH to share a connection so that it transparently only connects once
<Lisanna> elvishjerricco strange... in theory it's just building one derivation on the target, but I have a thing setup where after the derivation finishes building the host kills sshd, preventing further ssh connections. but hydra shows the build as always failing due to ssh connection problems
<elvishjerricco> Lisanna: Huh. I would have thought it was only once per derivation. It's also likely that Hydra does it differently
<Lisanna> elvishjerricco could also be that build vs. collect results are separate steps?
<Lisanna> s/results/outputs
<Lisanna> ugh this is so impure and gross
Czen has quit [Remote host closed the connection]
<elvishjerricco> Lisanna: Yea, I wouldn't be surprised if Hydra did that. I thought that wasn't the case for normal distributed building though
<elvishjerricco> Regardless, this would all be fixed transparently by just enabling ssh multiplexing.
Ariakenom has joined #nixos
bohadi has joined #nixos
<sir_guy_carleton> wee i think i solved one breakage with 18.09
<Arahael> If you configure ssh to reuse connections, you don't even have the tcp connection delay. :)
Czen has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #48682 → nixos/tinc: remove unnecessary networking.interfaces → https://git.io/fxwtg
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxwSO
Thra11 has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed to release-18.09 « tinc: remove unnecessary networking.interfaces »: https://git.io/fxwSR
<{^_^}> [nixpkgs] @Mic92 merged pull request #48694 → vscode: 1.28.0 -> 1.28.2 → https://git.io/fxwVV
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxwSo
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to release-18.09: https://git.io/fxwSQ
Thra11 has quit [Ping timeout: 272 seconds]
<elvishjerricco> Is there any way to convince `nix eval` to treat derivations as just their outPath? I'd like to be able to e.g. eval a list of derivations without it recursing into all the attrs of the derivation, since that fails to eval.
<elvishjerricco> --raw does this, but you can only use it if you're eval-ing one derivation.
<elvishjerricco> Can't do it for data structures with derivations inside them
shabius_ has quit [Remote host closed the connection]
shabius_ has joined #nixos
shabius_ has quit [Remote host closed the connection]
thc202 has joined #nixos
EarlDeLaWarr has quit [Quit: Textual IRC Client: www.textualapp.com]
<teto> how can I pass proxy details to the nix daemon without rebuilding or changing profile ?
Jackneill has quit [Quit: Leaving]
goibhniu has joined #nixos
<Ke> where can I find the nixos channel urls?
<{^_^}> [nixpkgs] @Mic92 merged pull request #48662 → btrbk: 0.26.1 -> 0.27.0 → https://git.io/fxVOi
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxw9A
<Ke> something like https://nixos.org/channels/nixpkgs-stable-18.9 but actually working
<sphalerite> :)
<Ke> thanks
<Ke> perhaps some of the release notes sections could link these
Jackneill has joined #nixos
<Ke> well at least seems to be in Chapter 4. Upgrading NixOS
lonokhov has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #48546 → nixos/zfs: Hide useless errors when waiting for zpool to be ready → https://git.io/fxuHL
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fxwH1
<Taneb> One of my coworkers has a build failure with qt5.qtwebkit on MacOS
<{^_^}> [nixpkgs] @Mic92 merged pull request #48503 → jetty: 9.4.8.v20171121 -> 9.4.12.v20180830 → https://git.io/fxu8W
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxwHQ
civodul has joined #nixos
rprije has quit [Ping timeout: 244 seconds]
rprije has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « ghc-8.6.x: HTF does not compile »: https://git.io/fxwQ8
<srhb> Taneb: Yes?
<srhb> Taneb: I feel like there's more to the story. Like, was it expected to build (according to eg. Hydra?), which version, ...?
<{^_^}> [nixpkgs] @Mic92 merged pull request #48540 → dune: 1.3.0 -> 1.4.0 → https://git.io/fxu2k
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxwQD
ThatDocsLady has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #48543 → awf: 1.3.1 -> 1.4.0 → https://git.io/fxuau
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxw7C
<{^_^}> [nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fxw7R
vbernat has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
rprije has quit [Ping timeout: 245 seconds]
rprije has joined #nixos
mayhewluke has quit [Ping timeout: 245 seconds]
mayhewluke has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #48509 → gtkwave: 3.3.94 -> 3.3.95 → https://git.io/fxu4E
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxw7d
rprije has quit [Ping timeout: 252 seconds]
bohadi has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #48264 → [ok] nmap: fix cross-build → https://git.io/fx4sK
<{^_^}> [nixpkgs] @Mic92 pushed commit from @volth to master « nmap: fix cross-build (#48264) »: https://git.io/fxw7p
effsquared has joined #nixos
<{^_^}> [nixpkgs] @ElvishJerricco opened pull request #48697 → haskellPackages.cabal-helper: Jailbreak restrictive bounds. → https://git.io/fxw7h
rprije has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « monkeysphere: Replace a hardcoded path and fix more tests »: https://git.io/fxw5U
thibm has joined #nixos
bohadi has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #48381 → libwacom: 0.29 -> 0.31 → https://git.io/fxRwu
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to staging: https://git.io/fxw5o
<{^_^}> [nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fxw5j
<{^_^}> [nixpkgs] @bfortz opened pull request #48698 → mixxx: added opus files support → https://git.io/fxwd3
bohadi has quit [Ping timeout: 268 seconds]
rprije has quit [Ping timeout: 272 seconds]
rprije has joined #nixos
bohadi has joined #nixos
<{^_^}> [nixpkgs] @ElvishJerricco opened pull request #48699 → haskell.lib.buildFromSdist: Allow overrideCabal → https://git.io/fxwdN
rprije has quit [Ping timeout: 268 seconds]
rprije has joined #nixos
robstr has quit [Ping timeout: 256 seconds]
<Taneb> srhb: sorry, I had to suddenly leave
<Taneb> srhb: that's the exact error
<Taneb> I'd like to help fix this, but I don't have a Mac
<srhb> Taneb: If no issue is open for it, it would make sense to create one. :)
<Taneb> He'd also like it fixed but doesn't know his way around nixpkgs
<srhb> My point being that a lot of packages fail, and usually no one pays attention unless they actually use it.
bohadi has quit [Quit: WeeChat 2.2]
<srhb> Opening an issue can help solicit help from a kind user. :)
<Taneb> Right :)
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fxwFz
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fxwFw
Ariakenom has quit [Remote host closed the connection]
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #44589 → rclone-browser: init at 1.2 → https://git.io/fNMrq
<{^_^}> [nixpkgs] @dotlambda pushed commit from @Drakonis to master « rclone-browser: init at 1.2 (#44589) »: https://git.io/fxwFi
<{^_^}> [nixpkgs] @lschuermann closed pull request #34058 → nixos-installer: retry setting password on mismatch → https://git.io/vNuy1
[Leary] has joined #nixos
strobelight has joined #nixos
<{^_^}> [nixpkgs] @lschuermann reopened pull request #34058 → nixos-installer: retry setting password on mismatch → https://git.io/vNuy1
Lears has quit [Ping timeout: 246 seconds]
siers has joined #nixos
<{^_^}> [nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fxwbR
strobelight has quit [Ping timeout: 272 seconds]
<siers> How could I iteratve over (and read, of course) all the files of a nix store directory with nixcode?
strobelight has joined #nixos
<tilpner> What are you trying to accomplish, maybe there's a better solution?
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fxwb9
<tilpner> (You want builtins.readDir and builtins.readFile, but it's not going to be fast)
<tilpner> > builtins.readDir builtins.storeDir
<{^_^}> access to path '/nix/store' is forbidden in restricted mode
<tilpner> Oh, right
<siers> I should've gone over the builtins list. I only tried searching keywords in the whole of manual.
<siers> I'm making a filterSource filter function, which shall use all gitignores of a path, process and then concatenate them.
rprije has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « haskell-cassava-megaparsec: jailbreak to fix build with ghc-8.6.1 »: https://git.io/fxwNs
rprije has joined #nixos
<siers> I did a find/awk, but I need some nix function to get the proper behavior, so I gotta rewrite it in nix.
sigmundv__ has joined #nixos
<srhb> siers: Honestly it's probably better to not use filterSource at all then.
<manveru> wasn't there a new implementation of gitignore in nix?
<siers> Well, I'm writing it for https://github.com/siers/nix-gitignore so not using it is not an option
<manveru> i found it easier to simply filter the files i want to include instead of exclude :)
<srhb> siers: Ah, okay.
<siers> you can do that with "!patterns" in gitignore :P
* siers will go on a hike now
siers has quit [Quit: WeeChat 2.0]
phreedom_ has joined #nixos
phreedom has quit [Ping timeout: 256 seconds]
rprije has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fxwAH
<thibm> Is it possible to do a nixos-rebuild --target-host X switch but using X's nixos channel instead of localhost's? i.e evaluate configuration.nix on X
sigmundv__ is now known as sigmundv
<thibm> If I understood well, nixos-rebuild is using root's 'nixos' channel. I think the easiest way to do what I want to do (but requires a manual step) is to override this. But I don't want to override localhost's root's nixos channel
<{^_^}> [nixpkgs] @vbgl pushed 4 commits to master: https://git.io/fxwxz
<{^_^}> [nixpkgs] @vbgl merged pull request #48617 → coq: add ocamlPackages in passthru → https://git.io/fx2Ju
sb0 has joined #nixos
<thibm> Well the solution here http://www.haskellforall.com/2018/08/nixos-in-production.html#building-remotely may suits my need. But it requires not using a regular configuration.nix. Is anyone has a better solution, I would be interested
<{^_^}> [nixpkgs] @xeji merged pull request #48173 → valgrind: 3.13.0 -> 3.14.0 → https://git.io/fxW8M
<{^_^}> [nixpkgs] @xeji pushed commit from @dtzWill to staging « valgrind: 3.13.0 -> 3.14.0 (#48173) »: https://git.io/fxwxX
<Lisanna> thibm do you want to build using the remote's nixos channel definition or the remote's configuration.nix?
<{^_^}> [nixpkgs] @peti pushed 4 commits to haskell-updates: https://git.io/fxwxy
<{^_^}> [nixpkgs] @Mic92 merged pull request #48421 → global-platform-pro: 0.3.10-rc11 -> 18.09.14 → https://git.io/fxRby
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxwxS
<Lisanna> (or both?)
<{^_^}> [nixpkgs] @Mic92 merged pull request #48659 → parity: 1.11.10 -> 2.0.8; parity-beta: 2.0.3 -> 2.1.3 → https://git.io/fxVIa
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxwxH
<{^_^}> [nixpkgs] @Mic92 merged pull request #48671 → imlib2: 1.5.0 -> 1.5.1 → https://git.io/fxV64
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to staging: https://git.io/fxwx7
<thibm> Lisanna: I want to build a local configuration.nix file on remote, with remote's channel
<{^_^}> [nixpkgs] @Mic92 merged pull request #48640 → kvmgt module: add restart on failure → https://git.io/fx2AY
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxwpv
<Lisanna> thibm to build it *on* the remote, you need to have the machine listed as a remote builder. That's straightforward enough
<{^_^}> [nixpkgs] @Mic92 pushed commit from @gnidorah to release-18.09 « kvmgt module: add service restart on failure »: https://git.io/fxwpJ
<Lisanna> to use the remote's "nixos" channel...
<thibm> No, I want to build and deploy on remote (nixos-rebuild --target-host)
<thibm> But I think the configuration.nix file is evaluated locally, using localhost's channel.
orivej has joined #nixos
<Lisanna> thibm this is a complete shot in the dark, but NIX_PATH=nixos=ssh-ng://user@targethost:/nix/var/nix/profiles/per-user/root/channels/nixos
<Lisanna> eelco did some crazy URI stuff in Nix 2.0
<Lisanna> so that miiiiiiight work
<thibm> Lisanna: thanks, I'll try
<thibm> Hope this does not involve to much network transfer :>
<Lisanna> haha that might suck
TweyIV has joined #nixos
<thibm> (currently reinstalling the server, as I activated hardened profile (issue #36268)… will keep you updated)
<{^_^}> https://github.com/NixOS/nixpkgs/issues/36268 (by NeQuissimus, 32 weeks ago, closed): closure-info broken on nixos-rebuild
Acou_Bass has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fxwpb
<TweyIV> How does nix-store decide whether a path is alive? I have a package I built in `nix repl`, which now lives in my /nix/store. I'd like to use nix-store --delete /nix/store/*-my-package, but nix-store complains it's still alive, even though nix-store -q --referrers /nix/store/*-my-package gives no referrers
Acou_Bass has joined #nixos
<srhb> TweyIV: referrers, in memory, garbage roots
<srhb> Try -q --roots
<srhb> Actually, roots will include memory roots too :)
<{^_^}> [nixpkgs] @alyssais opened pull request #48700 → qt59.qtwebkit: fix build on Darwin → https://git.io/fxwhZ
<srhb> Taneb: ^
<srhb> Might be interesting.
<Lisanna> thibm I am sleepig now, tbh that's all the potential insight I have on what you're trying to do :p if it doesn't work, ,it probably should. file a github issue against nix if it doesn't work and you're sure it's not you don't have SSH setup right
<Taneb> srhb: thanks, I'll pass this on
<Lisanna> 'cause you can put https:// URIs in NIX_PATH stuff, so ssh:// or ssh-ng:// should also work in theory
<srhb> Lisanna: It doesn't work, but I definitely agree that it should.
<thibm> Lisanna: ok, many thanks.
thibm has quit [Quit: WeeChat 2.0]
<srhb> (It just shells out to a fetcher, I think, and that fails parsing ssh-ng:// altogether, and fails with unsupported protocol on ssh://)
<srhb> hrm. Can pls has pkgs.override
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fxwhM
<TweyIV> srhb: Just says {memory:122}
<TweyIV> But the nix repl is closed :(
<srhb> TweyIV: lsof?
<TweyIV> srhb: I ran lsof on everything on there and it didn't return anything
pie___ has joined #nixos
<srhb> TweyIV: grepping for the hash?
<TweyIV> srhb: What's the ‘122’?
<TweyIV> srhb: In what? :þ It's literally something I ran in `nix repl` and then I closed the repl
<srhb> TweyIV: AS in, sudo lsof to get all open files, and grep for your package hash?
<TweyIV> srhb: No results :(
<srhb> I suspect the 122 is something in /proc, but still trying to find out _what_
<srhb> Like, a file descriptor or something
<TweyIV> Yeah, that was my suspicion
<srhb> Guess we need to check the source code...
pie__ has quit [Ping timeout: 244 seconds]
<srhb> TweyIV: Specifically, the logic is in findRunetimeRoots in gc.cc
<TweyIV> srhb: Looks like it means it's the 122th root
<TweyIV> 122nd, rather
<srhb> Uh, where'd you get that from?
<srhb> That sounds wrong
<TweyIV> size_t n = 0; for (auto & root : findRuntimeRoots()) roots[fmt("{memory:%d}", n++)] = root;
<TweyIV> findRootsNoTemp
<srhb> Huh. That seems not very useful.
<TweyIV> That seems to be the only place that constructs the "{memory:%d}" string
<TweyIV> Yeah :þ
<srhb> It is. But I assumed the %d was coming from findRuntimeRoots somehow
<srhb> But yes, I agree with your interpretation.
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « haskell-fgl: ignore the new cabal revision published on Hackage »: https://git.io/fxwj5
<srhb> ah, so that's the NAME of the root.. Wonder if we can query that somehow
simukis has joined #nixos
<srhb> TweyIV: Can't find any good way short of modifying nix itself, sorry. I bet it's something silly like a CWD for some shell though.
<TweyIV> :(
<TweyIV> Alright, thanks!
<TweyIV> It's not too much of a problem, I assume it'll go away eventually
<srhb> TweyIV: Reboot should do it dead at least :-P
<{^_^}> [nixpkgs] @Mic92 merged pull request #48389 → openimageio: 1.8.14 -> 1.8.15 → https://git.io/fxRKQ
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxrvm
<TweyIV> srhb: Let's hope!
<{^_^}> [nixpkgs] @Mic92 merged pull request #48698 → mixxx: added opus files support → https://git.io/fxwd3
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxrvs
<TweyIV> Otherwise my hard drive is going get unhappy some day ;)
Guanin has joined #nixos
__monty__ has joined #nixos
silver has joined #nixos
<sphalerite> TweyIV: `sudo grep $storepathhash /proc/*/maps` maybe
mic921 has left #nixos ["User left"]
<sphalerite> TweyIV: oh, or are you maybe running sudo nix-store --delete?
<sphalerite> In that case, the sudo process has the path in its command line and thus gives it a root
<sphalerite> and just running nix-store --delete on the path as the normal user should work
<sphalerite> oh actually if nix-store -q --roots reports the root, that's not it
Mic92 has joined #nixos
iyzsong has joined #nixos
Mic92 has quit [Client Quit]
sir_guy_carleton has quit [Remote host closed the connection]
Mic92 has joined #nixos
<{^_^}> [nixpkgs] @leenaars opened pull request #48702 → pip: 18.0 -> 18.1 → https://git.io/fxrU0
lunik1 has joined #nixos
rprije has joined #nixos
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/69a482f640c (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<{^_^}> [nixpkgs] @dtzWill opened pull request #48703 → harfbuzz: 1.9.0 -> 2.0.0 → https://git.io/fxrk0
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Itkovian has joined #nixos
mayhewluke has quit [Ping timeout: 272 seconds]
mitescugd has joined #nixos
mayhewluke has joined #nixos
mg- has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fxrIb
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @danieldk opened pull request #48704 → libtensorflow: add pkgconfig file → https://git.io/fxrtv
Itkovian has joined #nixos
<{^_^}> [nixpkgs] @sjmackenzie opened pull request #48706 → ndn-cxx: fixed broken build and updated to latest release → https://git.io/fxrts
revtintin has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fxrtM
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « ghc-8.6.x: disable mpd support in xmobar »: https://git.io/fxrqe
Rusty1 has joined #nixos
jperras has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #46152 → zsh: patch `_setxkbmap` completion script → https://git.io/fAuep
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fxrqD
<{^_^}> [nixpkgs] @c0bw3b closed pull request #48702 → pip: 18.0 -> 18.1 → https://git.io/fxrU0
<{^_^}> [nixpkgs] @peti pushed 46 commits to haskell-updates: https://git.io/fxrmc
<{^_^}> [nixpkgs] @peti pushed 41 commits to haskell-updates: https://git.io/fxrm4
<TweyIV> sphalerite: Nope
<TweyIV> sphalerite: Nothing returned from that, and I wasn't running nix-store through sudo
<{^_^}> [nixpkgs] @peti pushed 34 commits to haskell-updates: https://git.io/fxrmH
<{^_^}> [nixpkgs] @peti pushed 34 commits to haskell-updates: https://git.io/fxrmF
<{^_^}> [nixpkgs] @peti pushed 34 commits to master: https://git.io/fxrmb
revtintin has joined #nixos
<{^_^}> [nixpkgs] @taku0 opened pull request #48708 → oraclejdk: 8u191 -> 8u192 → https://git.io/fxrYi
<electrocat> i can see there is arm support in nixpkgs, but i assume nothing from that has binary caches?
<clever> electrocat: only aarch64 has binary cache coverage
<electrocat> clever: cool, that's something
<LnL> yeah, something like armv7 is much harder to find hardware for
hc has joined #nixos
<LnL> cross-compiling is also an option depending on what you want to build
Peter_Storm_ has joined #nixos
jebes has joined #nixos
<{^_^}> [nixpkgs] @DerTim1 opened pull request #48709 → asterisk: 15.3.0 -> 15.6.1 & 13.20.0 -> 13.23.1 → https://git.io/fxr3P
jedahan has joined #nixos
<{^_^}> [nixos-hardware] @Mic92 merged pull request #80 → lenovo/thinkpad/t450s: init → https://git.io/fxRcN
<{^_^}> [nixos-hardware] @Mic92 pushed 2 commits to master: https://git.io/fxrsz
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiroshi- has joined #nixos
m0rphism has quit [Quit: WeeChat 2.2]
hiroshi has quit [Ping timeout: 244 seconds]
hiroshi- is now known as hiroshi
m0rphism has joined #nixos
jedahan has joined #nixos
trevorriles has joined #nixos
lawlesseel has quit [Remote host closed the connection]
lawlesseel has joined #nixos
iyzsong has quit [Ping timeout: 252 seconds]
Dedalo has joined #nixos
<domenkozar> firewall-start[5751]: modprobe: FATAL: Module ip6_tables not found in directory /lib/modules/4.14.71
<domenkozar> what :)
reinzelmann has quit [Quit: Leaving]
<{^_^}> [nixos-hardware] @Moredread opened pull request #81 → Init 9370 → https://git.io/fxrcp
<Mic92> This is not the kernel module path, you are looking for.
<Mic92> :(
<domenkozar> that's on 18.09 :O
<Mic92> strings /run/current-system/sw/bin/modprobe | grep lib
<Mic92> should contain something like: /run/booted-system/kernel-modules/lib/modules
<domenkozar> hmm can't deploy busybox
<domenkozar> sec
<Mic92> You rather want binutils.
alana has joined #nixos
<Mic92> If this is related to strings
hyper_ch2 has quit [Quit: Page closed]
<domenkozar> ah
<domenkozar> this might be because it's a nixos container
vaibhavsagar has joined #nixos
<Mic92> yes
<Mic92> you can if you really want to also loading kernel module there.
<alana> So first time installing nixos, when I run nixos-install it's saying "attribute 'filesystems."."' .../hardware-configuration.nix:25:3 already defined at .../hardware-configuration.nix:15:3" Could someone tell me what that means?
<Mic92> But I would not recommend it
<domenkozar> Mic92: there you mean on the guest?
<domenkozar> I did
<domenkozar> modprobe ip6_tables on host
<srhb> alana: Sounds like you got some mounts wrong possibly
<domenkozar> seems to work now
<srhb> alana: "." should not normally be generated.
<Mic92> domenkozar, yes, just put it in boot.kernelModules
<srhb> alana: Where did you mount your new filesystems?
<domenkozar> Mic92: shouldn't that be the default anyway?
mayhewluke has quit [Ping timeout: 268 seconds]
<Mic92> domenkozar this should be the case if you have the firewall enabled there?
<domenkozar> at least with firewall enabled
<domenkozar> hmm
<Mic92> ip6tables -S
<Mic92> should contain rules then
alana_ has joined #nixos
<alana_> Ouch that sucks
<alana_> :(
<domenkozar> Mic92: right :)
<domenkozar> thanks for the help
<Mic92> alana_ can you provide the whole example file? you have defined a mountpoint twice
<srhb> Mic92: Notice that the mount point is "."
alana has quit [Ping timeout: 256 seconds]
<Mic92> yes. this also looks very wrong
<alana_> Mic92: Example file as in console output?
<alana_> or config file?
<Mic92> I mean hardware-configuration.nix
<alana_> ok gotcha
<alana_> one second
mayhewluke has joined #nixos
<{^_^}> [nixpkgs] @kamilchm opened pull request #48710 → go2nix: 1.2.1 -> 1.3.0 → https://git.io/fxrlU
dbmikus_ has joined #nixos
rprije has quit [Ping timeout: 268 seconds]
<joko> Does anyone know if it is possible to define a network in systemd-networkd to be manually enabled? I would like to setup wireguard as a client and I would like to be able to manual enable it
rprije has joined #nixos
<alana_> Mic92:
<Mic92> joko: yes this is possible.
<srhb> alana_: That appears to be configuration.nix, not hardware-configuration.nix
<Mic92> joko: not like you want I think
<alana_> ooof sorry
<srhb> alana_: (Specifically, /mnt/etc/nixos/hardware-configuration.nix)
<Mic92> you want to enable it on demand right?
<joko> Mic92: I used to look around your configurations, but nowadays you've removed lots of stuff :D
<joko> I meant for inspiration :D
<Mic92> joko: I removed a lot of networking stuff from my desktop
<alana_> Mic92: http://termbin.com/k97n
<Mic92> joko: I think you have more luck with wg-quick for your particular use-case.
<Mic92> networkd does not support on demand networks
<joko> Mic92: ok, thanks, I will have a look
<joko> Mic92: speaking of your configuration, I got reminded of a setup of yours with LXC containers in nixos. Do you have any tutorial / guide I could look into?
rprije has quit [Ping timeout: 244 seconds]
rprije has joined #nixos
jabranham has joined #nixos
<joko> I would start from lxd, even tried to update it to a more recent version, but it seems to require a distributed flavour of sqlite and might be harder to use it at this point
<{^_^}> [nixpkgs] @c0deaddict opened pull request #48711 → electron: 1.8.2 -> 3.0.5 → https://git.io/fxr4L
<alana_> actually um
<Mic92> joko: I used to have legacy archlinux containers that got now replaced by nixos services. What is your use case for LXC. In some older revisions the code is still there.
<alana_> I realy appreciate yalls help but its rly late and I have a stats test coming up so I'll work on this later if yall dont mind
<alana_> sorry!
<alana_> byeeee I love yall <3
<srhb> alana_: Good luck.
<FaerieFly> good luck on the test!
<alana_> thanks <3
alana_ has quit [Quit: Page closed]
<Mic92> joko, I probably would also go for lxd these days
<joko> Mic92: well, I would like to fire up some Ubuntu containers for mainstream stuff until I port them to NixOS
<joko> Mic92: roger, I would try my luck again with lxd
<Mic92> then just create a network as described in the upstream documentation
<joko> Mic92: lxd init seems to fail
<Mic92> It worked fine for me even with zfs
<Mic92> I have not used it intensivly mainly to test: https://github.com/Mic92/cntr
<joko> interesting
<joko> This is the log of starting lxd 3.0.2 that I have tried to package: https://ptpb.pw/77kW
<{^_^}> [nixpkgs] @dywedir opened pull request #48712 → File → https://git.io/fxrBe
<joko> Obviously I am not packing properly lxd with the custom sqlite
realrokka has quit [Ping timeout: 252 seconds]
lawlesseel has quit [Remote host closed the connection]
<Mic92> Corrupt database?
effsquared has quit [Ping timeout: 276 seconds]
<Mic92> I was not aware it uses consensus protocols.
<joko> Mic92: nah, I'm even starting with deleted /var/lib/lxd, the db shouldn't be there?
dbmikus__ has joined #nixos
rprije has quit [Ping timeout: 276 seconds]
<joko> Mic92: me, neither, I think it's a new feature
<Mic92> the documentation reads as if you can also disable that
<{^_^}> [nixpkgs] @dywedir closed pull request #48712 → File → https://git.io/fxrBe
<joko> But it's bad work, lxd became dependent to beta stuff, dqlite and sqlite with replication (a patched one from Canonical)
<Mic92> well, if you want something simpler, systemd-nspawn works fine too
<Mic92> you can even disable private networking
<Mic92> if you just develop locally.
dbmikus_ has quit [Ping timeout: 244 seconds]
fragamus has joined #nixos
rprije has joined #nixos
<joko> Mic92, I would have a look, thanks
<joko> will *
<Mic92> or just docker
<Mic92> but this depends if you rely on specific services or not
kai_w has joined #nixos
kai_w has quit [Client Quit]
kai_w has joined #nixos
yangm97 has joined #nixos
drakonis1 has joined #nixos
<{^_^}> [nixpkgs] @dywedir opened pull request #48713 → file: 5.34 -> 5.35 → https://git.io/fxrRx
Rajsun has joined #nixos
revtintin has quit [Ping timeout: 272 seconds]
<colemickens> q
copumpkin has joined #nixos
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<aminechikhaoui> What's the situation of Nix installer on MacOS high sierra ? just got a weird issue while installing nix for a friend, the installation is barfing about missing libunc.dylib path :/
<acowley> Is there a straightforward way to have a src or srcs attribute that includes multiple fetch* expressions and dumps all the source files into one directory?
<aminechikhaoui> ah wait it's not missing but the error is file system sandbox blocked stat()
<acowley> I'd have thought the installer was pretty solid on high sierra unless some recent mojave changes broke it on HS
dbmikus has quit [Quit: WeeChat 2.2]
<acowley> I think I've run it on two HS machines without issue, but not in the mast two months
<kai_w> Why does `(python3.override { packageOverrides = (self: super: {});}).pkgs` not have a `dotmap` attribute if `python3.pkgs` does?
<kai_w> The original attr added via my overlay here https://github.com/kwohlfahrt/nix-overlays/blob/master/python/default.nix
endformationage has joined #nixos
<gchristensen> has anyone noticed that NixOS machines with the glibc patches have broken terminals?
<sphalerite> glibc patches?
<gchristensen> by glibc patches I mean: the thing to support 18.03 and 18.09's glibc
<{^_^}> [nixpkgs] @Mic92 merged pull request #48710 → go2nix: 1.2.1 -> 1.3.0 → https://git.io/fxrlU
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxrzS
<samueldr> gchristensen: broken how?
<gchristensen> I have to export TERM=vt100 or backspace / tab / up / down / left / right arrows don't visually work
<samueldr> repro steps?
<gchristensen> my impression is that once I added https://gist.github.com/peti/2c818d6cb49b0b0f2fd7c300f8386bc3 to my config, it broke the terminal
<samueldr> ah good, I was worried since I didn't see any breakage here :)
<samueldr> though this is relevant to a need where I pin 18.03 and have issues with "special" characters (which 99% sure is due to that whole thing)
kiloreux__ has quit [Quit: Leaving]
revtintin has joined #nixos
kiloreux__ has joined #nixos
kiloreux__ is now known as kiloreux
<kiloreux> What's the best nix language parser library ? I couldn't find a decent one in python/c++/c ? Could someone please recommend one to me ?
<bpye> Uh, how should I be enabling ssh in the installer?
<bpye> ssh server that is
<samueldr> > If you would like to continue the installation from a different machine you need to activate the SSH daemon via systemctl start sshd. In order to be able to login you also need to set a password for root using passwd.
<{^_^}> error: syntax error, unexpected ')', expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):203:1
<tilpner> kiloreux - Check if you can use libnix*. There's also hnix
<samueldr> kiloreux: using `nix-instantiate --parse` you can get an `Aterm format` representation of the ASTs
<samueldr> (if a full blown library doesn't exist in the ecosystems you want)
<samueldr> that format maybe has bindings already in your ecosystem, hopefully
bohadi has joined #nixos
<bpye> Ack thanks samueldr
Ariakenom has quit [Ping timeout: 260 seconds]
<samueldr> (btw, don't take the link to the manual as "read the fine manual", but more as a citation :) )
v0|d has quit [Remote host closed the connection]
<buckley310> how can I override the nvidia driver in NixOS? It is apparently possible since someone this github user got it working, but I cannot, maybe this solution is outdated? https://github.com/NixOS/nixpkgs/issues/34938
<{^_^}> #34938 (by ck3d, 35 weeks ago, closed): nvidia_x11 override via overlay not possible
<arianvp> with nixops, is it possible to get the IP of a VM inside the nix derivation?
<arianvp> such that my nixos config can for example depend on that IP for like configuring a load balancer?
<clever> arianvp: yeah, i think it was networking.publicipv4 or something like that
Tucky has quit [Quit: WeeChat 2.2]
<arianvp> how does it do that though? how does it figure that out during instantiation?
effsquared has joined #nixos
<arianvp> I thought nix modules couldn't have side-effects etc
o1lo01ol1o has joined #nixos
<clever> arianvp: nixops will get the IP from the vm system, before it builds the modules
<arianvp> but what if the vm doesn't exist yet?
<clever> when deploying, it will create the vm, query its state, then build the nixos with that ip as a param
<clever> if the vm hasnt been created, the param will be null
<o1lo01ol1o> how is scaling with respect to buildCores and maxJobs? If I have a 72 core system will setting buildCores = 72 scale sublinearly?
<clever> o1lo01ol1o: it will run `make -j72` inside each build, and it will depend on the deptree within a given package, and if the package even has enableParallelBuilding = true;
<clever> maxJobs is at the `nix-build -j5` layer, and will run up to 5 packages in parallel
<bpye> My SSH connection seems to be hanging before I get a shell, I'm not sure what's going on...
<bpye> Before the password prompt even
<bpye> Wait no, that's just a broken ssh-agent
<bpye> My bad
<o1lo01ol1o> clever: thanks. So I guess I'll just have to wait and see if having 72 cores is significantly better than 32.
<arianvp> meh the nixops docs are very ... vague. They do not distiniguis between options and config
<arianvp> so I thought I had to _set_ networking.publicipv4
<arianvp> :/
<arianvp> but it's calculated
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> arianvp: this will generate nixos config, based on python variables
<clever> behind the scenes, nixops generates an extra deployment file with that kind of state, and adds it to the nix eval
<arianvp> aah
<arianvp> so does the python like 'parse' the nixops modules, then generate more modules, and only thenafter is the entire set of modules eval'd?
<arianvp> I thought the calling to python happend during lib.evalModules so this is why I was confused how it got values back into the nix world
<clever> it does a first nix-instantiate pass over things, with --to-xml
<clever> python then parses that xml, to find the names and cloud-hosters of every vm, and what resources must exist
jabranham has joined #nixos
<arianvp> aha, so it is indeed a two-phase system
<clever> then it creates all of those resources, and generates a nix file with the state
<clever> and then does a nix-build to build the machines
<arianvp> aha thanks. that helps
<clever> if you do `nixops deploy --build-only` and have never created, then it will just not set things like publicIPv4, and they will default to null
zduch4c has joined #nixos
<zduch4c> any Emacs EXWM users here? how can I inhibit NixOS from loading the default EXWM config?
<jabranham> I'm trying to write a systemd user service and having problems. The executable file it starts has the shebang: #!/usr/bin/env Rscript which works fine when I execute it but when I do systemctl --user start <my-service-file> it can't find Rscript
<arianvp> jabranham: did you write the unit file manually or is it in nixos config?
lonokhov has quit [Quit: WeeChat 2.2]
<jabranham> arianvp: manually
<arianvp> if manual, that is because services are executed with a different environment than your shell
fragamus has joined #nixos
<arianvp> env looks at PATH , which might be different inside the unit file
<zduch4c> so… does NixOS by default execute default config of EXWM on start if set by services.xserver.windowmanager?
<arianvp> you'll have to add this:
<arianvp> sec
<arianvp> are you on nixos or on just a nix machine?
<jabranham> arianvp: nixos
<zduch4c> nevermind! its in the manual!
<arianvp> Add this to your unit file at the top
<arianvp> Environment=PATH=
<arianvp> Environment=PATH="$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/etc/profiles/per-user/$USER/bin"
fragamus has quit [Client Quit]
<arianvp> In the [Service] section that is
<arianvp> you might have to replace $HOME and $USER with the respective systemd template variables
<arianvp> see `man systemd.unit` in the SPECIFIERS section
nbardiuk has joined #nixos
zduch4c has quit [Read error: Connection reset by peer]
zduch4c has joined #nixos
<jabranham> arianvp: thanks, that did the trick. $HOME is %h and $USER is %u in case anyone is interested.
zduch4c has quit [Remote host closed the connection]
erasmas has joined #nixos
jperras has quit [Quit: WeeChat 2.2]
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/d75b725497a (from 6 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
sigmundv has quit [Ping timeout: 252 seconds]
Ariakenom has joined #nixos
camsbury has quit [Ping timeout: 245 seconds]
jabranham has quit [Remote host closed the connection]
Dedalo has quit [Quit: Textual IRC Client: www.textualapp.com]
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master:
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #48688 → haskellPackages.shellFor: Add nativeBuildInputs [Fixes #48435] → https://git.io/fxwWT
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Itkovian has joined #nixos
o1lo01ol1o has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
<judson> dhess, if you're still around, do you set up the dummy interface via NixOS?
<judson> Related to this misbegotten epic, any tips on debugging openconnect + resolvconf?
<judson> I'm seriously considering setting up an overlay to put a wrapper script around resolvconf to find out who's calling it and with what.
jperras has joined #nixos
srid has joined #nixos
trevorriles has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @vdemeester opened pull request #48714 → consul: 0.9.3 -> 1.3.0 → https://git.io/fxr1E
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
Mic92 has quit [Quit: The Lounge - https://thelounge.chat]
<judson> Upshot is that the VPN I need to use sends 9 split dns domains - and resolvconf configures 6 of them.
<judson> Running openconnect on the commandline reports all 9, and then configures 1 (I found reference to that bug elsewhere - the vpnc-script?)
drakonis1 has quit [Quit: WeeChat 2.2]
alex`` has quit [Quit: WeeChat 2.2]
kai_w has quit [Quit: Konversation terminated!]
jedahan has joined #nixos
jedahan has quit [Client Quit]
<{^_^}> [nixpkgs] @oxij opened pull request #48715 → firefoxPackages.tor-browser: 7.5.6 -> 8.0.2 → https://git.io/fxrDi
<infinisil> Judson: Crazy idea: Have a debug NixOS where every binary gets wrapped in a binary that outputs debugging information
<infinisil> Via an overlay of course, and provide a binary cache for it
nkaretnikov has joined #nixos
<cransom> i'd settle for (and it's not hard to do) just to write a wrapper that drops you into a systemd.service environment so i can see what the service sees.
<maurer> infinisil: Would something like gentoo's splitdebug not be more appropriate?
<infinisil> maurer: I have no idea what that is
<maurer> infinisil: Gentoo can install debug information "separately" so that it is not part of the main binary, and gdb can be told where to pick it up
<maurer> infinisil: now that we have multiple output derivations, this could be feasible for us as well
<infinisil> Ah I see
<avn> Folks, anyone use pylint with python27 within release-18.09 branch?
<maurer> (the idea is that you can e.g. put your debug information on spinning rust, while keeping your ELFs on an SSD)
<nkaretnikov> hi, i'm trying to package a haskell program and library. until now, cabal2nix has mostly worked just fine for me. with this one, however, i'm getting `sh: configure: No such file or directory` when building the library: (shell.nix of the executable makes use of shell.nix of the library). has anyone seen anything like that? it has a bunch of c files too, so not an easy thing to package, i suppose.
<nkaretnikov> i can upload my nix files if anyone wants to take a look
<nkaretnikov> ah, and that's on macos with nix, not nixos. just thought i should mention.
bohadi has quit [Quit: WeeChat 2.2]
drakonis has quit [Ping timeout: 268 seconds]
drakonis_ has joined #nixos
asymmetric has joined #nixos
Thra11 has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
<nkaretnikov> ah, apparently it has to do with the fact that the package uses `Distribution.Make` rather than `Simple`.
worldofpeace has quit [Remote host closed the connection]
drakonis has joined #nixos
<{^_^}> [nixpkgs] @jslight90 opened pull request #48716 → mattermost: 5.3.0 -> 5.4.0 → https://git.io/fxrSD
drakonis_ has quit [Ping timeout: 252 seconds]
ThatDocsLady has quit [Quit: Leaving]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/16ac473e20b (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
reinzelmann has joined #nixos
EarlDeLaWarr has joined #nixos
simukis has quit [Quit: simukis]
mayhewluke has quit [Ping timeout: 250 seconds]
mayhewluke has joined #nixos
simukis has joined #nixos
orivej has joined #nixos
camsbury has joined #nixos
nbardiuk has quit [Ping timeout: 252 seconds]
simukis has quit [Quit: simukis]
amosbird_ has joined #nixos
simukis has joined #nixos
amosbird has quit [Ping timeout: 252 seconds]
drakonis_ has joined #nixos
zopsi has quit [Ping timeout: 276 seconds]
TweyIV has quit [Ping timeout: 244 seconds]
drakonis has quit [Ping timeout: 246 seconds]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zopsi has joined #nixos
Itkovian has joined #nixos
rfold has joined #nixos
drakonis has joined #nixos
Ralith_ has quit [Remote host closed the connection]
drakonis_ has quit [Ping timeout: 250 seconds]
<judson> infinisil, would that include the debugging wrappers?
<judson> I wound up using execsnoop from BCC.
<judson> dhess, I wound up cribbing a way more complicated systemd setup in the interim. Rolling back to that more reasonable approach
sir_guy_carleton has joined #nixos
vaibhavsagar__ has joined #nixos
<{^_^}> [nixpkgs] @jtojnar merged pull request #48517 → gnome3.gdm: Always reset the environment for new sessions → https://git.io/fxuRg
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fxrdy
vaibhavsagar has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @markuskowa merged pull request #48349 → wcslib: 5.19.1 -> 5.20 → https://git.io/fxRWg
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fxrF3
revtintin has quit [Quit: WeeChat 1.9.1]
drakonis_ has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
Izorkin has quit [Quit: ZNC 1.7.1 - https://znc.in]
Izorkin has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #48717 → lollypop: 0.9.604 -> 0.9.605 → https://git.io/fxrbO
o1lo01ol1o has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @oxij opened pull request #48718 → anki: use send2trash from nixpkgs → https://git.io/fxrbg
<{^_^}> [nixpkgs] @worldofpeace opened pull request #48719 → eolie: 0.9.41 -> 0.9.45 → https://git.io/fxrbb
alex`` has joined #nixos
reinzelmann has quit [Quit: Leaving]
rfold has quit [Ping timeout: 252 seconds]
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
o1lo01ol1o has joined #nixos
drakonis_ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @oxij opened pull request #48721 → treewide: mass rebuild complicated cleanups → https://git.io/fxrAa
ATuin has joined #nixos
<ATuin> hi
<electrocat> how much disk space would i need to be a nixpkgs cache mirror
<electrocat> for a single channel
ATuin is now known as _atuin_
_atuin_ is now known as atuin
drakonis_ has joined #nixos
kiloreux_ has joined #nixos
<clever> electrocat: ive heard that a single full build of nixpkgs is about 80gig
<clever> electrocat: the bigger question, is how many evals back you want to cache things, and how you garbage collect
<electrocat> clever: single eval
phreedom_ has quit [Remote host closed the connection]
phreedom has joined #nixos
kiloreux has quit [Read error: Connection reset by peer]
emily has quit [Quit: Lost terminal]
<electrocat> and that's not too bad
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drakonis_ has quit [Ping timeout: 252 seconds]
<Thra11> Does Nix have anything like 'guix pack' (https://www.gnu.org/software/guix/manual/en/html_node/Invoking-guix-pack.html#Invoking-guix-pack) i.e. an easy way to produce a self-contained bundle of packages and dependencies ready to run on a system without Nix?
copumpkin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hyper_ch> ahmmm....... error: The option `services.znc.confOptions.networks.freenode.userName' defined in `/etc/nixos/configuration.nix' does not exist
drakonis_ has joined #nixos
nbardiuk has joined #nixos
<{^_^}> [nixpkgs] @oxij opened pull request #48722 → remmina: no webkit, optional gnome → https://git.io/fxrpM
trevorriles has joined #nixos
Itkovian has joined #nixos
<samueldr> hyper_ch: master or 18.09?
<hyper_ch> unstable
<samueldr> the znc module has been updated in #45470
<{^_^}> https://github.com/NixOS/nixpkgs/pull/45470 (by Infinisil, 8 weeks ago, merged): nixos/znc: More flexible module, cleanups
<samueldr> (the options.html listing lists "current-stable" only)
<hyper_ch> this looks now so complicated... thx :)
mayhewluke has quit [Ping timeout: 245 seconds]
<electrocat> ah, nix doesn't automatically do cross compilation when building systems not of the current architecture
<infinisil> hyper_ch: Whoops, I'll look into it
<hyper_ch> infinisil: why you need to look into it?
<samueldr> infinisil: though you already have taken care of it!
<samueldr> even wrote the doc in the release notes :)
<lunik1> Hi I'm trying to bootstrap nix on a RHEL 6 derived system. I've managed to build nix itself, but when I then use that to try and build nix from nixpkgs many libuv tests fail (but libuv builds fine independeltly)
mayhewluke has joined #nixos
<infinisil> Ahhh it's one of the removed ones, I see
<samueldr> luck of the draw :)
<infinisil> Phew
mekeor has joined #nixos
goibhniu has quit [Remote host closed the connection]
<Ralith> what's the proper way to define a derivation source that's composed of multiple git checkouts?
goibhniu has joined #nixos
<samueldr> Ralith: not sure, but maybe `srcs` is relevant https://nixos.org/nixpkgs/manual/#ssec-unpack-phase
<kyren> Thra11: you can copy a closure to a NAR file, but afaik there's not a nice simple command for it, you can read about it in the man page of nix-store
<kyren> specifically in the section about `nix-store --export`
<kyren> Oh, wait.. reading comprehension, you said on a system without nix. Never mind, I don't think that exists
<kyren> oh whaat, that's awesome I didn't know about that
<hyper_ch> infinisil: I don't really know how to rebuild my znc config now :(
<infinisil> hyper_ch: Just remove that option throwing an error
<hyper_ch> so how do I add the userName then?
<infinisil> That option never did anything
<hyper_ch> A nick identity specific to the IRC server.
<infinisil> services.znc.confOptions.userName did something, but services.znc.confOptions.networks.freenode.userName never did anything
<infinisil> hyper_ch: With my PR it's possible to do this now
<hyper_ch> ok
<Thra11> tilpner: cool. I'll take a look. Thanks
<infinisil> hyper_ch: Should be services.znc.config.Network."#freenode".Nick = "foobar"
<infinisil> hyper_ch: See https://wiki.znc.in/Configuration for more options
<hyper_ch> removing it seems to have worked
<bpye> Is there any better way to setup periodic tasks with NixOS than writing a file somewhere in etc and adding it to services.cron.cronFiles ?
<hyper_ch> you could write a systemd timer
<infinisil> ,timer bpye
<bpye> Yep that's what I'm looking for
<bpye> Can I cause it to not execute if my previous execution is still running, I want to setup a backup task, it is possible this will take >1 day
<makefu> there is not even a need to write a dedicated timer, just use "systemd.services.my-service.startAt" ( https://nixos.org/nixos/options.html#startat )
nikivi has quit [Quit: ZNC is awesome]
Ralith_ has joined #nixos
<Thra11> Looks like hydra's aarch64 build of rustc 1.29 got oom killed or something (https://hydra.nixos.org/build/83020833/nixlog/1). Is somebody able to poke hydra to try again for transient failures? (My system succeeded in building it locally, so it doesn't seem to be actually broken)
<bpye> makefu Is there any disadvantage doing it that way?
<makefu> bpye: it does not spawn another instance of the task, but trigger a systemd service to start. if the job is still running nothing will happen
<bpye> makefu Ah excellent, and if the job finishes successfully I assume it'll be run again?
nikivi has joined #nixos
<makefu> bpye: you are losing some of the flexibility which are provided by timers
<makefu> bpye: i am not really sure, my initial guess would be 'probably not' but maybe systemd timers provide some logic to achieve this
fragamus has joined #nixos
<bpye> Oh I don't mean immediately, I mean when the timer is next hit - not a one shot but recurring
<Ralith> samueldr (IRC): that is spectacularly poor documentation :/
emily has joined #nixos
<elgoosy> hi, I have this in my hardware-configuration https://pastebin.com/TasaArpb How do i make it accesible for a normal user (not root)?
<makefu> bpye: ah yes, according to the man page "Note that in case the unit to activate is already active at the time the timer elapses it is not restarted, but simply left running. There is no concept of spawning new service instances in this case."
<infinisil> Actually, startAt just generates timer units :)
<bpye> Ah, just a neat shortcut, thanks
<bpye> I think #nixos has to be the most helpful Linux distro channel :)
run500 has quit [Remote host closed the connection]
<makefu> elgoosy: set the option allow_other
<infinisil> :D
<makefu> elgoosy: check out https://superuser.com/questions/589763/how-to-mount-an-ntfs-filesystem-allowing-all-users-full-access - this will probably get you what you need
<bpye> Seems I'm still gonna have to stick one file in /etc/ for rclone's config
<makefu> for setting file system options use filesystems./my-fs.options ( https://nixos.org/nixos/options.html#filesystems.%3Cname%3F%3E.options )
<bpye> I could pass it all on the command line but access tokens and such make it quite silly
<makefu> setting config in /etc is really no problem, you can use environment.etc."rclone.conf".text
aleph- has joined #nixos
<elgoosy> makefu: better adding allow_other in hardware-configuration, right? Mount command should be somehow hooked so that it executes every time and turn system on
grp has joined #nixos
<{^_^}> [nixpkgs] @dywedir opened pull request #48723 → rust-cbindgen: 0.6.2 -> 0.6.3 → https://git.io/fxoeO
drakonis has joined #nixos
trevorriles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<makefu> elgoosy: yep, add it to your hardware config
<makefu> nixos will perform the mount at startup for you
<elgoosy> makefu: thank you
elgoosy has quit [Remote host closed the connection]
<makefu> if the fs is not available all the time you can use the options "noauto" and ",x-systemd.automount"
<makefu> too slow
drakonis_ has quit [Ping timeout: 260 seconds]
<bpye> makefu: I'm guessing if I later remove that line the corresponding file will be removed too?
<makefu> bpye: the symlink will be removed, yes
<makefu> when you look into /etc now you will see a lot of symlinks
<bpye> Oh right, of course because it's a symlink into the nixos store
<makefu> exactly
<{^_^}> [nixpkgs] @c0bw3b closed pull request #41243 → consul: 0.9.3 -> 1.0.6; also upgrade python-consul... → https://git.io/vhsJc
<{^_^}> [nixpkgs] @c0bw3b closed pull request #44192 → consul: 0.9.3 -> 1.2.2 → https://git.io/fNgpU
<Ericson2314> what's the easiest way to load the fixed nixos config in nix repl?
<grp> fixed config?
<Ericson2314> (`nix repl '<nixos-config>'` or whatever that NIX_PATH entry it is what I beleive just give the rool module file)
<grp> nix repl '<nixpkgs/nixos>'
<Ericson2314> grp (IRC): alright! thanks!
<nkaretnikov> how do i affect c_include_path when in nix-shell? i added a c library to a haskell package with librarySystemDepends, but #include <libname> still fails to find it when inside the shell.
Lears has joined #nixos
[Leary] has quit [Ping timeout: 252 seconds]
<vaibhavsagar__> nkaretnikov: your shellHook needs to set `C_INCLUDE_PATH`
<vaibhavsagar__> including your library in `librarySystemDepends` only affects nix-build, not nix-shell IIRC
trevorriles has joined #nixos
hyper_ch has quit [Remote host closed the connection]
zopsi has quit [Quit: Oops]
<{^_^}> [nixpkgs] @bhipple opened pull request #48724 → libdbusmenu-qt: 0.9.3+14 -> 0.9.3+16 → https://git.io/fxofa
<nkaretnikov> vaibhavsagar__: okay, any examples of that? i think i did it a couple of times, but that was a long time ago. ideally, i would like to provide the same experience via nix-shell and nix-build. without fiddling with nix-env etc.
<nkaretnikov> here's how i'm testing: created /tmp/test.c with #include <libname.h> and main, then do gcc -E /tmp/test.c in the shell
elgoosy has joined #nixos
<{^_^}> [nixpkgs] @primeos merged pull request #46304 → python3Packages.gpgme: enable python3 support → https://git.io/fAzKk
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/fxofP
zopsi has joined #nixos
hyper_ch has joined #nixos
civodul has joined #nixos
atuin has quit [Quit: WeeChat 2.2]
asymmetric_ has joined #nixos
asymmetric has quit [Ping timeout: 246 seconds]
trevorriles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #48689 → nixos/compton: fix corrupt colours with Mesa 18 on AMD → https://git.io/fxw8j
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fxoUA
<nkaretnikov> i'm doing this^ however, nix-shell complains about librarySystemDepends being undefined, is it not the right way to do it?
<{^_^}> [nixpkgs] @matthewbauer pushed commit from @Tmplt to release-18.09 « nixos/compton: fix corrupt colours with Mesa 18 on AMD »: https://git.io/fxoTm
<nkaretnikov> ... because i seem to see the same in the generic-stack-builder.nix
sigmundv has joined #nixos
<clever> nkaretnikov: you want rec there
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> > rec { a = 5; b = a; }
<{^_^}> { a = 5; b = 5; }
<clever> > { a = 5; b = a; }
<{^_^}> { a = 5; b = 10; }
<clever> > a
<{^_^}> 10
<clever> an old a somebody else made
elgoosy has quit [Remote host closed the connection]
Mateon2 has joined #nixos
Mateon1 has quit [Ping timeout: 246 seconds]
Mateon2 is now known as Mateon1
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fragamus has joined #nixos
<nkaretnikov> clever: yeah, it fixed that, but i still can't figure out how to export env vars: i do export Foo=foo in shellHook and env | grep Foo returns nothing in the shell
<clever> nkaretnikov: every attribute on the derivation is automatically made into an env var
<clever> nkaretnikov: what nix-shell command are you running?
<nkaretnikov> nix-shell --pure -j1
<nkaretnikov> with NIX_PATH=nixpkgs=$HOME/nixpkgs in front
<nkaretnikov> clever: ^
<clever> and what are the contents of shell.nix?
<clever> nkaretnikov: what else is in that file?
<nkaretnikov> a lot, but it's a standard template generated by cabal2nix, do you really want to see the entire file?
<clever> nkaretnikov: yeah, that would help
<nkaretnikov> okay, give me a sec
<nkaretnikov> clever: ^
<nkaretnikov> so, if i set directly as in Foo=foo, then the generic c builder complains
<clever> nkaretnikov: the .env at the very end accesses the env for building haskell packages, which ignores most things you pass to mkDerivation
<nkaretnikov> okay, so how do i make it work?
<clever> you will want to do `lib.overrideDerivation drv.env (old: { buildInputs = old.buildInputs ++ [ portaudio ]; })` in the area between `then` and `else`
<catern> hey #nixos, packages from Nix notably don't dynamically load NSS modules, which means you have to use nscd, right? What should I do when I'm in a container, and don't run anything but a single process? Do I still have to run nscd or what?
<clever> catern: basic dns and /etc/hosts still work without nscd, you just loose advanced things like avahi
<nkaretnikov> clever: wait, isn't there a way to keep everything inside f?
<Ericson2314> config in submodule is for the current submodule, which isn't very useful
<clever> nkaretnikov: the .env attribute is rather basic
<Ericson2314> It's annoying to manually map over the attrsOf or listOF
<Ericson2314> is there any other way I can do my per-enty config and then let the module system's combination do the reducing work?
[Leary] has joined #nixos
<clever> Ericson2314: i think what you do is mapAttr or attrsOf over the entire config, outside of the submodule, when assigning other config (like systemd services)
<Ericson2314> clever (IRC): ok thanks
<Ericson2314> yeah this should be fixed
<clever> Ericson2314: this for examples defines some submodule options within fileSystems, then it just maps over a the result of running filter on all fileSystems
<Ericson2314> I don't know what one can do in config beside assign other module's stuff, ya know?
<clever> and the map is within boot.initrd
<clever> Ericson2314: one sec
Lears has quit [Read error: No route to host]
<Ericson2314> thanks for the example though
<clever> Ericson2314: internally, fileSystems is a list based option
<clever> if you try to assign fileSystems."/", it will act more like you had assigned fileSystems = [ { name = "/"; } ];
<nkaretnikov> clever: oh wow, it seems to work. thank you so much! i would never figure this out on my own.
<fiatjaf> nix pills is awesome
<Ericson2314> loraOf or whatever it is?
<Ericson2314> listOrAttrsOf
<clever> Ericson2314: the attr you used, becomes the name on line 28, which 62 then uses as the default mountPoint
<fiatjaf> best tutorial/introduction ever written
<Ericson2314> yeah In this case I'm making the thing and using attrsOf so thankfully that's all side-stepped
<clever> Ericson2314: and config can also be used here, to default other options to eachother, or what you specified, after merging
<__monty__> Found the manual a lot more informative than the pills tbh. Maybe there was cross-polination though.
emacsoma1 is now known as emacsomancer
<catern> clever: hmmmmmmm okay fine but what if I want those advanced things?
drakonis_ has joined #nixos
<catern> clever: there is one solution, which is bind-mounting an nscd port from the container host. is there any other solution?
<clever> catern: what stops you from running nscd in the container?
<{^_^}> [nixpkgs] @dywedir merged pull request #48643 → Unity3D: 5.6.1 -> 2017.4.10 → https://git.io/fxafc
<{^_^}> [nixpkgs] @dywedir pushed commit from @Hinidu to master « unity3d: 5.6.1 -> 2017.4.10 (#48643) »: https://git.io/fxoqZ
<bpye> Is there a helper for building go binaries? I know some languages have them...
<bpye> I want to package a service (miniflux) I self host as a bit of an exercise
<catern> clever: well, it's awkward to run other processes in a container
<catern> nothing is monitoring them, restarting them, etc
<clever> catern: what kind of container is it?
erasmas has quit [Quit: leaving]
<catern> Kubernetes I guess? I don't really know :)
<catern> Kubernetes running Docker? is that what you're asking?
<clever> catern: runit may be of interest to you then
<clever> at start,up, it will run /etc/runit/1, 3 is for shutdown, i think 2 was for when it finishes booting?, and then the run's under /etc/service/name/run are services it keeps running
jedahan has joined #nixos
worldofpeace has joined #nixos
worldofpeace has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 252 seconds]
<bpye> Hm, looks like there is go2nix and dep2nix but nothing for go 1.11 modules?
rycee has joined #nixos
Thra11 has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #48722 → remmina: no webkit, optional gnome → https://git.io/fxrpM
<{^_^}> [nixpkgs] @Mic92 pushed 4 commits to master: https://git.io/fxoYB
grp has quit [Quit: box shutting down...]
jperras has joined #nixos
effsquared has quit [Ping timeout: 244 seconds]
jperras has quit [Ping timeout: 252 seconds]
Rusty1 has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @jtojnar merged pull request #48723 → rust-cbindgen: 0.6.2 -> 0.6.3 → https://git.io/fxoeO
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fxoO8
primeos has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #48719 → eolie: 0.9.41 -> 0.9.45 → https://git.io/fxrbb
<{^_^}> [nixpkgs] @xeji pushed commit from @worldofpeace to master « eolie: 0.9.41 -> 0.9.45 (#48719) »: https://git.io/fxoOD
__monty__ has quit [Quit: leaving]
<{^_^}> [nixpkgs] @xeji merged pull request #48717 → lollypop: 0.9.604 -> 0.9.605 → https://git.io/fxrbO
phreedom has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @xeji pushed commit from @worldofpeace to master « lollypop: 0.9.604 -> 0.9.605 (#48717) »: https://git.io/fxoOd
Guanin has quit [Ping timeout: 276 seconds]
phreedom has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b pushed 3 commits to master: https://git.io/fxo3T
<{^_^}> [nixpkgs] @c0bw3b merged pull request #48718 → anki: use send2trash from nixpkgs → https://git.io/fxrbg
jperras has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
jperras has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @c0bw3b pushed to master « warmux: 11.04.1 -> unstable-2017-10-20 (#48277) »: https://git.io/fxo36
<{^_^}> [nixpkgs] @c0bw3b merged pull request #48277 → warmux: 11.04.1 -> unstable-2017-10-20 → https://git.io/fx4bW
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<dmj`> hi, how can I enable a linting pass w/ hlint in my nix build
<dmj`> for a haskell package
<dmj`> doesn’t this mean I need to define a new phase
aleph- has quit [Ping timeout: 244 seconds]
<vaibhavsagar__> dmj`: append to the checkPhase?
<dmj`> vaibhavsagar__: ah, postCheck ?
<vaibhavsagar__> I think that would work too
<dmj`> there he is!
<dmj`> swagger schema validation? dayum son
drakonis_ has quit [Read error: Connection reset by peer]
<dmj`> clever: is overrideDerivation no longer en vogue ?
<dmj`> clever: should I use overrideAttrs instead
<clever> dmj`: yeah, overrideAttrs is better, when not dealing with haskell
<clever> for haskell, you want overrideCabal
alex`` has quit [Ping timeout: 268 seconds]
justanotheruser has joined #nixos
<dmj`> clever: nice
<dmj`> clever: what is “warning no common commits”, I’m doing builtins.fetchGit nixpkgs at 89b618771ad4b0cfdb874dee3d51eb267c4257dd
<clever> dmj`: what are the exact args you gave it?
<dmj`> pkgs = import (builtins.fetchGit {
<dmj`> rev = "89b618771ad4b0cfdb874dee3d51eb267c4257dd";
<dmj`> });
<clever> it would probably be faster to use fetchTarball
<dmj`> clever: it should work though
<clever> fetchGit will clone the repo, including the full history, and the cache you have is breaking things
<clever> fetchTarball fetches the state at that rev, so it has less to download
<dmj`> clever: sure, but that’s seconday, a message like “no common commits” seems to indicate it cannot find that hash from the remote
<dmj`> secondary*
<clever> the problem is that the branches you have in your local cache dont share any common commits with the remote git repo
<clever> so it cant compute the differences for a fetch
<clever> that typically happens if you try to fetch from 2 entirely different repos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<clever> dmj`: the cache is held in ~/.cache/nix/git/
<dmj`> clever: I got that hash from inspecting the git rev from the channel I was using
<clever> the problem is more likely that something else you fetched in the past, with fetchGit, is incompatible
<clever> you may need to wipe ~/.cache/nix/git/
MP2E has joined #nixos
<dmj`> clever: I don’t see why I would need to have that hash in my cache before fetching it
<clever> dmj`: the problem is with the git internals, you must have common commits to fetch
<dmj`> clever: I removed the cache, now I see
<dmj`> error: Server does not allow request for unadvertised object 89b618771ad4b0cfdb874dee3d51eb267c4257dd
<dmj`> clever: when I call nix-channel —update will it update the git cache
<dmj`> clever: apparently not
mayhewluke has quit [Ping timeout: 252 seconds]
<clever> this has nothing to do with nix-channel
thc202 has quit [Ping timeout: 245 seconds]
<clever> dmj`: that is a limitation of the git protocol, you must know which branch the commit is in, try adding ref = "master";
mayhewluke has joined #nixos
<dmj`> clever: when I call nix-channel —update won’t it fetch a newer hash of nixpkgs from nixpkgs-channels (nixpkgs-unstable in this case), and then update the git cache
<clever> no, it will download a tarball of the channel, and ignore git entirely
<dmj`> clever: ah, yea, that seems like a purer way to do things...
chreekat has joined #nixos
rprije has quit [Ping timeout: 246 seconds]
rprije has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
judson has quit [Remote host closed the connection]
asymmetric_ has quit [Ping timeout: 272 seconds]
fragamus has joined #nixos
drakonis1 has joined #nixos
nbardiuk has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @volth opened pull request #48725 → perlPackages: fix evaluate with allowAliases=false → https://git.io/fxonB
copumpkin has joined #nixos
Rusty1 has joined #nixos
copumpkin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @timokau merged pull request #44527 → [WIP] sage: 8.3 -> 8.4 → https://git.io/fNX76
<{^_^}> [nixpkgs] @timokau pushed 18 commits to master: https://git.io/fxocv
jperras has joined #nixos
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/1b9888aaa03 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<avn> samueldr: Can I ask you backport 4f09e0584906a6792128330a9b44bfe6e729b94c and 67ea56717a54096f499b195a4f44d11fdbbcda2b to 18.09? (I hope it not pull other commits, otherwise pylint not useable with python 2.7)
<samueldr> avn: no worries if you can't but a PR can be made for backports by anyone, this is done through using `git cherry-pick -x` on the wanted commits https://nixos.org/nixpkgs/manual/#submitting-changes-stable-release-branches
<samueldr> (while being checked out on the 18.09 branch)
<avn> samueldr: Yep, I will do myself tomorrow, no problems ;)
<samueldr> if you open such a PR, on which you have verified this all to work right, possibly with a test case, it would be wonderful
<samueldr> oh neat! thank you!
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
judson has joined #nixos
<drakonis1> so.
<drakonis1> how's the backports proposal?
rprije has quit [Ping timeout: 245 seconds]
<judson> This is kind of off topic, but dhess implied they'd solved this: I've got a 172 address for my local DNS resolver. It seems like the container can't reach that address, still.
rprije has joined #nixos