diff --git a/nix/system/default.nix b/nix/system/default.nix index b5d51ba..018abe3 100644 --- a/nix/system/default.nix +++ b/nix/system/default.nix @@ -3,6 +3,12 @@ { imports = importAll [] ./.; + networking = { + computerName = "Alyxia's MacBook Pro"; + hostName = "alymac"; + localHostName = "alymac"; + }; + users.users.alyxia = { name = "alyxia"; home = "/Users/alyxia"; diff --git a/nix/system/preferences.nix b/nix/system/preferences.nix new file mode 100644 index 0000000..7d52f4c --- /dev/null +++ b/nix/system/preferences.nix @@ -0,0 +1,56 @@ +{ ... }: + +{ + system.defaults = { + ActivityMonitor = { + IconType = 5; + OpenMainWindow = true; + SortColumn = "CPUUsage"; + SortDirection = 0; + }; + + NSGlobalDomain = { + NSDocumentSaveNewDocumentsToCloud = false; + NSNavPanelExpandedStateForSaveMode = true; + NSNavPanelExpandedStateForSaveMode2 = true; + + KeyRepeat = 1; + InitialKeyRepeat = 10; + }; + + LaunchServices.LSQuarantine = false; + + finder = { + AppleShowAllFiles = true; + AppleShowAllExtensions = true; + ShowPathbar = true; + _FXShowPosixPathInTitle = true; + }; + + universalaccess = { + closeViewScrollWheelToggle = true; + }; + + CustomSystemPreferences = { + "com.apple.desktopservices" = { + # Don't create .DS_STORE files on network or external stores + DSDontWriteNetworkStores = true; + DSDontWriteUSBStores = true; + }; + "com.apple.appstore" = { + WebKitDeveloperExtras = true; + ShowDebugMenu = true; + }; + # Exists in system.defaults, but it's just one option... + "com.apple.SoftwareUpdate" = { + AutomaticCheckEnabled = true; + ScheduleFrequency = 1; + AutomaticDownload = 1; + CriticalUpdateInstall = 1; + }; + "com.apple.commerce".AutoUpdate = true; + + "org.x.X11".enable_test_extensions = true; + }; + }; +}