blob: 82dce9d934f37de4b8d4e94ce907a1aecaca99cc (
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
26
27
28
29
30
31
32
33
34
35
36
37
|
{ self, ... } @ args:
{ name
, system ? "x86_64-linux"
, deployment ? null
, host ? null
, port ? 22
, tags ? null
, inputs ? null
, ...
}:
let
configFolder = "${self}/nixos";
entryPoint = "${configFolder}/${name}/configuration.nix";
hardware = "${configFolder}/${name}/hardware-configuration.nix";
in
{
deployment = deployment;
# system = system;
imports = [
{
_module.args = args;
networking.hostName = name;
nix.flakes.enable = true;
system.configurationRevision = self.rev or "dirty";
documentation.man = { enable = true; generateCaches = true; };
}
entryPoint
hardware
../nixos/modules/flake.nix
../nixos/modules/nix.nix
# TODO: implement extraModules
inputs.impermanence.nixosModules.impermanence
inputs.sops-nix.nixosModules.sops
];
}
|