Merge pull request 'Chore/darwin config fixes' (#26) from chore/darwin-config-fixes into main
CI / flake (push) Successful in 3m13s

Reviewed-on: #26
This commit was merged in pull request #26.
This commit is contained in:
2026-06-10 18:08:49 +01:00
+13 -18
View File
@@ -80,7 +80,7 @@
}; };
# Declarative Homebrew for packages with no nixpkgs equivalent or that must be # Declarative Homebrew for packages with no nixpkgs equivalent or that must be
# the vendor build (GUI casks, Mac App Store apps). # the vendor build (GUI casks).
homebrew = { homebrew = {
enable = true; enable = true;
onActivation = { onActivation = {
@@ -136,34 +136,29 @@
"vscodium" "vscodium"
"winbox" "winbox"
]; ];
masApps = { # Mac App Store apps are not managed declaratively: nix-darwin 26.05 forces
Amphetamine = 937984704; # activation to run as root, and `mas` cannot reach the App Store session
"Apple Configurator" = 1037126344; # from root, so installs silently fail. Install them by hand with
"Game Controller Tester" = 1500593102; # `mas install <id>` from a GUI Terminal (the `mas` CLI is in
"Home Assistant" = 1099568401; # environment.systemPackages above).
Infuse = 1136220934;
Keynote = 409183694;
Numbers = 409203825;
Pages = 409201541;
PDFgear = 6469021132;
PL2303Serial = 1624835354;
WireGuard = 1451685025;
};
}; };
# Touch ID authorises sudo (and darwin-rebuild's sudo prompt) instead of a # Touch ID authorises sudo (and darwin-rebuild's sudo prompt) instead of a
# typed password. sudo_local keeps the change in /etc/pam.d/sudo_local so it # typed password. sudo_local keeps the change in /etc/pam.d/sudo_local so it
# survives macOS updates. # survives macOS updates. reattach pulls in pam_reattach: pam_tid (Touch ID)
security.pam.services.sudo_local.touchIdAuth = true; # otherwise fails inside tmux/screen because the process is detached from the
# GUI login session -- and terminals here auto-start tmux, so it is required.
security.pam.services.sudo_local = {
touchIdAuth = true;
reattach = true;
};
# Declarative macOS UI defaults -- the main reason to run nix-darwin beyond # Declarative macOS UI defaults -- the main reason to run nix-darwin beyond
# package management. Applied on activation; all reversible. # package management. Applied on activation; all reversible.
system.defaults = { system.defaults = {
dock = { dock = {
autohide = true;
show-recents = false; show-recents = false;
mru-spaces = false; # don't reorder spaces by use mru-spaces = false; # don't reorder spaces by use
tilesize = 48;
}; };
finder = { finder = {
AppleShowAllExtensions = true; AppleShowAllExtensions = true;