htgen: fix for manual

This commit is contained in:
tv 2021-11-08 04:30:33 +01:00
parent 13a1eb3fc5
commit 6940c3ac83

View File

@ -13,7 +13,7 @@ let
default = {}; default = {};
type = types.attrsOf (types.submodule ({ config, ... }: { type = types.attrsOf (types.submodule ({ config, ... }: {
options = { options = {
enable = mkEnableOption "krebs.htgen-${config.name}"; enable = mkEnableOption "krebs.htgen-${config._module.args.name}";
name = mkOption { name = mkOption {
type = types.username; type = types.username;
@ -38,6 +38,10 @@ let
name = "htgen-${config.name}"; name = "htgen-${config.name}";
home = "/var/lib/htgen-${config.name}"; home = "/var/lib/htgen-${config.name}";
}; };
defaultText = {
name = "htgen-name";
home = "/var/lib/htgen-name";
};
}; };
}; };
})); }));