about summary refs log tree commit diff
path: root/hosts/common/darwin
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-03-04 14:48:16 -0800
committerFranck Cuny <franck@fcuny.net>2024-03-04 14:48:16 -0800
commitd540cff07a74120be04db1a57a3016f3b7970031 (patch)
treec517b6b8cde9a76e94cfb2a6c7bb1e4eeeb1da6d /hosts/common/darwin
parentextract shared code for darwin to a new module (diff)
downloadworld-d540cff07a74120be04db1a57a3016f3b7970031.tar.gz
common macos preferences are moved to a module
Diffstat (limited to '')
-rw-r--r--hosts/common/darwin/macos.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/hosts/common/darwin/macos.nix b/hosts/common/darwin/macos.nix
new file mode 100644
index 0000000..810d64d
--- /dev/null
+++ b/hosts/common/darwin/macos.nix
@@ -0,0 +1,18 @@
+{ ... }: {
+  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.CustomUserPreferences = {
+    "com.apple.desktopservices" = {
+      # Avoid creating .DS_Store files on network or USB volumes
+      DSDontWriteNetworkStores = true;
+      DSDontWriteUSBStores = true;
+    };
+  };
+}