change shell config to module, and ghostty also.

This commit is contained in:
ulic-youthlic 2025-01-11 16:27:01 +08:00
parent 19d80c007f
commit 414972925c
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
8 changed files with 176 additions and 89 deletions

View file

@ -22,11 +22,19 @@
cfg = config.youthlic.programs.gpg;
in
lib.mkIf cfg.enable {
services.gpg-agent = {
enable = true;
enableSshSupport = true;
pinentryPackage = pkgs.pinentry-all;
};
services.gpg-agent = lib.mkMerge [
{
enable = true;
enableSshSupport = true;
pinentryPackage = pkgs.pinentry-all;
}
(lib.mkIf config.youthlic.programs.fish.enable {
enableFishIntegration = true;
})
(lib.mkIf config.youthlic.programs.bash.enable {
enableBashIntegration = true;
})
];
programs.gpg = {
enable = true;
mutableKeys = true;