summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/tools/secrets.nix
blob: f88618cbc4b8149900e510ef22df6e1d25d746a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{ 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 $@
  '';
}