aboutsummaryrefslogtreecommitdiff
path: root/.vim
diff options
context:
space:
mode:
Diffstat (limited to '.vim')
-rw-r--r--.vim/snippets/module.nix23
1 files changed, 22 insertions, 1 deletions
diff --git a/.vim/snippets/module.nix b/.vim/snippets/module.nix
index 8debed4..1ad9d80 100644
--- a/.vim/snippets/module.nix
+++ b/.vim/snippets/module.nix
@@ -4,15 +4,36 @@ let
service = "";
cfg = config.services.${service};
+ settings = pkgs.formats.json { };
in {
options.services.${service} = {
+
enable = lib.mkOption {
type = lib.types.bool;
default = false;
};
+
+ user = lib.mkOption {
+ type = lib.types.str;
+ default = service;
+ };
+
+ group = lib.mkOption {
+ type = lib.types.str;
+ default = service;
+ };
+
+ settings = lib.mkOption {
+ type = settings.type;
+ default = { };
+ };
};
- config = lib.mkIf cfg.enable { };
+ config = lib.mkIf cfg.enable {
+
+ services.${service}.settings = { };
+
+ };
}