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/po/polkit/module.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/by-name/po/polkit/module.nix') diff --git a/modules/by-name/po/polkit/module.nix b/modules/by-name/po/polkit/module.nix index c6d1c750..d8dd51b0 100644 --- a/modules/by-name/po/polkit/module.nix +++ b/modules/by-name/po/polkit/module.nix @@ -17,7 +17,10 @@ in { options.soispha.polkit = { enable = lib.mkEnableOption "polkit"; }; + config = lib.mkIf cfg.enable { security.polkit.enable = true; + + users.groups.polkituser.gid = config.soispha.constants.ids.gids.polkituser; }; } -- cgit 1.4.1