nixos-config/features/passwordstore.nix
Sridhar Ratnakumar 0ecef99ba6 fanboy
2021-12-04 18:14:08 -05:00

18 lines
463 B
Nix

{ pkgs, ... }: {
programs.gnupg = {
# Enabling the agent requires a system restart.
agent = {
enable = true;
enableExtraSocket = true;
pinentryFlavor = "curses";
};
};
environment.systemPackages = with pkgs; [
pass
_1password
_1password-gui
# Pinentry doesn't work on WSL NixOS unless manually configured on gpg-agent.conf
# See https://sigkill.dk/writings/guides/nixos_pass.html
pinentry-curses
];
}