{`-`} has joined #nix-darwin
jrolfs_ has joined #nix-darwin
<johnw> ok, PR'd you
jrolfs_ has quit [Ping timeout: 248 seconds]
otherjrolfs has quit [Ping timeout: 248 seconds]
<johnw> LnL: now, finally got it linked to /etc/bashrc the right way
<johnw> now when I run I get:
<johnw> imported archive of ‘/nix/store/8a5xigqbr949rvkcgdk045ypfdnlfwm8-johnw-home’ lacks a signature
<LnL> that's probably the thrusted user stuff I was talking about earlier
<johnw> on both sides I have: nix.trustedUsers = [ "johnw" ];
<LnL> hmm
<LnL> oh wait, the daemon won't restart automatically for that
<johnw> kill -HUP the daemon?
<LnL> don't know if it listens to that
<LnL> but probably
<johnw> yes!
zzamboni has quit [Quit: Leaving.]
<johnw> hmm.. when I check my store now, I see this on both machines:
<johnw> path ‘/nix/store/3xanwzq67gfry8gs47dbw35sx3k9nsnz-johnw-home’ was modified! expected hash ‘4b75da43e8782dd3687c72a353d85cccf5275d274fc085d758c5ae429c586db6’, got ‘01505ea93dff888782e4cfc6ca44291720246b728c90a51a7a9dbb2e37aaa183’
<johnw> it's only ever with my johnw-home package
<johnw> i wonder what that's about
zzamboni has joined #nix-darwin
<LnL> ok, I should add that to the activation then :)
<johnw> oh, I know what's happening
<LnL> sounds like something messed with the path
<johnw> oh, hmm
<johnw> well, it then rebuilds it
<johnw> but I rerun the store check, and it's still corrupted
joshuasarver has joined #nix-darwin
joshuasarver is now known as joshuaks
<johnw> I wonder why it says this though: warning: rewriting hashes in ‘/nix/store/4bv6g397a4qgc690jp4i7ygwhiiygn78-johnw-home’; cross fingers
<joshuaks> Hey all, can I get some assistance with the nix pills?
<johnw> what's the question?
<johnw> not saying I can help, but it has to start there
<joshuaks> I'm on pill 8.1
<johnw> can you just ask the question you have here?
<joshuaks> GCC can't be found (or something related to it).
<johnw> are you on darwin?
<joshuaks> I know this is kinda an issue with Nix and macOS. I'm just not familiar enough with the chain to resolve it myself.
<joshuaks> Yes.
<gchristensen> ahh must be similar to https://github.com/NixOS/nix-pills/issues/35
<johnw> use -K with nix-build
<johnw> then go to the failing directory and look at config.log
<LnL> ah, yeah
<johnw> you can debug this like a regular problem
<LnL> the literal example doesn't work
<joshuaks> I ran into a similiar problem with 7.5 and filed a report. I can't seem to replicate the solution though in this instance. https://github.com/NixOS/nix-pills/issues/35
<joshuaks> johnw: I'll investigate. Thanks.
zzamboni has quit [Quit: Leaving.]
<LnL> I know that on linux it needed binutils.binutils or binutils-unwrapped
jrolfs_ has joined #nix-darwin
otherjrolfs has joined #nix-darwin
<joshuaks> So I got a syntax error due to the period when trying something similiar to that.
<joshuaks> Although that would work in nix-repl
<LnL> yeah, it's inherit (binutils) binutils; then
<LnL> or just binutils = binutils.binutils; without the fancy inherit syntax
<gchristensen> it'd be cool if we could test each of these prior to release
<joshuaks> wow that worked
<LnL> :D
<joshuaks> It's always a simple fix. Thanks LnL
<gchristensen> joshuaks: would you mind sending a PR? :)
<LnL> that's Sonarpulse's fault I think :p
<Sonarpulse> hi
<Sonarpulse> what broke?
<Sonarpulse> binutils.bintools
<Sonarpulse> now
otherjrolfs has quit [Ping timeout: 248 seconds]
jrolfs_ has quit [Ping timeout: 248 seconds]
<LnL> the nix pill example that tries to explain how the stdenv works
<Sonarpulse> (that's not the PR I merged new years eve though)
<LnL> (in it's most basic form)
* Sonarpulse needs to look over nix-pills post everything I've changed at some point
<joshuaks> gchristensen: do you just want updated instructions?
<LnL> I know, it's been in a while now
<gchristensen> sure
<pikajude> oh, hey, i think high sierra works now
<pikajude> neato
<pikajude> they appear to have unfucked APFS
<joshuaks> Yeah. Gimme a few.
<LnL> pikajude: //siguza.github.io/IOHIDeous/
<pikajude> yes I know
<pikajude> but at least nix works!!
<LnL> lol
<pikajude> and I think he published that because there aren't any conceivable attack vectors for it
<pikajude> it's just comically poorly designed
jrolfs_ has joined #nix-darwin
otherjrolfs has joined #nix-darwin
otherjrolfs has quit [Ping timeout: 240 seconds]
jrolfs_ has quit [Ping timeout: 248 seconds]
<johnw> hmm.. I can't seem to figure out what's changing the hash of my johnw-home derivation. It happens every time, but there's very little in there
<gchristensen> you could use nix-diff to find out
<johnw> is there a flag for Nix to tell me the results of its analysis, so I can see which file is the problem?
<johnw> oh, how would I use nix-diff?
<gchristensen> nix-shell -p haskellPackages.nix-diff drv1 drv2
<gchristensen> nix-shell -p haskellPackages.nix-diff ... nix-diff drv1 drv2
<Sonarpulse> gchristensen: glad I overhead that!
<gchristensen> :D
<joshuaks> gchristensen: PR made :)
<gchristensen> thanks!
<gchristensen> I'll take a look after work hours :)
<LnL> oh what's that?
<johnw> what are the two derivations here, though?
<joshuaks> Let me know if I fucked up anything lol
<johnw> I only see the one, and then it gets repaired
<johnw> path ‘/nix/store/4bv6g397a4qgc690jp4i7ygwhiiygn78-johnw-home’ was modified! expected hash ‘3976e2bfa70252d2919766a02200ccbc739e67c366d2ef37666b149332983c0b’, got ‘0b9808bb5ac7b3be2cb75813b69f09288d79faca89bab2b98ebb162d4d3b5c15’
<gchristensen> ohh changing the hash in the store, I thought you meant between two builds
<johnw> no, something is modifying /nix/store/4bv6g397a4qgc690jp4i7ygwhiiygn78-johnw-home after it's built
<LnL> have you tried to run repair on the remote host?
<johnw> I am running repair, and it fixes it
<joshuaks> Is there BSD support?
<disasm> is that iohid issue related to our crash the system when running kill?
<johnw> but the next time I darwin-rebuild switch, it builds a new one and that new one gets modified
<joshuaks> I've seen trailing mentions of it but nothing solid
<LnL> johnw: hold on, what does your custom activation look like?
<johnw> what is a custom activation?
<LnL> the extra activation stuff
<johnw> oh, wait, I know what it is
<johnw> .gitconfig is in there, and then I use git config --global in my extraActivation script
<johnw> I need to copy the initial .gitconfig out, not link it
<LnL> joshuaks: kind of, we don't have any bootstrap for it but there are a few people that use (or used to) it
<johnw> we should integrate augeas and nix, so that I can treat any config file as if it were a nix value
<johnw> then I could just home.gitconfig.http.foo = "value"; without need any support on the Nix side for a "home" module
<johnw> puppet does this
<johnw> oh, that issue is the reverse
<johnw> well, it's been wished for before: https://nixos.org/nix-dev/2014-December/015071.html
zzamboni has joined #nix-darwin
<johnw> i'm just 3 years late
otherjrolfs has joined #nix-darwin
jrolfs_ has joined #nix-darwin
otherjrolfs has quit [Ping timeout: 264 seconds]
jrolfs_ has quit [Ping timeout: 268 seconds]
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
otherjrolfs has joined #nix-darwin
jrolfs_ has joined #nix-darwin
otherjrolfs has quit [Ping timeout: 260 seconds]
jrolfs_ has quit [Ping timeout: 272 seconds]
<disasm> Is there a good example service in nix-darwin for a launchd script that is reused for multiple services?
<disasm> e.g. openvpn-vpn1 openvpn-vpn2 etc...
zzamboni has quit [Quit: Leaving.]
<johnw> you could easily write a function....
<LnL> the config part is just attributes / values
joshuaks has quit [Ping timeout: 272 seconds]
otherjrolfs has joined #nix-darwin
jrolfs_ has joined #nix-darwin
jrolfs_ has quit [Ping timeout: 248 seconds]
otherjrolfs has quit [Ping timeout: 264 seconds]
szicari has quit [Ping timeout: 248 seconds]
otherjrolfs has joined #nix-darwin
jrolfs_ has joined #nix-darwin
otherjrolfs has quit [Ping timeout: 248 seconds]
jrolfs_ has quit [Ping timeout: 240 seconds]
zzamboni has joined #nix-darwin
otherjrolfs has joined #nix-darwin
jrolfs_ has joined #nix-darwin
jrolfs_ has quit [Ping timeout: 248 seconds]
otherjrolfs has quit [Ping timeout: 248 seconds]
jrolfs_ has joined #nix-darwin
otherjrolfs has joined #nix-darwin
<johnw> LnL: oh, I keep forgetting to ask
<johnw> why is there stuff that isn't linked into /run/current-system/sw?
<johnw> for example, rtags has a share/emacs/site-lisp directory
<johnw> but while bin/rtags is linked in, the share directory is not
<LnL> that's to avoid conflicts, look at darwin-option environment.pathsToLink
<johnw> ah
otherjrolfs has quit [Ping timeout: 248 seconds]
<johnw> hmm...
jrolfs_ has quit [Ping timeout: 248 seconds]
<johnw> I set environment.pathsToLink = [ "info" "etc" "share" ]; in darwin-configuration.nix
<johnw> then switched
<johnw> but no difference
<johnw> oh, maybe I need the leading slash
<johnw> there we go; no conflicts
<johnw> thanks!
<LnL> yeah, and info is already in there
<johnw> i mean, doing /info /etc /share was fine
<LnL> you can see actual values of options with that command
<johnw> that's nice
<johnw> very nice in fact
<LnL> yeah, I didn't even know about nixos-option until I started looking around in the nixos modules :)
johnw has quit [Read error: Connection reset by peer]
pjan_ has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]