Prefer IPv4 for SSH
I wasn't able to push code to my selfhosted git instance over tailscale as it automatically preferred IPv6 which somehow wasn't reachable
This commit is contained in:
parent
e2cd913423
commit
bf3b33b0ed
1 changed files with 3 additions and 4 deletions
|
@ -6,18 +6,17 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
home-manager.users.${vars.user} = {
|
home-manager.users.${vars.user} = {
|
||||||
|
#Prefer IPv4 for ssh
|
||||||
|
home.file.".ssh/config".text = "AddressFamily inet";
|
||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "GHOSCHT";
|
userName = "GHOSCHT";
|
||||||
userEmail = "31184695+GHOSCHT@users.noreply.github.com";
|
userEmail = "31184695+GHOSCHT@users.noreply.github.com";
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
# Sign all commits using ssh key
|
|
||||||
commit.gpgsign = true;
|
commit.gpgsign = true;
|
||||||
user.signingkey = "0x2C2C1C62A5388E82";
|
user.signingkey = "0x2C2C1C62A5388E82";
|
||||||
# gpg.format = "ssh";
|
|
||||||
# gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";
|
|
||||||
# user.signingkey = "~/.ssh/git.pub";
|
|
||||||
init.defaultBranch = "main";
|
init.defaultBranch = "main";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue