| 21 Dec 2025 |
crushing-smite | enabling targets.darwin.copyApps.enable then. Does it require a reboot after rebuild? | 19:12:21 |
crushing-smite |
If you did not get a notification, you can navigate to System Settings > Privacy & Security > App Management.
| 19:13:38 |
crushing-smite | π | 19:13:44 |
crushing-smite | yeah I did not, what does that even depend on | 19:13:55 |
samasaur | are you on the latest macOS | 19:15:13 |
crushing-smite | on Sequoia | 19:15:29 |
crushing-smite | And yes, I've added vanilla Terminal.app, which I then restart - and it's gone from App-Management-allowed apps | 19:15:58 |
crushing-smite | thank you apple ποΈ | 19:16:06 |
samasaur | yeah that's a bug that we were seeing in home-manager | 19:17:29 |
crushing-smite | I tried once again - it disappears from allow-list exactly the moment darwin-rebuild hits the log line for copying apps π€¦ββοΈ | 19:17:30 |
samasaur | I don't remember how to work around it in HM | 19:17:56 |
samasaur | nix-darwin works fine | 19:18:02 |
samasaur | I think maybe you need to use sudo? | 19:18:11 |
crushing-smite | I do | 19:18:51 |
samasaur | Is your HM configuration used as a module as part of your nix-darwin configuration | 19:19:39 |
crushing-smite | as a module | 19:19:52 |
samasaur | bc they sudo isn't passed down to HM | 19:19:58 |
samasaur | * bc that sudo isn't passed down to HM | 19:20:04 |
crushing-smite | what do I do then? | 19:20:38 |
crushing-smite | sudo su? | 19:20:40 |
crushing-smite | this did not help either π π π | 19:24:17 |
samasaur | no, because nix-darwin activation explicitly drops to user-level permissions before running HM activation | 19:26:14 |
crushing-smite | I 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 | And why the lack of sudo should drop (!) an app from allow-list? | 19:27:47 |
crushing-smite | When home-manager is used as nix-darwin module, would it be possible/make sense to trigger it separately? | 19:28:12 |
crushing-smite | https://github.com/nix-community/home-manager/issues/8079 | 19:30:52 |
crushing-smite | what are the drawbacks of targets.darwin.copyApps.enableChecks = false? | 19:31:30 |
crushing-smite | Removing the Home Manager Apps helped | 19:34:02 |
crushing-smite | Okay, it now works | 19:34:20 |
crushing-smite | Worth adding this info about dir cleanup (and maybe copyApps.enableChecks) to the error message | 19:35:02 |