[nix] Add system preferences (defaults write)

This commit is contained in:
Alyxia Sother 2024-07-19 16:15:17 +02:00
parent b1d85b15db
commit aa82f824f4
No known key found for this signature in database
GPG key ID: 01E16C4E775A37E4
2 changed files with 62 additions and 0 deletions

View file

@ -3,6 +3,12 @@
{
imports = importAll [] ./.;
networking = {
computerName = "Alyxia's MacBook Pro";
hostName = "alymac";
localHostName = "alymac";
};
users.users.alyxia = {
name = "alyxia";
home = "/Users/alyxia";

View file

@ -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;
};
};
}