gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! 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
<nikivi> I have a weird situation where I can't push to one of my own repos
<nikivi> I can push to any other of my GitHub repos but not this one
<nikivi> and the reason is due to ~/.ssh/id_rsa key it seems
<nikivi> the problem is that I forgot passphrase for it
<nikivi> I generated a new key as https://superuser.com/questions/760907/forgot-password-to-id-rsa suggests
<nikivi> but how do I now have the repo accept my new key if I can?
<nikivi> oh nvm it was https://github.com/settings/keys :]
chreekat has joined #nixos
<{^_^}> [nixpkgs] @andrey-komarov opened pull request #45359 → tdlib: init at 2018-03-20 → https://git.io/fAvXL
mayhewluke has quit [Ping timeout: 260 seconds]
<srk> is it possible to override doCheck for all packages in haskell.packages.ghcxyz?
<srk> maybe if I override pkgs.haskell.packages.ghcjs.callPackage
<elvishjerricco> Anyone use ZFS for swap on NixOS? I can't seem to get it to work. Whenever I start needed swap, the whole system instantly locks up
<elvishjerricco> That's with the settings recommended here: https://github.com/zfsonlinux/pkg-zfs/wiki/HOWTO-use-a-zvol-as-a-swap-device
lsyoyom has quit [Ping timeout: 240 seconds]
joebobjoe has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fAvXg
gmarmstrong has joined #nixos
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 272 seconds]
Acou_Bass has quit [Ping timeout: 272 seconds]
lassulus_ is now known as lassulus
lsyoyom has joined #nixos
hlolli_ has quit [Remote host closed the connection]
<timclassic> Can someone recommend the right way to remove the `capabilities` attribute from `security.wrappers.ping` from an import referenced in configuration.nix? The existing kernel check conditional in network-interfaces.nix doesn't work in my situation.
abueide has joined #nixos
<emily> timclassic: I also want to know the answer to this question and now wonder how similar our environments are.
abueide has quit [Remote host closed the connection]
abueide has joined #nixos
carlosdagos has joined #nixos
mayhewluke has joined #nixos
abueide has quit [Remote host closed the connection]
abueide has joined #nixos
abueide has quit [Remote host closed the connection]
abueide has joined #nixos
Acou_Bass has joined #nixos
gmarmstrong has quit [Quit: Quit]
<timclassic> emily: I'm running NixOS on SmartOS using the lx-brand ABI emulation, so I have a bunch of little adjustments to make. I have the following in my configuration.nix, and it works:
<timclassic> security.wrappers.ping.source = "${pkgs.iputils.out}/bin/ping";
<timclassic> But when I move that to an imported file, it loses its effect.
<timclassic> (the effect being the removal of the `capabilities` attribute)
<emily> timclassic: cool, SmartOS is awesome!
Acou_Bass has quit [Ping timeout: 276 seconds]
<timclassic> I agree :)
<emily> My environment is as esoteric but dissimilar; I'm running NixOS in lxd in crosvm in CrOS
<emily> it's in a user namespace and stuff... you can't set the caps needed for ping, though it works if you sudo in the container
<timclassic> emily: Ah neat, I haven't used LXD before. I did some LXC stuff waaay back, but I've forgotten it all by now.
<timclassic> Yeah, it sounds like we're facing similar challenges.
aarvar has quit [Ping timeout: 244 seconds]
<emily> yeah, you have to use the LXD stuff since you don't get to choose your own VM image for the Linux containers support, it just ships with lxd ^6;
<emily> * ^^;
judson has joined #nixos
<judson> Remind me what I should do about libGL.1.so not being found for a steam game?
abueide has quit [Ping timeout: 272 seconds]
<judson> Reinstall Steam via Nix?
<techieAgnostic> trying to get steam working seems scary
<techieAgnostic> ive been putting off trying to get gog stuff running
<judson> Fresh installs build just fine, and the "steam-run" environment is often more convenient than trying to elfpatch everything in.
<judson> But the actual problem here, I think, has to do with incompatible libGL stuff.
joebobjoe has quit [Ping timeout: 276 seconds]
<gchristensen> oh then yea probably just hav eto reinstall it
<judson> I sometimes muse on the feasibility of a "just patch it" tool.
<judson> "I got this binary from somewhere; patch its ELF with Nix specific paths, plz"
<judson> Conversely, I wonder about an ld.so built for Nix with a lookup table.
ericsagnes has joined #nixos
abueide has joined #nixos
<timclassic> emily: Did you have to "infect" NixOS into the container?
<emily> timclassic: no, I used the containerTarball with a few custom tweaks
<emily> I did have to slip it into place of the default container though
katrin has joined #nixos
abueide has quit [Ping timeout: 240 seconds]
<timclassic> Ah. I have an infect-style script to create a NixOS image within Joyent's public cloud, since they require you start with one of their pre-made lx-brand images. I'm trying to clean it up, which is how I ended up with this current mystery.
<katrin> i notice how 31.3 container networking specifies nat.externalInterface, is there any way to set up NAT from a container's IP to an external IP (on a system with more than one IP), without touching iptables or something similar?
<timclassic> emily: CrOS is Chrome OS?
<emily> yeah
ryanartecona has quit [Quit: ryanartecona]
MoziM has joined #nixos
<drakonis_> ah smartos
<katrin> ooooh, thanks. :o
<srk> katrin: externalIP bit is important :)
<katrin> mmmm, what about defining more than one external ip for mapping?
<srk> was fighting with it few hours ago - had to do iptables -F -t nat due to libvirt rules it seems
silver has quit [Read error: Connection reset by peer]
<srk> not sure about multiple externalIP
<katrin> mmm...
b has quit [Ping timeout: 276 seconds]
Supersonic has quit [Ping timeout: 265 seconds]
b has joined #nixos
Supersonic has joined #nixos
aszlig has quit [Quit: Kerneling down for reboot NOW.]
aszlig has joined #nixos
<judson> Hm. No, that's not enough to fix it... `./EXAPUNKS.bin.x86_64: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory`
<srk> judson: something like this? https://paste.vpsfree.cz/4oC5+dVT/
<srk> hm, that's steam game
<srk> nvm
johnw has joined #nixos
lassulus_ has joined #nixos
thc202 has quit [Ping timeout: 240 seconds]
lassulus has quit [Ping timeout: 268 seconds]
lassulus_ is now known as lassulus
joebobjoe has joined #nixos
joebobjoe has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @copumpkin opened pull request #45360 → krb5: add linux keyring support → https://git.io/fAvDg
<drakonis_> judson, which distribution is this
<drakonis_> ah wait right
<drakonis_> use nixgl for that
<drakonis_> as libgl dependent software breaks
<gchristensen> what is nixgl and why isn't it just how nixpkgs works?
<drakonis_> its what i was recommended to get opengl software working
<gchristensen> oh cool
c15ade4 has joined #nixos
<c15ade4> anyone tried packaging https://klee.github.io/ ?
<{^_^}> [nixpkgs] @Ekleog opened pull request #45361 → wabt: init at 1.0.5 → https://git.io/fAvyI
<{^_^}> [nixpkgs] @peterhoeg opened pull request #45362 → okteta: 17.12.3 -> 0.25.2 → https://git.io/fAvyY
aarvar has joined #nixos
<dmj`> Is the performance of nixos containers worse?
c15ade4 has quit [Quit: WeeChat 2.0]
c15ade4 has joined #nixos
<infinisil> dmj`: I think it's exactly the same
<dmj`> infinisil: tight
<c15ade4> dmj`: it uses systemd nspawn which you can read about.
<dmj`> c15ade4: woa
<dmj`> c15ade4: looks more powerful than docker
fragamus has joined #nixos
cantsin has joined #nixos
rodgort has quit [Quit: Leaving]
ivan has quit [Quit: lp0 on fire]
fragamus has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<timclassic> emily: I'm using the following for now: https://gist.github.com/timclassic/242e01f1a3768af1b1d3d418a940bff0. This stops `nixos-rebuild switch' from complaining, at least. I also comment out all "a+ ..." lines in /etc/tmpfiles.d/systemd.conf.
cantsin has quit [Quit: WeeChat 2.2]
<timclassic> emily: This causes a rebuild of several packages, but I was rebuilding them anyway due to some other patches.
Yourwaterloos has joined #nixos
<Yourwaterloos> Is it possible to use Nix without channels at all?
<Yourwaterloos> It would be interesting to just reference everything by package source hash
<emily> timclassic: if you figure out how to get stuff set setuid instead of setcapped that would be nice.
<emily> having to use "sudo" for ping is a bit silly.
andreabedini has joined #nixos
rodgort has joined #nixos
<timclassic> My first thought is that we need a global don't-use-capabilities option that modules can interpret, and perhaps the kernel version check would set an initial value for that option but it can be overridden.
<timclassic> (agreed about the silliness)
<timclassic> In the case of SmartOS, you can just use Solaris ping binary in /native/usr/sbin/ping :)
ivan has joined #nixos
<infinisil> ,wrapping
<{^_^}> infinisil: Did you mean wrapper?
<infinisil> timclassic: ^^ these are ways to wrap a package without having to rebuild it
<{^_^}> [nixpkgs] @peterhoeg pushed to master « peruse: 1.2.20180219 -> 1.2.20180816 »: https://git.io/fAvyd
<timclassic> infinisil: Does that work when a module has a script that references `${pkgs.libcap.out}/bin/setcap`?
<timclassic> I'm referring to $NIXPKGS/nixos/modules/security/wrappers/default.nix.
<infinisil> If you put it in an overlay, sure
cantsin has joined #nixos
<infinisil> (Or package overrides too, but overlays are preferred and the now recommended way)
<infinisil> Yeah, everything will work just as with your current solution, you just don't need to rebuild libcap
drakonis_ has quit [Remote host closed the connection]
<timclassic> infinisil: Oh, but it will still rebuild the dependent packages? If so, that makes sense.
<timclassic> While on the topic of overlays, what is the preferred way to set up system-wide overlays?
<infinisil> Yeah
<timclassic> I've only used them on a per-user basis so far
<infinisil> The nixpkgs.overlays option
<timclassic> Oh, thanks!
<infinisil> :)
<{^_^}> [nixpkgs] @copumpkin opened pull request #45363 → krb5: add linux keyring support → https://git.io/fAvyj
<timclassic> Ah, it's not in the NixOS manual, only the nixpkgs manual. That may be why I didn't find it before.
Anton-Latukha has quit [Ping timeout: 244 seconds]
<c15ade4> Yourwaterloos: I don't use channels
<c15ade4> I set NIX_PATH blank and use my own script to update my machines
<c15ade4> I don't think channels keep software stable enough, even the 'stable' channel seems to constantly get version changes
<Yourwaterloos> interesting
<Yourwaterloos> do you have your own set of packages then not dependent on a particular channel?
adamantium has joined #nixos
mayhewluke has quit [Ping timeout: 272 seconds]
<c15ade4> if there is a package I want to stay the same I just copy it into my git repository
<Yourwaterloos> ah so you are still using the same namespacing system just with your own repo
<c15ade4> well, i have a nix expression for the version of nixpkgs I am using
<c15ade4> that is saved in the repository
<{^_^}> [nixpkgs] @jbaum98 opened pull request #45364 → [WIP] sage: Add darwin support → https://git.io/fAvSm
<c15ade4> Yourwaterloos: i dunno if i recommend it, i just don't trust the channels
<Yourwaterloos> seems like a reasonable set up particular with smaller projects where curation is harder
<c15ade4> I would never leave a server to just pull updates from a channel automatically, i think its crazy haha.
<c15ade4> if there was another super conservative channel that only got updates to the kernel and openssh i might do it.
<Yourwaterloos> I would really like to be hyperconservative with packages and just reference everything by a human meaningless Id
<Yourwaterloos> specify hash for firefox version etc
<c15ade4> if you do that you end up writing your own automatic update scripts
<c15ade4> and wonder why you bothered haha
<Yourwaterloos> grr
<adamantium> ,,locate chgrp
<adamantium> how does that work ^
<Yourwaterloos> the main attraction of nix for me is the reproducible part
<Yourwaterloos> so I can setup some project and come back in 2 years and know it will work
<Yourwaterloos> or get the same thing on someone elses machine
<Yourwaterloos> and right now you have to do channel pinning
<Yourwaterloos> per project
<c15ade4> yeah, I mean, i do that hand curation, its pretty good for projects.
johnw has quit [Ping timeout: 276 seconds]
b has quit [Ping timeout: 276 seconds]
<c15ade4> Yourwaterloos: look at this https://github.com/andrewchambers/nixos-pure-rebuild
<adamantium> Hey, i'm trying to add a a services.udev.extraRules . It nixos-rebuild errs on the line RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness", \ ...
<adamantium> Checking that all programs called by absolute paths in udev rules exist... FAIL
<adamantium> /bin/chgrp is called in udev rules but not installed by udev
<c15ade4> Yourwaterloos: another approach is to use a program called direnv to setup IX_PATH when you change into your project
<c15ade4> and use a git submodule
<c15ade4> for the nixpkgs version
<judson> Huzzah! Found that the game had a wrapper that undid the LD_PRELOAD stuff that steam-run does so that it can open PDFs.
<nikivi> every time i try to install any nix package I get: nix-env:1: maximum nested function level reached
<nikivi> searching online, I am not sure what a fix for this is
joebobjoe has joined #nixos
<Yourwaterloos> hm
mayhewluke has joined #nixos
<nikivi> I don't suppose restarting would help
za1b1tsu has joined #nixos
johnw has joined #nixos
Fare has quit [Ping timeout: 244 seconds]
fragamus has joined #nixos
<nikivi> it seems its a zsh caused issue. but how does it relate to nix?
<nikivi> I tried to run `nix-env -iA google-cloud-sdk`
za1b1tsu has quit [Quit: WeeChat 2.1]
fragamus has quit [Client Quit]
<infinisil> ,locate chgrp
<{^_^}> Found in packages: inferno, busybox, coreutils, bashCompletion
<infinisil> adamantium: ^^
<infinisil> ,locate bin chgrp
<{^_^}> Found in packages: busybox, coreutils
<nikivi> anyone know what might cause this issue?
<infinisil> Or rather that if you want to find binaries
<nikivi> should I reinstall nix perhaps?
<c15ade4> nikivi: nixos.google-cloud-sdk ?
<nikivi> c15ade4 I am on macOS so for me its nixpkgs.google-cloud-sdk
<nikivi> but I get this error on any package I want to install now
<nikivi> i.e. 'nix-env -iA tree' gives same error
<nikivi> I thought maybe there was a limit to how many packages you could install with nix but I dont have that many
Yourwaterloos has quit [Quit: Leaving]
joebobjoe has quit [Ping timeout: 276 seconds]
worldofpeace has quit [Remote host closed the connection]
<colemickens> so, I rebased on nixos-unstable, and now libvirtd fails: Aug 19 22:00:15 xeep libvirtd[1301]: 2018-08-20 05:00:15.214+0000: 1301: error : virJSONJanssonOnceInit:66 : this function is not supported by the connection driver: libjansson.so.4 JSON library not available: libjansson.so.4: cannot open shared object file: No such file or directory
<colemickens> but I get zero hits for this on nixpkgs repo?
Guanin has quit [Ping timeout: 272 seconds]
Guanin has joined #nixos
aarvar has quit [Ping timeout: 256 seconds]
<nikivi> restarted and still getting same `nix-env:1: maximum nested function level reached` error on each package install
<{^_^}> #45324 (by teto, 20 hours ago, merged): libvirt: darwin/linux fix dlopen("libjansson.so.4")
<colemickens> Either I can't type or GitHub's search is worse than I'd thought.
<colemickens> anyway, thanks!
<{^_^}> [nixpkgs] @7c6f434c merged pull request #45354 → xfig: 3.2.5b -> 3.2.7a → https://git.io/fAvow
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fAvHq
revtintin has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
trevthedev has quit [Ping timeout: 240 seconds]
trevthedev has joined #nixos
witchof0x20 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jqueiroz opened pull request #45366 → subberthehut: init at 20 → https://git.io/fAvHW
aarvar has joined #nixos
witchof0x20 has joined #nixos
Gohla has quit [Ping timeout: 240 seconds]
copumpkin has quit [Ping timeout: 256 seconds]
Ariakenom has joined #nixos
dmj` has quit [Quit: Connection closed for inactivity]
__lawlesseel__ has quit [Remote host closed the connection]
__lawlesseel__ has joined #nixos
<vaibhavsagar> is there a way to get around the "no gsettings schemas are installed on the system" error in a nix-shell?
<vaibhavsagar> I don't think `wrapGAppsHook` is running on my executable
trevthedev has quit [Remote host closed the connection]
trevthedev has joined #nixos
slyfox_ has joined #nixos
slyfox has quit [Ping timeout: 244 seconds]
aarvar has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @peterhoeg merged pull request #44947 → kde-frameworks: 5.48 -> 5.49 → https://git.io/fNdGF
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fAvQ9
rauno has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg merged pull request #45362 → okteta: 17.12.3 -> 0.25.2 → https://git.io/fAvyY
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fAvQ7
hyper_ch2 has joined #nixos
trevthedev has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @joachifm merged pull request #44250 → strelka: init 2.9.5 → https://git.io/fNV3W
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/fAv7t
Ariakenom has quit [Read error: Connection reset by peer]
trevthedev has joined #nixos
trevthedev has quit [Ping timeout: 240 seconds]
layus has quit [Ping timeout: 256 seconds]
layus has joined #nixos
trevthedev has joined #nixos
tusj has joined #nixos
trevthedev has quit [Ping timeout: 272 seconds]
joebobjoe has joined #nixos
trevthedev has joined #nixos
xAFFE has joined #nixos
Ariakenom has joined #nixos
trevthedev has quit [Ping timeout: 272 seconds]
trevthedev has joined #nixos
adisbladis has joined #nixos
trevthedev has quit [Ping timeout: 272 seconds]
rprije has quit [Remote host closed the connection]
trevthedev has joined #nixos
<adisbladis> Given a store path from a multi output derivation how would I go from lets say the "lib" output to the "out" output?
<sphalerite> adisbladis: nix-store -q --deriver and nix-store -q --outputs I guess
<adisbladis> sphalerite: Perfect :) Thanks
trevthedev has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @vcunat pushed 460 commits to staging-next: https://git.io/fAvdC
slack1256 has quit [Ping timeout: 240 seconds]
joebobjoe has quit [Ping timeout: 255 seconds]
mayhewluke has quit [Ping timeout: 272 seconds]
xAFFE has left #nixos [#nixos]
trevthedev has joined #nixos
Tucky has joined #nixos
johanot has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/8b70071f177 (from 14 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
mayhewluke has joined #nixos
thor has joined #nixos
jepityr has joined #nixos
vidbina has joined #nixos
thor has quit [Client Quit]
thor has joined #nixos
goibhniu has joined #nixos
thc202 has joined #nixos
betaboon has joined #nixos
<jepityr> Hey guys, anyone know how to build polybar with pulseaudio support? I have nixpkgs.config.pulseaudio = true in my configuration.nix, but I still get 'Unknown module: internal/pulseaudio' when I try to run it with a pulseaudio module...
<srhb> jepityr: polybar takes an argument pulseSupport which defaults to false, and libpulseaudio which defaults to null
<srhb> jepityr: So something like polybar.override { inherit (pkgs) libpulseaudio; pulseSupport = true; }
<srhb> Actually I guess setting pulseSupport = true; will suffice :)
<jepityr> Hm, when I try to rebuild with `(polybar.override { pulseSupport = true; })` I get an error saying "error: anonymous function at /nix/store/3py39bvbqhswbqm8khgy0nv908makqdf-nixos-18.03/nixos/pkgs/applications/misc/polybar/default.nix:1:1 called with unexpected argument 'pulseSupport', at /nix/store/3py39bvbqhswbqm8khgy0nv908makqdf-nixos-18.03/nixos/lib/customisation.nix:74:12"
<{^_^}> [nixpkgs] @Ericson2314 pushed to postgresql-cross « postgresql: Fix cross compilation »: https://git.io/fAvb9
<techieAgnostic> whats the package to get sha256sum?
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #45370 → postgresql: Fix cross compilation → https://git.io/fAvbH
<srhb> ,locate sha256sum
<{^_^}> Found in packages: busybox, coreutils
<techieAgnostic> thanks :)
<srhb> jepityr: Apparently that is not in 18.03 yet, only unstable.
schjetne has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 pushed to openjdk-cross « openjdk: Fix a cross problem »: https://git.io/fAvbF
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #45371 → openjdk: Fix a cross problem → https://git.io/fAvbA
<{^_^}> [nixpkgs] @vcunat pushed commit from @Ericson2314 to postgresql-cross « postgresql: Fix cross compilation »: https://git.io/fAvNt
Acou_Bass has joined #nixos
<jepityr> srhb: Building the unstable version worked, thanks so much!
<srhb> jepityr: Welcome :)
MoziM has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @vcunat pushed commit from @Ericson2314 to staging-next « postgresql: Fix cross compilation »: https://git.io/fAvNW
<{^_^}> [nixpkgs] @vcunat merged pull request #45370 → postgresql: Fix cross compilation → https://git.io/fAvbH
jepityr has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @vcunat pushed commit from @Ericson2314 to openjdk-cross « openjdk: Fix a cross problem »: https://git.io/fAvN4
MoziM has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 0 commits to postgresql-cross: https://git.io/fAvN0
<{^_^}> [nixpkgs] @vcunat pushed commit from @Ericson2314 to staging-next « openjdk: Fix a cross problem »: https://git.io/fAvNz
<{^_^}> [nixpkgs] @vcunat merged pull request #45371 → openjdk: Fix a cross problem → https://git.io/fAvbA
carlosdagos has quit [Quit: Connection closed for inactivity]
<thor> I need to add a couple of lines to key-util's configuration, how would I go about doing that, key-util doesn
<thor> doesn't have any way to append or override it's configurationg as far as I can tell
trevthedev has quit [Ping timeout: 240 seconds]
<srhb> thor: I can't seem to find anything called key-util
<thor> my bad, it
__Sander__ has joined #nixos
<thor> it's keyutils
<thor> cifs-utils had be mentally add that hyphen
trevthedev has joined #nixos
<srhb> And how does configuring it work? Does it take a command line argument? Or do you want to override something during the build?
<thor> I need to append 2 lines to etc/request-key.conf to (hopefully) allow me to mount a DFS namespace (ref. https://mikemstech.blogspot.com/2012/10/how-to-mount-dfs-share-in-linux.html)
logzet has joined #nixos
<srhb> thor: You could use overrideAttrs to make a version of that package that has those lines appended.
<srhb> thor: It could be as simple as postInstall = ''cat youradditions >> $out/etc/reqiest-key.conf''
arjen-jonathan has joined #nixos
<srhb> Correcting for any typos I made. :-P
<thor> hehe
<thor> and that won
<thor> won
<thor> (grrr. 4 months using a different keyboard)
<thor> and that won't cause any issues when doing a rebuild I take it?
<{^_^}> [nixpkgs] @vcunat pushed 0 commits to openjdk-cross: https://git.io/fAvAU
<srhb> I mean, you'll get your version of the file rather than the original. So if that causes no problems -- and that's your desire -- you should be fine
<thor> great, thanks, first time I endeavour into altering a package like this :)
<srhb> Oh and using that method you'll be rebuilding the package as well. If you want to avoid that, you should probably make a version that wraps it instead.
<srhb> thor: Cool, it's a good learning experience. :)
troydm has quit [Ping timeout: 240 seconds]
CodeKiwi has quit [Ping timeout: 260 seconds]
<thor> yeah, I love nixos for my work machine, nice to just do upgrades and rest easy that should it blow up, worst case, I can just pull down the nix files from my git and rebuild it in no time
<srhb> Or rollback! Never underestimate :-)
<adisbladis> Rollbacks <3
<srhb> (Depending on the severity of the explosion...)
<thor> yeah, I
<thor> I'm talking epic explosion :P
<manveru> as long as you still have a working git ;)
<thor> if github goes down, then I got bigger worries
<Yaniel> if github goes down you still have a copy of the repo on your workstation, right?
<Yaniel> ...right?
<thor> I do
<thor> I mirror all my repos to a private gitlab
<Yaniel> (ofc nixpkgs will be down then as well)
<thor> that's more what I was aiming at :P
trevthedev has quit [Ping timeout: 240 seconds]
DigitalKiwi has joined #nixos
layus has quit [Ping timeout: 276 seconds]
<manveru> i meant more the git binary :)
<manveru> or the filesystem
<manveru> but yeah
<Yaniel> I think you can mirror that too, though
<Yaniel> and run hydra somewhere
<srhb> *paranoia intensifies*
<srhb> :-)
<thor> a bit above my level of nixos fu yet :P
<thor> besides, a lot that uses fetchGithub in nixpkgs
<srhb> thor: Most of that will not matter much as long as the cache is still alive. :)
<{^_^}> [nixpkgs] @Mic92 merged pull request #44130 → cli53: 0.4.4 -> 0.8.12 → https://git.io/fNEQN
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAvA6
alech has joined #nixos
garbas has joined #nixos
<alech> hi, I'm new to Nix(OS) and am trying to build a python application package. The package needs pandoc at runtime, but I didn't manage to specify that (tried buildInputs and propagatedBuildInputs) - any hints?
<alech> this is how my default.nix looks like so far
bkchr[m] has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #45357 → Add licenses → https://git.io/fAv6A
<{^_^}> [nixpkgs] @Mic92 pushed 12 commits to master: https://git.io/fAvAA
<srhb> alech: At a guess, your application expects pandoc to be on $PATH, which is not something that propagatedBuildInputs will do for you. Perhaps take a look at wrapProgram and friends to make a small wrapper around the executable that takes care of this for you.
<srhb> Alternatively, patch every reference to pandoc to the full path rather than relying on $PATH
DigitalKiwi has quit [Ping timeout: 256 seconds]
<techieAgnostic> ,locate getopts
<{^_^}> Found in packages: zsh
<techieAgnostic> is there a thing built into nix to do that?
<techieAgnostic> ,locate awk
<{^_^}> Found in packages: gawk, cheat, quilt, inferno, busybox, plan9port, vimPlugins.ale, and 1 more
<srhb> techieAgnostic: No, but the tool around it is in nix-index (nix-locate)
<srhb> ,locate nix-locate
<techieAgnostic> oh thanks
<{^_^}> Found in packages: nix-index
<techieAgnostic> im trying to learn to do a derivation. its for something real simple but once ive figured it out would it be cool to post it here to see if i did it right?
<srhb> Sure, feel free. :)
<thor> srhb: thanks, did a rebuild now and the lines got added
<srhb> thor: Great :)
<thor> alas, no luck on mounting DFS namespace though :(
<alech> srhb: ah, didn't realise that, still getting to grips with those things.
<alech> srhb: as for patching to the full path - wouldn't that path change based on the version of the pandoc package I am using? Doesn't look very sustainable to me
<alech> srhb: and since the application is also supposed to be used under non-Nix environments, I guess wrapProgram is the way to go - thanks for the pointer :)
periklis has joined #nixos
civodul has joined #nixos
ramses_ has joined #nixos
<ramses_> Hi guys, does anyone know about any script/derivation/whatever for nixos to schedule automatic reboots after the kernel has been upgraded by the auto update service of nixos?
<srhb> alech: It would change regardless. We depend on exact versions of packages, so if pandoc changes, your application changes with it.
<srhb> alech: Which is working as intended, but we DO rebuild a lot more than others because they only depend on the interface. :)
<bkchr[m]> Hi, did someone has seen problems with CMake `target_link_libraries` and libraries declared as `Private`?
<srhb> ramses_: This could be achieved by comparing the versions in /run/current-system with the version in /run/booted-system in eg. a systemd job
<{^_^}> [nixpkgs] @Mic92 merged pull request #45033 → buku: 3.7 -> 3.8 → https://git.io/fNNok
<{^_^}> [nixpkgs] @Mic92 pushed 7 commits to master: https://git.io/fAvpX
<adisbladis> Wouldn't activationScripts be more appropriate
<alech> srhb: true, good point. I guess I'll go for the wrapProgram version for now but conceptually I like the "version pinning", so might look into it later
<srhb> adisbladis: Maybe. I dislike fiddling with those if a systemd job can get it done :)
<srhb> alech: Both solutions will pin the version just fine. :)
<srhb> alech: the wrapProgram route will cause the wrapper script to contain something like PATH=/nix/store/xxxx...-pandoc-someversion/bin... yourApplication
troydm has joined #nixos
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
worldofpeace has joined #nixos
alexteves has joined #nixos
<techieAgnostic> why would $out in installPhase be giving me a different folder in the nix store than what nix-build tells me its building?
<srhb> techieAgnostic: Multiple outputs perhaps?
<techieAgnostic> if i want to test out building, whats the correct way without needing to add it to nixpkgs?
<techieAgnostic> i have a default.nix that imports nixpkgs and then runs callPackage on another nix file with the mkDerivtion in it
__Sander__ has quit [Ping timeout: 240 seconds]
__Sander__ has joined #nixos
<srhb> techieAgnostic: That's a good way.
<techieAgnostic> ok think I'm getting there
<srhb> I often wish for nix-build --callPackage for that exact reason
<srhb> I suggest having one .nix file that does that but takes a path argument to the package to callPackage
<srhb> Then you can have a nice shell alias for it.
<techieAgnostic> Am I fine to put the script straight into $out, or should it be $out/bin/ or something?
DigitalKiwi has joined #nixos
<srhb> techieAgnostic: $out/bin/ is the path that will be joined into the bin folder in profiles, so that's usually preferably.
<srhb> preferable*
joebobjoe has joined #nixos
<techieAgnostic> ok thanks :)
trevthedev has joined #nixos
<adisbladis> techieAgnostic: And in case of a multi-output derivation that has a "bin" output it's $bin/bin
<techieAgnostic> ok so this is a really simple one, but mind looking over it to see if i messed anything up?
<{^_^}> [nix-pills] @Mic92 opened pull request #77 → fix binutils input in hello-builder → https://git.io/fAvhy
<srhb> techieAgnostic: Looks fine.
<adisbladis> techieAgnostic: Looks OK
<srhb> I think $src is slightly more common than ${src} (bash variable vs nix interpolation)
<srhb> can't really think of a good reason for that though...
andreabedini has joined #nixos
<adisbladis> srhb: Shouldn't really matter :)
<srhb> Indeed.
<{^_^}> [nixpkgs] @vcunat pushed to master « knot-dns, knot-resolver: major updates »: https://git.io/fAvjq
<{^_^}> [nixpkgs] @vcunat closed pull request #44765 → knot-dns: 2.6.8 -> 2.7.0 → https://git.io/fN9Ge
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
dkibi has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #45356 → google-musicmanager: beta_1.0.243.1116-r0 -> beta_1.0.467.4929-r0 → https://git.io/fAvKU
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAvjr
<srhb> Christ, were systemd timers designed by Rube Goldberg or something...
periklis has quit [Ping timeout: 276 seconds]
<techieAgnostic> ok so more newbie questions sorry
<srhb> No reason to be sorry :)
<adisbladis> We love newbies here :)
<techieAgnostic> im following the nix manual for adding custom packages, and im trying to add (import /path/to/file.nix) to my environment.systemPackages
<techieAgnostic> and its saying its not of the type package
<techieAgnostic> oh wait think its workin now
patrl has joined #nixos
<techieAgnostic> had the { stdenv, fetchurl }: line still in
<adisbladis> techieAgnostic: environment.systemPackages = [ (pkgs.callPackage /path/to/pkg {}) ]
<adisbladis> That injects stdenv and fetchurl
<srhb> And this is preferable to importing nixpkgs directly again, because you may end up with multiple copies of nixpkgs otherwise.
<srhb> (eg your system configuration should probably only depend on exactly one version of pkgs, the one from the module function)
<techieAgnostic> that makes sense
<techieAgnostic> alright think thats working all good :) thanks for all the help
<ij> Where should I keep writable configuration files, if /etc is read-only?
<ij> Configuration file in question: openvpn's ifconfig-pool-persist
<srhb> ij: Ideally you shouldn't. Why do you need it?
<srhb> /etc isn't really read-only though, /etc/static is
<{^_^}> [nixpkgs] @fgaz opened pull request #45372 → facette: 0.4.0 -> 0.4.1 → https://git.io/fAfeZ
<ij> But then it'd be half-generated, half-manually modified, so /etc doesn't sound like a good place.
<srhb> That sounds like the sort of data that would usually live in /var
Ariakenom_ has joined #nixos
<ij> /var/lib it is then
Gohla has joined #nixos
Ariakenom has quit [Ping timeout: 276 seconds]
joebobjoe has quit [Ping timeout: 272 seconds]
simukis has joined #nixos
<techieAgnostic> using nix-instatiate --eval, how can I get the set of options in stdenv.lib.licenses for example?
<sphalerite> techieAgnostic: nix-instantiate --eval -E 'with import <nixpkgs> {}; builtins.attrNames lib.licenses'
dramforever has joined #nixos
<sphalerite> techieAgnostic: but it's probably more practical usually to just look at the source
<sphalerite> in this case at last
<sphalerite> least*
<srhb> If you have jq handy, nix eval --json nixpkgs.stdenv.lib.licenses | jq .
<srhb> But yeah, second reading the source :P
<techieAgnostic> ahh gotcha
<techieAgnostic> thanks
<techieAgnostic> Yeah in this case I just looked it up in the manual but was wondering out of curiosity
ongy has joined #nixos
<{^_^}> [nixpkgs] @guibou opened pull request #45373 → pythonPackages.pycrc: init at 1.21 → https://git.io/fAfvg
<ongy> How do I set the path defined here https://github.com/NixOS/nixpkgs/blob/release-18.03/nixos/modules/system/boot/systemd.nix#L230 in my config? So the service has the applications available, I want to use
<srhb> ongy: systemd.services.myService.path = [ ... ]; ?
<ongy> hm, I must have done something wrong then. I tried that earlier.
<ongy> oh, is it in the serviceConfig, or in the service name?
<srhb> As above, no serviceConfig.
<ongy> ahh, then I did indeed do something wrong
patrl has quit [Ping timeout: 260 seconds]
ericsagnes has quit [Ping timeout: 276 seconds]
<ongy> hm, the path is set in the Environment stuff, but I don't think systemd is able to find it starting the service. Can I get the path to the bin directory of a service in the store to insert it into the string?
<srhb> ongy: Of a "service" in the store?
<srhb> The path to a binary in a package is usually "${pkg}/bin/binary"
<ongy> well, it's a normal application (pkgs.xpra) and I want the absolute path to the xpra binary
periklis has joined #nixos
<ongy> ah, so I can just have it: ${pkgs.xpra}/bin/xpra in the string for StartExec?
<srhb> Yes.
<ongy> cool thx :) now to figure out how to get xpra to behave^^
jasongrossman has joined #nixos
jasongrossman has quit [Remote host closed the connection]
jasongrossman has joined #nixos
vidbina has quit [Ping timeout: 276 seconds]
alex`` has joined #nixos
<Mic92> How can I get the sha256 of a src attribute in a nix repl?
orivej has quit [Ping timeout: 276 seconds]
<adisbladis> Mic92: hello.src.outputHash
<Mic92> adisbladis: thnaks
<Mic92> *thanks
revtintin has quit [Quit: WeeChat 1.9.1]
<techieAgnostic> what does the rec in the first argument of mkDerivation mean?
<techieAgnostic> at the moment its one of those "it breaks if its not there" things for me
<srhb> techieAgnostic: It's not an argument, but a modifier to the attrset
<techieAgnostic> oh does it mean record?
<srhb> techieAgnostic: It allows attributes to refer to each other (RECursively)
<techieAgnostic> Ahhh
<techieAgnostic> thanks
jasongrossman has quit [Remote host closed the connection]
<infinisil> > rec { qux = 1; flop = qux; }
<{^_^}> { flop = 1; qux = 1; }
<infinisil> > { qux = 1; flop = qux; }
<{^_^}> { flop = <CODE>; qux = 1; }
<Taneb> > let foo = 1; {foo = 2; bar = foo;}
<{^_^}> error: syntax error, unexpected '{', at (string):171:14
<Taneb> > let foo = 1; in {foo = 2; bar = foo;}
<{^_^}> { bar = 1; foo = 2; }
<Taneb> > let foo = 1; in rec {foo = 2; bar = foo;}
<{^_^}> { bar = <CODE>; foo = 2; }
<Taneb> Huh, not quite what I expected
<infinisil> Damn you laziness
<infinisil> > { qux = 1; flop = qux; }.flop
<{^_^}> undefined variable 'qux' at (string):171:19
<bkchr[m]> Is cmka on Nixos configured to strip out RPATHs while building?
<srhb> And finally...
<srhb> > let foo = { bar = 1; baz = foo.bar; }; in foo
<{^_^}> { bar = 1; baz = <CODE>; }
* srhb shrugs
<srhb> Who needs rec!
<Taneb> CODE: Germany with all the arrows reversed?
<srhb> Taneb: I guess it means "thunk" more or less.
<Taneb> That certainly makes more sense in context but I think I prefer my definition in general ;P
<srhb> Obviously. :-P
<srhb> Morally, CO-DE has not been forced, last I looked.
silver has joined #nixos
`slikts has joined #nixos
mayhewluke has quit [Ping timeout: 272 seconds]
init_6 has joined #nixos
johanot has quit [Ping timeout: 240 seconds]
johanot has joined #nixos
adisbladis has quit [Remote host closed the connection]
<{^_^}> [cabal2nix] @peti pushed to master « travis-ci: try building with GHC 8.6.1 »: https://git.io/fAfkd
ericsagnes has joined #nixos
gspia has quit [Ping timeout: 256 seconds]
<Aleksejs> Hello, I'm trying to install nixos on a PC with UEFI enabled. I'm getting an error "file system /boot is not on a gpt partition table"
<{^_^}> [nixpkgs] @workflow opened pull request #45374 → nodejs-8_x: 8.11.3 -> 8.11.4 → https://git.io/fAfIi
iyzsong has joined #nixos
Anton-Latukha has joined #nixos
<dramforever> Aleksejs: The UEFI installation instructions are incomplete, check this link: https://github.com/NixOS/nixpkgs/issues/9096
<{^_^}> #9096 (by lukego, 3 years ago, closed): NixOS UEFI installation instructions incomplete
<Taneb> Ugh, one of the build machines for my hydra server is set up wrong, it keeps failing with broken pipe
<dramforever> In particular, if you've been using fdisk instead of gdisk, you probably didn't do it right
jtojnar has quit [Remote host closed the connection]
<sphalerite> Taneb: I think that's a nix bug and it's nondeterministic
<Taneb> sphalerite: I don't think is a nix bug, I've got two other machines that work fine and this one has never worked
<dramforever> Then there's something about EFI partitions
<sphalerite> Taneb: hm ok never mind then :p
mayhewluke has joined #nixos
schjetne has quit [Ping timeout: 272 seconds]
johanot has quit [Ping timeout: 256 seconds]
<Taneb> I've missed a step setting it up and I can't figure out what
<sphalerite> maybe the known_hosts initialisation or something?
johanot has joined #nixos
<Taneb> So it's not the authorized keys on the build machine
<{^_^}> [nixpkgs] @Mic92 merged pull request #45349 → pythonPackages.nixpart0: fix nixops deploy → https://git.io/fAvar
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAfLQ
vidbina has joined #nixos
<Taneb> On Hydra's server the ed25519 public keys exist in /etc/ssh/ssh_known_hosts for both the working and broken build machines
<{^_^}> [nixpkgs] @Mic92 merged pull request #45355 → ldc: 1.10.0 -> 1.11.0, dmd: 2.081.1 -> 2.081.2, dtools: 2.081.1 -> 2.081.2 → https://git.io/fAvoH
<{^_^}> [nixpkgs] @Mic92 pushed 4 commits to master: https://git.io/fAftX
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @markuskowa opened pull request #45375 → slurm: 17.11.7 -> 17.11.9-2 → https://git.io/fAfqU
<{^_^}> [nixpkgs] @hrdinka merged pull request #45176 → nsd: 4.1.23 -> 4.1.24 → https://git.io/fNh9B
<{^_^}> [nixpkgs] @hrdinka pushed 2 commits to master: https://git.io/fAfqI
periklis has quit [Ping timeout: 276 seconds]
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
rprije has joined #nixos
<{^_^}> [nixpkgs] @bkchr opened pull request #45376 → kde-applications: 18.04.03 -> 18.08.0 → https://git.io/fAfqX
joebobjoe has joined #nixos
iyzsong has quit [Ping timeout: 244 seconds]
mzan has joined #nixos
tusj has quit [Remote host closed the connection]
trcc has joined #nixos
tusj has joined #nixos
tusj has quit [Remote host closed the connection]
tusj has joined #nixos
tusj has quit [Remote host closed the connection]
philippD has joined #nixos
tusj has joined #nixos
<{^_^}> [nixos-homepage] @edolstra merged pull request #220 → Replace nix-devel by Discourse → https://git.io/vheoU
<{^_^}> [nixos-homepage] @edolstra pushed 2 commits to master: https://git.io/fAfYn
tusj has quit [Remote host closed the connection]
tusj has joined #nixos
trcc_ has joined #nixos
tusj has quit [Remote host closed the connection]
tusj has joined #nixos
trcc_ has quit [Read error: Connection reset by peer]
trcc__ has joined #nixos
tusj has quit [Remote host closed the connection]
tusj has joined #nixos
trcc has quit [Ping timeout: 272 seconds]
tusj has quit [Remote host closed the connection]
tusj has joined #nixos
tusj has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jfrankenau opened pull request #45377 → mpd: 0.20.20 -> 0.20.21 → https://git.io/fAf32
tusj has joined #nixos
mzan has left #nixos [#nixos]
periklis has joined #nixos
YellowOnion_ has joined #nixos
orivej has joined #nixos
logzet has quit [Ping timeout: 276 seconds]
logzet has joined #nixos
YellowOnion has quit [Ping timeout: 265 seconds]
<fgaz> Why nixpkgs reviews/merges are so slow lately? The backlog is quite big
<fgaz> Is it because of the upcoming release?
<srhb> fgaz: I hadn't noticed that it has been slower than usual. Do we have any actual data on that? That said, when Ryans upgrade bot throws a ton of PRs at us, it takes a while to get through them :-)
<srhb> Oh and you're probably right, historically the merge queue grows when a release cut is impending. :P
<fgaz> No actual data, just my impression, so I may just as well be wrong :)
jD91mZM2 has joined #nixos
<srhb> Nah, you're probably right. I just remembered the graphs from last year's nixcon
joebobjoe has quit [Ping timeout: 240 seconds]
periklis has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @arch1tect0r opened pull request #45378 → mmc-utils: update to upstream → https://git.io/fAfZL
rprije has quit [Ping timeout: 265 seconds]
layus has joined #nixos
<infinisil> > :u
<Aleksejs> dramforever: thanks! gdisk helped
copumpkin has joined #nixos
jdnavarro has joined #nixos
nschoe has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAfni
<{^_^}> [nixpkgs] @Mic92 merged pull request #45377 → mpd: 0.20.20 -> 0.20.21 → https://git.io/fAf32
hyper_ch2 has quit [Quit: Page closed]
<c15ade4> anyone understand sway/wayland ? I installed the driver amdgpu-pro and did programs.sway.enable = true; but it seems like sway isn't trying to load the right driver
<c15ade4> it tries to enumerate some drivers under /run/opengl/lib/dri , but never tries the correct one, which i guess is amdgpu_dri.so
<c15ade4> I'm on 18.03
<{^_^}> [nixpkgs] @Mic92 merged pull request #45378 → mmc-utils: 2015-11-18 -> 2018-03-27 → https://git.io/fAfZL
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAfcY
periklis has joined #nixos
trcc__ has quit [Remote host closed the connection]
trcc has joined #nixos
joebobjoe has joined #nixos
<{^_^}> [nixpkgs] @ThomasMader opened pull request #45379 → tilix: 1.8.1 -> 1.8.3 → https://git.io/fAfcX
orivej has quit [Ping timeout: 256 seconds]
hotfuzz has quit [Quit: WeeChat 2.0]
hotfuzz has joined #nixos
chreekat has quit [Ping timeout: 276 seconds]
slyfox has joined #nixos
slyfox_ has quit [Ping timeout: 272 seconds]
sc_ has quit [Quit: rebewt]
sc_ has joined #nixos
davenpcm has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed to master « Literate: mark as broken »: https://git.io/fAfW8
<{^_^}> [nixpkgs] @aanderse opened pull request #45380 → perlPackages.NetSFTPForeign: init at 1.89 → https://git.io/fAfWp
Drakonis has joined #nixos
wucke13 has quit [Ping timeout: 260 seconds]
wucke13 has joined #nixos
joebobjoe has quit [Ping timeout: 260 seconds]
Fare has joined #nixos
bricewge_ has joined #nixos
wucke13 has quit [Ping timeout: 260 seconds]
<bricewge_> I'm trying to replace (not append) /etc/pulse/client.conf with environment.etc."pulse/client.conf".source = lib.mkForce ./client.conf; but I get the error: duplicate entry pulse/client.conf. How can I fix it or replace the file?
joebobjoe has joined #nixos
<worldofpeace> Mic92: ping :)
trcc has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Mic92 merged pull request #45254 → checkstyle: 8.11 -> 8.12 → https://git.io/fNjWI
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fAfBM
<ocharles> unexpected error in download thread: std::bad_alloc
<ocharles> wut?
<teto> ,locate aconnect
<{^_^}> Found in packages: alsaUtils
<ocharles> think I might be running out of ran actually. sad face
<{^_^}> [nixpkgs] @barakb closed pull request #44485 → pmdk: init at 1.4.1 → https://git.io/fNXnw
<{^_^}> [nixpkgs] @Mic92 merged pull request #45380 → perlPackages.NetSFTPForeign: init at 1.89 → https://git.io/fAfWp
<{^_^}> [nixpkgs] @Mic92 pushed commit from @aanderse to master « perlPackages.NetSFTPForeign: init at 1.89 (#45380) »: https://git.io/fAfRP
orivej has joined #nixos
<dramforever> Is there a way to get the directory of current .nix file?
<dramforever> I'm trying to create path dynamically, and I builtins.toPath doesn't like "./"
<dramforever> s/and I/and/
<srhb> toString ./. ?
abueide has joined #nixos
<{^_^}> [nixpkgs] @barakb opened pull request #45381 → pmdk: init at 1.4.1 → https://git.io/fAfRd
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fAf0z
<dramforever> aha
<dramforever> toString is not the same as "${stuff}"
<dramforever> srhb: Thanks :) TIL
<srhb> http://blog.shealevy.com/2018/08/05/understanding-nix's-string-context/ -- if you're curious Shea just gave a good overview of this.
Tucky has quit [Quit: WeeChat 2.2]
logzet has quit [Ping timeout: 260 seconds]
tusj has quit [Remote host closed the connection]
iyzsong has joined #nixos
<philippD> Is there a way to have vim built with +xterm_clipboard?
<philippD> in particular I want to pass `--with-x` to the configure script
Fare has quit [Ping timeout: 260 seconds]
tim_nixos has joined #nixos
MoziM has quit [Ping timeout: 240 seconds]
<tim_nixos> Hello people, it seems like I have butchered my $NIX_PATH by running some commands from the official manual. Is there a way to reset it? When I try to run 'nixos-rebuild switch' I get this: error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13. Any help apreciated!
<infinisil> tim_nixos: just restart your terminal
<tim_nixos> oh.. okay :D now it is populated but I still get the same error when I try to rebuild my config
<tim_nixos> warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs' does not exist, ignoring
<tim_nixos> also shows up
mayhewluke has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fAf2s
<{^_^}> [nixpkgs] @Mic92 merged pull request #45372 → facette: 0.4.0 -> 0.4.1 → https://git.io/fAfeZ
tusj has joined #nixos
<qyliss^work> tim_nixos: what is your NIX_PATH?
<tim_nixos> nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
<tilpner> tim_nixos - Update roots "nixos" channel
<tilpner> sudo nix-channel --update nixos
<tim_nixos> thanks guys.. sometimes it is really hard to find the solution for something you don't know much about
<tim_nixos> have a great day!
endformationage has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/c268986263f (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
tim_nixos has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @zimbatm opened pull request #45383 → zerotierone: replace more ip commands → https://git.io/fAfaQ
<{^_^}> [nixpkgs] @vdemeester opened pull request #45384 → Adding vdemeester (myself) as runc and containerd package maintainer → https://git.io/fAfap
<{^_^}> [nixpkgs] @Mic92 merged pull request #45384 → Adding vdemeester (myself) as runc and containerd package maintainer → https://git.io/fAfap
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAfVf
iyzsong has quit [Quit: ZNC 1.7.0 - https://znc.in]
<{^_^}> [nixpkgs] @Mic92 merged pull request #45338 → feedgnuplot: fix build → https://git.io/fAvWl
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAfVO
joebobjoe has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fAfV0
netcho has joined #nixos
<netcho> hi all
<{^_^}> [nixpkgs] @arch1tect0r opened pull request #45385 → cryptsetup: 2.0.3 -> 2.0.4 → https://git.io/fAfwe
<{^_^}> [nixpkgs] @romildo opened pull request #45387 → numix-icon-theme: 2017-12-25 -> 18.07.17 → https://git.io/fAfwn
<alech> srhb: do you have an example for wrapProgram for me? I tried "wrapProgram $out/bin/pandoc", (in postBuild) but that fails since it is not in that location. Alternatively, I tried "wrapProgram ${pandoc}/bin/pandoc", but that fails since it wants to write .pandoc-wrapped in the pandoc nix store path and that fails with permission denied ...!?
mayhewluke has joined #nixos
juhe has joined #nixos
sir_guy_carleton has joined #nixos
<symphorien> makeWrapper is the same as wrapProgram but not in place
<symphorien> So it can work aroud permissions
<alech> symphorien: thanks, looks good. I made something along the lines of "mkdir -p $out/bin\n makeWrapper ${pandoc}/bin/pandoc $out/bin/pandoc" now in installPhase as in the nixpkgs manual and that seems to work \o/
<{^_^}> [nixpkgs] @Mic92 merged pull request #45375 → slurm: 17.11.7 -> 17.11.9-2 → https://git.io/fAfqU
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAfwj
<{^_^}> [nixpkgs] @romildo opened pull request #45388 → numix-icon-theme-circle: 18-02-16 -> 18.08.17 → https://git.io/fAfrf
joebobjoe has joined #nixos
drewr has joined #nixos
<{^_^}> [nixpkgs] @romildo opened pull request #45390 → numix-icon-theme-square: 18-02-16 -> 18.08.17 → https://git.io/fAfrb
periklis has quit [Ping timeout: 260 seconds]
revtintin has joined #nixos
ramses_ has quit [Ping timeout: 252 seconds]
ryanartecona has joined #nixos
orivej has joined #nixos
dbmikus has joined #nixos
Ariakenom_ has quit [Ping timeout: 272 seconds]
ThatDocsLady has joined #nixos
<shlevy> Nice!
<d1rewolf> anyone using password-store on nix with zsh? Autocompletions don't seem to work for me...even though /nix/store/yc6xid3qkirhjkn47f8nnr4kl4d6jld3-password-store-1.7.2/share/zsh/site-functions/_pass exists
<gchristensen> that is executing a test suite against a single OS with a single installation method, https://gist.github.com/grahamc/a626910c93f9858615ca1dd14d93ccdf I have 27 distros and 3 install methods at the moment. you can easily imagine creating install images with brokenness like nearly full disks, etc.
<shlevy> How are you spinning up the vm?
<gchristensen> shlevy: ^
<disasm> on hydra, evaluation only happens on the master, right? I added a url to allowed-uris and still getting eval errors: error: access to URI 'https://github.com/input-output-hk/nixpkgs/archive/118431d4d68c68a6605932d94aae0a75a8309d95.tar.gz' is forbidden in restricted mode
<shlevy> Beautiful
<disasm> that's nix.allowed-uris :)
<shlevy> Cool :)
<shlevy> Ship it!
nschoe has quit [Read error: Connection reset by peer]
<gchristensen> I spent too long trying to make it work inside of a pure nix-build, but the tests need to talk to the cache and nixos.org and mocking those was just frustrating the process and maybe someone else will figure that out ;)
slabity has joined #nixos
<gchristensen> not to mention it took 15 minutes to find 30 maintained distro images with a common API, that is a whole project in itself
<shlevy> Yeah, trying to get this to work in a nix build seems way too big a project
<alech> d1rewolf: works for me including autocompletion
<d1rewolf> alech: are you using oh-my-zsh?
<alech> d1rewolf: nope, plain vanilla zsh
<d1rewolf> alech: did you do anything special to enable autocompletion?
<alech> d1rewolf: not that i remember and the machine and my usage of nixos is pretty new
<d1rewolf> alech: ok, weird. thx
<alech> d1rewolf: you're welcome. hope you'll figure it out.
<alech> symphorien: hmmm, celebrated to early, that still doesn't help. so basically I am doing this in installPhase or postInstall or preInstall (no differences), I do nix-build; nix-env -i result/ but I still don't have a pandoc on my path ... ideas? :-/
dmj`_ has joined #nixos
<jD91mZM2> Did nixos.git change recently? I think it's causing me "The option value environment.systemPackages[definition 2-entry 55] in <file> is not of type package"
<gchristensen> sounds like maybe you did environment.systemPackages = [ mypkg.override { ... }] maybe?
<{^_^}> [nixpkgs] @dotlambda pushed 3 commits to master: https://git.io/fAfiJ
<{^_^}> [nixpkgs] @dotlambda merged pull request #45148 → seafile-client: 6.2.3 -> 6.2.4 → https://git.io/fNhCK
Fare has joined #nixos
<jD91mZM2> gchristensen: Nah, this used to work too, I'm sure
<jD91mZM2> Seems to work changing it to gitAndTools.git
<gchristensen> did you add gitAndTools to systemPackages?
<infinisil> > builtins.attrNames gitAndTools
<{^_^}> [ "bfg-repo-cleaner" "bitbucket-server-cli" "darcsToGit" "diff-so-fancy" "ghq" "git" "git-annex" "git-annex-metadata-gui" "git-annex-remote-b2" "git-annex-remote-rclone" "git-bz" "git-codeowners" "git...
<jD91mZM2> I added gitAndTools.git, yeah
<gchristensen> and what was it when it was broken?
nschoe has joined #nixos
nschoe has quit [Client Quit]
<Baughn> I have learned to hate Java. Oh god why.
<srk> that's natural
johanot has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @timokau pushed 7 commits to master: https://git.io/fAfXP
<{^_^}> [nixpkgs] @timokau merged pull request #44288 → global-platform-pro: init at 0.3.10-rc11 → https://git.io/fNrck
__Sander__ has quit [Quit: Konversation terminated!]
vmandela has joined #nixos
<d1rewolf> alech: weird. I completely recreated my zshrc, but still no autocomplete from pass :-/
<Taneb> d1rewolf: does the _pass need to be in some scope?
<infinisil> d1rewolf: Taneb: I'm using home-manager, and I have pass completion working by setting `programs.zsh.plugins = [{ name = "pass"; src = "${pkgs.oh-my-zsh}/share/oh-my-zsh/plugins/pass"; }];`
<d1rewolf> infinisil: hm...I'm not using home-manager. do you know what config setting that ultimately affects?
<infinisil> It just adds that to fpath I think
<netcho> hey all, i have OCaml project i want to build with nix
<netcho> i am having issues understanding opam2nix
<netcho> since we have Makefile i am trying to make hack my wya into it wuth builder script
<netcho> but for some reason make install fails with https://hastebin.com/roqesupelu.sql
<{^_^}> [nixpkgs] @boothead opened pull request #45391 → Add some substitutions for the ip calls in ManagedRoutes. Fixes #45022 → https://git.io/fAfM8
erasmas has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
arjen-jonathan has quit [Ping timeout: 240 seconds]
mmercier has joined #nixos
<{^_^}> [nixpkgs] @dguibert opened pull request #45392 → wireguard via sytemd netlink → https://git.io/fAfSq
joebobjoe has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @zimbatm closed pull request #45383 → zerotierone: replace more ip commands → https://git.io/fAfaQ
abueide has quit [Ping timeout: 256 seconds]
<aminechikhaoui> Hi, is there somehow a pre-packaged gdb with python3 interpreter ?
Drakonis has quit [Remote host closed the connection]
<qyliss^work> Doesn't look like it.
Anton-Latukha has quit [Quit: Leaving.]
vmandela has quit [Remote host closed the connection]
vmandela_ has joined #nixos
joebobjoe has joined #nixos
dramforever has quit [Quit: Page closed]
mmercier has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @vbgl opened pull request #45393 → ocamlPackages.io-page: 1.6.1 -> 2.0.1 → https://git.io/fAfH9
<mpickering> netcho: It tries to write something to ~ which doesn't exist when running nix-build
<mpickering> I think you will have a hard time doing this if you don't use opam2nix
<mpickering> because the whole ocaml infrastructure will expect packages to be installed in a certain way
<netcho> probably right
rfold has joined #nixos
<netcho> but i am just starting with nix and unfortunately i don't undferstand opam2nix quite well
<mpickering> ok
<mpickering> Perhaps that's over complicating it though
<mpickering> It looks quite straightforward to package an ocaml package
<mpickering> Perhaps try looking at the examples in this directory
<{^_^}> [nixpkgs] @Mic92 merged pull request #45379 → tilix: 1.8.1 -> 1.8.3 → https://git.io/fAfcX
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAfQP
abueide has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 pushed to makeScope-dry « lib: Use lib.fixed-points.extends to avoid repetition »: https://git.io/fAfQd
__lawlesseel__ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #45394 → lib: Use lib.fixed-points.extends to avoid repetition → https://git.io/fAfQh
<netcho> thanks mpickering, will give it a shor
__lawlesseel__ has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
<{^_^}> [nixpkgs] @joachifm merged pull request #41989 → dozenal: init at version v12010904 → https://git.io/vhivR
<{^_^}> [nixpkgs] @joachifm pushed 3 commits to master: https://git.io/fAf5f
philippD has quit [Ping timeout: 260 seconds]
Fare has joined #nixos
selfsymmetric-pa has joined #nixos
ryanartecona has joined #nixos
aarvar has joined #nixos
vmandela_ has quit [Quit: Leaving]
netcho has quit [Ping timeout: 272 seconds]
booglewoogle has joined #nixos
<booglewoogle> hey, anyone here using the vivaldi browser and able to play video?
arjen-jonathan has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #45394 → lib: Use lib.fixed-points.extends to avoid repetition → https://git.io/fAfQh
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fAfFF
<{^_^}> [nixpkgs] @Ericson2314 pushed 0 commits to makeScope-dry: https://git.io/fAfFA
logzet has joined #nixos
init_6 has quit [Ping timeout: 276 seconds]
<hyper_ch> so no more nixos mailing list? Discord is just such a pain IMHO
joebobjoe has quit [Ping timeout: 268 seconds]
<tilpner> You mean Discourse, right?
<tilpner> You scared me for a second
vidbina has quit [Ping timeout: 255 seconds]
Drakonis has joined #nixos
<hyper_ch> oh.... did I confused those two?
<hyper_ch> sorry
booglewoogle has quit [Quit: Leaving]
<hyper_ch> tilpner: btw, on a older build or rather current one from nixos unstable small, there is an issue with libvirtd... it's not present in git master anymore. Should I report it?
<tilpner> How do you determine that it's not present?
<hyper_ch> I run current git master now
<hyper_ch> and with current I mena like from yesterday and nixos unstable small was last updated 3 days ago
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
logzet has quit [Ping timeout: 265 seconds]
logzet has joined #nixos
logzet_ has joined #nixos
logzet has quit [Ping timeout: 276 seconds]
vidbina has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #45396 → audit-tmpdir: fix processing of files with spaces, quote variables → https://git.io/fAfAx
Drakonis has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @volth opened pull request #45397 → $toplevel/system: buildPlatform.system -> hostPlatform.system → https://git.io/fAfx2
Fare has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @matthewbauer pushed to staging-next « xcbuild: only override version with 1 arg »: https://git.io/fAfxS
joebobjoe has joined #nixos
shabius has quit [Remote host closed the connection]
shabius has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #45398 → top-level.nix: stdenv.platform -> stdenv.hostPlatform.platform → https://git.io/fAfpI
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #45398 → top-level.nix: stdenv.platform -> stdenv.hostPlatform.platform → https://git.io/fAfpI
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fAfp4
Fare has joined #nixos
Jackneill has joined #nixos
Jackneill has quit [Remote host closed the connection]
ongy has quit [Ping timeout: 244 seconds]
Jackneilll has quit [Ping timeout: 256 seconds]
Jackneill has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #45397 → $toplevel/system: buildPlatform.system -> hostPlatform.system → https://git.io/fAfx2
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fAfhy
__lawlesseel__ has quit [Remote host closed the connection]
periklis has joined #nixos
<infinisil> hyper_ch: why would you want to report a non-issue?
rauno has quit [Ping timeout: 276 seconds]
philippD has joined #nixos
<{^_^}> [nixpkgs] @markuskowa opened pull request #45399 → Add licenses → https://git.io/fAJeK
<{^_^}> [nixpkgs] @dtzWill opened pull request #45400 → NIX_PATH: don't prepend $HOME-based value in session variable, set later → https://git.io/fAJeX
zpiro has joined #nixos
joebobjoe has quit [Ping timeout: 272 seconds]
trebuh has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 272 seconds]
Denommus has joined #nixos
trebuh has joined #nixos
<{^_^}> [nixpkgs] @tex opened pull request #45401 → kitty: 0.11.2 -> 0.11.3 → https://git.io/fAJv3
ryanartecona has quit [Quit: ryanartecona]
zpiro is now known as ifur
<Denommus> hey
<Denommus> I've deployed gitlab with a nginx front-end
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/690ffb0a52d (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<Denommus> but I get a 500 error on git clone through HTTP and HTTPS
<Denommus> where are the nginx and gitlab logs so that I can debug that?
arjen-jonathan has quit [Ping timeout: 256 seconds]
<gchristensen> `sudo journalctl -u nginx`
periklis has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @erictapen opened pull request #45402 → [WIP] buildRustPackage: optionally use vendor config from cargo-vendor → https://git.io/fAJfA
rfold has quit [Ping timeout: 240 seconds]
teej has joined #nixos
noam has joined #nixos
<slabity> Any way to programmatically get all attributes of a Nix function?
<slabity> Like if I wanted to get all the attributes for the `derivation` builtin function?
joebobjoe has joined #nixos
<cocreature> slabity: builtins.functionArgs
revtintin has quit [Quit: WeeChat 1.9.1]
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 268 seconds]
Mateon3 is now known as Mateon1
polman has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #45403 → treewide: Purge `stdenv.platform` and top-level `platform` → https://git.io/fAJT0
jD91mZM2 has quit [Quit: WeeChat 2.0]
polman has quit [Excess Flood]
rfold has joined #nixos
jD91mZM2 has joined #nixos
<jD91mZM2> 18659.85 MiB freed by hard-linking 1411908 files
<jD91mZM2> 18GB freed by nix-store --optimise
<jD91mZM2> Took 1 hour and 51 minutes
<jD91mZM2> srhb: What do I win?
<jD91mZM2> (I believe you're the one joking about competitions?)
* jD91mZM2 heads off to bed for real this time
jD91mZM2 has quit [Client Quit]
Ariakenom has joined #nixos
kyren has joined #nixos
patrl has joined #nixos
<infinisil> > builtins.functionArgs builtins.derivation
<{^_^}> { outputs = true; }
civodul has joined #nixos
<infinisil> > 1 + 1
<infinisil> RIP
<{^_^}> 2
<infinisil> Or not!
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #45403 → treewide: Purge `stdenv.platform` and top-level `platform` → https://git.io/fAJT0
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fAJk7
ashkitte1 has joined #nixos
kgz has quit [Ping timeout: 256 seconds]
lord| has quit [Ping timeout: 256 seconds]
ArahaelPi has quit [Ping timeout: 256 seconds]
ashkitten has quit [Ping timeout: 256 seconds]
kreisys has quit [Read error: Connection reset by peer]
mayhewluke has quit [Ping timeout: 256 seconds]
tylerjl has quit [Ping timeout: 256 seconds]
Ashy has quit [Ping timeout: 256 seconds]
hiroshi has quit [Ping timeout: 256 seconds]
leothrix has joined #nixos
Ashy has joined #nixos
lor|d has joined #nixos
lor|d is now known as lord|
kgz has joined #nixos
kgz has quit [Client Quit]
joebobjoe has quit [Ping timeout: 276 seconds]
ArahaelPi has joined #nixos
kragniz has joined #nixos
hiroshi has joined #nixos
logzet_ has quit [Ping timeout: 260 seconds]
leotaku has joined #nixos
gratin has joined #nixos
bitonic_ has joined #nixos
abueide has quit [Ping timeout: 272 seconds]
countingsort has joined #nixos
etrepum_ has joined #nixos
logzet has joined #nixos
kalbasit[m] has quit [Ping timeout: 256 seconds]
ThatDocsLady has quit [Ping timeout: 256 seconds]
bitonic has quit [Ping timeout: 256 seconds]
etrepum has quit [Ping timeout: 256 seconds]
nocoolna- has quit [Ping timeout: 256 seconds]
infinisil has quit [Ping timeout: 256 seconds]
bitonic_ is now known as bitonic
etrepum_ is now known as etrepum
grumble has quit [Read error: Connection reset by peer]
gurmble has joined #nixos
gurmble is now known as grumble
infinisil has joined #nixos
nocoolnametom has joined #nixos
lawlesseel has joined #nixos
Thra11 has joined #nixos
kyren_ has joined #nixos
pikajude has quit [Remote host closed the connection]
kyren has quit [Ping timeout: 260 seconds]
pikajude has joined #nixos
countingsort has left #nixos [#nixos]
<bigvalen> Anyone setup prometheus with Nixos ? I've a home server, and would love some sort of dashboards on things like disk IO load, errors, CPU and network usage. Just wondered if someone had hints on such things.
<gchristensen> any troubles, or just need direction?
<{^_^}> [nixpkgs] @joachifm merged pull request #44631 → nixos/terraria: Wait for daemon to stop → https://git.io/fNDbi
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/fAJqR
Izorkin has quit [Ping timeout: 268 seconds]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/f0d6e22b7f0 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<bigvalen> Never played with Prometheus before, so just wondered about it - is it still a 'roll it yourself', or is it good for home users.
<bigvalen> joepie91, That's for monitoring systemd and something on 9090 ?
<cransom> bigvalen: netdata is pretty useful for home.
<joepie91> bigvalen: 9090 is prometheus' own metrics; aside from that the node status (resource usage) on port 9100, and systemd services (through 'systemd' collector) on port 9333
<joepie91> bigvalen: cadvisor is used for individual service tracking: https://git.cryto.net/joepie91/nixops-configuration/src/master/lib/presets/track-service-metrics.nix
<bigvalen> Ah, nice.
<joepie91> (ie. which services use what amount of memory, CPU, etc.)
<joepie91> (the docker disable is there because cadvisor will by default enable dockerd, as it's designed to track that; but it works for systemd services without Docker as well)
<bigvalen> I'd a disk failure, and the resilvering of the remaining 3 disks in the RAID Z2 are currently crippling the box. A 'nixos-rebuild switch' that usually takes 20 seconds has been running for about ten minutes :(
astrofog has joined #nixos
<bigvalen> I've plex running in Docker, it'd be nice to see what it uses too
<gchristensen> bigvalen: you're still rolling things yourself because prom has no inherent system monitoring going on by default, but you can install their default node monitor and have some good data
<gchristensen> it isn't a load of work but you can't just say yep enable prom and be done
juhe has quit [Remote host closed the connection]
<joepie91> bigvalen: also, I run Grafana for fancy graphems: https://metrics.cryto.net/
<joepie91> (that's a work in progress though)
<bigvalen> For a while I was an expert on the system Prometheus was based on, but I think I've forgotten most of that now.
<gchristensen> funny how all that evaporates :P
<bigvalen> It's a relief :)
<bigvalen> I got very very used to Datadog for a while. If you have money, that's...easy.
logzet has quit [Ping timeout: 265 seconds]
<gchristensen> yeah
<bigvalen> Huh. 14 mins and nixos-rebuild is still going.
<joepie91> bigvalen: btw, my setup has a lot of complexity that you can ignore, it includes stuff like tinc for internal VPN and such :P
johnw has quit [Quit: ZNC - http://znc.in]
<srk> I need HA prometheus /o\
johnw has joined #nixos
<gchristensen> my understanding is the ha story is "just run >1"
<srk> except for altermanager
logzet has joined #nixos
astrofog has quit [Remote host closed the connection]
<johnw> has anyone gotten cabal2nix to play nicely with backpack projects yet?
<srk> no good story for that, sad :|
<johnw> srk: no good backpack story?
<srk> no, for HA prometheues/alertmanager
<srk> was playing with backpack - looks quite cool but didn't try cabal2nix
<srk> also depends on how you use backpack
logzet has quit [Ping timeout: 256 seconds]
logzet has joined #nixos
joebobjoe has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #45258 → ace: 6.5.0 -> 6.5.1 → https://git.io/fNj4u
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « ace: 6.5.0 -> 6.5.1 (#45258) »: https://git.io/fAJYM
joebobjoe has quit [Ping timeout: 276 seconds]
Thra11 has quit [Quit: WeeChat 1.4]
<srk> running two altermanagers require https://github.com/weaveworks/mesh
<srk> Mesh implements a gossip protocol that provide membership, unicast, and broadcast functionality with eventually-consistent semantics. In CAP terms, it is AP: highly-available and partition-tolerant.
<srk> I wonder if I should just go for ZRE protocol I've implemented for this reasons
<{^_^}> [nixpkgs] @Ericson2314 pushed to nixos-netboot-dedup « nixos/netboot: Remove redundant setting »: https://git.io/fAJOY
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #45405 → nixos/netboot: Remove redundant setting → https://git.io/fAJO3
bricewge_ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @basvandijk opened pull request #45406 → haskell: disable library profiling for static executables → https://git.io/fAJOa
smolboye has quit [Ping timeout: 248 seconds]
bennofs has joined #nixos
pikajude has quit [Remote host closed the connection]
pikajude has joined #nixos
<adamantium> hi, do you guys think services.dbus.socketActivated = true; is good to have for desktops, or is dbus already going to be used / available for apps?
simukis has quit [Quit: simukis]
<adamantium> I'm not sure, uhm, what this setting actually does, I suppose.
Ariakenom has quit [Read error: Connection reset by peer]
Drakonis has joined #nixos
<elvishjerricco> Why does the nix daemon have to be run as root? Couldn't it in principle be run as its own user?
<gchristensen> it needs to spawn processes as arbitrary users
<elvishjerricco> gchristensen: Only as the nixbld users, right? Is there not a way to privilege one user to run things as another? Sudoers maybe?
Anton-Latukha has joined #nixos
<gchristensen> not sure
<gchristensen> well also manipulating process and network namespaces
<gchristensen> and remounting paths on disk as read-write... nix-daemon des a _lot_ of highly privileged stuff to setup and maintain isolation
<gchristensen> it could do _less_ as root, but I think it would be hard to make it not use root at all
logzet has quit [Ping timeout: 276 seconds]
ryanartecona has joined #nixos
joebobjoe has joined #nixos
<elvishjerricco> Hm true. Yea I guess it's a pretty root thing :P
<{^_^}> [nixpkgs] @dtzWill opened pull request #45407 → iosevka-bin: 1.14.3 -> 2.0.0 → https://git.io/fAJGk
patrl has quit [Ping timeout: 240 seconds]
davenpcm has quit [Quit: Textual IRC Client: www.textualapp.com]
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #45408 → haskell lib: Add appendConfigureFlags → https://git.io/fAJZu
teej has quit []
patrl has joined #nixos
rfold has quit [Ping timeout: 268 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @VShell opened pull request #45409 → libvirt: add upstream patch to revert jansson → https://git.io/fAJna
emacsoma` has quit [Ping timeout: 268 seconds]
growpotkin has joined #nixos
<growpotkin> Hey this might be a silly question, but is there a way to batch create options?
<growpotkin> module options *
<growpotkin> for instance, I want to 30 options that have the same defaults and types, can I just dump a list of their names into a function to generate all the options?
<manveru> usually a good text editor can do that :)
<growpotkin> haha yeah thats what i figured
<srk> options is just a record so you can probably use listToAttrs and co. to generate its contents
<growpotkin> ive just been copy pasting it but I figured there was a "clever" way to do it
<manveru> yeah, generating in nix itself is an option too
<growpotkin> OOoh ty srk I will give that a shot
Drakonis has quit [Remote host closed the connection]
mayhewluke has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<elvishjerricco> Wasn't Nix 2.0 supposed to support the old 1.x names for things in nix.conf? That doesn't seem to work quite right sometimes
selfsymmetric-pa has quit [Ping timeout: 276 seconds]
<sphalerite> elvishjerricco: how so?
joebobjoe has quit [Ping timeout: 256 seconds]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Denommus has quit [Ping timeout: 260 seconds]
emacsoma` has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
<infinisil> elvishjerricco: It does not.. not sure why this wasn't made backwards compatible
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #45408 → haskell lib: Add appendConfigureFlags → https://git.io/fAJZu
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fAJCy
<elvishjerricco> infinisil: The release notes suggest that an attempt was made to support ALL the old names. sphalerite: I think I may have been mistaken... I'm trying to deal with all the failure reports we get about reflex-platform's scripts for adding binary caches to the system automatically, and I thought this was the problem for some reason, though now I'm not sure why I thought that.
<sphalerite> ah ok
<sphalerite> might also be problematic having *both* the old and the new names?
<infinisil> It should really just have a version number
<elvishjerricco> infinisil: Are ALL the old names unsupported?
<sphalerite> elvishjerricco: no
<sphalerite> binary-caches should work, gc-keep-outputs should work…
<ifur> can someone confirm that 5-eyes UK:IBM dropped 10% in value today?
<ifur> im asking because its likely im seeing fake information
aarvar has quit [Remote host closed the connection]
<ifur> is of no personal relevance, but im given the impression of a consequent i doubt.
<gchristensen> ifur: seems sort of off-topic
<elvishjerricco> sphalerite, infinisil: It seems `binary-caches` is supported, but `binary-cache-public-keys` is not.
<ifur> gchristensen: assume it's real information, but -10% for ibm in london isn't extremely off topic for anything open source.
<ifur> gchristensen: i'd point it's off-topic to state off-topic when it is broadly speaking not off-topic.
aanderse has joined #nixos
<ifur> i'd listen to an elaboration and provide an appology, but this is silly.
<ifur> gchristensen: would like to talk about how IBM is not relevant for nixos? :(
<ifur> but yeah, finance is off topic to me as well; sorry for bothering everyone and myself.
<sphalerite> gchristensen: I think it's a bot
<aanderse> giving the impending freeze for 18.09 how can i get some review action on https://github.com/NixOS/nixpkgs/pull/45353 ?
<{^_^}> #45353 (by aanderse, 1 day ago, open): redmine: 2.5.2 -> 3.4.6
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<srk> aanderse++
<{^_^}> aanderse's karma got increased to 1
<srk> nice work!
<aanderse> srk: i hope so
<srk> gonna test
<aanderse> had to take saturday to learn ruby packaging
<aanderse> srk: fantastic!
<aanderse> the weak point is the Gemfile
<aanderse> i don't know anything about ruby or rails so i couldn't figure out how to get the optional parts of the Gemfile to behave
<aanderse> i ended up commenting them out :|
<ifur> looking for a paid boat for projects, not a yacht -- msg if any suggestions, AFK
<aanderse> it works... but i'm sure there is a "proper" way to do it
<sphalerite> gchristensen: suggest kick?
<manveru> aanderse: what optional parts?
ifur has left #nixos [requested by gchristensen (ifur)]
<aanderse> manveru: sec... checking
<aanderse> group :test do
<aanderse> group :development do
<aanderse> i could specify --without test development when calling bundle install
joebobjoe has joined #nixos
<aanderse> but then subsequent calls would complain about a mismatched gemfile and gemfile.lock
<aanderse> i wondered if i needed to include a .bundle/config file in with the packaging or something...
<globin> aanderse: see gitlab
<manveru> bundlerEnv takes a groups attribute
<aanderse> globin: i was using it as a base yes... i'll have to review it some more
<aanderse> maybe something small i missed
<aanderse> or big
<globin> aanderse: bundlerEnv { ... groups = [ "default" "unicorn" ]; ...}
<aanderse> globin: :)
<aanderse> so thats what that meant...
ifur has joined #nixos
<ifur> not loggin, was that intentional or did i trigger with a few words i shouldnt use...
<ifur> wouldnt recommend the uk btw, offer permanent contract at the bottom of the food chain with no co-workers to work with and ignore conflicts with barely enough to leave the country, i left zero advantage anyone -- it's enough to wave fists angrily at the world, especially when revenge is served cold by false information to your home country.
<gchristensen> ifur: please stop, this is off topic.
<{^_^}> [nixpkgs] @alyssais opened pull request #45410 → Mark broken kernel modules on Linux 4.18 → https://git.io/fAJlA
lsyoyom has quit [Ping timeout: 272 seconds]
<nikki93> how would i go about properly overriding the `version = ` given in https://github.com/NixOS/nixpkgs/blob/65402b0f1d38053085631bc1a93b6c2c8569f1ee/pkgs/development/tools/rtags/default.nix#L5 in my own 'configuration.nix'?
<ifur> like how i talked to the guy back in the day on freenode that initially wrote nixos and said it was a great idea and not to worry about costly symlinks after meeting him in #gentoo-amd64? Yeah, i'll stop -- sorry!
<nikki93> trying `(rtags.overrideAttrs (oldAttrs: { version = "2.19"; }))` but it still ends up installing the version in nixpkgs
<mpickering> You need to override `src`
<nikki93> do i also need to override the `name`, `src` attrs etc.? -- those seem to be based on the `version` attr, is there a way to get it to recompute all this based on my overriden `version`
<nikki93> yeah
<mpickering> Because you need to specify what the new `sha` shoudl be
<nikki93> mpickering: do i just use the commit hash for that version in the git repo?
<nikki93> the `rev =` is already specified -- a git tag name based on the `version`
<mpickering> this does seem quite awkward but I think you have to override the whole src attribute
<mpickering> which basically means copying what is there already
<nikki93> yeah i'm doing that atm
<mpickering> someone else might have a better suggestion
<nikki93> how do i compute the sha256 that i should be using
alex`` has quit [Ping timeout: 272 seconds]
<aanderse> globin: i assume passing groups makes those groups exclusively chosen in the gemfile?
<aanderse> i passed groups = [ "default" "ldap" "openid" "rmagick" "markdown" ];
<globin> aanderse: yes
<aanderse> but still have the same issue of "these dependencies in your gemfile changed" then lists the deps under the groups not selected
alex`` has joined #nixos
<mpickering> change what the `rev` is, then modify the old `sha` by changing one character
<mpickering> then nix will complain that the shas don't match
<mpickering> copy the new sha into place
<{^_^}> [nixpkgs] @alyssais opened pull request #45411 → linux-libre: init → https://git.io/fAJ8M
<globin> aanderse: at what point?
<aanderse> globin: from reading journalctl it appears this line https://github.com/NixOS/nixpkgs/pull/45353/files#diff-25525c0564c5e46da756a7d54f683941R200
lsyoyom has joined #nixos
<aanderse> erm... /me double checks that
<globin> aanderse: ah do not bundle exec
dbmikus has quit [Ping timeout: 272 seconds]
<globin> aanderse: use ${bundlerEnv.wrappedRuby}/bin/ruby, that has the deps on the GEMPATH(?) or whatever that's called in ruby
<globin> aanderse: and e.g ${bundlerEnv}/bin/rails
aanderse has quit [Ping timeout: 260 seconds]
aanderse has joined #nixos
<aanderse> globin: if anything jumps out as obvious i'd really appreciate you leaving a comment on github
<manveru> bundle exec is evil :)
<aanderse> manveru: i discovered that this weekend
<aanderse> taking the kids out later but if i get a chance i'll check back later
<aanderse> thanks for the help all
<manveru> anw, just add [ gems.wrappedRuby (lowPrio gems) ] to your buildInputs and you should be fine
<nikki93> mpickering: i actually ended up using nix-prefetch-git :D
<mpickering> that's the correct way hehe
<nikki93> i used a `nix-shell -p nix-prefetch-git` to use that package in a temporary session :O
<nikki93> nix is p cool
<mpickering> may your virtue long continue
gratin has quit [Read error: Connection reset by peer]
gratin has joined #nixos
gratin has quit [Remote host closed the connection]
gratin has joined #nixos
gratin has quit [Remote host closed the connection]
<leotaku> Is there any declarative way to get the tmpfs at /run/user/id to be a certain size?
gratin has joined #nixos
gratin has quit [Remote host closed the connection]
gratin has joined #nixos
alex`` has quit [Quit: WeeChat 2.2]
<clever> leotaku: possible under systemd.logind.extraConfig
gratin has quit [Remote host closed the connection]
gratin has joined #nixos
<leotaku> clever: ok, ill look into that, thx
nikivi has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
gratin has quit [Remote host closed the connection]
gratin has joined #nixos
gratin has quit [Remote host closed the connection]
gratin has joined #nixos
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos
<growpotkin> is there a way to test how some library functions act using nix repl? I'm trying to play with some little helper functions without trying to build my entire config
<growpotkin> something like `nix-repl> lib.mkAliasOptionModule [ "foo" "bar" ] [ "foo" "baz" ]`
<growpotkin> but without needing to provide an entire config as input
seanparsons has quit [Ping timeout: 240 seconds]
seanparsons has joined #nixos
<mpickering> What goes wrong?
<growpotkin> it produces a function which is expected, but I need dummy arguments to feed it which get really tedious to generate
abueide has joined #nixos
trevthedev has quit [Ping timeout: 260 seconds]
gratin has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @costrouc opened pull request #45412 → minecraft-server: 1.12.2 -> 1.13.0 + service refactor → https://git.io/fAJ0m
<clever> growpotkin: its producing a module, that has to be ran by the module framework
<clever> growpotkin: you can either `nix repl '<nixpkgs/nixos>' and add it to your imports, or use `-I nixos-config=./fake-configuration.nix` and add it to that files imports
<clever> or write your own nix file that uses the module framework
<growpotkin> Thank you that's a perfect solution :D
joebobjoe has quit [Ping timeout: 272 seconds]
aarvar has joined #nixos
jluttine has quit [Ping timeout: 240 seconds]
jluttine has joined #nixos
kragniz is now known as kgz
Fare has quit [Ping timeout: 272 seconds]
patrl has quit [Ping timeout: 244 seconds]
ericsagnes has quit [Ping timeout: 260 seconds]
<gchristensen> eee
<gchristensen> oops