blob: ee0037b2b526990f079bef7457f6d762e1a4c16d (
plain)
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
|
{ self, ... } @ args:
name: nixpkgs:
nixpkgs.lib.nixosSystem (
let
configFolder = "${self}/nixos/configurations";
entryPoint = "${configFolder}/${name}.nix";
hardware = "${configFolder}/hardware/${name}.nix";
in
{
system = "x86_64-linux";
modules = [
{
_module.args = args;
networking.hostName = name;
nix.flakes.enable = true;
system.configurationRevision = self.rev or "dirty";
documentation.man = { enable = true; generateCaches = true; };
}
entryPoint
hardware
] ++ __attrValues self.nixosModules;
}
)
|