From 0c38364b28e3443ac45b56c08787bb70a2b30b28 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 24 Aug 2025 15:10:22 +0200 Subject: modules/: Hard-code user and group ids This avoids relying on the state in /var/lib/nixos --- modules/by-name/re/resolvconf/module.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 modules/by-name/re/resolvconf/module.nix (limited to 'modules/by-name/re/resolvconf/module.nix') 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; + }; +} -- cgit 1.4.1