blob: e68557dde2c401ab7fe001cfbf479c26c9d17a95 [file] [log] [blame]
{ pkgs
, username
, ...
}: {
home = {
programs.gpg.enable = true;
services.gpg-agent = {
enable = true;
extraConfig = ''
pinentry-program ${pkgs.pinentry-rofi}/bin/pinentry-rofi
'';
pinentryFlavor = null;
};
};
config.environment.persistence."/nix/persist".users.${username}.directories = [
{
directory = ".gnupg";
mode = "0700";
}
];
home.home.packages = [
pkgs.pinentry-rofi
];
}