blob: 651569d356ebbf985e11f2437675fadb80d7662b (
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
|
{
pkgs,
nixLib,
nixpkgs,
specialArgs,
extraModules,
}: let
hosts = nixLib.mkByName {
useShards = false;
baseDirectory = ./by-name;
fileName = "configuration.nix";
};
mkNixosConfiguration = _: value:
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
inherit specialArgs;
modules =
extraModules
++ [
../modules
value
];
};
nixosConfigurations = builtins.mapAttrs mkNixosConfiguration hosts;
in {
inherit nixosConfigurations;
}
|