!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1175 Members
β€œThere are still many issues with the Darwin platform but most of it is quite usable.” β€” http://yves.gnu-darwin.org191 Servers

Load older messages


SenderMessageTime
21 Dec 2025
@crushing-smite:matrix.orgcrushing-smiteI tried once again - it disappears from allow-list exactly the moment darwin-rebuild hits the log line for copying apps πŸ€¦β€β™‚οΈ19:17:30
@samasaur:matrix.orgsamasaurI don't remember how to work around it in HM19:17:56
@samasaur:matrix.orgsamasaurnix-darwin works fine19:18:02
@samasaur:matrix.orgsamasaurI think maybe you need to use sudo?19:18:11
@crushing-smite:matrix.orgcrushing-smiteI do19:18:51
@samasaur:matrix.orgsamasaurIs your HM configuration used as a module as part of your nix-darwin configuration19:19:39
@crushing-smite:matrix.orgcrushing-smiteas a module19:19:52
@samasaur:matrix.orgsamasaurbc they sudo isn't passed down to HM19:19:58
@samasaur:matrix.orgsamasaur* bc that sudo isn't passed down to HM19:20:04
@crushing-smite:matrix.orgcrushing-smitewhat do I do then?19:20:38
@crushing-smite:matrix.orgcrushing-smitesudo su?19:20:40
@crushing-smite:matrix.orgcrushing-smitethis did not help either 😠😠😠19:24:17
@samasaur:matrix.orgsamasaurno, because nix-darwin activation explicitly drops to user-level permissions before running HM activation19:26:14
@crushing-smite:matrix.orgcrushing-smiteI mean, that option is part of home-manager, not nix-darwin module system - so how the hell should it be related?19:27:19
@crushing-smite:matrix.orgcrushing-smiteAnd why the lack of sudo should drop (!) an app from allow-list?19:27:47
@crushing-smite:matrix.orgcrushing-smiteWhen home-manager is used as nix-darwin module, would it be possible/make sense to trigger it separately?19:28:12
@crushing-smite:matrix.orgcrushing-smitehttps://github.com/nix-community/home-manager/issues/807919:30:52
@crushing-smite:matrix.orgcrushing-smite what are the drawbacks of targets.darwin.copyApps.enableChecks = false? 19:31:30
@crushing-smite:matrix.orgcrushing-smiteRemoving the Home Manager Apps helped19:34:02
@crushing-smite:matrix.orgcrushing-smiteOkay, it now works19:34:20
@crushing-smite:matrix.orgcrushing-smiteWorth adding this info about dir cleanup (and maybe copyApps.enableChecks) to the error message19:35:02
@crushing-smite:matrix.orgcrushing-smitewell, no, shit19:35:43
@crushing-smite:matrix.orgcrushing-smiteit added only firefox19:35:46
@crushing-smite:matrix.orgcrushing-smiteand did not do it for vscode, alacritty πŸ€¦β€β™‚οΈ19:36:02
@crushing-smite:matrix.orgcrushing-smitelet me try rebooting19:36:24
@crushing-smite:matrix.orgcrushing-smitenope, still not there19:37:36
@crushing-smite:matrix.orgcrushing-smitethis process is still VERY brittle, are there any thoughts on further improving it, now that you've given up on all but copying the apps?19:38:03
@samasaur:matrix.orgsamasaurunfortunately as someone said on that issue it's very difficult to try and debug this kind of thing on macOS21:18:10
@samasaur:matrix.orgsamasaurWe did some fairly thorough testing before merging the new approach into nix-darwin and AFAIK nobody has run into any issues there21:19:00
@samasaur:matrix.orgsamasaurwhich to me implies that the most likely cause is a lack of permissions, since the script runs as root when part of a nix-darwin config but as your user when part of a HM config21:20:05

Show newer messages


Back to Room ListRoom Version: 6