diff options
| author | adikro <adikro@disroot.org> | 2026-02-08 18:03:39 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-02-08 18:03:39 +0100 |
| commit | 2c8a4dd99efd61298bc18393e7fcbf6063db8671 (patch) | |
| tree | 1efd5ac8f5bcf7b1611cec1beaa545e6a2c14160 /flake.nix | |
| parent | eb95abfc230dc239122f1e89e90cd9a998491a2f (diff) | |
...
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 88 |
1 files changed, 46 insertions, 42 deletions
@@ -7,8 +7,8 @@ # Snapshot of nixpkgs with the 6.17.13 kernel for compatibility kernelv.url = "github:NixOS/nixpkgs/52e64396e98aef211f4127416dbdae17a01b3d3f"; - nur = { - url = "github:nix-community/NUR"; + sops-nix = { + url = "github:Mic92/sops-nix"; inputs.nixpkgs.follows = "nixpkgs"; }; @@ -63,47 +63,51 @@ }; }; - outputs = { - self, - nixpkgs, - nur, - ... - } @ inputs: let - mkHost = { - hostname, - path, - user ? "adam", - }: - nixpkgs.lib.nixosSystem { - specialArgs = { - inherit inputs; - username = user; + outputs = + { + self, + nixpkgs, + sops-nix, + ... + }@inputs: + let + mkHost = + { + hostname, + path, + user ? "adam", + }: + nixpkgs.lib.nixosSystem { + specialArgs = { + inherit inputs; + username = user; + }; + modules = [ + path + sops-nix.nixosModules.sops + { 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"; }; - 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"; }; }; - }; } |
