summaryrefslogtreecommitdiff
path: root/flake.nix
blob: 3c47785fa29ddd6d841fa79eb2126871ed9c8cf1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  description = "reproducible nixos configuration with flakes";

  inputs = {
    nixpkgs.url = "github:NixOs/nixpkgs/nixos-unstable";
    sops-nix = {
      url = "github:Mic92/sops-nix";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = { self, nixpkgs, sops-nix }: {
    nixosConfigurations = {
      cez = nixpkgs.lib.nixosSystem {
        system = "x86_64-linux";
        modules = [
          ./hosts/cez/configuration.nix
          sops-nix.nixosModules.sops
        ];
      };
      kay = nixpkgs.lib.nixosSystem {
        system = "x86_64-linux";
        modules = [
          ./hosts/kay/configuration.nix
          sops-nix.nixosModules.sops
        ];
      };
    };
  };
}