diff options
Diffstat (limited to 'gui/pass.nix')
-rw-r--r-- | gui/pass.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gui/pass.nix b/gui/pass.nix new file mode 100644 index 0000000..3c8331d --- /dev/null +++ b/gui/pass.nix @@ -0,0 +1,32 @@ +{ config, pkgs, ... }: + +let + emumenu = pkgs.writeTextFile { + name = "emumenu"; + executable = true; + destination = "/bin/dmenu"; + + text = '' + #!/usr/bin/env bash + ${pkgs.rofi}/bin/rofi -dmenu -p "pass" "$@" + ''; + }; + + passrofi = pkgs.writeTextFile { + name = "passrofi"; + executable = true; + destination = "/bin/passrofi"; + + text = '' + #!/usr/bin/env bash + export PATH="$PATH:${emumenu}/bin" + ${pkgs.pass}/bin/.passmenu-wrapped + ''; + }; + +in { + home.packages = [ + pkgs.pass + passrofi + ]; +} |