Add fzf-pass
custom util
This commit is contained in:
parent
7d3c774e4e
commit
ad844d9266
1 changed files with 9 additions and 0 deletions
|
@ -3,6 +3,14 @@
|
|||
username,
|
||||
...
|
||||
}:
|
||||
let
|
||||
fzfpass = pkgs.writeShellApplication {
|
||||
name = "fzfpass";
|
||||
text = ''
|
||||
find "$PASSWORD_STORE_DIR" -name "*.gpg" | sed "s|$PASSWORD_STORE_DIR/||; s|\.gpg||" | fzf --border --info=inline | xargs pass "$@"
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
programs.password-store = {
|
||||
enable = true;
|
||||
|
@ -11,4 +19,5 @@
|
|||
};
|
||||
package = pkgs.pass.withExtensions (e: [ e.pass-otp ]);
|
||||
};
|
||||
home.packages = [ fzfpass ];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue