Lisanna has quit [Remote host closed the connection]
philr has joined #nix-darwin
clever has joined #nix-darwin
<cbarrett> hello
ben has quit [Ping timeout: 268 seconds]
hamishmack has quit [Ping timeout: 244 seconds]
jtojnar has joined #nix-darwin
trcc has joined #nix-darwin
hamishmack has joined #nix-darwin
philr has quit [Quit: WeeChat 2.2]
__Sander__ has joined #nix-darwin
Profpatsch has joined #nix-darwin
<Profpatsch> Maybe interesting here: I wrote a nix wrapper that opens a nix shell on the foreign machine (over ssh and NIX_REMOTE).
<Profpatsch> So you can (manually) test stuff on different architectures than your own.
<Profpatsch> Holler if we should open-source it.
<Profpatsch> (right now it’s in a private repo).
<LnL> that sounds neat
<LnL> I use --store ssh-ng://host a lot to build stuff on other machines
<clever> LnL: something ive wanted, is a way to get a shell inside the full sandbox nix-daemon sets up, so i can interactively debug something within the sandbox
<clever> sometimes, nix-shell doesnt work, because of the sandboxing
<LnL> like Mic92's thing?
<clever> for example, one package i tried to debug, fails during `make install`
<clever> i obviously cant debug that as non-root in nix-shell
<LnL> he's giving a talk about that IIRC
<clever> and as root, it had permission to write to things it shouldnt have (its inputs!)
<clever> LnL: i was thinking more built into nix, and reusing the sandbox logic in nix
<clever> so it can reproduce sandboxed failures, but be interactive
<clever> and more about launching nix-shell inside that sandbox, then jamming my own shell into the sandbox while the build is running
trcc has quit [Remote host closed the connection]
trcc has joined #nix-darwin
trcc has quit [Ping timeout: 240 seconds]
carlosdagos has quit [Quit: Connection closed for inactivity]
trcc has joined #nix-darwin
trcc has quit [Remote host closed the connection]
trcc has joined #nix-darwin
trcc has quit [Remote host closed the connection]
trcc has joined #nix-darwin
nD5Xjz has joined #nix-darwin
hamishmack has quit [Ping timeout: 252 seconds]
trcc has quit []
__Sander__ has quit [Quit: Konversation terminated!]
<gchristensen> LnL: what were the launchctl commands needed for upgrading Nix?
<LnL> what I posed last is probably the most reliable
<LnL> alltho it doesn't help with system upgrades
<gchristensen> can you remind me of what you posted last? :)
<gchristensen> will the remove also stop?
<gchristensen> I'm updating Nix's upgrade nix docs
<LnL> yeah, it's like unload but doesn't require a file reference
<LnL> for upgrade that doesn't really matter, but it's more reliable for uninstall
<gchristensen> ah
<gchristensen> how does this look: sudo -i sh -c 'nix-channel --update && nix-env -iA nixpkgs.nix'; sudo launchctl remove org.nixos.nix-daemon; sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist
<gchristensen> oh your comment says it isn't so good.
<gchristensen> what do you recommend? :) I'm putting together some patches and then will ask eelco to release
<gchristensen> LnL: ^
<LnL> it is assuming the channel is ok
<LnL> the 2.0 requirement was removed right?
<gchristensen> yeah
philr has joined #nix-darwin
<gchristensen> LnL: I guess I'm trying to make these docs better if not perfect
<gchristensen> LnL: so ... what do you think they should say, and I'll put that in :)
<LnL> well, for upgrading 1.11 -> 2.1 with 2.0 as requirement the answer is I don't know
<gchristensen> ouk
<gchristensen> ok*
<gchristensen> does this look right for 1.11 -> 2.1 without 2.0 as a requirement? Multi-user Nix users on macOS can upgrade Nix by running sudo -i sh -c 'nix-channel --update && nix-env -iA nixpkgs.nix'; sudo launchctl remove org.nixos.nix-daemon; sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist.
<LnL> yeah then it works
<LnL> but at the time this happened nixpkgs-unstable was 2.0 only
<gchristensen> yeah
<LnL> and there's one optional step we could add to help with system upgrades
<LnL> sudo cp /nix/var/nix/profiles/default/Library/LaunchDaemons/org.nixos.nix-daemon.plist /Library/LaunchDaemons/org.nixos.nix-daemon.plist
<LnL> (not tested)
<clever> LnL: what if that was just a symlink?
<gchristensen> LnL: can you review this? https://github.com/NixOS/nix/pull/2434
<{^_^}> nix#2434 (by grahamc, 1 minute ago, open): Upgrade docs: improve the upgrade command
<LnL> oh right
<LnL> that should be ln -sfn
<clever> LnL: cp also has a -s flag, to symlink instead of copying
<gchristensen> :o
<clever> which lets you use the cp order of params, rather then the weird ln order
<clever> not sure if darwin's cp has -s though, they are behind on a lot of things
<LnL> eh?
<LnL> cp and ln are the same order
<clever> ive found that ln is very unpredictable
<LnL> yeah, it's hard to think about but the order is the same
trcc has joined #nix-darwin
trcc has quit [Remote host closed the connection]
philr has quit [Ping timeout: 252 seconds]
trcc has joined #nix-darwin
trcc has quit []
hamishmack has joined #nix-darwin