my over complex system configurations dotfiles.isabelroses.com/
nixos nix flake dotfiles linux
12
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: more spliting up of config and cleanup

+126 -100
+1
modules/darwin/default.nix
··· 3 3 ./brew # homebrew the package manager 4 4 ./hardware # hardware config - i.e. keyboard 5 5 ./prefrences # system preferences 6 + ./security # security settings to keep the system secure 6 7 ./services # services exclusive to nix-darwin 7 8 8 9 ./activation.nix # run when we start the system
-61
modules/darwin/non-native.nix
··· 1 - { 2 - # Customize settings that not supported by nix-darwin directly 3 - # see the source code of this project to get more undocumented options: 4 - # https://github.com/rgcr/m-cli 5 - # 6 - # All custom entries can be found by running `defaults read` command. 7 - # or `defaults read xxx` to read a specific domain. 8 - system.defaults.CustomUserPreferences = { 9 - NSGlobalDomain = { 10 - # Add a context menu item for showing the Web Inspector in web views 11 - WebKitDeveloperExtras = true; 12 - }; 13 - 14 - "com.apple.desktopservices" = { 15 - # Avoid creating .DS_Store files on network or USB volumes 16 - DSDontWriteNetworkStores = true; 17 - DSDontWriteUSBStores = true; 18 - }; 19 - 20 - "com.apple.spaces" = { 21 - "spans-displays" = 0; # Display have seperate spaces 22 - }; 23 - 24 - "com.apple.WindowManager" = { 25 - EnableStandardClickToShowDesktop = 0; # Click wallpaper to reveal desktop 26 - StandardHideDesktopIcons = 0; # Show items on desktop 27 - HideDesktop = 0; # Do not hide items on desktop & stage manager 28 - StageManagerHideWidgets = 0; 29 - StandardHideWidgets = 0; 30 - }; 31 - 32 - "com.apple.screensaver" = { 33 - # Require password immediately after sleep or screen saver begins 34 - askForPassword = 1; 35 - askForPasswordDelay = 0; 36 - }; 37 - 38 - "com.apple.screencapture" = { 39 - location = "~/Pictures/screenshots"; 40 - type = "png"; 41 - }; 42 - 43 - "com.apple.AdLib" = { 44 - allowApplePersonalizedAdvertising = false; 45 - }; 46 - 47 - # Prevent Photos from opening automatically when devices are plugged in 48 - "com.apple.ImageCapture".disableHotPlug = true; 49 - 50 - # modified from https://github.com/nmasur/dotfiles/blob/275863795317f8ce65486b138c1fb4eb6dbd65f8/modules/darwin/system.nix#L134-L148 51 - # "com.apple.dock".persistent-apps = let 52 - # dockText = app: "<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>'${app}'</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>"; 53 - # in 54 - # map dockText [ 55 - # "/Applications/Arc.app" 56 - # "/Users/isabel/Applications/Home Manager Apps/WezTerm.app" 57 - # "/Users/isabel/Applications/Home Manager Apps/Discord.app" 58 - # "${pkgs.obsidian}/Applications/Obsidian.app" 59 - # ]; 60 - }; 61 - }
+19 -9
modules/darwin/prefrences/default.nix
··· 1 - # All the configuration options are documented here: https://daiderd.com/nix-darwin/manual/index.html#sec-options 2 - # Incomplete list of macOS `defaults` commands: https://macos-defaults.com/ 1 + # All the configuration options are documented here: https://daiderd.com/nix-darwin/manual/index.html#sec-options 2 + # Incomplete list of macOS `defaults` commands: https://macos-defaults.com/ 3 + # 4 + # This pertains to anything prefixed with CustomUserPreferences 5 + # Customize settings that not supported by nix-darwin directly 6 + # see the source code of this project to get more undocumented options: 7 + # https://github.com/rgcr/m-cli 8 + # 9 + # All custom entries can be found by running `defaults read` command. 10 + # or `defaults read xxx` to read a specific domain. 3 11 { 4 12 imports = [ 5 - ./clock.nix 6 - ./dock.nix 7 - ./finder.nix 8 - ./login.nix 9 - ./misc.nix 10 - ./sound.nix 11 - ./theme.nix 13 + ./clock.nix # Settings for the clock in the menu bar 14 + ./dock.nix # Settings for the dock 15 + ./finder.nix # Settings for Finder (file manager) 16 + ./images.nix # Screensaver, screenshots etc 17 + ./login.nix # Settings for the login screen 18 + ./misc.nix # Miscellaneous settings 19 + ./sound.nix # Sound settings 20 + ./theme.nix # Theme settings 21 + ./wm.nix # Window manager settings 12 22 ]; 13 23 }
+30 -15
modules/darwin/prefrences/dock.nix
··· 1 1 { 2 - system.defaults.dock = { 3 - autohide = true; 4 - autohide-delay = 0.0; # autohide delay 5 - autohide-time-modifier = 1.0; # autohide animation duration 2 + system.defaults = { 3 + dock = { 4 + autohide = true; 5 + autohide-delay = 0.0; # autohide delay 6 + autohide-time-modifier = 1.0; # autohide animation duration 6 7 7 - orientation = "bottom"; # dock position 8 - tilesize = 1; # dock icon size 8 + orientation = "bottom"; # dock position 9 + tilesize = 1; # dock icon size 9 10 10 - static-only = false; # show running apps 11 - show-recents = false; # disable recent apps 12 - showhidden = false; # show hidden apps 13 - mru-spaces = false; # disable recent spaces 11 + static-only = false; # show running apps 12 + show-recents = false; # disable recent apps 13 + showhidden = false; # show hidden apps 14 + mru-spaces = false; # disable recent spaces 14 15 15 - # customize Hot Corners 16 - # wvous-tl-corner = 2; # top-left - Mission Control 17 - # wvous-tr-corner = 13; # top-right - Lock Screen 18 - # wvous-bl-corner = 3; # bottom-left - Application Windows 19 - # wvous-br-corner = 4; # bottom-right - Desktop 16 + # customize Hot Corners 17 + # wvous-tl-corner = 2; # top-left - Mission Control 18 + # wvous-tr-corner = 13; # top-right - Lock Screen 19 + # wvous-bl-corner = 3; # bottom-left - Application Windows 20 + # wvous-br-corner = 4; # bottom-right - Desktop 21 + }; 20 22 }; 23 + 24 + # CustomUserPreferences = { 25 + # modified from https://github.com/nmasur/dotfiles/blob/275863795317f8ce65486b138c1fb4eb6dbd65f8/modules/darwin/system.nix#L134-L148 26 + # "com.apple.dock".persistent-apps = let 27 + # dockText = app: "<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>'${app}'</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>"; 28 + # in 29 + # map dockText [ 30 + # "/Applications/Arc.app" 31 + # "/Users/isabel/Applications/Home Manager Apps/WezTerm.app" 32 + # "/Users/isabel/Applications/Home Manager Apps/Discord.app" 33 + # "${pkgs.obsidian}/Applications/Obsidian.app" 34 + # ]; 35 + # }; 21 36 }
+17
modules/darwin/prefrences/images.nix
··· 1 + { 2 + system.defaults.CustomUserPreferences = { 3 + "com.apple.screensaver" = { 4 + # Require password immediately after sleep or screen saver begins 5 + askForPassword = 1; 6 + askForPasswordDelay = 0; 7 + }; 8 + 9 + "com.apple.screencapture" = { 10 + location = "~/Pictures/screenshots"; 11 + type = "png"; 12 + }; 13 + 14 + # Prevent Photos from opening automatically when devices are plugged in 15 + "com.apple.ImageCapture".disableHotPlug = true; 16 + }; 17 + }
+19 -8
modules/darwin/prefrences/misc.nix
··· 1 1 { 2 - system.defaults.NSGlobalDomain = { 3 - NSAutomaticCapitalizationEnabled = false; # disable auto capitalization 4 - NSAutomaticDashSubstitutionEnabled = false; # disable auto dash substitution 5 - NSAutomaticPeriodSubstitutionEnabled = false; # disable auto period substitution 6 - NSAutomaticQuoteSubstitutionEnabled = false; # disable auto quote substitution 7 - NSAutomaticSpellingCorrectionEnabled = false; # disable auto spelling correction 8 - NSNavPanelExpandedStateForSaveMode = true; # expand save panel by default 9 - NSNavPanelExpandedStateForSaveMode2 = true; # ^ 2 + system.defaults = { 3 + NSGlobalDomain = { 4 + # Add a context menu item for showing the Web Inspector in web views 5 + WebKitDeveloperExtras = true; 6 + 7 + NSAutomaticCapitalizationEnabled = false; # disable auto capitalization 8 + NSAutomaticDashSubstitutionEnabled = false; # disable auto dash substitution 9 + NSAutomaticPeriodSubstitutionEnabled = false; # disable auto period substitution 10 + NSAutomaticQuoteSubstitutionEnabled = false; # disable auto quote substitution 11 + NSAutomaticSpellingCorrectionEnabled = false; # disable auto spelling correction 12 + NSNavPanelExpandedStateForSaveMode = true; # expand save panel by default 13 + NSNavPanelExpandedStateForSaveMode2 = true; # ^ 14 + }; 15 + }; 16 + 17 + CustomUserPreferences."com.apple.desktopservices" = { 18 + # Avoid creating .DS_Store files on network or USB volumes 19 + DSDontWriteNetworkStores = true; 20 + DSDontWriteUSBStores = true; 10 21 }; 11 22 }
+15
modules/darwin/prefrences/wm.nix
··· 1 + { 2 + system.defaults.CustomUserPreferences = { 3 + "com.apple.spaces" = { 4 + "spans-displays" = 0; # Display have seperate spaces 5 + }; 6 + 7 + "com.apple.WindowManager" = { 8 + EnableStandardClickToShowDesktop = 0; # Click wallpaper to reveal desktop 9 + StandardHideDesktopIcons = 0; # Show items on desktop 10 + HideDesktop = 0; # Do not hide items on desktop & stage manager 11 + StageManagerHideWidgets = 0; 12 + StandardHideWidgets = 0; 13 + }; 14 + }; 15 + }
-7
modules/darwin/security.nix
··· 1 - { 2 - security.pam.enableSudoTouchIdAuth = true; 3 - 4 - # Apple menu > System Preferences > Security and firewall 5 - # Drops incoming requests via ICMP such as ping requests. Default is 0. 6 - system.defaults.alf.stealthenabled = 1; # enabled 7 - }
+3
modules/darwin/security/ads.nix
··· 1 + { 2 + system.defaults.CustomUserPreferences."com.apple.AdLib".allowApplePersonalizedAdvertising = false; 3 + }
+7
modules/darwin/security/default.nix
··· 1 + { 2 + imports = [ 3 + ./ads.nix # remove ads 4 + ./firewall.nix # firewall 5 + ./pam.nix # pam security settings 6 + ]; 7 + }
+12
modules/darwin/security/firewall.nix
··· 1 + { 2 + system.defaults.alf = { 3 + allowdownloadsignedenabled = 0; 4 + allowsignedenabled = 1; 5 + globalstate = 0; 6 + loggingenabled = 0; 7 + 8 + # Apple menu > System Preferences > Security and firewall 9 + # Drops incoming requests via ICMP such as ping requests. Default is 0. 10 + stealthenabled = 1; 11 + }; 12 + }
+3
modules/darwin/security/pam.nix
··· 1 + { 2 + security.pam.enableSudoTouchIdAuth = true; 3 + }