aboutsummaryrefslogblamecommitdiff
path: root/nix/hosts/darwin/macos.nix
blob: c9017838c1507247df08ae55d93a20bd067b64cf (plain) (tree)
1
2
3
4
5
6
7
8
9
                







                                                                     
                                                                         
 







                               
                                      

    




                                  




                                            







                                                                
{ pkgs, ... }: {
  system.defaults.dock.autohide = true;
  system.defaults.dock.orientation = "left";
  system.defaults.dock.showhidden = false;
  system.defaults.dock.show-recents = false;
  # don’t rearrange spaces based on the most recent use
  system.defaults.dock.mru-spaces = false;
  system.defaults.finder.AppleShowAllExtensions = true;
  system.defaults.screencapture.location = "~/Documents/screenshots";
  system.defaults.SoftwareUpdate.AutomaticallyInstallMacOSUpdates = true;

  fonts.packages = with pkgs; [
    emacs-all-the-icons-fonts
    google-fonts
    roboto
    source-code-pro
    source-serif-pro
    source-sans-pro
    go-font
    nerdfonts # this is needed for eza
  ];

  system.keyboard = {
    enableKeyMapping = true;
    remapCapsLockToControl = true;
  };

  # Touch ID for sudo auth
  security.pam.enableSudoTouchIdAuth = true;

  services.nix-daemon.enable = true;

  system.defaults.CustomUserPreferences = {
    "com.apple.desktopservices" = {
      # Avoid creating .DS_Store files on network or USB volumes
      DSDontWriteNetworkStores = true;
      DSDontWriteUSBStores = true;
    };
  };
}