philr_ has joined #nix-darwin
hedgie has quit []
hedgie has joined #nix-darwin
philr_ has quit [Ping timeout: 272 seconds]
hmpffff has joined #nix-darwin
hmpffff has quit [Quit: nchrrrr…]
Chiliparrot has joined #nix-darwin
infinisil has joined #nix-darwin
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hmpffff has joined #nix-darwin
philr_ has joined #nix-darwin
__monty__ has joined #nix-darwin
Chiliparrot has joined #nix-darwin
<disasm> is there an equivalent to `users.users.<user>.openssh.authorizedKeys.keys` for nix-darwin? or is environment.etc."per-user/root/ssh/authorized_keys".text the only option?
<disasm> I couldn't find anything rummaging through the repo
<gchristensen> note the per-user thing isn't even a thing
<gchristensen> later on we do cp -f /etc/per-user/root/ssh/authorized_keys ~root/.ssh/authorized_keys
<disasm> ah
<gchristensen> speaking of which, a number of the macs came down with a sickness :(
<disasm> I have two separate modules doing the per-user thing and I think because it's a text, it doesn't automatically concatenate and some keys are missing.
<gchristensen> ah yeah almost certainly
<disasm> well knowing that, I can just move it into the common module and pull it out of the conflicting ones :)
hmpffff has quit [Quit: nchrrrr…]
<disasm> oh, I see our for loop handling that, lol
<gchristensen> oh?
<__monty__> What's the sickness, gchristensen?
<gchristensen> they all got stopped on DSMOS this morning
<__monty__> Ouch, seems like the only solution is fixing it from recovery?
<__monty__> Sounds like a tedious manual process.
<gchristensen> nah, just reboots in a loop
<gchristensen> macos runs in a VM on NixOS on the Apple-made hardware
<__monty__> Ah. Cool. Any migration on demand going on?
<gchristensen> I wish
<gchristensen> the mac hardware isn't so powerful
<gchristensen> so just having them work at all is good :P
<__monty__> Are these a bunch of minis?
<gchristensen> yeah
<disasm> we got some of the new 2018 mac minis with 64 GB RAM and 1 TB hard drive running NixOS :) I'm working on getting them added to our CI this week
<gchristensen> !
<gchristensen> how much do those run? :)
<__monty__> Looks like ±2400 if I selected the right spec.
<gchristensen> disasm: do you have any lead on the "Waiting for DSMOS" stuff?
<gchristensen> right now my best way to deal with it is restart until it works
<__monty__> Does staggering the boots of the various machines help?
<gchristensen> nah, unfortunately not
<__monty__> Or linearizing them altogether?
<gchristensen> they're completely independent
<gchristensen> at DSMOS stage they don't have networnk
<gchristensen> and they're on different machines, so there is no way two booting at once could cause each other to fail
<__monty__> Is this apple's attempt at making virtualizitation impractical?
<gchristensen> it is tueir attempt at making it difficult, asking you to Don't Steal Mac O S
<__monty__> Also, is this nix-darwin-on-OSX-on-nixos-on-apple? I.e., why is nixos involved?
<gchristensen> because of this:
<gchristensen> 12:36 <__monty__> Ouch, seems like the only solution is fixing it from recovery?
<gchristensen> 12:37 <__monty__> Sounds like a tedious manual process.
<__monty__> Ah that does make sense.
<__monty__> Have there been attempts at doing this without apple-brand hardware btw?
<gchristensen> that is a violation of the macOS EULA
<__monty__> That is *an* answer : )
<__monty__> I'm trying to set `defaults write .GlobalPreferences com.apple.sound.beep.sound` from my configuration.
<__monty__> LnL told me yesterday to make an option for that, as it doesn't work currently.
<__monty__> Is that something I can do in my config or did they mean PR nix-darwin with a patch?
<__monty__> I didn't find any mkOption's in the examples to rip off.
domenkozar[m] has joined #nix-darwin
<domenkozar[m]> does anyone know if macOS sandbox also does networking?
<gchristensen> pretty sure it does
<__monty__> domenkozar[m]: The app sandbox? There's some netwoorking entitlements here: https://developer.apple.com/documentation/security/app_sandbox_entitlements
<domenkozar[m]> Hmm, right.
jtojnar has joined #nix-darwin
<__monty__> Re the defaults question. I'm working around this with an activationScript currently I just wonder if there's a better way? I'll try contributing this to nix-darwin anyway.
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<domenkozar[m]> __monty__: which defaults?
<__monty__> domenkozar[m]: I've PR'd: https://github.com/LnL7/nix-darwin/pull/155
<{^_^}> LnL7/nix-darwin#155 (by toonn, 1 hour ago, open): Add defaults write for the alert sound
<domenkozar[m]> ah ok :)
<LnL> domenkozar[m]: yes, in it's current form you do need to add some extra paths to make it work for most things
hmpffff has joined #nix-darwin
<gchristensen> woohoo mac3 is back online
hmpffff has quit [Quit: nchrrrr…]
<LnL> great!
<gchristensen> I might add 2 new jobs to the mac host machines: see if SSH is listening on the guest, if not, restart the VM. second: restart the VM every week or so, just for good measure
<gchristensen> https://imgur.com/a/ZeELkrr hrm
<__monty__> Why is that Mac OS path using backslashes? o.O
<gchristensen> this is mega early in boot... maybe an efi thing?
<__monty__> Question: I had my shell setup manually using the HM profile (/etc/profiles/per-user/me/bin/fish). Switching `home-manager.useUserPackages` from true to false (Because it somehow prevents home-manager from providing Applications.) prevented HM's activation from happening because it tries to use my user's login shell and that path doesn't exist anymore at that point of the darwin-rebuild. Why doesn't
<__monty__> setting my user's shell in configuration.nix fix the shell setup?
philr_ has quit [Ping timeout: 244 seconds]
vyorkin has joined #nix-darwin
<LnL> gchristensen: is that the first boot of the vm?
<gchristensen> every boot is the first boot :)
<gchristensen> the root disk gets reverted every time
<LnL> I think this happens if the kext cache gets corruped, which could happen if the image has ever booted before
<gchristensen> interesting..
<LnL> -f UseKernelCache=No could help, but that might slow things down significantly
<gchristensen> "eno: DAD complete" aww, dad
hedgie has quit [Remote host closed the connection]
hedgie has joined #nix-darwin
vyorkin has quit [Remote host closed the connection]
hedgie has quit [Remote host closed the connection]
hedgie has joined #nix-darwin
<eraserhd2> k/buffer 2
<eraserhd2> oops
Chiliparrot has joined #nix-darwin
<{^_^}> nixos-foundation#5 (by grahamc, 1 minute ago, open): Spending Request: Upgrade the hard drives in the macOS builders
<LnL> oh yeah I forgot about that
<gchristensen> oh? what did you forget about?
<LnL> that minis come with a spinning disk, putting an ssd in them might increase the average build speed by like >50%
<gchristensen> ahh yeah :D
<LnL> would take some time to upgrade all of them, but other then that it's a pretty cheap performance bump
<gchristensen> LnL: maybe should also upgrade mac1 from 4g ram to 8 or 16g
<LnL> would be nice if it's not too expensive and has relatively similar specs otherwise
<gchristensen> another $75-$120
<LnL> it could be an older generation that's also much slower
<duncan> LnL: the new Mac mini seems to have soldered storage
<duncan> Bah :(
<gchristensen> LnL: mac1 is older (2012 vs. 2014) but it is still i5-3210M @ 2.5ghz vs. i5-4278U @ 2.6ghz
<LnL> the current refreshed models or older?
<gchristensen> mac2-8 are the 2014s
<LnL> I figured, but that's still pretty close
<LnL> wait don't we have metrics on memory usage for these?
<LnL> hmm no, it's missing
<LnL> that reminds me, didn't they need a new home?
hmpffff has joined #nix-darwin
<gchristensen> LnL: we've found a new home :)
<LnL> ah, I forgot or missed that :)
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<gchristensen> the healthchecker has managed to bring all but mac1 and mac9 up.
<gchristensen> mac1 has never really been able to start the VM, and mac9 is literally powered off because of some hardware stuff. so I'll take that as huge success. hopefully this will keep them going long term
<duncan> Replace them with one Mac Pro :)
hmpffff has quit [Quit: nchrrrr…]
hmpffff has joined #nix-darwin
eraserhd2 has quit [Quit: WeeChat 2.5]
eraserhd has joined #nix-darwin
__monty__ has quit [Quit: leaving]
hmpffff has quit [Quit: nchrrrr…]
hmpffff has joined #nix-darwin
hmpffff has quit [Client Quit]
<johnw> any thoughts on why /nix/store/0hxddypc2f1qq7bkvd4a0frdkm1s53n3-ruby-2.5.5 is generating a different file tree on two different Macs with the same OS version? One references "darwin17" and the other "darwin18"...
<johnw> I wonder where this "darwin17" even comes from...