8.nix-darwin/tests
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
..
fixtures/system-defaults-write defaults: add com.apple.iCal for managing Calendar.app 2025-05-16 12:52:49 +10:00
activation-scripts.nix activation-scripts: add test for pre/post hooks 2018-01-14 16:08:27 +01:00
autossh.nix feat: use wait4path with script launchd option 2024-09-22 15:30:21 +10:00
environment-path.nix {environment,nix-tools}: correct default $PATH ordering to match macOS 2025-01-15 23:26:14 +00:00
environment-terminfo.nix Type: TERMINFO_DIRS not TERMINFO 2022-10-20 14:49:26 -06:00
fonts.nix fonts: remove fonts.fontDir.enable 2024-06-13 11:56:58 +01:00
homebrew.nix homebrew: move to system activation 2025-05-16 16:29:17 +01:00
launchd-daemons.nix launchd: move userLaunchd to system activation 2025-05-16 16:29:17 +01:00
launchd-setenv.nix launchd: add test for envVariables 2017-05-14 00:43:45 +02:00
networking-hostname.nix networking: backport domain, fqdn and fqdnOrHostName options 2025-04-12 19:11:10 +02:00
networking-networkservices.nix networking: use lib.escapeShellArgs instead of custom version 2024-10-22 16:02:21 +11:00
networking-shell-escape.nix fix shell escaping in networking config 2024-01-19 12:16:32 -05:00
networking-wakeonlan.nix networking: Add wakeOnLan option 2024-10-24 06:13:07 +02:00
nix-enable.nix nix: catch reads of unmanaged defaults 2025-02-11 20:10:55 +00:00
nixpkgs-overlays.nix tests: fix uses of ! 2023-08-05 23:30:16 +01:00
power-restart.nix power,sleep: Add options to control restart and sleep behavior 2024-10-24 06:13:11 +02:00
power-sleep.nix power,sleep: Add options to control restart and sleep behavior 2024-10-24 06:13:11 +02:00
programs-ssh-empty-known-hosts.nix programs.ssh: write ssh known_hosts only if there are any set 2023-09-15 08:24:20 -07:00
programs-ssh.nix ssh: use symlinks for authorizedKeys options 2024-06-15 12:15:13 +01:00
programs-tmux.nix tmux: add test for #173 2019-11-02 17:18:39 +01:00
programs-zsh.nix tests: fix negative asserts with grep not working 2024-10-27 21:26:19 +11:00
security-pki.nix security.pki: add test for ca-certificates.crt 2019-01-15 22:14:56 +01:00
services-activate-system-changed-label-prefix.nix activate-system: remove enable option 2024-11-15 14:10:48 +11:00
services-activate-system.nix activate-system: remove enable option 2024-11-15 14:10:48 +11:00
services-aerospace.nix launchd: move userLaunchd to system activation 2025-05-16 16:29:17 +01:00
services-buildkite-agent.nix feat: use wait4path with script launchd option 2024-09-22 15:30:21 +10:00
services-dnscrypt-proxy.nix services/dnscrypt-proxy: init 2025-02-28 19:58:19 +07:00
services-dnsmasq.nix fix: use separate config option to set port of DNSmasq 2021-01-28 14:09:30 +01:00
services-eternal-terminal.nix eternal-terminal: add module 2023-07-23 08:20:28 -04:00
services-github-runners.nix github-runners: adapt to NixOS module 2024-02-28 09:40:25 +01:00
services-jankyborders.nix launchd: move userLaunchd to system activation 2025-05-16 16:29:17 +01:00
services-lorri.nix launchd: move userLaunchd to system activation 2025-05-16 16:29:17 +01:00
services-netdata.nix netdata: add netdata service in nix-darwin. 2024-10-03 23:42:10 +05:30
services-nextdns.nix nextdns: fix argument handling 2024-07-08 16:36:31 -03:00
services-nix-daemon.nix nix-daemon: remove services.nix-daemon.enable 2025-02-07 19:44:59 +00:00
services-nix-gc.nix nix: remove nix.useDaemon 2025-02-07 19:44:59 +00:00
services-nix-optimise.nix nix: remove nix.useDaemon 2025-02-07 19:44:59 +00:00
services-ofborg.nix ofborg: add basic test 2018-03-05 23:00:50 +01:00
services-offlineimap.nix launchd: move userLaunchd to system activation 2025-05-16 16:29:17 +01:00
services-privoxy.nix launchd: move userLaunchd to system activation 2025-05-16 16:29:17 +01:00
services-redis.nix launchd: move userLaunchd to system activation 2025-05-16 16:29:17 +01:00
services-skhd.nix launchd: move userLaunchd to system activation 2025-05-16 16:29:17 +01:00
services-spacebar.nix launchd: move userLaunchd to system activation 2025-05-16 16:29:17 +01:00
services-spotifyd.nix launchd: move userLaunchd to system activation 2025-05-16 16:29:17 +01:00
services-synapse-bt.nix launchd: move userLaunchd to system activation 2025-05-16 16:29:17 +01:00
services-synergy.nix launchd: move userLaunchd to system activation 2025-05-16 16:29:17 +01:00
services-yabai.nix launchd: move userLaunchd to system activation 2025-05-16 16:29:17 +01:00
sockets-nix-daemon.nix nix-daemon: remove services.nix-daemon.enable 2025-02-07 19:44:59 +00:00
system-defaults-write.nix defaults: add com.apple.iCal for managing Calendar.app 2025-05-16 12:52:49 +10:00
system-environment.nix Combine system environment tests and add zsh 2018-10-29 09:12:20 +09:00
system-keyboard-mapping.nix (feature) Add swapLeftCtrlAndFn 2024-08-05 13:00:32 +02:00
system-packages.nix system-packages: fix test 2019-01-18 23:36:15 +01:00
system-path.nix Unify environment configuration and don't run in child shells 2018-10-25 01:00:52 +09:00
system-shells.nix add test for environment.shells 2017-12-13 23:05:46 +01:00
users-groups.nix users: create users with home directory /var/empty by default 2024-10-28 11:05:35 +11:00
users-packages.nix users.users: only extend profiles if packages are defined 2019-02-23 12:00:39 +01:00