Nix Flakes configuration for MacOS, NixOS and WSL
0
fork

Configure Feed

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

fix(njord): move package from user to system

This help nix-darwin to symlink application to the right place and make
them indexable by Spotlight.

All of this because it seems like nix-darwin do not handle correctly
packages at a user level, at least for all gui application that need to
be indexed by Spotlight.

cosmeak 3eaa38d6 041e788d

+44 -23
+27 -7
modules/hosts/njord/configuration.nix
··· 1 1 { inputs, ... }: 2 2 let 3 - configuration = { ... }: { 3 + configuration = { pkgs, ... }: { 4 4 imports = with inputs.self.modules.darwin; [ 5 5 system-garbageCollector 6 6 cosmeak ··· 71 71 show-recents = false; # Don't show recent open apps 72 72 tilesize = 32; # Set dock size 73 73 74 - # Set dock apps (remove all apps from dock) 74 + # Set dock apps 75 75 persistent-apps = [ ]; 76 76 77 77 # Disable hot corners ··· 86 86 autoUpdate = true; 87 87 cleanup = "zap"; # uninstall all elements not listed 88 88 }; 89 - 90 - homebrew.caskArgs.no_quarantine = true; # used for some "break" packages like librewolf 91 89 92 90 # Repository authorized for homebrew 93 91 homebrew.taps = [ 94 - "mczachurski/wallpapper" 92 + # "mczachurski/wallpapper" 95 93 ]; 96 94 97 95 # Apps from App Store - Just used for XCode because not avalaible somewhere else ··· 105 103 106 104 homebrew.casks = [ 107 105 "amethyst" # Window manager (to package for nix) 108 - "desmume" # Nintendo DS emulator 109 106 "figma" # ux/ui 110 - "ghostty" 111 107 "zed" 108 + "logi-options+" 109 + ]; 110 + 111 + environment.systemPackages = with pkgs; [ 112 + _1password-gui 113 + bat 114 + helix 115 + jujutsu 116 + just 117 + lazygit 118 + librewolf 119 + obsidian 120 + spotify 121 + starship 122 + zoxide 123 + 124 + alt-tab-macos # alt tab like windows on macos 125 + bruno # IDE for testing apis 126 + dbeaver-bin # Database client 127 + ghostty-bin # Terminal emulator 128 + stats # System monitoring displayed in macos top bar - will be replaced by custom script with sketchybar 129 + podman # container tool -> replacement of docker 130 + podman-compose # compose provider for podman 131 + raycast # replacement for spotlight 112 132 ]; 113 133 }; 114 134 in
+17 -16
modules/users/cosmeak.nix
··· 15 15 obsidian 16 16 spotify 17 17 starship 18 - vesktop 19 18 zoxide 20 19 ]; 21 20 in ··· 27 26 isNormalUser = true; 28 27 extraGroups = [ "networkmanager" "wheel" ]; 29 28 packages = with pkgs; [ 30 - chirp # Radio programming tool 31 - heroic # Game Launcher (Epic Games, GOG) 32 - obs-studio # Recording App 33 - prismlauncher # Minecraft launcher 34 - zed-editor.fhsWithPackages(pkg: [ zlib ]) # Code editor 29 + chirp # Radio programming tool 30 + heroic # Game Launcher (Epic Games, GOG) 31 + obs-studio # Recording App 32 + prismlauncher # Minecraft launcher 33 + vesktop # Discord client 34 + (zed-editor.fhsWithPackages (pkg: [ zlib ])) # Code editor 35 35 ] ++ (sharedPackages pkgs); 36 36 }; 37 37 }; 38 38 39 39 flake.modules.darwin.${username} = { pkgs, ... }: { 40 40 users.users.${username} = { 41 - packages = with pkgs; [ 42 - alt-tab-macos # alt tab like windows on macos 43 - bruno # IDE for testing apis 44 - dbeaver-bin # Database client 45 - stats # System monitoring displayed in macos top bar - will be replaced by custom script with sketchybar 46 - podman # container tool -> replacement of docker 47 - podman-compose # compose provider for podman 48 - raycast # replacement for spotlight 49 - zed-editor # Code editor 50 - ] ++ (sharedPackages pkgs); 41 + home = "Users/${username}/"; 42 + # packages = with pkgs; [ 43 + # alt-tab-macos # alt tab like windows on macos 44 + # bruno # IDE for testing apis 45 + # dbeaver-bin # Database client 46 + # ghostty-bin # Terminal emulator 47 + # stats # System monitoring displayed in macos top bar - will be replaced by custom script with sketchybar 48 + # podman # container tool -> replacement of docker 49 + # podman-compose # compose provider for podman 50 + # raycast # replacement for spotlight 51 + # ] ++ (sharedPackages pkgs); 51 52 }; 52 53 }; 53 54 }