ctucx.git: nixfiles

ctucx' nixfiles

commit 8b5bdec649b834ecd68887623544f40d7e35753b
parent 5483db8607784e03c0b4e482112d3cda26ecd657
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sat, 7 May 2022 14:06:30 +0200

machines/blechbuechse: some new declerative system settings
1 file changed, 34 insertions(+), 6 deletions(-)
M
machines/blechbuechse/darwin-configuration.nix
|
40
++++++++++++++++++++++++++++++++++------
diff --git a/machines/blechbuechse/darwin-configuration.nix b/machines/blechbuechse/darwin-configuration.nix
@@ -105,7 +105,8 @@ in {
 
   system.activationScripts.extraSystemSettings.text = ''
     # Sleep display after 30 minutes
-    sudo pmset -a displaysleep 30
+    #sudo pmset -a displaysleep 30
+    sudo systemsetup -settimezone "Europe/Berlin" > /dev/null
   '';
 
   system.activationScripts.extraUserActivation.text = ''

@@ -143,6 +144,19 @@ in {
 
     # Prevent Photos from opening automatically when devices are plugged in
     defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true
+
+    # drag windows by holding CTRL + CMD and clicking anywhere in the window
+    # does not work with all applications
+    defaults write -g NSWindowShouldDragOnGesture -bool true
+
+    # do not autogather large files when submitting a report
+    defaults write com.apple.appleseed.FeedbackAssistant "Autogather" -bool "false"
+
+    # disable "Application Downloaded from Internet" popup
+    defaults write com.apple.LaunchServices "LSQuarantine" -bool "false"
+
+    # disable animation when opening the info window in finder (CMD + I)
+    defaults write com.apple.finder DisableAllAnimations -bool true
   '';
 
   system.defaults = {

@@ -153,14 +167,28 @@ in {
       AppleTemperatureUnit   = "Celsius";
       AppleMeasurementUnits  = "Centimeters";
       AppleMetricUnits       = 1;
+
       AppleShowAllExtensions = true;
+      AppleShowScrollBars    = "Always";
+
+      # navigate UI elements with keyboard (tab key)
+      AppleKeyboardUIMode    = 3;
+
+      "com.apple.sound.beep.volume"        = "0.6";
+
+      NSTableViewDefaultSizeMode           = 2;
+
+      NSDocumentSaveNewDocumentsToCloud    = false;
 
-      "com.apple.sound.beep.volume"       = "0.6";
+      NSNavPanelExpandedStateForSaveMode   = true;
+      NSNavPanelExpandedStateForSaveMode2  = true;
 
-      NSTableViewDefaultSizeMode          = 2;
-      NSDocumentSaveNewDocumentsToCloud   = false;
-      NSNavPanelExpandedStateForSaveMode  = true;
-      NSNavPanelExpandedStateForSaveMode2 = true;
+      NSAutomaticCapitalizationEnabled     = false;
+      NSAutomaticDashSubstitutionEnabled   = false;
+      NSAutomaticPeriodSubstitutionEnabled = false;
+      NSAutomaticQuoteSubstitutionEnabled  = false;
+      NSAutomaticSpellingCorrectionEnabled = false;
+      
     };
 
     dock = {