KeePassXC fully integrated: passwords, browser integration, ssh, & service

This commit is contained in:
Semere Meharena Mebrahtom 2026-07-26 23:56:35 +02:00
parent a8bc48adc0
commit d74cd9b87c
No known key found for this signature in database
7 changed files with 71 additions and 8 deletions

View file

@ -6,6 +6,9 @@
...
}:
let
useSshSigning = userVars ? sshKey && userVars.sshKey != "";
in
{
home-manager.users."${userVars.username}" = {
programs.git = {
@ -16,10 +19,13 @@
email = userVars.email;
};
commit.gpgsign = true;
} // (if useSshSigning then {
gpg.format = "ssh";
} else {
gpg.program = "gpg";
};
});
signing = {
key = userVars.gpgKey;
key = if useSshSigning then userVars.sshKey else userVars.gpgKey;
signByDefault = true;
};
};