1 { config, pkgs, lib, ... }:
5 cfg = config.programs._1password-gui;
10 (lib.mkRemovedOptionModule [ "programs" "_1password-gui" "gid" ] ''
11 A preallocated GID will be used instead.
16 programs._1password-gui = {
17 enable = lib.mkEnableOption "the 1Password GUI application";
19 polkitPolicyOwners = lib.mkOption {
20 type = lib.types.listOf lib.types.str;
22 example = lib.literalExpression ''["user1" "user2" "user3"]'';
24 A list of users who should be able to integrate 1Password with polkit-based authentication mechanisms.
28 package = lib.mkPackageOption pkgs "1Password GUI" {
29 default = [ "_1password-gui" ];
36 package = cfg.package.override {
37 polkitPolicyOwners = cfg.polkitPolicyOwners;
41 environment.systemPackages = [ package ];
42 users.groups.onepassword.gid = config.ids.gids.onepassword;
45 "1Password-BrowserSupport" = {
46 source = "${package}/share/1password/1Password-BrowserSupport";
48 group = "onepassword";