!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
13 Mar 2026
@nasso:matrix.orgnasso ok so the idea is to literally put them in ~alice 01:34:36
@nasso:matrix.orgnassodidn't know that was possible! awesome01:34:51
@nasso:matrix.orgnasso but then if i have a system with, say, users alice and bob, and i want to install cask foo for alice only, cask bar for bob only and cask baz for both

who should be the homebrew.user? thats the main thing im confused about rn because in my case neither alice nor bob stand out as the "main" user really, they're both sharing the same system but i wanna be able to do edit and update my nix-darwin config from both ideally (they're both admin)
01:37:46
@nasso:matrix.orgnasso but then if i have a system with, say, users alice and bob, and i want to install cask foo for alice only, cask bar for bob only and cask baz for both

who should be the homebrew.user? thats the main thing im confused about rn because in my case neither alice nor bob stand out as the "main" user really, they're both sharing the same system but i wanna be able to do edit and update my nix-darwin config from both ideally (they're both admin btw)
01:37:49
@nasso:matrix.orgnasso (i actually have the same question with system settings and system.primaryUser, it's unclear which one should be the "primaryUser" in this case... there isn't one!) 01:38:52
@sarahec:matrix.orgSarah ClarkHome-manager isn't terribly hard and will be better for keeping a declaratrive system definition than using homebrew. You can search github for home-manager configurations03:15:49
@reckenrode:matrix.orgRandy Eckenrodee.g., here’s mine: https://github.com/reckenrode/nixos-configs03:57:39
@drag0n-rider:matrix.orgNikhil Snow changed their display name from nikhil to Nikhil Snow.05:56:58
@nasso:matrix.orgnassooh cool thanks! i will look into it!09:32:39
@toonn:matrix.orgtoonn nasso: Re sharing packages between multiple users, you can probably just do a local binding somewhere `let sharedPackages = [ pkgs.package-a pkgs.package-b ]; in users.alice.packages = sharedPackages ++ [ pkgs.package-c ]; ...`. 10:13:30
@nasso:matrix.orgnassoyeah for regular nix packages that seems easy10:14:08
@nasso:matrix.orgnassoi also realized shortly after asking my question that the same problem exists for mac app store apps lol i dont even think macOS has a native way to install mac app store apps only for one user... that seems... sucky10:14:58
@emilazy:matrix.orgemilyon a multi user system, don't set it11:30:18
@emilazy:matrix.orgemilyHomebrew doesn't really support multiple installs unfortunately11:30:30
@nasso:matrix.orgnassoyeah i had a feeling i wasn't supposed to set it at all in this case11:31:05
@emilazy:matrix.orgemilyyou can assign a dedicated Homebrew admin user or have an unsupported per-user installation (but nix-darwin wouldn't manage those and HM doesn't have anything for it AFAIK)11:31:11
@emilazy:matrix.orgemilycombining nix-darwin and HM sounds like what you want l11:31:27
@emilazy:matrix.orgemily * 11:31:34
@emilazy:matrix.orgemilyprobably with the HM integration module for nix-darwin11:31:46
@emilazy:matrix.orgemilyshared stuff in nix-darwin, per-user in HM11:32:02
@nasso:matrix.orgnassohow would homebrew fit in this11:32:09
@emilazy:matrix.orgemilyalso you may not need Homebrew. I used it to install GUI app casks but Nixpkgs has a lot more of those packaged than it used to. I'd definitely prefer Nixpkgs packages over formulae11:32:55
@nasso:matrix.orgnassoalso just to be sure, by "dedicated homebrew admin user" you mean e.g. a user named "brew" that is just here to own the global homebrew installation ?11:33:13
@nasso:matrix.orgnasso
In reply to @emilazy:matrix.org
also you may not need Homebrew. I used it to install GUI app casks but Nixpkgs has a lot more of those packaged than it used to. I'd definitely prefer Nixpkgs packages over formulae
yes me too id prefer not to use homebrew
11:33:41
@emilazy:matrix.orgemilyHomebrew can automate installation of complex binary packages that ship with installer .apps or .pkgs, and it happens to have a wider range of standard .apps packaged than Nixpkgs (but there's a couple repos that automatically convert every "standard" cask to a Nix package you can use too)11:34:37
@emilazy:matrix.orgemilyother than that it's redundant11:34:47
@emilazy:matrix.orgemilyoh and it can also automate App Store via mas of course, although mas is often flaky...11:35:15
@nasso:matrix.orgnassohehe flaky11:35:25
@emilazy:matrix.orgemilyand IIRC we might have a native module for that now11:35:26
@emilazy:matrix.orgemilyyeah11:35:34

Show newer messages


Back to Room ListRoom Version: 6