!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1099 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org171 Servers

Load older messages


SenderMessageTime
5 Jul 2025
@tiferrei:matrix.orgtiferreioh right, thats a good point! I think i prefer that check to moving from unstable, thanks both!15:18:13
@tiferrei:matrix.orgtiferreiCompletely unrelatedly... when I first started playing with nix I installed determinate nix. If i wanted to move to vanilla nix, would this be quite an operation?15:19:09
@k900:0upti.meK900Not sure, Lix can definitely install on top of detnix15:19:51
@emilazy:matrix.orgemilyit would be an uninstall and reinstall, but that's not a huge deal with Nix15:20:10
@emilazy:matrix.orgemilysince you just reactivate your system configuration or such after15:20:21
@emilazy:matrix.orgemily(does it actually clean up the launch daemon?)15:20:28
@k900:0upti.meK900It should assuming the detnix installer generates a correct manifest?15:20:46
@tiferrei:matrix.orgtiferreiIf it is relevant: I quite like the determinate nix installer: the whole separate partition robustness business. but at the time i was not aware this was installing an actual downstream of nix 15:21:32
@k900:0upti.meK900The separate partition is the only way to do things I believe15:22:10
@k900:0upti.meK900So all Nix flavors do it15:22:16
@tiferrei:matrix.orgtiferreiMy fear was that if i uninstall this, with it would go all my homebrew-nix managed stuff, and it would maybe purge my configs, etc. I have very frequent backups but id like to avoid going through restoring everything if possible 15:22:37
@emilazy:matrix.orgemilyyou can use the command-line DetSys installer to install vanilla Nix15:23:07
@emilazy:matrix.orgemily (but not the graphical .pkg) 15:23:14
@emilazy:matrix.orgemilyand the Lix installer is based on the DetSys one15:23:17
@emilazy:matrix.orgemilyfwiw15:23:20
@tiferrei:matrix.orgtiferreii will have to do some reading on Lix, i was not aware of this alternative 15:23:38
@emilazy:matrix.orgemily it will not affect your Homebrew stuff. configs that are linked into /nix will be inaccessible while you do the reinstall. it's possible that K900 is right and you can just reinstall using the DetSys or Lix installers without uninstalling at all though 15:23:54
@emilazy:matrix.orgemily if you installed with the .pkg I wouldn't count on it though 15:24:13
@tiferrei:matrix.orgtiferrei ah I see -- in a way the links into /nix would be temporarily broken, but not removed, is that the right intuition? 15:26:12
@k900:0upti.meK900Yes15:26:30
@emilazy:matrix.orgemilyright. though in practice you probably want to run the nix-darwin uninstaller first, so your config would become temporarily inactive. but again, once you have reinstalled then you just activate your configuration and it all comes back15:27:10
@emilazy:matrix.orgemily you can quickly homebrew.enable = false; if you don't want that stuff uninstalled in the interim 15:27:19
@emilazy:matrix.orgemilyit's a five, ten minute process all in all15:27:31
@emilazy:matrix.orgemilymaking it easy to set up your config is half the point of Nix after all :)15:27:46
@tiferrei:matrix.orgtiferreiokay that sounds really nice! My only fear is exactly that maybe the interaction with homebrew would actively purge my app data, but flipping that switch before uninstall sounds like a good safety check 15:28:45
@emilazy:matrix.orgemily homebrew.enable = false; will just stop it managing the Homebrew stuff, it won't uninstall anything 15:29:08
@emilazy:matrix.orgemilyeven a normal uninstall would only remove apps rather than their data15:29:15
@emilazy:matrix.orgemily("uninstall" vs. "zap"; I think you can configure the latter in your config if you're really brave but obviously I don't recommend it)15:29:28
@tiferrei:matrix.orgtiferreiright, i believe I do have the "zap", just because usually when i actively do remove something from my system i want a full purge, but for this purpose i will both change to uninstall first, and fully disable the homebrew integration. thanks!15:30:23
@emilazy:matrix.orgemily btw, if you install Lix you will want nix.package = pkgs.lix; or the Lix overlay in your configuration, because nix-darwin takes over managing the daemon after first setup. (for vanilla Nix it will use it by default) 15:32:55

Show newer messages


Back to Room ListRoom Version: 6