Add isServer option and conditionally enable Git signing
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
# Basic configuration
|
||||
userName = "Menno van Leeuwen";
|
||||
userEmail = "menno@vleeuwen.me";
|
||||
signing = {
|
||||
signing = lib.mkIf (!config.isServer) {
|
||||
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM+sKpcREOUjwMMSzEWAso6830wbOi8kUxqpuXWw5gHr";
|
||||
};
|
||||
|
||||
@@ -86,14 +86,14 @@
|
||||
};
|
||||
|
||||
# Security
|
||||
gpg = {
|
||||
gpg = lib.mkIf (!config.isServer) {
|
||||
format = "ssh";
|
||||
ssh = {
|
||||
program = "/opt/1Password/op-ssh-sign";
|
||||
};
|
||||
};
|
||||
|
||||
commit = {
|
||||
commit = lib.mkIf (!config.isServer) {
|
||||
gpgsign = true;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user