My entire NixOS config or something!

Trying to add nix-inspect; committing this before

+317 -9
-1
configuration.nix
··· 92 92 gh 93 93 wl-clipboard 94 94 ripgrep 95 - vimPlugins.semshi 96 95 git-filter-repo 97 96 ]; 98 97
+293 -3
flake.lock
··· 1 1 { 2 2 "nodes": { 3 + "crane": { 4 + "flake": false, 5 + "locked": { 6 + "lastModified": 1727316705, 7 + "narHash": "sha256-/mumx8AQ5xFuCJqxCIOFCHTVlxHkMT21idpbgbm/TIE=", 8 + "owner": "ipetkov", 9 + "repo": "crane", 10 + "rev": "5b03654ce046b5167e7b0bccbd8244cb56c16f0e", 11 + "type": "github" 12 + }, 13 + "original": { 14 + "owner": "ipetkov", 15 + "ref": "v0.19.0", 16 + "repo": "crane", 17 + "type": "github" 18 + } 19 + }, 20 + "dream2nix": { 21 + "inputs": { 22 + "nixpkgs": [ 23 + "nix-inspect", 24 + "nci", 25 + "nixpkgs" 26 + ], 27 + "purescript-overlay": "purescript-overlay", 28 + "pyproject-nix": "pyproject-nix" 29 + }, 30 + "locked": { 31 + "lastModified": 1732214960, 32 + "narHash": "sha256-ViyEMSYwaza6y55XTDrsRi2K4YKCLsefMTorjWSE27s=", 33 + "owner": "nix-community", 34 + "repo": "dream2nix", 35 + "rev": "a8dac99db44307fdecead13a39c584b97812d0d4", 36 + "type": "github" 37 + }, 38 + "original": { 39 + "owner": "nix-community", 40 + "repo": "dream2nix", 41 + "type": "github" 42 + } 43 + }, 44 + "flake-compat": { 45 + "flake": false, 46 + "locked": { 47 + "lastModified": 1696426674, 48 + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", 49 + "owner": "edolstra", 50 + "repo": "flake-compat", 51 + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", 52 + "type": "github" 53 + }, 54 + "original": { 55 + "owner": "edolstra", 56 + "repo": "flake-compat", 57 + "type": "github" 58 + } 59 + }, 3 60 "flake-parts": { 4 61 "inputs": { 5 62 "nixpkgs-lib": [ ··· 41 98 "type": "github" 42 99 } 43 100 }, 101 + "mk-naked-shell": { 102 + "flake": false, 103 + "locked": { 104 + "lastModified": 1681286841, 105 + "narHash": "sha256-3XlJrwlR0nBiREnuogoa5i1b4+w/XPe0z8bbrJASw0g=", 106 + "owner": "yusdacra", 107 + "repo": "mk-naked-shell", 108 + "rev": "7612f828dd6f22b7fb332cc69440e839d7ffe6bd", 109 + "type": "github" 110 + }, 111 + "original": { 112 + "owner": "yusdacra", 113 + "repo": "mk-naked-shell", 114 + "type": "github" 115 + } 116 + }, 117 + "nci": { 118 + "inputs": { 119 + "crane": "crane", 120 + "dream2nix": "dream2nix", 121 + "mk-naked-shell": "mk-naked-shell", 122 + "nixpkgs": [ 123 + "nix-inspect", 124 + "nixpkgs" 125 + ], 126 + "parts": "parts", 127 + "rust-overlay": "rust-overlay", 128 + "treefmt": "treefmt" 129 + }, 130 + "locked": { 131 + "lastModified": 1732342495, 132 + "narHash": "sha256-7qfvmnJQByEtl5bS+rTydLCe3Saz9kMRaJxPCdqb1wQ=", 133 + "owner": "yusdacra", 134 + "repo": "nix-cargo-integration", 135 + "rev": "ae9de2d06519a3bb26b649e1c0d1cfa22c20dc0e", 136 + "type": "github" 137 + }, 138 + "original": { 139 + "owner": "yusdacra", 140 + "repo": "nix-cargo-integration", 141 + "type": "github" 142 + } 143 + }, 144 + "nix-inspect": { 145 + "inputs": { 146 + "nci": "nci", 147 + "nixpkgs": "nixpkgs", 148 + "parts": "parts_2" 149 + }, 150 + "locked": { 151 + "lastModified": 1733357226, 152 + "narHash": "sha256-ArwdTtlIje7yOTblkZs4aQ1+HBtEwJKkfKOiA9tY8nA=", 153 + "owner": "bluskript", 154 + "repo": "nix-inspect", 155 + "rev": "2938c8e94acca6a7f1569f478cac6ddc4877558e", 156 + "type": "github" 157 + }, 158 + "original": { 159 + "owner": "bluskript", 160 + "repo": "nix-inspect", 161 + "type": "github" 162 + } 163 + }, 44 164 "nixpkgs": { 45 165 "locked": { 166 + "lastModified": 1732014248, 167 + "narHash": "sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w=", 168 + "owner": "nixos", 169 + "repo": "nixpkgs", 170 + "rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", 171 + "type": "github" 172 + }, 173 + "original": { 174 + "owner": "nixos", 175 + "ref": "nixos-unstable", 176 + "repo": "nixpkgs", 177 + "type": "github" 178 + } 179 + }, 180 + "nixpkgs_2": { 181 + "locked": { 46 182 "lastModified": 1764667669, 47 183 "narHash": "sha256-7WUCZfmqLAssbDqwg9cUDAXrSoXN79eEEq17qhTNM/Y=", 48 184 "owner": "nixos", ··· 57 193 "type": "github" 58 194 } 59 195 }, 60 - "nixpkgs_2": { 196 + "nixpkgs_3": { 61 197 "locked": { 62 198 "lastModified": 1764856222, 63 199 "narHash": "sha256-yEJmtoFu4cJre1NuU4fb8q57Oux+NTbocnALtJ64aEI=", ··· 76 212 "nixvim": { 77 213 "inputs": { 78 214 "flake-parts": "flake-parts", 79 - "nixpkgs": "nixpkgs_2", 215 + "nixpkgs": "nixpkgs_3", 80 216 "systems": "systems" 81 217 }, 82 218 "locked": { ··· 93 229 "type": "github" 94 230 } 95 231 }, 232 + "parts": { 233 + "inputs": { 234 + "nixpkgs-lib": [ 235 + "nix-inspect", 236 + "nci", 237 + "nixpkgs" 238 + ] 239 + }, 240 + "locked": { 241 + "lastModified": 1730504689, 242 + "narHash": "sha256-hgmguH29K2fvs9szpq2r3pz2/8cJd2LPS+b4tfNFCwE=", 243 + "owner": "hercules-ci", 244 + "repo": "flake-parts", 245 + "rev": "506278e768c2a08bec68eb62932193e341f55c90", 246 + "type": "github" 247 + }, 248 + "original": { 249 + "owner": "hercules-ci", 250 + "repo": "flake-parts", 251 + "type": "github" 252 + } 253 + }, 254 + "parts_2": { 255 + "inputs": { 256 + "nixpkgs-lib": [ 257 + "nix-inspect", 258 + "nixpkgs" 259 + ] 260 + }, 261 + "locked": { 262 + "lastModified": 1730504689, 263 + "narHash": "sha256-hgmguH29K2fvs9szpq2r3pz2/8cJd2LPS+b4tfNFCwE=", 264 + "owner": "hercules-ci", 265 + "repo": "flake-parts", 266 + "rev": "506278e768c2a08bec68eb62932193e341f55c90", 267 + "type": "github" 268 + }, 269 + "original": { 270 + "owner": "hercules-ci", 271 + "repo": "flake-parts", 272 + "type": "github" 273 + } 274 + }, 275 + "purescript-overlay": { 276 + "inputs": { 277 + "flake-compat": "flake-compat", 278 + "nixpkgs": [ 279 + "nix-inspect", 280 + "nci", 281 + "dream2nix", 282 + "nixpkgs" 283 + ], 284 + "slimlock": "slimlock" 285 + }, 286 + "locked": { 287 + "lastModified": 1728546539, 288 + "narHash": "sha256-Sws7w0tlnjD+Bjck1nv29NjC5DbL6nH5auL9Ex9Iz2A=", 289 + "owner": "thomashoneyman", 290 + "repo": "purescript-overlay", 291 + "rev": "4ad4c15d07bd899d7346b331f377606631eb0ee4", 292 + "type": "github" 293 + }, 294 + "original": { 295 + "owner": "thomashoneyman", 296 + "repo": "purescript-overlay", 297 + "type": "github" 298 + } 299 + }, 300 + "pyproject-nix": { 301 + "flake": false, 302 + "locked": { 303 + "lastModified": 1702448246, 304 + "narHash": "sha256-hFg5s/hoJFv7tDpiGvEvXP0UfFvFEDgTdyHIjDVHu1I=", 305 + "owner": "davhau", 306 + "repo": "pyproject.nix", 307 + "rev": "5a06a2697b228c04dd2f35659b4b659ca74f7aeb", 308 + "type": "github" 309 + }, 310 + "original": { 311 + "owner": "davhau", 312 + "ref": "dream2nix", 313 + "repo": "pyproject.nix", 314 + "type": "github" 315 + } 316 + }, 96 317 "root": { 97 318 "inputs": { 98 319 "home-manager": "home-manager", 99 - "nixpkgs": "nixpkgs", 320 + "nix-inspect": "nix-inspect", 321 + "nixpkgs": "nixpkgs_2", 100 322 "nixvim": "nixvim" 101 323 } 102 324 }, 325 + "rust-overlay": { 326 + "inputs": { 327 + "nixpkgs": [ 328 + "nix-inspect", 329 + "nci", 330 + "nixpkgs" 331 + ] 332 + }, 333 + "locked": { 334 + "lastModified": 1732328983, 335 + "narHash": "sha256-RHt12f/slrzDpSL7SSkydh8wUE4Nr4r23HlpWywed9E=", 336 + "owner": "oxalica", 337 + "repo": "rust-overlay", 338 + "rev": "ed8aa5b64f7d36d9338eb1d0a3bb60cf52069a72", 339 + "type": "github" 340 + }, 341 + "original": { 342 + "owner": "oxalica", 343 + "repo": "rust-overlay", 344 + "type": "github" 345 + } 346 + }, 347 + "slimlock": { 348 + "inputs": { 349 + "nixpkgs": [ 350 + "nix-inspect", 351 + "nci", 352 + "dream2nix", 353 + "purescript-overlay", 354 + "nixpkgs" 355 + ] 356 + }, 357 + "locked": { 358 + "lastModified": 1688756706, 359 + "narHash": "sha256-xzkkMv3neJJJ89zo3o2ojp7nFeaZc2G0fYwNXNJRFlo=", 360 + "owner": "thomashoneyman", 361 + "repo": "slimlock", 362 + "rev": "cf72723f59e2340d24881fd7bf61cb113b4c407c", 363 + "type": "github" 364 + }, 365 + "original": { 366 + "owner": "thomashoneyman", 367 + "repo": "slimlock", 368 + "type": "github" 369 + } 370 + }, 103 371 "systems": { 104 372 "locked": { 105 373 "lastModified": 1681028828, ··· 112 380 "original": { 113 381 "owner": "nix-systems", 114 382 "repo": "default", 383 + "type": "github" 384 + } 385 + }, 386 + "treefmt": { 387 + "inputs": { 388 + "nixpkgs": [ 389 + "nix-inspect", 390 + "nci", 391 + "nixpkgs" 392 + ] 393 + }, 394 + "locked": { 395 + "lastModified": 1732292307, 396 + "narHash": "sha256-5WSng844vXt8uytT5djmqBCkopyle6ciFgteuA9bJpw=", 397 + "owner": "numtide", 398 + "repo": "treefmt-nix", 399 + "rev": "705df92694af7093dfbb27109ce16d828a79155f", 400 + "type": "github" 401 + }, 402 + "original": { 403 + "owner": "numtide", 404 + "repo": "treefmt-nix", 115 405 "type": "github" 116 406 } 117 407 }
+5 -5
flake.nix
··· 1 1 { 2 - description = "A very basic flake"; 2 + description = "My first flake, to be changed"; 3 3 4 4 inputs = { 5 5 nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; 6 6 nixvim.url = "github:nix-community/nixvim"; 7 7 home-manager.url = "github:nix-community/home-manager"; 8 8 home-manager.inputs.nixpkgs.follows = "nixpkgs"; 9 + nix-inspect.url = "github:bluskript/nix-inspect"; 9 10 }; 10 11 11 - outputs = { self, nixpkgs, nixvim, home-manager }: { 12 + outputs = { self, nixpkgs, nixvim, home-manager, nix-inspect, ... }@inputs: { 12 13 nixosConfigurations.delphi = nixpkgs.lib.nixosSystem { 14 + specialArgs = { inherit inputs; }; 13 15 modules = [ 14 16 ./configuration.nix 15 17 home-manager.nixosModules.home-manager ··· 17 19 home-manager.useGlobalPkgs = true; 18 20 home-manager.useUserPackages = true; 19 21 home-manager.users.demsem = ./home.nix; 20 - 21 - # Optionally, use home-manager.extraSpecialArgs to pass 22 - # arguments to home.nix 22 + home-manager.extraSpecialArgs = { inherit inputs;}; 23 23 } 24 24 ]; 25 25 };
+19
home.nix
··· 1 + {inputs, ...}: { 2 + imports = [ 3 + inputs.nixvim.homeModules.nixvim 4 + ]; 5 + home.stateVersion = "26.05"; 6 + 7 + programs.nixvim = { 8 + enable = true; 9 + colorschemes.catppuccin.enable = true; 10 + plugins.lspconfig.enable = true; 11 + plugins.treesitter = { 12 + enable = true; 13 + settings = { 14 + highlight.enable = true; 15 + }; 16 + }; 17 + }; 18 + 19 + }