File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 8
8
pkgs . runCommand "op-plugin-list" { }
9
9
# 1Password CLI tries to create the config directory automatically, so set a temp XDG_CONFIG_HOME
10
10
# since we don't actually need it for this
11
- "mkdir $out && XDG_CONFIG_HOME=$out ${ pkgs . _1password } /bin/op plugin list | cut -d ' ' -f1 | tail -n +2 > $out/plugins.txt"
11
+ "mkdir $out && XDG_CONFIG_HOME=$out ${ cfg . package } /bin/op plugin list | cut -d ' ' -f1 | tail -n +2 > $out/plugins.txt"
12
12
} /plugins.txt" ) ;
13
13
getExeName = package :
14
14
# NOTE: SAFETY: This is okay because the `packages` list is also referred
21
21
options = {
22
22
programs . _1password-shell-plugins = {
23
23
enable = mkEnableOption "1Password Shell Plugins" ;
24
+
25
+ package = lib . mkPackageOption pkgs "_1password" ;
26
+
24
27
plugins = mkOption {
25
28
type = types . listOf types . package ;
26
29
default = [ ] ;
62
65
name = package ;
63
66
value = "op plugin run -- ${ package } " ;
64
67
} ) pkg-exe-names ) ;
65
- packages = [ pkgs . _1password ] ++ cfg . plugins ;
68
+ packages = [ cfg . package ] ++ cfg . plugins ;
66
69
in mkIf cfg . enable ( mkMerge [
67
70
( {
68
71
programs = {
You can’t perform that action at this time.
0 commit comments