tv.{charybdis,ejabberd}.user :: user

This commit is contained in:
tv 2016-02-21 06:39:12 +01:00
parent e4d427602c
commit c5f18dfdfe
2 changed files with 5 additions and 22 deletions

View File

@ -35,16 +35,7 @@ in {
default = 6697;
};
user = mkOption {
type = types.submodule {
options = {
name = mkOption {
type = types.str;
};
home = mkOption {
type = types.str;
};
};
};
type = types.user;
default = {
name = "charybdis";
home = "/var/lib/charybdis";

View File

@ -30,19 +30,11 @@ in {
default = cfg.certfile;
};
user = mkOption {
type = types.submodule {
options = {
name = mkOption {
type = types.str;
default = "ejabberd";
};
home = mkOption {
type = types.str;
default = "/var/ejabberd";
};
};
type = types.user;
default = {
name = "ejabberd";
home = "/var/ejabberd";
};
default = {};
};
};
config = lib.mkIf cfg.enable {