summaryrefslogtreecommitdiff
path: root/flake.nix
blob: 352b013f4404e402b3835c1843c575ecfb209f81 (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
31
32
33
34
35
36
37
{
  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
        ];
      };
      mox = nixpkgs.lib.nixosSystem {
        system = "x86_64-linux";
        modules = [
          ./hosts/mox/configuration.nix
          sops-nix.nixosModules.sops
        ];
      };
    };
  };
}