blob: b2d0980508ea6643c896464b739a60fac97a14c7 (
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 = "sinan's reproducible nixos systems";
inputs = {
nixpkgs.url = "github:NixOs/nixpkgs/nixos-unstable";
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, sops-nix }: let
lib = nixpkgs.lib;
makeHost = host: system: nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./hosts/${host}/configuration.nix
sops-nix.nixosModules.sops
];
};
makeX86 = hosts: lib.genAttrs hosts (
host: makeHost host "x86_64-linux"
);
in
{
nixosConfigurations = makeX86 [ "cez" "kay" "mox" ];
};
}
|