summaryrefslogtreecommitdiffstats
path: root/tv/3modules/ejabberd/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-02-21 06:39:12 +0100
committertv <tv@krebsco.de>2016-02-21 06:42:01 +0100
commitdb4bc469ea0e714969ebbfdbb80b9888bb53991e (patch)
treecf14200bfa523abf0b0c634bac320c17e3bfd0a2 /tv/3modules/ejabberd/default.nix
parent7726d37ffd6a41b573c37bece0ccc421131571cd (diff)
tv.{charybdis,ejabberd}.user :: user
Diffstat (limited to 'tv/3modules/ejabberd/default.nix')
-rw-r--r--tv/3modules/ejabberd/default.nix16
1 files changed, 4 insertions, 12 deletions
diff --git a/tv/3modules/ejabberd/default.nix b/tv/3modules/ejabberd/default.nix
index 51a3060..4077da2 100644
--- a/tv/3modules/ejabberd/default.nix
+++ b/tv/3modules/ejabberd/default.nix
@@ -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 {