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:
parent
22c6764b67
commit
9b985e5cd1
@ -3,6 +3,7 @@
|
||||
variables= {
|
||||
hostName = "nucturne";
|
||||
graphical = true;
|
||||
git.signDefault = true;
|
||||
};
|
||||
|
||||
boot.extraModulePackages = [
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@ -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" ];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user