mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-22 05:14:42 +01:00
make commit setup more compatible with multiple keys
This commit is contained in:
parent
bea69cd69b
commit
b0c26aa430
|
@ -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 @@
|
|||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue