1

I'm using the pass package for password management. The passmenu command that comes with it uses dmenu, but I'd like for it to use Rofi instead. I saw on the Arch wiki that it's possible to use rofi as a drop-in dmenu replacement, but the path structures of NixOS are so complex that I'm having a hard time figuring this out. Should I create a new package for it? Or is there a way to update the original pass package so that it uses rofi instead?

  • 1
    Firstly, have you tried rofi-pass (github.com/carnager/rofi-pass)? There's a Nix package for it. As for your question, the passmenu package takes dmenu as an optional argument. So, you can override the passmenu package to accept an alternative "dmenu" package. rofi takes on dmenu functionality when it's called via a symbolic link named dmenu, so you may be able to get away with a tiny dmenu-emulation package which simply symlinks to rofi. Then, you'd provide said package when overriding passmenu. – Emmanuel Rosa Sep 12 '18 at 14:20
  • Awesome, that's just what I need. – Jonathan Sep 13 '18 at 1:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.