add another machine, Akun

This commit is contained in:
ulic-youthlic 2025-01-19 16:10:08 +08:00
parent d159fed672
commit f36c71bd26
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
13 changed files with 415 additions and 13 deletions

View file

@ -28,6 +28,7 @@
key fingerprint for sign commit
'';
};
encrypt-credential = lib.mkEnableOption "encrypt git credential";
};
};
config =
@ -62,12 +63,14 @@
};
};
lfs.enable = true;
}
(lib.mkIf cfg.encrypt-credential {
extraConfig = {
credential = {
helper = "store --file=${config.sops.secrets."git-credential".path}";
};
};
}
})
(lib.mkIf (cfg.signKey != null) {
signing = {
signByDefault = true;