refactor: move guest system and common lib parts to extra-modules

This commit is contained in:
oddlama 2024-01-11 03:02:42 +01:00
parent ab9c6fc507
commit a44f73d3b0
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
16 changed files with 72 additions and 1092 deletions

View file

@ -1,27 +1,12 @@
{
config,
lib,
...
}: let
{lib, ...}: let
inherit
(lib)
mkOption
types
;
in {
options.node = {
name = mkOption {
description = "A unique name for this node (host) in the repository. Defines the default hostname, but this can be overwritten.";
type = types.str;
};
secretsDir = mkOption {
description = "Path to the secrets directory for this node.";
type = types.path;
};
};
config = {
networking.hostName = config.node.name;
options.node.secretsDir = mkOption {
description = "Path to the secrets directory for this node.";
type = types.path;
};
}