diff options
author | sefidel <contact@sefidel.net> | 2023-02-04 01:54:22 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-02-04 01:54:22 +0900 |
commit | 086cd361a36e5cf369076b3c44270c793f06eb61 (patch) | |
tree | 43f41ccfc3a33441d4b8a18717d5b18371fb6151 | |
parent | ca6de00b58f7872d7269228fd9e2ff7974f7e358 (diff) | |
download | nixrc-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.
-rw-r--r-- | home/profiles/development/default.nix | 11 |
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) |