Add a systems module

This commit is contained in:
Tobias Ostner 2023-11-30 07:25:53 +01:00
parent 2ec4b32561
commit 22e4e8b611
3 changed files with 36 additions and 20 deletions

View file

@ -32,6 +32,7 @@
modules = [
./modules/nix-core.nix
./modules/system.nix
./modules/darwin
home-manager.darwinModules.home-manager
{

View file

@ -21,26 +21,6 @@
})
];
system.defaults = {
dock.autohide = true;
dock.autohide-time-modifier = 0.1;
dock.expose-animation-duration = 0.0;
dock.mru-spaces = false;
dock.orientation = "right";
NSGlobalDomain.InitialKeyRepeat = 14;
NSGlobalDomain.KeyRepeat = 1;
NSGlobalDomain.AppleShowAllExtensions = true;
NSGlobalDomain.AppleShowAllFiles = true;
NSGlobalDomain."com.apple.mouse.tapBehavior" = 1;
finder.AppleShowAllExtensions = true;
finder.AppleShowAllFiles = true;
finder.CreateDesktop = false;
finder.FXPreferredViewStyle = "Nlsv";
finder.QuitMenuItem = true;
finder._FXShowPosixPathInTitle = true;
menuExtraClock.ShowDate = 0;
menuExtraClock.ShowDayOfWeek = false;
};
users.users.tobi.description = "Tobias Ostner";
users.users.tobi.home = "/Users/tobi";
users.users.tobi.shell = pkgs.zshInteractive;

View file

@ -0,0 +1,35 @@
{ pkgs, ...}:
{
system = {
activationScripts.postUserActivation.text = ''
/System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
'';
defaults = {
NSGlobalDomain."com.apple.mouse.tapBehavior" = 1;
NSGlobalDomain.AppleShowAllExtensions = true;
NSGlobalDomain.AppleShowAllFiles = true;
NSGlobalDomain.InitialKeyRepeat = 14;
NSGlobalDomain.KeyRepeat = 1;
dock.autohide = true;
dock.autohide-time-modifier = 0.1;
dock.expose-animation-duration = 0.0;
dock.mru-spaces = false;
dock.orientation = "right";
finder.AppleShowAllExtensions = true;
finder.AppleShowAllFiles = true;
finder.CreateDesktop = false;
finder.FXPreferredViewStyle = "Nlsv";
finder.QuitMenuItem = true;
finder._FXShowPosixPathInTitle = true;
menuExtraClock.Show24Hour = true;
menuExtraClock.ShowDate = 0;
menuExtraClock.ShowDayOfWeek = false;
};
};
security.pam.enableSudoTouchIdAuth = true;
programs.zsh.enable = true;
}