summaryrefslogtreecommitdiffstats
path: root/lass/2configs/krebs-pass.nix
blob: a605bc84b14d4d16fd94cf4e297d01c6044a1a0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ pkgs, ... }:

let

  #TODO: tab-completion
  krebs-pass = pkgs.writeDashBin "krebs-pass" ''
    PASSWORD_STORE_DIR=$HOME/.krebs-pass \
    exec ${pkgs.pass}/bin/pass $@
  '';

  krebs-passmenu = pkgs.writeDashBin "krebs-passmenu" ''
    PASSWORD_STORE_DIR=$HOME/.krebs-pass \
    exec ${pkgs.pass}/bin/passmenu $@
  '';

in {
  krebs.per-user.lass.packages = [
    krebs-pass
    krebs-passmenu
  ];
}