From 966c6cf90413c2d076b9f86b581164e52504c45b Mon Sep 17 00:00:00 2001 From: swaphb Date: Tue, 7 Jan 2025 23:00:00 -0500 Subject: [PATCH] cleanup and corrections --- modules/darwin/system/appearance.nix | 3 -- modules/darwin/system/finder.nix | 7 +++++ modules/darwin/system/system.nix | 45 ++-------------------------- 3 files changed, 9 insertions(+), 46 deletions(-) diff --git a/modules/darwin/system/appearance.nix b/modules/darwin/system/appearance.nix index 91e15cc..2bae3e7 100644 --- a/modules/darwin/system/appearance.nix +++ b/modules/darwin/system/appearance.nix @@ -21,14 +21,11 @@ system.defaults.NSGlobalDomain = { AppleInterfaceStyle = "Dark"; # "Dark" or "Light" - Darkmode all the things - AppleHighlightColor = "Purple"; # Set highlight color # Add more NSGlobalDomain settings here }; system.defaults.loginwindow = { GuestEnabled = false; # Disable guest account - AdminHostInfo = "HostName"; # Show hostname on login window - AdminHostInfoTime = true; # Show time on login window LoginwindowText = "Super Awesome Mac"; # Set login window text # Add more loginwindow settings here }; diff --git a/modules/darwin/system/finder.nix b/modules/darwin/system/finder.nix index 1b796e3..0a10655 100644 --- a/modules/darwin/system/finder.nix +++ b/modules/darwin/system/finder.nix @@ -9,4 +9,11 @@ ShowPathbar = true; # Show path bar # Add more Finder settings here }; + + system.defaults.NSGlobalDomain = { + AppleShowAllExtensions = true; # Show all file extensions + AppleShowAllFiles = true; # Show hidden files + }; + + # You can add more Mac defaults here as well... } \ No newline at end of file diff --git a/modules/darwin/system/system.nix b/modules/darwin/system/system.nix index 3104262..6c73913 100644 --- a/modules/darwin/system/system.nix +++ b/modules/darwin/system/system.nix @@ -3,54 +3,13 @@ { system.nixpkgsRelease = "unstable"; # Use the unstable channel for latest Nixpkgs. Stable packages update less frequently, for stable use "24.11" - # system.defaults.loginwindow = { - # GuestEnabled = false; # Disable guest account - # AdminHostInfo = "HostName"; # Show hostname on login window - # AdminHostInfoTime = true; # Show time on login window - # LoginwindowText = "Super Awesome Mac"; # Set login window text - # # Add more loginwindow settings here - # }; - system.defaults.screencapture = { location = "~/Documents/Screenshots"; # Set default screenshot location # Add more screencapture settings here }; - # # Finder Settings - # system.defaults.finder = { - # FXPreferredViewStyle = "Nlsv"; # Set default view style to list view - # NewWindowTarget = "PfHm"; # Set default new window target to home folder - # ShowMountedServersOnDesktop = true; # Show mounted servers on desktop - # ShowPathbar = true; # Show path bar - # # Add more Finder settings here - # }; - - # system.defaults.NSGlobalDomain = { - # AppleInterfaceStyle = "Dark"; # "Dark" or "Light" - Darkmode all the things - # AppleHighlightColor = "Purple"; # Set highlight color - # # Add more NSGlobalDomain settings here - # }; - - # # If you also want to do e.g. Dock preferences from the same user-level file: - # system.defaults.dock = { - # autohide = true; - # orientation = "bottom"; - # persistent-apps = [ - # /Applications/Safari.app - # /System/Applications/Utilities/Terminal.app - # # Add your persistent apps here - # ]; - # persistent-others = [ - # # Add your persistent others here - # "~/Documents" - # "~/code" - # ]; - # show-recents = false; - # tilesize = 36; # Set the icon size on the dock; default is 64 - # }; - - system.default.tracpad = { - tracpadThreeFingerDrag = true; + system.defaults.trackpad = { + TrackpadThreeFingerDrag = true; FirstClickThreshold = 1; SecondClickThreshold = 1; # Set up your trackpad preferences here