Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions nixos/hosts/amd-ipv4-preference.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
_:
{
# Temporary workaround for the home IPv6 uplink stalling on payload
# transfers (developing-today/code#1280): prefer IPv4 in getaddrinfo
# result sorting until the home IPv6 path is repaired. Remove with
# the issue.
networking.getaddrinfo = {
label = {
"::1/128" = 0;
"::/0" = 1;
"2002::/16" = 2;
"::/96" = 3;
"::ffff:0:0/96" = 4;
};
precedence = {
"::1/128" = 50;
"::/0" = 40;
"2002::/16" = 30;
"::/96" = 20;
"::ffff:0:0/96" = 100;
};
};
}
1 change: 1 addition & 0 deletions nixos/hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ in
# KRdp remote desktop for this laptop (user service + package);
# see the file for the one-time on-machine credential setup.
./amd-krdp.nix
./amd-ipv4-preference.nix
];
};
# amd-server = host {
Expand Down
Loading