nixos/_1password{,-gui}: use a static gid
This commit is contained in:
@@ -8,19 +8,16 @@ let
|
||||
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(mkRemovedOptionModule [ "programs" "_1password-gui" "gid" ] ''
|
||||
A preallocated GID will be used instead.
|
||||
'')
|
||||
];
|
||||
|
||||
options = {
|
||||
programs._1password-gui = {
|
||||
enable = mkEnableOption "the 1Password GUI application";
|
||||
|
||||
gid = mkOption {
|
||||
type = types.addCheck types.int (x: x >= 1000);
|
||||
example = literalExpression "5000";
|
||||
description = ''
|
||||
The gid to assign to the onepassword group, which is needed for browser integration.
|
||||
It must be 1000 or greater.
|
||||
'';
|
||||
};
|
||||
|
||||
polkitPolicyOwners = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
@@ -44,7 +41,7 @@ in
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
environment.systemPackages = [ package ];
|
||||
users.groups.onepassword.gid = cfg.gid;
|
||||
users.groups.onepassword.gid = config.ids.gids.onepassword;
|
||||
|
||||
security.wrappers = {
|
||||
"1Password-BrowserSupport" = {
|
||||
|
||||
Reference in New Issue
Block a user