We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 61135fa + 1ed2b8b commit 9e0c714Copy full SHA for 9e0c714
nix/shell-plugins.nix
@@ -21,6 +21,7 @@ in {
21
options = {
22
programs._1password-shell-plugins = {
23
enable = mkEnableOption "1Password Shell Plugins";
24
+ package = mkPackageOption pkgs "_1password-cli" { nullable = true; };
25
plugins = mkOption {
26
type = types.listOf types.package;
27
default = [ ];
@@ -62,7 +63,7 @@ in {
62
63
name = package;
64
value = "op plugin run -- ${package}";
65
}) pkg-exe-names);
- packages = [ pkgs._1password ] ++ cfg.plugins;
66
+ packages = lib.optional (cfg.package != null) cfg.package ++ cfg.plugins;
67
in mkIf cfg.enable (mkMerge [
68
({
69
programs = {
0 commit comments