summaryrefslogblamecommitdiff
path: root/flake.nix
blob: 352b013f4404e402b3835c1843c575ecfb209f81 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                                                               
 








                                                        


                                     



                                       


                                     



                                       
        






                                       


      
{
  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
        ];
      };
    };
  };
}