mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 21:29:12 +02:00
wip: continue migration
This commit is contained in:
parent
7ce27d5d2f
commit
fa9bd32b0b
129 changed files with 6252 additions and 106 deletions
|
|
@ -1,12 +1,32 @@
|
|||
{
|
||||
den = {
|
||||
schema.conf = { lib, ... }: {
|
||||
options = {
|
||||
isPublic = lib.mkEnableOption "mark this as a public config (= without secrets)";
|
||||
isMicroVM = lib.mkEnableOption "mark this config as a microvm";
|
||||
mainUser = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "swarsel";
|
||||
schema = {
|
||||
host = _: { };
|
||||
conf = { config, lib, ... }: {
|
||||
options = {
|
||||
isPublic = lib.mkEnableOption "mark this as a public config (= without secrets)";
|
||||
isMicroVM = lib.mkEnableOption "mark this config as a microvm";
|
||||
mainUser = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "swarsel";
|
||||
};
|
||||
node = {
|
||||
secretsDir = lib.mkOption {
|
||||
description = "Path to the secrets directory for this node.";
|
||||
type = lib.types.path;
|
||||
default = ../hosts/${config.class}/${config.system}/${config.name}/secrets;
|
||||
};
|
||||
configDir = lib.mkOption {
|
||||
description = "Path to the base directory for this node.";
|
||||
type = lib.types.path;
|
||||
default = ../hosts/${config.class}/${config.system}/${config.name};
|
||||
};
|
||||
lockFromBootstrapping = lib.mkOption {
|
||||
description = "Whether this host should be marked to not be bootstrapped again using swarsel-bootstrap.";
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue