summaryrefslogtreecommitdiff
path: root/hm/conf/git.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hm/conf/git.nix')
-rw-r--r--hm/conf/git.nix7
1 files changed, 2 insertions, 5 deletions
diff --git a/hm/conf/git.nix b/hm/conf/git.nix
index 0e4b805..a0925ba 100644
--- a/hm/conf/git.nix
+++ b/hm/conf/git.nix
@@ -1,13 +1,10 @@
{
config,
lib,
- pkgs,
- osConfig,
...
}:
let
cfg = config.hm.conf.git;
- isOCI = osConfig.networking.hostName == "oci";
in
{
options.hm.conf.git.enable = lib.mkEnableOption "enables git vcs";
@@ -17,14 +14,14 @@ in
lfs.enable = true;
signing = {
signByDefault = true;
- key = if isOCI then "~/.ssh/id_ed25519.pub" else "EF69F2FB25C8B5A66918EA91A38ACEAB9656CD94";
+ key = "1DCCDC4E78380113E9BBBE413C7DEF329223B701";
};
settings = {
user = {
name = "adikro";
email = "adikro@disroot.org";
};
- gpg.format = if isOCI then "ssh" else "openpgp";
+ gpg.format = "openpgp";
init.defaultBranch = "main";
push.autoSetupRemote = true;
pull.rebase = true;