aboutsummaryrefslogtreecommitdiff
path: root/nix/machines/darwin-shared.nix
diff options
context:
space:
mode:
authorFranck Cuny <59291+fcuny@users.noreply.github.com>2025-02-10 08:47:54 -0800
committerFranck Cuny <59291+fcuny@users.noreply.github.com>2025-02-10 08:48:16 -0800
commita0f966952c5647cbaf24d78678e85444a91bdfc7 (patch)
tree170be1eb4808fcedc0b1dac114a90d8236622d7f /nix/machines/darwin-shared.nix
parentMerge pull request #7 from fcuny/update_flake_lock_action (diff)
downloadinfra-a0f966952c5647cbaf24d78678e85444a91bdfc7.tar.gz
update some of the macos defaults
Diffstat (limited to 'nix/machines/darwin-shared.nix')
-rw-r--r--nix/machines/darwin-shared.nix32
1 files changed, 22 insertions, 10 deletions
diff --git a/nix/machines/darwin-shared.nix b/nix/machines/darwin-shared.nix
index 1c9cbf3..2f0ceb9 100644
--- a/nix/machines/darwin-shared.nix
+++ b/nix/machines/darwin-shared.nix
@@ -17,18 +17,38 @@
system.defaults = {
dock = {
autohide = true;
+ dashboard-in-overlay = false;
+ launchanim = false; # Don't animate opening applications.
+ mru-spaces = false; # don’t rearrange spaces based on the most recent use
orientation = "left";
- showhidden = false;
show-recents = false;
- mru-spaces = false; # don’t rearrange spaces based on the most recent use
+ showhidden = false;
+ tilesize = 60; # Default is 64.
+ wvous-br-corner = 1; # Disable Notes hot corner.
};
finder.AppleShowAllExtensions = true;
+
+ CustomUserPreferences = {
+ "com.apple.desktopservices" = {
+ # Avoid creating .DS_Store files on network or USB volumes
+ DSDontWriteNetworkStores = true;
+ DSDontWriteUSBStores = true;
+ };
+ };
+
+ # Requires the directory to already exist.
+ # See system.activationScripts.postUserActivation
screencapture.location = "~/Documents/screenshots";
SoftwareUpdate.AutomaticallyInstallMacOSUpdates = true;
};
+ system.activationScripts.postUserActivation.text = ''
+ mkdir -p ~/Documents/screenshots
+ '';
+
fonts.packages = with pkgs; [
source-code-pro
+ monaspace
];
system.keyboard = {
@@ -41,14 +61,6 @@
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;
- };
- };
-
programs.fish.enable = true;
programs.fish.shellInit = ''
# Nix