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= {
|
variables= {
|
||||||
hostName = "nucturne";
|
hostName = "nucturne";
|
||||||
graphical = true;
|
graphical = true;
|
||||||
|
git.signDefault = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.extraModulePackages = [
|
boot.extraModulePackages = [
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
variables = {
|
variables = {
|
||||||
hostName = "stel-xps";
|
hostName = "stel-xps";
|
||||||
graphical = true;
|
graphical = true;
|
||||||
git.key = "0x4998BEEE";
|
git = {
|
||||||
git.gpgsm = true;
|
key = "0x4998BEEE";
|
||||||
|
gpgsm = true;
|
||||||
|
signDefault = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
#networking.hostName = "stel-xps"; # define the hostname
|
#networking.hostName = "stel-xps"; # define the hostname
|
||||||
|
|
||||||
|
|||||||
@ -29,6 +29,11 @@
|
|||||||
default = false;
|
default = false;
|
||||||
description = "Whether to use gpgsm for commit signatures";
|
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";
|
# format = "x509";
|
||||||
# program = "gpgsm";
|
# program = "gpgsm";
|
||||||
#};
|
#};
|
||||||
user = { signingKey = config.variables.git.key; };
|
user = {
|
||||||
|
signingKey = config.variables.git.key;
|
||||||
|
signByDefault = config.variables.git.signDefault;
|
||||||
|
};
|
||||||
init = { defaultBranch = "main";};
|
init = { defaultBranch = "main";};
|
||||||
branch = { autosetuprebase = "always";};
|
branch = { autosetuprebase = "always";};
|
||||||
safe.directory = [ "/etc/nixos" ];
|
safe.directory = [ "/etc/nixos" ];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user