{^_^} has quit [Remote host closed the connection]
elasticdog has quit [Ping timeout: 264 seconds]
elasticdog has joined #nix-darwin
{^_^} has joined #nix-darwin
jtojnar_ has joined #nix-darwin
jtojnar has quit [Ping timeout: 240 seconds]
jtojnar_ is now known as jtojnar
<disasm> LnL: how do they change /nix/var/nix/profiles/per-user/root/channels to be unstable? sudo nix-channel --list shows same output as the user they said.
zzamboni has joined #nix-darwin
zzamboni1 has joined #nix-darwin
zzamboni has quit [Read error: Connection reset by peer]
zzamboni1 has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
Biappi has quit [Ping timeout: 256 seconds]
jtojnar has quit [Ping timeout: 240 seconds]
zzamboni has quit [Quit: Leaving.]
<LnL> sudo -i
<LnL> darwin has a weird sudoers file
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
zzamboni has quit [Remote host closed the connection]
zzamboni has joined #nix-darwin
Lisanna has joined #nix-darwin
<LnL> don't use check
<Lisanna> LnL dhess recommended I do that to avoid the binary caches
<Lisanna> I'm trying to test remote building
<Lisanna> oh... ugh
<LnL> WARING: ... :D
<dhess> sorry, I guess I had old info
<Lisanna> LnL the one-liner in your post seems to be doing something :)
<Lisanna> although it's *really slow* for some reason
<dhess> Lisanna: ok a few more things to try: the ssh command to the remote builder will run as root, so a) it's probably better to put the ssh key in root's homedir or in /etc, rather than your homedir
zzamboni has quit [Quit: Leaving.]
<Lisanna> dhess even though I specify nix@myserver ?
zzamboni has joined #nix-darwin
<dhess> and b) root needs to have the host's ssh host key in ~root/.ssh/known_hosts
<dhess> Lisanna: that is just the remote ID. It will run "ssh nix@myserver" as root on your Mac
<Lisanna> well, fwiw, that command worked
<Lisanna> but, okay, I'll change the file location
<LnL> sounds like you setup everything correctly then :)
<dhess> Well it runs as root so it can read anything, it's more important that your ~root/.ssh/known_hosts has the remote builder's ssh host key
<dhess> you can copy it there in a postActivation script in your darwin-configuration.nix, or you can just ssh to the host as root, once, manually
<LnL> yeah, I want to add the known hosts options from nixos sometime to fix that
<dhess> Lisanna: and finally a few more things: as I mentioned earlier, every machine definition in NixOps must have nixpkgs.system = "x86_64-linux" or "armv7l-linux" etc in order to get NixOps to deploy it correctly
<dhess> and there's one more thing, what was it
<Lisanna> yeah, I added nixpkgs.system to the configuration.nix
<dhess> oh and you will need to add "big-parallel" to your remote builder's supported features to build the Linux kernel
<Lisanna> okay
<dhess> and you can also add "kvm,nixos-test" if it's a physical host and you want to build the NixOS tests from Nixpkgs (or write your own)
<Lisanna> alright... looks like the thing blocking my nixops deploy isn't related to remote building anymore
<Lisanna> thanks for the help in getting remote building setup
<dhess> np
jtojnar has joined #nix-darwin
johnw has quit [Quit: ZNC - http://znc.in]
<Lisanna> oh no, I was making a silly mistake, argh... I was asking it to build darwin, not linux, in that command line
<dhess> just go through the steps and checks I mentioned earlier. If you're still having problems with remote builds, it's probably one of those things.
<Lisanna> alright, will do
<dhess> one other thing that I didn't mention (because I thought you had it working) is that user `nix` (as in nix@myserver) has to be a trusted Nix user on myserver
<Lisanna> oh, that's a good point
<dhess> so that it can write the store (or is it sign packages? or both?)
<dhess> and the last thing I can think of here is, are you using Nix 2.0 on macOS for these remote builds?
<dhess> If so, I had to do this on macOS to get it to work: https://github.com/NixOS/nix/issues/1874
<Lisanna> dhess no, I'm not using nix 2.0
<Lisanna> but thanks for the tip
<Lisanna> argh, I wish it would at least just give me *some* kind of indication that it's trying and failing to do a remote build
<dhess> If you do -vvv I think you will get some info about the remote build
<Lisanna> nix is a trusted user, ssh from root --> nix@myserver works (sudo ssh -i /Users/ledettwy/.ssh/id_rsa nix@myserver)
<dhess> Debugging remote builds is no fun. Many of the errors alias to "X needs an x86_64-linux, but I am a foo"
<Lisanna> nope, -vvvv doesn't mention anything about remote or distributed building
<Lisanna> is there some funkiness with the nix daemon maybe?
<Lisanna> although I'd expect nix-darwin to take care of that
<dhess> It does if you let it. It used to ask you about that when you installed it for the first time. I don't know if it still does.
<Lisanna> well, I gave it as many abilities as it prompted me for
<Lisanna> `/var/log/nix-daemon.log` isn't showing anything relevant
<Lisanna> hey LnL how can I check if my nix-daemon is being managed by nix-darwin?
<LnL> darwin-option services.nix-daemon.enable
<LnL> and ls /run/current-system/Library/LaunchDaemons
<Lisanna> ah... didn't have that set
<LnL> but yes, the daemon log only shows connections
<Lisanna> yep, that changed things a bunch, now I have to go fix a bunch of other problems :)
<dhess> well, that's progress :)
<Lisanna> bah... no "networking.proxy" setting
<Lisanna> guess I can set them manually in nix.envVars
<Lisanna> oh great, proxy bootstrapping... killed the daemon to try to restart it, but launchctl won't let me start it again for unexplained reasons ):
zzamboni has quit [Quit: Leaving.]
<Lisanna> going to have to re-install nix and nix-darwin I guess
<Lisanna> I hate proxies so much
zzamboni has joined #nix-darwin
<LnL> hm
<LnL> did you try to load it with -w
<Lisanna> ....no
<Lisanna> (I have no idea how launchctl works :p)
<Lisanna> that appears to have worked...
<Lisanna> yep, that worked!
<LnL> I try to keep the activation scripts reasonable to read, take a look at /run/current-system/activate to see what it's doing
<Lisanna> oh, and remote building is showing signs of life now
<Lisanna> huh, whadayaknow, "launchctl load -w '/Library/LaunchDaemons/org.nixos.activate-system.plist"
<LnL> it's to create /run/current-system
<LnL> otherwise you'd have to bootstrap nix-darwin every time you reboot
<Lisanna> LnL thank you for writing nix-darwin btw... nix on macos was making me sad
<LnL> I just used nix for a long time, but when I got my nixos desktop rewrote my dotfiles
<LnL> that and a week of holidays and it kind of got out of hand :D
<LnL> let me know if you run into issues, the daemon thing sounds like it could be a bug
<Lisanna> LnL what daemon thing?
<Lisanna> I screwed up the daemon 'cause I killed it manually
<Lisanna> tried to restore the old plist so I could get my proxy settings back
<Lisanna> load -w let me do that, got it working
<Lisanna> LnL not sure what's causing this... trying to build nixops and getting "/private/tmp/nix-build-nixops-1.5.2.drv-0/nixops-66f02f7d9ebd41759f0563400ada8c364a067b22/dist /private/tmp/nix-build-nixops-1.5.2.drv-0/nixops-66f02f7d9ebd41759f0563400ada8c364a067b22
<Lisanna> nixops-_version_-py2-none-any.whl is not a valid wheel filename."
<Lisanna> guessing this is darwin-specific
<Lisanna> or is "wheel" a python thing
<Lisanna> oh yeah, nvm, this is a python thing, unrelated to darwin
<LnL> hmm, that looks like a normal wheel name
<Lisanna> LnL posted more info in #nixos
Biappi has joined #nix-darwin
<Lisanna> OK, fixed nixops, and confirmed that remote builds work in general, but I'm hitting the linux kernel assert now, nixops doesn't seem interested in trying to build on my remote
<Lisanna> nixpkgs.system is set
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
<Lisanna> and "big-parallel" is in the supportedFeatures list of the remote builder
<Lisanna> why don't any of these tools ever explain their decision-making? not even the nix-daemon log says anything useful
<manveru> debugging nix-daemon is probably my least favorite thing :|
<manveru> i wonder if nix 1.12 could at least improve this issue
<LnL> ssh-ng forwards logging to the client, but it doesn’t work with the build hook yet
<Lisanna> it's so frustrating because I feel like I'm so close...
_rvl has quit [Ping timeout: 240 seconds]
<Lisanna> LnL ssh-ng?
<Lisanna> and what sort of logging?
<LnL> yes, the new ssh store implementation
_rvl has joined #nix-darwin
<Lisanna> LnL dhess any remaining thoughts or things you think might be useful to check or try? not really sure where to go from here
<LnL> it's trying to build for the wrong system
<LnL> pretty sure that assertion is a stdenv.isLinux
<Lisanna> does evaluation happen on remote build hosts, or local hosts?
<Lisanna> if it's local then that would explain it...
<Lisanna> yeah
<Lisanna> that's exactly what it is
prooftechnique has quit [Ping timeout: 264 seconds]
LnL has quit [Ping timeout: 264 seconds]
{`-`} has quit [Ping timeout: 264 seconds]
{`-`}_ has joined #nix-darwin
LnL7 has joined #nix-darwin
prooftechnique_ has joined #nix-darwin
prooftechnique has quit [Ping timeout: 264 seconds]
LnL has quit [Ping timeout: 264 seconds]
{`-`} has quit [Ping timeout: 264 seconds]
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 276 seconds]
philr has quit [Ping timeout: 248 seconds]
<Lisanna> made a little bit of progress: if I add --option system "x86_64-linux", it hushes the assert, and I get to other misc. problems with my config
zzamboni has joined #nix-darwin
<Lisanna> well... it's doing *something*....
<Lisanna> this is going to be funny if it actually tries to compile the kernel on my mac
<Lisanna> actually most of this should be in binary caches, so... even if it's not doing a remote build, this *might* work
the-kenny has quit [Ping timeout: 256 seconds]
<Lisanna> OMG IT'S WORKING
<Lisanna> it's actually doing a remote build
the-kenny has joined #nix-darwin
<dtz> :D
<Lisanna> I have no idea why nixpkgs.system = "x86_64-linux"; wasn't enough....
<LnL7> yeah, I have no idea how to make nixops do what you'd expect
LnL7 is now known as LnL
<Lisanna> time for a celebratory coffee :)
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
cstrahan has quit [Ping timeout: 255 seconds]
cstrahan has joined #nix-darwin
philr has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
jtojnar has quit [Quit: jtojnar]
zzamboni has joined #nix-darwin
peacememories has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 268 seconds]
jtojnar has joined #nix-darwin
jtojnar has quit [Ping timeout: 255 seconds]
zzamboni has joined #nix-darwin
jtojnar has joined #nix-darwin
jtojnar has quit [Ping timeout: 264 seconds]
zzamboni has quit [Quit: Leaving.]
Lisanna has quit [Quit: Lisanna]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
domenkozar has joined #nix-darwin
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
philr has quit [Ping timeout: 256 seconds]
zzamboni has joined #nix-darwin
contrapumpkin has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
johnw has joined #nix-darwin
Lisanna has joined #nix-darwin
<johnw> odd, two world rebuilds in one day on nixpkgs-unstable
<johnw> guess I pulled at the wrong times
<gchristensen> ouch
jtojnar has joined #nix-darwin
nostate has joined #nix-darwin
<nostate> Hi. I usually store my personal user config files in a dotfiles repo, but I'm trying to figure out how to leverage nix to handle most of that stuff for me. What's the best way to do this?
<nostate> The ideal thing would be if nix could also manage things like my macOS system preferences, installed native apps, etc.
<johnw> nostate: use nix-darwin and home-manager :)
<nostate> Where can I find info about home-manager? I'm finding stuff like this. https://homemanager.cpsenergysavers.com/customer/secure/login
<johnw> follow the submodule link in the gihbu page
<nostate> Doh!
<nostate> johnw: How do you go about spinning up a new machine with that setup?
<johnw> these are my notes from a recent install of High Sierra:
<nostate> That's awesome, thanks!
<johnw> the "Set NIX_PATH and PATH based on previous settings" step is the most sketchy
<LnL> the other one is my project, but the readme could use an intro https://github.com/LnL7/nix-darwin
<johnw> sometimes nix-darwin is like baking sourdough: you have to start with something that already works
<nostate> LnL: Looking...
<johnw> LnL: I wish that most of that pasted list could be done by nix-darwin
<johnw> there are still lots of environment tweaks that need to be done manually
<nostate> Yeah
<LnL> yeah, I think I know what you mean
<nostate> That's what I'm going through right now.
<nostate> :/
<johnw> even just getting nix properly installed on the new machine is a multi-step process that breaks in different ways at multiple points on the different machines
<johnw> it was by no means a "copy configuration.nix and run rebuild" type thing
<nostate> Fortunately the nix install went smoothly for me this time.
<johnw> i find I have to run darwin's bootstrap.sh several times
<johnw> once, then delete global files it almost stepped on, then again, then again asking it to really create users
<LnL> hm?
<johnw> if nix-darwin asked me y/n questions during the process, I could have run it just once
<nostate> johnw: What's your preferred method of installing emacs on macOS?
<johnw> with Nix
<nostate> Excellent
<nostate> It has no problem getting a native GUI version?
<johnw> none at all
<johnw> ah, new stuff
<johnw> except, I prefer to use the nix-darwin that is currentyl git clone'd on the machine I'm replicating
<johnw> to avoid introducing new variables
<LnL> yeah, I added an installer/uninstaller
<LnL> it's interactive, just say no to the nix-channel step :)
<LnL> and if you put your configuration in place before starting it will just use that
<LnL> oh, just use the path to your clone then
<LnL> it's just an example in case you don't want to clone it first
<johnw> cool
philr has joined #nix-darwin