❄️ Nix configurations
0
fork

Configure Feed

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

add home-manager

Alex Ottr 2e3c8c7f d70b170d

+101 -2
+57 -1
flake.lock
··· 23 23 "type": "github" 24 24 } 25 25 }, 26 + "catppuccin": { 27 + "inputs": { 28 + "nixpkgs": "nixpkgs" 29 + }, 30 + "locked": { 31 + "lastModified": 1749223974, 32 + "narHash": "sha256-/GAQYRW1duU81KG//2wI9ax8EkHVG/e1UOD97NdwLOY=", 33 + "owner": "catppuccin", 34 + "repo": "nix", 35 + "rev": "3a42cd79c647360ee8742659e42aeec0947dd3b4", 36 + "type": "github" 37 + }, 38 + "original": { 39 + "owner": "catppuccin", 40 + "repo": "nix", 41 + "type": "github" 42 + } 43 + }, 26 44 "darwin": { 27 45 "inputs": { 28 46 "nixpkgs": [ ··· 86 104 "type": "github" 87 105 } 88 106 }, 107 + "home-manager_2": { 108 + "inputs": { 109 + "nixpkgs": [ 110 + "nixpkgs" 111 + ] 112 + }, 113 + "locked": { 114 + "lastModified": 1749657191, 115 + "narHash": "sha256-QLilaHuhGxiwhgceDWESj9gFcKIdEp7+9lRqNGpN8S4=", 116 + "owner": "nix-community", 117 + "repo": "home-manager", 118 + "rev": "faeab32528a9360e9577ff4082de2d35c6bbe1ce", 119 + "type": "github" 120 + }, 121 + "original": { 122 + "owner": "nix-community", 123 + "repo": "home-manager", 124 + "type": "github" 125 + } 126 + }, 89 127 "nixos-hardware": { 90 128 "locked": { 91 129 "lastModified": 1749195551, ··· 103 141 }, 104 142 "nixpkgs": { 105 143 "locked": { 144 + "lastModified": 1744463964, 145 + "narHash": "sha256-LWqduOgLHCFxiTNYi3Uj5Lgz0SR+Xhw3kr/3Xd0GPTM=", 146 + "owner": "NixOS", 147 + "repo": "nixpkgs", 148 + "rev": "2631b0b7abcea6e640ce31cd78ea58910d31e650", 149 + "type": "github" 150 + }, 151 + "original": { 152 + "owner": "NixOS", 153 + "ref": "nixos-unstable", 154 + "repo": "nixpkgs", 155 + "type": "github" 156 + } 157 + }, 158 + "nixpkgs_2": { 159 + "locked": { 106 160 "lastModified": 1749558678, 107 161 "narHash": "sha256-DUVAe8E2X2QM0dAnTGlTiqemMqUMMyIeCH7UeNo0g64=", 108 162 "owner": "NixOS", ··· 120 174 "root": { 121 175 "inputs": { 122 176 "agenix": "agenix", 177 + "catppuccin": "catppuccin", 123 178 "disko": "disko", 179 + "home-manager": "home-manager_2", 124 180 "nixos-hardware": "nixos-hardware", 125 - "nixpkgs": "nixpkgs" 181 + "nixpkgs": "nixpkgs_2" 126 182 } 127 183 }, 128 184 "systems": {
+21 -1
flake.nix
··· 10 10 url = "github:ryantm/agenix"; 11 11 inputs.nixpkgs.follows = "nixpkgs"; 12 12 }; 13 + 14 + catppuccin.url = "github:catppuccin/nix"; 15 + 16 + home-manager = { 17 + url = "github:nix-community/home-manager"; 18 + inputs.nixpkgs.follows = "nixpkgs"; 19 + }; 13 20 }; 14 21 15 - outputs = inputs @ { nixpkgs, agenix, ... }: 22 + outputs = inputs @ { nixpkgs, catppuccin, agenix, home-manager, ... }: 16 23 { 17 24 18 25 # nixos-anywhere --flake .#polecat --generate-hardware-config nixos-generate-config ./hardware-configuration.nix root@192.168.1.50 ··· 28 35 system = "x86_64-linux"; 29 36 modules = [ 30 37 ./hosts/otter 38 + catppuccin.nixosModules.catppuccin 31 39 agenix.nixosModules.default 40 + home-manager.nixosModules.home-manager 41 + { 42 + home-manager.useGlobalPkgs = true; 43 + home-manager.useUserPackages = true; 44 + # home-manager.sharedModules = [inputs.catppuccin.homeManagerModules.catppuccin]; 45 + home-manager.users.alex = { 46 + imports = [ 47 + ./hosts/otter/home.nix 48 + catppuccin.homeModules.catppuccin 49 + ]; 50 + }; 51 + } 32 52 ]; 33 53 }; 34 54 };
+1
hosts/otter/configuration.nix
··· 94 94 95 95 # Allow unfree packages 96 96 nixpkgs.config.allowUnfree = true; 97 + nix.settings.experimental-features = "nix-command flakes"; 97 98 98 99 # List packages installed in system profile. To search, run: 99 100 # $ nix search wget
+5
hosts/otter/default.nix
··· 3 3 imports = [ 4 4 ./configuration.nix 5 5 ]; 6 + 7 + catppuccin = { 8 + flavor = "macchiato"; 9 + enable = true; 10 + }; 6 11 }
+17
hosts/otter/home.nix
··· 1 + { config, pkgs, ... }: 2 + 3 + { 4 + home.username = "alex"; 5 + home.homeDirectory = "/home/alex"; 6 + home.stateVersion = "25.05"; 7 + 8 + home.packages = []; 9 + 10 + # plain files is through 'home.file'. 11 + home.file = {}; 12 + 13 + home.sessionVariables = {}; 14 + 15 + programs.home-manager.enable = true; 16 + 17 + }