dotfiles/.config/nix/modules/system.nix
2023-12-12 09:14:40 +01:00

69 lines
1.5 KiB
Nix

{ pkgs, ...}:
{
system = {
activationScripts.postUserActivation.text = ''
/System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
'';
defaults = {
dock= {
autohide = true;
autohide-time-modifier = 0.1;
expose-animation-duration = 0.0;
mru-spaces = false;
orientation = "right";
show-recents = false;
};
finder = {
AppleShowAllExtensions = true;
AppleShowAllFiles = true;
CreateDesktop = false;
FXPreferredViewStyle = "Nlsv";
QuitMenuItem = true;
ShowPathbar = true;
ShowStatusBar = true;
_FXShowPosixPathInTitle = true;
};
trackpad = {
Clicking = true;
TrackpadRightClick = true;
TrackpadThreeFingerDrag = true;
};
menuExtraClock = {
Show24Hour = true;
ShowDate = 0;
ShowDayOfWeek = false;
};
NSGlobalDomain = {
AppleInterfaceStyle = "Dark";
AppleShowAllExtensions = true;
AppleShowAllFiles = true;
InitialKeyRepeat = 14;
KeyRepeat = 1;
"com.apple.mouse.tapBehavior" = 1;
};
};
};
security.pam.enableSudoTouchIdAuth = true;
programs.zsh.enable = true;
fonts.fonts = [
pkgs.material-design-icons
pkgs.font-awesome
(pkgs.nerdfonts.override {
fonts = [
"FiraCode"
"Iosevka"
"IosevkaTerm"
"JetBrainsMono"
"SourceCodePro"
];
})
];
}