summary refs log tree commit diff stats
path: root/hosts/default.nix
blob: f7df5d39a4c122e2716b6498314227c1e1399af3 (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
{
  pkgs,
  nixLib,
  nixpkgs,
  specialArgs,
  extraModules,
}: let
  hosts = nixLib.mkByName {
    useShards = false;
    baseDirectory = ./by-name;
    fileName = "configuration.nix";
    finalizeFunction = name: value:
      nixpkgs.lib.nixosSystem {
        system = "x86_64-linux";
        inherit specialArgs;
        modules =
          extraModules
          ++ [
            ../modules
            value
          ];
      };
  };
in
  hosts