stockholm/makefu/2configs/tools/secrets.nix

13 lines
320 B
Nix
Raw Normal View History

2018-09-15 22:26:42 +00:00
{ pass, write, writeDash, ... }:
write "secrets" {
"/bin/secrets".link = writeDash "brain" ''
PASSWORD_STORE_DIR=$HOME/.secrets-pass/ \
exec ${pass}/bin/pass $@
'';
"/bin/secretsmenu".link = writeDash "secretsmenu" ''
PASSWORD_STORE_DIR=$HOME/.secrets-pass/ \
exec ${pass}/bin/passmenu $@
'';
}