aboutsummaryrefslogtreecommitdiff
path: root/nix/hosts/common/macos.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-03-11 17:26:22 -0700
committerFranck Cuny <franck@fcuny.net>2024-03-11 17:26:22 -0700
commit1248d431ff09c15df666b381059efb8884718a9b (patch)
tree7959ce50cd52a99998430b13d0e47feff9630789 /nix/hosts/common/macos.nix
parentreorganize common files for hosts (diff)
downloadinfra-1248d431ff09c15df666b381059efb8884718a9b.tar.gz
switch to absolute path
Diffstat (limited to 'nix/hosts/common/macos.nix')
-rw-r--r--nix/hosts/common/macos.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/nix/hosts/common/macos.nix b/nix/hosts/common/macos.nix
new file mode 100644
index 0000000..edc57a0
--- /dev/null
+++ b/nix/hosts/common/macos.nix
@@ -0,0 +1,23 @@
+{ ... }: {
+ 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.keyboard = {
+ enableKeyMapping = true;
+ remapCapsLockToControl = true;
+ };
+
+ system.defaults.CustomUserPreferences = {
+ "com.apple.desktopservices" = {
+ # Avoid creating .DS_Store files on network or USB volumes
+ DSDontWriteNetworkStores = true;
+ DSDontWriteUSBStores = true;
+ };
+ };
+}