8.nix-darwin/modules/system
Emily 7877cba5f5 launchd: move userLaunchd to system activation
I’m not *completely* certain that this handles user agents
correctly. There is a deprecated command, `launchctl asuser`, that
executes a command in the Mach bootstrap context of another user`.
<https://scriptingosx.com/2020/08/running-a-command-as-another-user/>
claims that this is required when loading and unloading user agents,
but I haven’t tested this. Our current launchd agent logic is pretty
weird and broken already anyway, so unless this actively regresses
things I’d lean towards keeping it like this until we can move
over entirely to `launchctl bootstrap`/`launchctl kickstart`, which
aren’t deprecated and can address individual users directly. Someone
should definitely test it more extensively than I have, though.
2025-05-16 16:29:17 +01:00
..
defaults defaults: add com.apple.iCal for managing Calendar.app 2025-05-16 12:52:49 +10:00
activation-scripts.nix launchd: move userLaunchd to system activation 2025-05-16 16:29:17 +01:00
applications.nix applications: Drop store prefix to generalize 2022-09-13 14:57:50 +02:00
base.nix system: remove unnecessary sudo 2025-01-14 15:56:20 +00:00
checks.nix primary-user: init 2025-05-16 16:29:17 +01:00
default.nix system: tweak ShellCheck settings 2025-01-18 19:34:21 +00:00
defaults-write.nix defaults: add com.apple.iCal for managing Calendar.app 2025-05-16 12:52:49 +10:00
etc.nix write-text: remove support for copy 2024-06-15 12:15:13 +01:00
keyboard.nix (feature) Add swapLeftCtrlAndFn 2024-08-05 13:00:32 +02:00
launchd.nix launchd: move userLaunchd to system activation 2025-05-16 16:29:17 +01:00
nvram.nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
patches.nix system: replace for f in $(ls ...) with for f in .../* 2024-11-07 17:20:00 +11:00
primary-user.nix primary-user: init 2025-05-16 16:29:17 +01:00
shells.nix users: allow shell to be managed by macOS 2024-10-27 21:52:41 +11:00
startup.nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
version.nix Docs: Fix references to NixOS 2025-03-06 16:24:46 +01:00