diff options
Diffstat (limited to '.vim/snippets/module.nix')
-rw-r--r-- | .vim/snippets/module.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.vim/snippets/module.nix b/.vim/snippets/module.nix index 1ad9d80..52e6eb7 100644 --- a/.vim/snippets/module.nix +++ b/.vim/snippets/module.nix @@ -25,6 +25,11 @@ in { default = service; }; + directory = lib.mkOption { + type = lib.types.str; + default = "/var/empty"; + }; + settings = lib.mkOption { type = settings.type; default = { }; @@ -35,5 +40,14 @@ in { services.${service}.settings = { }; + users = { + groups.${cfg.user} = { }; + users.${cfg.group} = { + createHome = false; + isNormalUser = true; + home = cfg.directory; + }; + }; + }; } |