Add git configuration

This commit is contained in:
ItsDrike 2024-04-04 20:16:56 +02:00
parent a9cdf25a57
commit 329f48882e
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
9 changed files with 223 additions and 0 deletions

View file

@ -1,6 +1,10 @@
{ lib, ... }: with lib; let
in
{
imports = [
./git.nix
];
options.myOptions.home-manager = {
enabled = mkOption {
type = types.bool;

18
options/home/git.nix Normal file
View file

@ -0,0 +1,18 @@
{ lib, ... }: with lib; let
in
{
options.myOptions.home-manager.git = {
signing = {
enabled = mkOption {
type = types.bool;
default = true;
description = "Should commits and tags be sgined by default?";
};
key = mkOption {
type = types.str;
default = "";
description = "The defaul GPG key fingerprint for signing.";
};
};
};
}