1 { config, pkgs, lib, ... }:
7 cfg = config.programs._1password;
12 (mkRemovedOptionModule [ "programs" "_1password" "gid" ] ''
13 A preallocated GID will be used instead.
18 programs._1password = {
19 enable = mkEnableOption (lib.mdDoc "the 1Password CLI tool");
21 package = mkPackageOptionMD pkgs "1Password CLI" {
22 default = [ "_1password" ];
27 config = mkIf cfg.enable {
28 environment.systemPackages = [ cfg.package ];
29 users.groups.onepassword-cli.gid = config.ids.gids.onepassword-cli;
33 source = "${cfg.package}/bin/op";
35 group = "onepassword-cli";