1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Add option to default sign with git

This commit is contained in:
Stefan Ellmauthaler 2022-04-29 12:51:42 +02:00
parent 22c6764b67
commit 9b985e5cd1
Failed to extract signature
4 changed files with 15 additions and 3 deletions

View File

@ -3,6 +3,7 @@
variables= {
hostName = "nucturne";
graphical = true;
git.signDefault = true;
};
boot.extraModulePackages = [

View File

@ -5,8 +5,11 @@
variables = {
hostName = "stel-xps";
graphical = true;
git.key = "0x4998BEEE";
git.gpgsm = true;
git = {
key = "0x4998BEEE";
gpgsm = true;
signDefault = true;
};
};
#networking.hostName = "stel-xps"; # define the hostname

View File

@ -29,6 +29,11 @@
default = false;
description = "Whether to use gpgsm for commit signatures";
};
signDefault = mkOption {
type = types.bool;
default = false;
description = "Whether to force signing commits or not";
};
};
};
}

View File

@ -17,7 +17,10 @@
# format = "x509";
# program = "gpgsm";
#};
user = { signingKey = config.variables.git.key; };
user = {
signingKey = config.variables.git.key;
signByDefault = config.variables.git.signDefault;
};
init = { defaultBranch = "main";};
branch = { autosetuprebase = "always";};
safe.directory = [ "/etc/nixos" ];