nixos/polkit: guard static gid for polkituser behind state version

This commit is contained in:
Nick Cao 2023-02-23 09:31:44 +08:00
parent 5956e0866f
commit 2265160fc0
No known key found for this signature in database

View file

@ -113,7 +113,9 @@ in
group = "polkituser"; group = "polkituser";
}; };
users.groups.polkituser.gid = config.ids.gids.polkituser; users.groups.polkituser = {
gid = mkIf (lib.versionAtLeast config.system.stateVersion "23.05") config.ids.gids.polkituser;
};
}; };
} }