blob: 5460362d1666b357a381a6616abbb99e0e94c664 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{ inputs, ... }:
let
inherit (inputs) nixpkgs;
inherit (nixpkgs) lib;
in {
configurations =
lib.mapAttrs
(dir: _:
let
inherit (import ./machines/${dir}/sysidentity.nix) sysidentity;
in lib.nixosSystem {
system = sysidentity.arch;
modules = [
./machines/${dir}/hardware-configuration.nix
./configuration.nix
];
}
)
(lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./machines));
}
|