nix: general cleanups etc. and flake bump

anirudh.fi 719aefb1 ea333c82

verified
Changed files
+126 -211
darwin
hosts
+1
darwin/home.nix
··· 23 23 }; 24 24 25 25 home.packages = with pkgs; [ 26 + prompt 26 27 tmux 27 28 git 28 29 fzy
+60 -177
flake.lock
··· 16 16 "type": "github" 17 17 } 18 18 }, 19 - "chaotic": { 19 + "crane": { 20 20 "inputs": { 21 - "compare-to": "compare-to", 22 - "fenix": "fenix", 23 - "flake-schemas": "flake-schemas", 24 - "home-manager": "home-manager", 25 - "jovian": "jovian", 26 - "nixpkgs": "nixpkgs", 27 - "systems": "systems", 28 - "yafas": "yafas" 21 + "nixpkgs": [ 22 + "nix-your-shell", 23 + "nixpkgs" 24 + ] 29 25 }, 30 26 "locked": { 31 - "lastModified": 1724534339, 32 - "narHash": "sha256-IA/Y0WSx4s1X6O6FkY06IEnafR8fUe3jSFA0Zopiwbs=", 33 - "owner": "chaotic-cx", 34 - "repo": "nyx", 35 - "rev": "c99c254d336cacb8c7a622cac675ea6c7768dc73", 27 + "lastModified": 1710886643, 28 + "narHash": "sha256-saTZuv9YeZ9COHPuj8oedGdUwJZcbQ3vyRqe7NVJMsQ=", 29 + "owner": "ipetkov", 30 + "repo": "crane", 31 + "rev": "5bace74e9a65165c918205cf67ad3977fe79c584", 36 32 "type": "github" 37 33 }, 38 34 "original": { 39 - "owner": "chaotic-cx", 40 - "ref": "nyxpkgs-unstable", 41 - "repo": "nyx", 35 + "owner": "ipetkov", 36 + "repo": "crane", 42 37 "type": "github" 43 38 } 44 39 }, 45 - "compare-to": { 46 - "locked": { 47 - "lastModified": 1695341185, 48 - "narHash": "sha256-htO6DSbWyCgaDkxi7foPjXwJFPzGjVt3RRUbPSpNtZY=", 49 - "rev": "98b8e330823a3570d328720f87a1153f8a7f2224", 50 - "revCount": 2, 51 - "type": "tarball", 52 - "url": "https://api.flakehub.com/f/pinned/chaotic-cx/nix-empty-flake/0.1.2%2Brev-98b8e330823a3570d328720f87a1153f8a7f2224/018aba35-d228-7fa9-b205-7616c89ef4e0/source.tar.gz" 53 - }, 54 - "original": { 55 - "type": "tarball", 56 - "url": "https://flakehub.com/f/chaotic-cx/nix-empty-flake/%3D0.1.2.tar.gz" 57 - } 58 - }, 59 - "crane": { 40 + "crane_2": { 60 41 "inputs": { 61 42 "nixpkgs": [ 62 - "nix-your-shell", 43 + "zed", 63 44 "nixpkgs" 64 45 ] 65 46 }, 66 47 "locked": { 67 - "lastModified": 1710886643, 68 - "narHash": "sha256-saTZuv9YeZ9COHPuj8oedGdUwJZcbQ3vyRqe7NVJMsQ=", 48 + "lastModified": 1724537630, 49 + "narHash": "sha256-gpqINM71zp3kw5XYwUXa84ZtPnCmLLnByuFoYesT1bY=", 69 50 "owner": "ipetkov", 70 51 "repo": "crane", 71 - "rev": "5bace74e9a65165c918205cf67ad3977fe79c584", 52 + "rev": "3e08f4b1fc9aaede5dd511d8f5f4ef27501e49b0", 72 53 "type": "github" 73 54 }, 74 55 "original": { ··· 101 82 "fenix": { 102 83 "inputs": { 103 84 "nixpkgs": [ 104 - "chaotic", 85 + "zed", 105 86 "nixpkgs" 106 87 ], 107 88 "rust-analyzer-src": "rust-analyzer-src" 108 89 }, 109 90 "locked": { 110 - "lastModified": 1724394478, 111 - "narHash": "sha256-JSiv2uwI4UJo/4pxt4255BfzWCiEberJmBC6pCxnzas=", 91 + "lastModified": 1724740262, 92 + "narHash": "sha256-cpFasbzOTlwLi4fNas6hDznVUdCJn/lMLxi7MAMG6hg=", 112 93 "owner": "nix-community", 113 94 "repo": "fenix", 114 - "rev": "2e7bcdc4ef73aa56abd2f970e5a8b9c0cc87e614", 95 + "rev": "703efdd9b5c6a7d5824afa348a24fbbf8ff226be", 115 96 "type": "github" 116 97 }, 117 98 "original": { ··· 122 103 }, 123 104 "flake-compat": { 124 105 "flake": false, 106 + "locked": { 107 + "lastModified": 1696426674, 108 + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", 109 + "owner": "edolstra", 110 + "repo": "flake-compat", 111 + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", 112 + "type": "github" 113 + }, 114 + "original": { 115 + "owner": "edolstra", 116 + "repo": "flake-compat", 117 + "type": "github" 118 + } 119 + }, 120 + "flake-compat_2": { 125 121 "locked": { 126 122 "lastModified": 1696426674, 127 123 "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", ··· 155 151 "owner": "hercules-ci", 156 152 "repo": "flake-parts", 157 153 "type": "github" 158 - } 159 - }, 160 - "flake-schemas": { 161 - "locked": { 162 - "lastModified": 1693491534, 163 - "narHash": "sha256-ifw8Td8kD08J8DxFbYjeIx5naHcDLz7s2IFP3X42I/U=", 164 - "rev": "c702cbb663d6d70bbb716584a2ee3aeb35017279", 165 - "revCount": 21, 166 - "type": "tarball", 167 - "url": "https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.1.1/018a4c59-80e1-708a-bb4d-854930c20f72/source.tar.gz" 168 - }, 169 - "original": { 170 - "type": "tarball", 171 - "url": "https://flakehub.com/f/DeterminateSystems/flake-schemas/%3D0.1.1.tar.gz" 172 154 } 173 155 }, 174 156 "home-manager": { 175 157 "inputs": { 176 158 "nixpkgs": [ 177 - "chaotic", 178 - "nixpkgs" 179 - ] 180 - }, 181 - "locked": { 182 - "lastModified": 1724412708, 183 - "narHash": "sha256-tLr1k+UZLVumyqXRU8E5lBtLjsvHSy8e2NiamfkjpYg=", 184 - "owner": "nix-community", 185 - "repo": "home-manager", 186 - "rev": "b18f3ebc4029c22d437e3424014c8597a8b459a0", 187 - "type": "github" 188 - }, 189 - "original": { 190 - "owner": "nix-community", 191 - "repo": "home-manager", 192 - "type": "github" 193 - } 194 - }, 195 - "home-manager_2": { 196 - "inputs": { 197 - "nixpkgs": [ 198 159 "nixpkgs" 199 160 ] 200 161 }, ··· 212 173 "type": "github" 213 174 } 214 175 }, 215 - "jovian": { 216 - "inputs": { 217 - "nix-github-actions": "nix-github-actions", 218 - "nixpkgs": [ 219 - "chaotic", 220 - "nixpkgs" 221 - ] 222 - }, 223 - "locked": { 224 - "lastModified": 1724304322, 225 - "narHash": "sha256-/nrlMDubg9oG2VNANRBxsas5RbcJtB6IIDPZC3yHLW8=", 226 - "owner": "Jovian-Experiments", 227 - "repo": "Jovian-NixOS", 228 - "rev": "924a18ea8df89a39166dd202f3e73cd022825768", 229 - "type": "github" 230 - }, 231 - "original": { 232 - "owner": "Jovian-Experiments", 233 - "repo": "Jovian-NixOS", 234 - "type": "github" 235 - } 236 - }, 237 - "nix-github-actions": { 238 - "inputs": { 239 - "nixpkgs": [ 240 - "chaotic", 241 - "jovian", 242 - "nixpkgs" 243 - ] 244 - }, 245 - "locked": { 246 - "lastModified": 1690328911, 247 - "narHash": "sha256-fxtExYk+aGf2YbjeWQ8JY9/n9dwuEt+ma1eUFzF8Jeo=", 248 - "owner": "zhaofengli", 249 - "repo": "nix-github-actions", 250 - "rev": "96df4a39c52f53cb7098b923224d8ce941b64747", 251 - "type": "github" 252 - }, 253 - "original": { 254 - "owner": "zhaofengli", 255 - "ref": "matrix-name", 256 - "repo": "nix-github-actions", 257 - "type": "github" 258 - } 259 - }, 260 176 "nix-snapshotter": { 261 177 "inputs": { 262 178 "flake-compat": "flake-compat", ··· 286 202 "nixpkgs": [ 287 203 "nixpkgs" 288 204 ], 289 - "systems": "systems_2" 205 + "systems": "systems" 290 206 }, 291 207 "locked": { 292 208 "lastModified": 1717612968, ··· 319 235 }, 320 236 "nixpkgs": { 321 237 "locked": { 322 - "lastModified": 1724224976, 323 - "narHash": "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=", 238 + "lastModified": 1727122398, 239 + "narHash": "sha256-o8VBeCWHBxGd4kVMceIayf5GApqTavJbTa44Xcg5Rrk=", 324 240 "owner": "NixOS", 325 241 "repo": "nixpkgs", 326 - "rev": "c374d94f1536013ca8e92341b540eba4c22f9c62", 242 + "rev": "30439d93eb8b19861ccbe3e581abf97bdc91b093", 327 243 "type": "github" 328 244 }, 329 245 "original": { ··· 349 265 "type": "github" 350 266 } 351 267 }, 352 - "nixpkgs_2": { 353 - "locked": { 354 - "lastModified": 1724224976, 355 - "narHash": "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=", 356 - "owner": "NixOS", 357 - "repo": "nixpkgs", 358 - "rev": "c374d94f1536013ca8e92341b540eba4c22f9c62", 359 - "type": "github" 360 - }, 361 - "original": { 362 - "owner": "NixOS", 363 - "ref": "nixos-unstable", 364 - "repo": "nixpkgs", 365 - "type": "github" 366 - } 367 - }, 368 268 "prompt": { 369 269 "inputs": { 370 270 "nixpkgs": [ ··· 387 287 }, 388 288 "root": { 389 289 "inputs": { 390 - "chaotic": "chaotic", 391 290 "darwin": "darwin", 392 - "home-manager": "home-manager_2", 291 + "home-manager": "home-manager", 393 292 "nix-snapshotter": "nix-snapshotter", 394 293 "nix-your-shell": "nix-your-shell", 395 294 "nixos-hardware": "nixos-hardware", 396 - "nixpkgs": "nixpkgs_2", 295 + "nixpkgs": "nixpkgs", 397 296 "nixpkgs-master": "nixpkgs-master", 398 - "prompt": "prompt" 297 + "prompt": "prompt", 298 + "zed": "zed" 399 299 } 400 300 }, 401 301 "rust-analyzer-src": { 402 302 "flake": false, 403 303 "locked": { 404 - "lastModified": 1724345276, 405 - "narHash": "sha256-MKvjkqVL/RJ3QXOA8tSUoK7HHXVGSB2AL+vKxU4Cf+c=", 304 + "lastModified": 1724666781, 305 + "narHash": "sha256-nOQDgjTDlWe0/+Ptf3o2p6UrznQFHnXBHRV1ZAsSpe8=", 406 306 "owner": "rust-lang", 407 307 "repo": "rust-analyzer", 408 - "rev": "9b724459b5900c2424f5069023d6596a8617284b", 308 + "rev": "095926ea6f008477a15a2ec6b0b8797e2e5be0e5", 409 309 "type": "github" 410 310 }, 411 311 "original": { ··· 417 317 }, 418 318 "systems": { 419 319 "locked": { 420 - "lastModified": 1689347949, 421 - "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", 422 - "owner": "nix-systems", 423 - "repo": "default-linux", 424 - "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", 425 - "type": "github" 426 - }, 427 - "original": { 428 - "owner": "nix-systems", 429 - "repo": "default-linux", 430 - "type": "github" 431 - } 432 - }, 433 - "systems_2": { 434 - "locked": { 435 320 "lastModified": 1681028828, 436 321 "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 437 322 "owner": "nix-systems", ··· 445 330 "type": "github" 446 331 } 447 332 }, 448 - "yafas": { 333 + "zed": { 449 334 "inputs": { 450 - "flake-schemas": [ 451 - "chaotic", 452 - "flake-schemas" 453 - ], 454 - "systems": [ 455 - "chaotic", 456 - "systems" 335 + "crane": "crane_2", 336 + "fenix": "fenix", 337 + "flake-compat": "flake-compat_2", 338 + "nixpkgs": [ 339 + "nixpkgs" 457 340 ] 458 341 }, 459 342 "locked": { 460 - "lastModified": 1695926485, 461 - "narHash": "sha256-wNFFnItckgSs8XeYhhv8vlJs2WF09fSQaWgw4xkDqHQ=", 462 - "owner": "UbiqueLambda", 463 - "repo": "yafas", 464 - "rev": "7772afd6686458ca0ddbc599a52cf5d337367653", 343 + "lastModified": 1725887647, 344 + "narHash": "sha256-7kp8kW2Y0bBns10ndTtemUPMfjK6VSsrvxVe+3wC51c=", 345 + "owner": "zed-industries", 346 + "repo": "zed", 347 + "rev": "dd257b8412c3c8005c710185dc8fc2eed3cc67ba", 465 348 "type": "github" 466 349 }, 467 350 "original": { 468 - "owner": "UbiqueLambda", 469 - "repo": "yafas", 351 + "owner": "zed-industries", 352 + "repo": "zed", 470 353 "type": "github" 471 354 } 472 355 }
+47 -21
flake.nix
··· 12 12 inputs.nixpkgs.follows = "nixpkgs"; 13 13 }; 14 14 15 - chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable"; 16 - 17 15 darwin = { 18 16 url = "github:lnl7/nix-darwin/master"; 19 17 inputs.nixpkgs.follows = "nixpkgs"; ··· 33 31 url = "github:MercuryTechnologies/nix-your-shell"; 34 32 inputs.nixpkgs.follows = "nixpkgs"; 35 33 }; 34 + 35 + zed = { 36 + url = "github:zed-industries/zed"; 37 + inputs.nixpkgs.follows = "nixpkgs"; 38 + }; 36 39 }; 37 40 38 41 outputs = ··· 40 43 , nixpkgs 41 44 , nixpkgs-master 42 45 , nixos-hardware 43 - , nix-snapshotter 44 46 , nix-your-shell 45 - , chaotic 46 47 , home-manager 47 48 , prompt 48 - , darwin 49 + , # zed, 50 + darwin 49 51 , ... 50 - } @ inputs: 52 + }@inputs: 51 53 52 54 let 53 - supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ]; 55 + supportedSystems = [ 56 + "x86_64-linux" 57 + "x86_64-darwin" 58 + "aarch64-linux" 59 + "aarch64-darwin" 60 + ]; 54 61 forAllSystems = nixpkgs.lib.genAttrs supportedSystems; 55 62 in 56 63 { 57 64 58 - overlays = { 59 - prompt = prompt.overlay; 60 - }; 61 - 62 65 darwinConfigurations = { 63 66 kvothe = darwin.lib.darwinSystem { 64 67 system = "aarch64-darwin"; ··· 66 69 { 67 70 imports = [ ./hosts/kvothe/configuration.nix ]; 68 71 _module.args.self = self; 69 - nixpkgs.overlays = [ nix-your-shell.overlays.default ]; 72 + nixpkgs.overlays = [ 73 + nix-your-shell.overlays.default 74 + prompt.overlay 75 + ]; 70 76 } 71 77 home-manager.darwinModules.home-manager 72 78 { ··· 90 96 { 91 97 imports = [ ./hosts/wyndle/configuration.nix ]; 92 98 _module.args.self = self; 93 - nixpkgs.overlays = [ nix-your-shell.overlays.default chaotic.overlays.default ]; 99 + nixpkgs.overlays = [ 100 + nix-your-shell.overlays.default 101 + prompt.overlay 102 + ]; 94 103 } 95 104 home-manager.nixosModules.home-manager 96 105 { ··· 111 120 sini = nixpkgs.lib.nixosSystem { 112 121 system = "x86_64-linux"; 113 122 modules = [ 114 - ({ config = { nix.registry.nixpkgs.flake = nixpkgs; }; }) 115 - ({ config, pkgs, ... }: { 116 - services.pixelfed.package = nixpkgs-master.legacyPackages."x86_64-linux".pixelfed; 117 - services.pixelfed.phpPackage = nixpkgs-master.legacyPackages."x86_64-linux".php82; 123 + ({ 124 + config = { 125 + nix.registry.nixpkgs.flake = nixpkgs; 126 + }; 118 127 }) 128 + ( 129 + { config, pkgs, ... }: 130 + { 131 + services.pixelfed.package = nixpkgs-master.legacyPackages."x86_64-linux".pixelfed; 132 + services.pixelfed.phpPackage = nixpkgs-master.legacyPackages."x86_64-linux".php82; 133 + } 134 + ) 119 135 # ({ pkgs, ... }: { 120 136 # imports = [ nix-snapshotter.nixosModules.default ]; 121 137 # nixpkgs.overlays = [ nix-snapshotter.overlays.default ]; ··· 132 148 denna = nixpkgs.lib.nixosSystem { 133 149 system = "x86_64-linux"; 134 150 modules = [ 135 - ({ config = { nix.registry.nixpkgs.flake = nixpkgs; }; }) 151 + ({ 152 + config = { 153 + nix.registry.nixpkgs.flake = nixpkgs; 154 + }; 155 + }) 136 156 { 137 157 imports = [ ./hosts/denna/configuration.nix ]; 138 158 _module.args.self = self; ··· 145 165 iso = nixpkgs.lib.nixosSystem { 146 166 system = "x86_64-linux"; 147 167 modules = [ 148 - ({ config = { nix.registry.nixpkgs.flake = nixpkgs; }; }) 168 + ({ 169 + config = { 170 + nix.registry.nixpkgs.flake = nixpkgs; 171 + }; 172 + }) 149 173 { 150 174 imports = [ ./hosts/iso/configuration.nix ]; 151 175 _module.args.self = self; ··· 154 178 }; 155 179 }; 156 180 157 - devShells = forAllSystems (system: 181 + devShells = forAllSystems ( 182 + system: 158 183 let 159 184 nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; }); 160 185 pkgs = nixpkgsFor.${system}; ··· 166 191 nixfmt-rfc-style 167 192 ]; 168 193 }; 169 - }); 194 + } 195 + ); 170 196 }; 171 197 }
+18 -5
home.nix
··· 3 3 , self 4 4 , host 5 5 , lib 6 + , inputs 6 7 , ... 7 8 }: 8 9 ··· 65 66 pkgs.gnomeExtensions.search-light 66 67 pkgs.gnomeExtensions.hide-top-bar 67 68 68 - pkgs.zed-editor_git 69 + pkgs.prompt 70 + pkgs.zed-editor 71 + # inputs.zed.packages.${pkgs.system}.zed-editor 69 72 70 73 ] ++ (import ./bin { inherit pkgs host; }); 71 74 ··· 75 78 }; 76 79 "org/gnome/desktop/input-sources" = { 77 80 show-all-sources = true; 78 - sources = [ (mkTuple [ "xkb" "us+workman" ]) (mkTuple [ "xkb" "us" ]) ]; 79 - xkb-options = [ "terminate:ctrl_alt_bksp" "compose:ralt" ]; 81 + sources = [ 82 + (mkTuple [ 83 + "xkb" 84 + "us+workman" 85 + ]) 86 + (mkTuple [ 87 + "xkb" 88 + "us" 89 + ]) 90 + ]; 91 + xkb-options = [ 92 + "terminate:ctrl_alt_bksp" 93 + "compose:ralt" 94 + ]; 80 95 }; 81 96 "org/gnome/mutter" = { 82 97 overlay-key = [ "" ]; ··· 102 117 }; 103 118 104 119 } 105 - 106 -
-4
hosts/kvothe/configuration.nix
··· 13 13 }; 14 14 15 15 services.nix-daemon.enable = true; 16 - nixpkgs.overlays = with self.overlays; [ 17 - prompt 18 - ]; 19 - 20 16 security.pam.enableSudoTouchIdAuth = true; 21 17 22 18 system.activationScripts.applications.text = pkgs.lib.mkForce (
-4
hosts/wyndle/configuration.nix
··· 50 50 firefox.enablePlasmaBrowserIntegration = true; 51 51 }; 52 52 53 - nixpkgs.overlays = with self.overlays; [ 54 - prompt 55 - ]; 56 - 57 53 environment = { 58 54 sessionVariables = rec { 59 55 NIXOS_OZONE_WL = "1";