From ee6517a915424f7d7a07f6d1fddf8fd2f5b04a2c Mon Sep 17 00:00:00 2001 From: Winter Date: Sat, 25 Feb 2023 22:26:28 -0500 Subject: Revert "nixos/polkit: guard static gid for polkituser behind state version" This reverts commit 2265160fc0b4cc9a38b392ec3b3a3fe18c2e5413 and e56db577a1f69c02e80d8bc26d514c01a2c5cc61. Ideally, we shouldn't cause friction for users that bump `stateVersion`, and I'd consider having to switch and/or manually hardcode a UID/GID to supress the warning friction. I think it'd be more beneficial to, in this rare case of an ID being missed, just let it be until more discussion happens surrounding this overall issue. See https://github.com/NixOS/nixpkgs/pull/217785 for more context. --- nixos/modules/security/polkit.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'nixos/modules/security') diff --git a/nixos/modules/security/polkit.nix b/nixos/modules/security/polkit.nix index 1b65948022779..de427ccb295bb 100644 --- a/nixos/modules/security/polkit.nix +++ b/nixos/modules/security/polkit.nix @@ -113,9 +113,7 @@ in group = "polkituser"; }; - users.groups.polkituser = { - gid = mkIf (lib.versionAtLeast config.system.stateVersion "23.05") config.ids.gids.polkituser; - }; + users.groups.polkituser = {}; }; } -- cgit 1.4.1