about summary refs log tree commit diff stats
path: root/modules/by-name/re/resolvconf/module.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/re/resolvconf/module.nix')
-rw-r--r--modules/by-name/re/resolvconf/module.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/by-name/re/resolvconf/module.nix b/modules/by-name/re/resolvconf/module.nix
new file mode 100644
index 00000000..e1817e2b
--- /dev/null
+++ b/modules/by-name/re/resolvconf/module.nix
@@ -0,0 +1,15 @@
+{
+  config,
+  lib,
+  ...
+}: let
+  cfg = config.soispha.resolvconf;
+in {
+  options.soispha.resolvconf = {
+    enable = lib.mkEnableOption "resolvconf" // {default = config.networking.resolvconf.enable;};
+  };
+
+  config = lib.mkIf cfg.enable {
+    users.groups.resolvconf.gid = config.soispha.constants.ids.gids.resolvconf;
+  };
+}