Nix Flakes configuration for MacOS, NixOS and WSL
0
fork

Configure Feed

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

feat(njord): re-add everything from the old config)

cosmeak 041e788d 28343a93

+105
+105
modules/hosts/njord/configuration.nix
··· 5 5 system-garbageCollector 6 6 cosmeak 7 7 ]; 8 + 9 + # Enable sudo via TouchID 10 + security.pam.services.sudo_local.touchIdAuth = true; 11 + 12 + # Timezone 13 + time.timeZone = "Europe/Paris"; 14 + 15 + # Linux builder 16 + nix = { 17 + linux-builder.enable = true; 18 + 19 + # This line is a prerequisite 20 + settings.trusted-users = [ "@admin" ]; 21 + }; 22 + 23 + # Disable startup sound 24 + system.nvram.variables = { 25 + "StartupMute" = "%01"; 26 + }; 27 + 28 + # Deactivate state manager 29 + system.defaults.WindowManager.GloballyEnabled = false; 30 + 31 + system.primaryUser = "cosmeak"; 32 + 33 + system.defaults.NSGlobalDomain = { 34 + # Switch between dark and light mode automatically 35 + AppleInterfaceStyleSwitchesAutomatically = true; 36 + # Disable saving new documents to icloud 37 + NSDocumentSaveNewDocumentsToCloud = false; 38 + # Time before the key is repeated 39 + # InitialKeyRepeat = 7; 40 + # Time between repeat key 41 + # KeyRepeat = 6; 42 + # Window open animation 43 + NSAutomaticWindowAnimationsEnabled = false; 44 + # Icon size in finder 45 + NSTableViewDefaultSizeMode = 2; 46 + # Drag from anywhere a window to move it 47 + NSWindowShouldDragOnGesture = true; 48 + # Deativate sound bip when volume is changed 49 + "com.apple.sound.beep.feedback" = 0; 50 + # Natural scrolling direction 51 + "com.apple.swipescrolldirection" = true; 52 + }; 53 + 54 + system.defaults.screencapture.location = "~/Pictures/screenshots"; 55 + system.defaults.finder = { 56 + AppleShowAllExtensions = true; # Show file extension 57 + AppleShowAllFiles = true; # Show hidden files 58 + FXPreferredViewStyle = "clmv"; # Set default view to column 59 + CreateDesktop = false; # Disable show icon on desktop 60 + FXDefaultSearchScope = "SCcf"; # Set default search scope to current folder 61 + }; 62 + 63 + system.defaults.dock = { 64 + autohide = true; 65 + orientation = "bottom"; # Set dock to bottom 66 + mru-spaces = false; # Auto arrange space based on the most recent use 67 + launchanim = false; # Remove animation when opening an app 68 + mineffect = "scale"; # Change animation from minimize/maximize app 69 + magnification = false; 70 + minimize-to-application = true; # Minimize app in app icon 71 + show-recents = false; # Don't show recent open apps 72 + tilesize = 32; # Set dock size 73 + 74 + # Set dock apps (remove all apps from dock) 75 + persistent-apps = [ ]; 76 + 77 + # Disable hot corners 78 + wvous-bl-corner = 1; 79 + wvous-br-corner = 1; 80 + wvous-tl-corner = 1; 81 + wvous-tr-corner = 1; 82 + }; 83 + 84 + homebrew.enable = true; 85 + homebrew.onActivation = { 86 + autoUpdate = true; 87 + cleanup = "zap"; # uninstall all elements not listed 88 + }; 89 + 90 + homebrew.caskArgs.no_quarantine = true; # used for some "break" packages like librewolf 91 + 92 + # Repository authorized for homebrew 93 + homebrew.taps = [ 94 + "mczachurski/wallpapper" 95 + ]; 96 + 97 + # Apps from App Store - Just used for XCode because not avalaible somewhere else 98 + homebrew.masApps = { 99 + Xcode = 497799835; 100 + }; 101 + 102 + homebrew.brews = [ 103 + # "wallpapper" # to package 104 + ]; 105 + 106 + homebrew.casks = [ 107 + "amethyst" # Window manager (to package for nix) 108 + "desmume" # Nintendo DS emulator 109 + "figma" # ux/ui 110 + "ghostty" 111 + "zed" 112 + ]; 8 113 }; 9 114 in 10 115 {