Compare commits

...

2 commits

Author SHA1 Message Date
0972cfc810
can sign commits now 2025-06-12 11:56:18 +02:00
337b8dc147 update home-manager flake 2025-06-12 11:32:41 +02:00
3 changed files with 17 additions and 3 deletions

View file

@ -52,11 +52,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1749526396, "lastModified": 1749657191,
"narHash": "sha256-UL9F76abAk87llXOrcQRjhd5OaOclUd6MIltsqcUZmo=", "narHash": "sha256-QLilaHuhGxiwhgceDWESj9gFcKIdEp7+9lRqNGpN8S4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "427c96044f11a5da50faf6adaf38c9fa47e6d044", "rev": "faeab32528a9360e9577ff4082de2d35c6bbe1ce",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -20,12 +20,23 @@ in
example = true; example = true;
description = "Generate my job configuration"; description = "Generate my job configuration";
}; };
signing = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Sign all commits";
};
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Jakub Kropáček"; userName = "Jakub Kropáček";
userEmail = "kropikuba@gmail.com"; userEmail = "kropikuba@gmail.com";
signing = lib.mkIf cfg.signing {
format = "openpgp";
key = "4EC6A2C45D75FC86";
signByDefault = true;
};
includes = includes =
if cfg.work-config then if cfg.work-config then
let let
@ -33,6 +44,8 @@ in
user = { user = {
email = "jakub.kropacek@olc.cz"; email = "jakub.kropacek@olc.cz";
name = "Jakub Kropáček"; name = "Jakub Kropáček";
signingkey = lib.optionalString cfg.signing "E1464E538D595102";
}; };
}; };
in in

View file

@ -10,6 +10,7 @@
}; };
programs.git = { programs.git = {
work-config = true; work-config = true;
signing = true;
}; };
}; };
} }