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!)
<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