1 { config, pkgs, lib, ... }:
5 cfg = config.programs._1password;
10 (lib.mkRemovedOptionModule [ "programs" "_1password" "gid" ] ''
11 A preallocated GID will be used instead.
16 programs._1password = {
17 enable = lib.mkEnableOption "the 1Password CLI tool";
19 package = lib.mkPackageOption pkgs "1Password CLI" {
20 default = [ "_1password" ];
25 config = lib.mkIf cfg.enable {
26 environment.systemPackages = [ cfg.package ];
27 users.groups.onepassword-cli.gid = config.ids.gids.onepassword-cli;
31 source = "${cfg.package}/bin/op";
33 group = "onepassword-cli";