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?
<__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…]
<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
<__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]
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...