remove servers option
This commit is contained in:
parent
8744f3a6c8
commit
b6ac2665c9
46
module.nix
46
module.nix
@ -13,36 +13,28 @@ in
|
|||||||
services.tsns = {
|
services.tsns = {
|
||||||
package = mkPackageOption pkgs "tsns" { };
|
package = mkPackageOption pkgs "tsns" { };
|
||||||
|
|
||||||
servers = mkOption {
|
enable = lib.mkEnableOption "Enable tsns for ${name}";
|
||||||
description = "Configuration of multiple `tsns` instalces.";
|
|
||||||
default = { };
|
|
||||||
|
|
||||||
type = with types; attrsOf (submodule ({ name, ... }: {
|
user = mkOption {
|
||||||
options = {
|
type = with types; oneOf [ str int ];
|
||||||
enable = lib.mkEnableOption "Enable tsns for ${name}";
|
default = name;
|
||||||
user = mkOption {
|
description = ''
|
||||||
type = with types; oneOf [ str int ];
|
The user the service will use.
|
||||||
default = name;
|
'';
|
||||||
description = ''
|
};
|
||||||
The user the service will use.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
group = mkOption {
|
group = mkOption {
|
||||||
type = with types; oneOf [ str int ];
|
type = with types; oneOf [ str int ];
|
||||||
default = name;
|
default = name;
|
||||||
description = ''
|
description = ''
|
||||||
The group the service will use.
|
The group the service will use.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
dataDir = mkOption {
|
dataDir = mkOption {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
default = "/var/lib/${name}";
|
default = "/var/lib/${name}";
|
||||||
description = "Path tsns home directory";
|
description = "Path tsns home directory";
|
||||||
};
|
|
||||||
};
|
|
||||||
}));
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user