about summary refs log tree commit diff
path: root/home/profiles/development
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-02-04 01:54:22 +0900
committersefidel <contact@sefidel.net>2023-02-04 01:54:22 +0900
commit086cd361a36e5cf369076b3c44270c793f06eb61 (patch)
tree43f41ccfc3a33441d4b8a18717d5b18371fb6151 /home/profiles/development
parentca6de00b58f7872d7269228fd9e2ff7974f7e358 (diff)
downloadnixrc-086cd361a36e5cf369076b3c44270c793f06eb61.tar.gz
nixrc-086cd361a36e5cf369076b3c44270c793f06eb61.zip
feat(home/development): set key for git.sefidel.com
Currently the server accepts both of my keys,
and the GPG Authentication subkey is used for provisioning the server.
Therefore, an explicit declaration of the IdentityFile to use is needed.

The 'IdentitiesOnly' option is added since gpg's ssh-agent
always tries their key first.
Diffstat (limited to 'home/profiles/development')
-rw-r--r--home/profiles/development/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/home/profiles/development/default.nix b/home/profiles/development/default.nix
index c0ae5a5..098f935 100644
--- a/home/profiles/development/default.nix
+++ b/home/profiles/development/default.nix
@@ -79,6 +79,17 @@ in
       ];
     };
 
+    # GPG Authentication subkey is used for provisioning the server,
+    # thus we need to use fallback key to identify with gitolite.
+    programs.ssh.enable = true; # this has no relation with the sshd daemon.
+    programs.ssh.extraConfig = ''
+      Host git.sefidel.com
+        User git
+        Port 22
+        IdentityFile ~/.ssh/id_ed25519
+        IdentitiesOnly true
+    '';
+
     home.packages = [
       pkgs.bfg-repo-cleaner
       # pkgs.diffoscopeMinimal # broken (rpm)