diff options
| author | adikro <adikro@disroot.org> | 2026-02-03 22:58:50 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-02-03 22:58:50 +0100 |
| commit | eb95abfc230dc239122f1e89e90cd9a998491a2f (patch) | |
| tree | 9d60efacf83b97059f6300e360be2248f8e9c57e /flake.nix | |
| parent | e5036417abe5d3597792f869e2831decd50eba5d (diff) | |
...
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 78 |
1 files changed, 40 insertions, 38 deletions
@@ -63,45 +63,47 @@ }; }; - outputs = - { self, nixpkgs, ... }@inputs: - let - mkHost = - { - hostname, - path, - user ? "adam", - }: - nixpkgs.lib.nixosSystem { - specialArgs = { - inherit inputs; - username = user; - }; - modules = [ - path - { networking.hostName = hostname; } - ]; - }; - in - { - nixosConfigurations = { - szpont = mkHost { - hostname = "szpont"; - path = ./hosts/desktop/configuration.nix; - }; - laptop = mkHost { - hostname = "laptop"; - path = ./hosts/laptop/configuration.nix; - }; - thinkpad = mkHost { - hostname = "thinkpad"; - path = ./hosts/thinkpad/configuration.nix; - }; - pendrive = mkHost { - hostname = "pendrive"; - path = ./hosts/pendrive/configuration.nix; - user = "user"; + outputs = { + self, + nixpkgs, + nur, + ... + } @ inputs: let + mkHost = { + hostname, + path, + user ? "adam", + }: + nixpkgs.lib.nixosSystem { + specialArgs = { + inherit inputs; + username = user; }; + modules = [ + path + {networking.hostName = hostname;} + {nixpkgs.overlays = [nur.overlays.default];} + ]; + }; + in { + nixosConfigurations = { + szpont = mkHost { + hostname = "szpont"; + path = ./hosts/desktop/configuration.nix; + }; + laptop = mkHost { + hostname = "laptop"; + path = ./hosts/laptop/configuration.nix; + }; + thinkpad = mkHost { + hostname = "thinkpad"; + path = ./hosts/thinkpad/configuration.nix; + }; + pendrive = mkHost { + hostname = "pendrive"; + path = ./hosts/pendrive/configuration.nix; + user = "user"; }; }; + }; } |
