diff options
author | tdro <tdro@users.noreply.github.com> | 2021-10-08 02:23:53 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2021-10-08 02:23:53 -0400 |
commit | 4ce9a329809332c99283976f469542fba1ef4a9e (patch) | |
tree | 3cdd2f7f2d158ed712634723296137f47cac88fa /.vim | |
parent | b9758d27d497a90be622a354d3fe028f625dfb75 (diff) | |
download | dotfiles-4ce9a329809332c99283976f469542fba1ef4a9e.tar.gz dotfiles-4ce9a329809332c99283976f469542fba1ef4a9e.tar.bz2 dotfiles-4ce9a329809332c99283976f469542fba1ef4a9e.zip |
.vim/snippets/module.nix: Add directory option and user/group creation
Diffstat (limited to '.vim')
-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; + }; + }; + }; } |