dotfiles/modules/darwin/system.nix
2025-09-26 16:10:07 +07:00

49 lines
1,000 B
Nix

{ config, pkgs, lib, user, ... }: {
imports = [ ./homebrew.nix ./devtools.nix ];
nix = {
package = pkgs.nix;
extraOptions = ''
keep-derivations = true
keep-outputs = true
'';
settings = {
experimental-features = [ "nix-command" "flakes" ];
warn-dirty = false;
};
optimise.automatic = true;
gc = {
automatic = true;
interval = {
Weekday = 0;
Hour = 3;
Minute = 30;
};
options = "--delete-older-than 30d";
};
};
system = {
primaryUser = user;
stateVersion = 6;
defaults = {
NSGlobalDomain = {
ApplePressAndHoldEnabled = false;
KeyRepeat = 2;
InitialKeyRepeat = 15;
};
dock = {
autohide = true;
show-recents = false;
tilesize = 48;
};
finder = {
AppleShowAllExtensions = true;
AppleShowAllFiles = true;
};
};
};
security.pam.services.sudo_local.touchIdAuth = true;
}