switch to ssh commit signing

This commit is contained in:
Schrottkatze 2024-02-02 11:27:11 +01:00
parent ad591635e0
commit ad32bdf223
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc
2 changed files with 50 additions and 50 deletions

View file

@ -53,7 +53,6 @@
evremap.enable = true;
};
terminal.enable = true;
git.signingKey = "08F0 E7C9 6941 84C2 D514 7F31 5621 290C A02C 7BD8";
};
fileSystems = {

View file

@ -1,12 +1,9 @@
{
config,
lib,
pkgs,
...
}: 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;
@ -21,9 +18,14 @@ in {
s = "status";
};
signing = {
key = cfg.signingKey;
key = "${pkgs.writeText "red_nk3.pub" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOaE8TFsIazpn4OnHvHcRpOFr9FfvMaWOiEjmHsmnAoE cardno:000F_70CD7D05"}";
signByDefault = true;
};
extraConfig = {
gpg = {
format = "ssh";
};
};
};
programs.gitui = {
enable = true;
@ -62,5 +64,4 @@ in {
'';
};
};
};
}