1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-04-06 17:14:00 +00:00
nix-darwin/tests
Emily 73a6ceda1b homebrew: move to system activation
This adds an optional explicit `homebrew.user` option that allows users
to avoid setting `system.primaryUser`, partly as a proof of concept
of what the interfaces should look like in the future. Homebrew only
officially support one global installation, so a singleton matches
upstream’s expectations; in practice, it may be useful for us to
nest this into `users.users.*.homebrew` instead, at the expense of
being an unsupported setup if used to its full potential. Since
that would be a breaking change to the inteface anyway, I think
adding `homebrew.user` for now is acceptable. (I think one native
Apple Silicon and one Rosetta 2 Homebrew installation – under
`/opt/homebrew` and `/usr/local` respectively – may be exceptions
to this lack of upstream support, but that would be complicated to
support even with `users.users.*.homebrew`.)

I’m not entirely sure where in system activation this should
go. Probably after the user defaults and launch agents stuff, to match
the existing logic in user activation, and I lean towards doing it
as late as possible; too early and we might not have the users and
groups required to bootstrap a Homebrew installation set up, but
as Homebrew installations could be fiddly and fail, doing it in the
middle could leave a partially‐activated system.

Probably it should be done in a launch agent or something instead, but
this is my best guess as to the appropriate place for now. The downside
is that activation scripts generally won’t be able to assume that the
Homebrew prefix is populated according to the current configuration,
but they probably shouldn’t be depending on that anyway?
2025-03-23 11:13:48 +00:00
..
fixtures/system-defaults-write Fix merging of system.defaults.CustomUserPreferences 2025-03-14 12:00:17 -06: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-03-23 11:13:48 +00:00
launchd-daemons.nix launchd: add basic test for daemons/agents 2019-03-22 20:49:53 +01:00
launchd-setenv.nix launchd: add test for envVariables 2017-05-14 00:43:45 +02:00
networking-hostname.nix tests/networking-hostname: update for lib.escapeShellArg change 2024-09-10 22:11:20 +01: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 aerospace: add workspace-to-monitor-force-assignment option and fix on-window-detected type #1208 2024-12-29 16:57:26 +05:30
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 push change to jankyborders test 2024-10-03 08:01:15 -06:00
services-lorri.nix feat: use wait4path with script launchd option 2024-09-22 15:30:21 +10: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 Fix args passing to execvp 2018-08-01 19:40:59 +02:00
services-privoxy.nix Add a privoxy service 2018-08-02 10:09:22 +10:00
services-redis.nix Add some test coverage for redis service 2020-11-02 19:26:39 -08:00
services-skhd.nix skhd: add basic test 2018-03-05 21:41:52 +01:00
services-spacebar.nix module: add spacebar service 2020-05-14 19:41:28 +01:00
services-spotifyd.nix spotifyd: add spotifyd service 2021-03-11 04:20:00 +00:00
services-synapse-bt.nix synapse-bt: Add basic test 2018-09-15 15:37:22 -05:00
services-synergy.nix synergy: Add tests for config options 2018-09-14 21:01:08 +10:00
services-yabai.nix Separate yabai config and extra config by newline 2020-05-15 15:38:57 -04:00
sockets-nix-daemon.nix nix-daemon: remove services.nix-daemon.enable 2025-02-07 19:44:59 +00:00
system-defaults-write.nix Fix merging of system.defaults.CustomUserPreferences 2025-03-14 12:00:17 -06: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