From e56db577a1f69c02e80d8bc26d514c01a2c5cc61 Mon Sep 17 00:00:00 2001 From: 1sixth <1sixth@shinta.ro> Date: Fri, 17 Feb 2023 20:42:13 +0800 Subject: [PATCH] nixos/polkit: set static gid for polkituser polkituser needs a group since https://github.com/NixOS/nixpkgs/pull/130522. --- nixos/modules/misc/ids.nix | 2 +- nixos/modules/security/polkit.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix index a434932497d9..108ab5d4f318 100644 --- a/nixos/modules/misc/ids.nix +++ b/nixos/modules/misc/ids.nix @@ -392,7 +392,7 @@ in tape = 25; video = 26; dialout = 27; - #polkituser = 28; # currently unused, polkitd doesn't need a group + polkituser = 28; utmp = 29; # ddclient = 30; # converted to DynamicUser = true davfs2 = 31; diff --git a/nixos/modules/security/polkit.nix b/nixos/modules/security/polkit.nix index de427ccb295b..903bbbcab072 100644 --- a/nixos/modules/security/polkit.nix +++ b/nixos/modules/security/polkit.nix @@ -113,7 +113,7 @@ in group = "polkituser"; }; - users.groups.polkituser = {}; + users.groups.polkituser.gid = config.ids.gids.polkituser; }; }