make commit setup more compatible with multiple keys

This commit is contained in:
Schrottkatze 2024-01-30 19:46:36 +01:00
parent bea69cd69b
commit b0c26aa430
Signed by: schrottkatze
GPG key ID: 5621290CA02C7BD8

View file

@ -1,4 +1,12 @@
{...}: {
{
config,
lib,
...
}: let
cfg = config.jade.git;
in {
options.jade.git.signingKey = lib.mkOption {type = lib.types.str;};
config = {
home-manager.users.jade = {pkgs, ...}: {
programs.git = {
enable = true;
@ -13,7 +21,7 @@
s = "status";
};
signing = {
key = "74F2 FE5F 55E9 0F54 7F98 3B84 8854 79FF F880 17D2";
key = cfg.signingKey;
signByDefault = true;
};
};
@ -54,4 +62,5 @@
'';
};
};
};
}