Skip to content

Commit 6519f1b

Browse files
committed
Allow changing the 1Password package
1 parent d36189b commit 6519f1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nix/shell-plugins.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ in {
2121
options = {
2222
programs._1password-shell-plugins = {
2323
enable = mkEnableOption "1Password Shell Plugins";
24+
package = mkPackageOption pkgs "_1password" { };
2425
plugins = mkOption {
2526
type = types.listOf types.package;
2627
default = [ ];
@@ -62,7 +63,7 @@ in {
6263
name = package;
6364
value = "op plugin run -- ${package}";
6465
}) pkg-exe-names);
65-
packages = [ pkgs._1password ] ++ cfg.plugins;
66+
packages = [ cfg.package ] ++ cfg.plugins;
6667
in mkIf cfg.enable (mkMerge [
6768
({
6869
programs = {

0 commit comments

Comments
 (0)