boot, tailscale: Apply kernel regression patch instead of workarounds

This commit is contained in:
Katherina Walshe-Grey 2025-09-08 12:39:40 +01:00
parent 598f1dc742
commit e82d1792c9
2 changed files with 13 additions and 17 deletions

View file

@ -11,6 +11,19 @@ in
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
}; };
boot.kernelPatches = [
# Fix the /proc/net/tcp seek issue
# Impacts tailscale: https://github.com/tailscale/tailscale/issues/16966
{
name = "proc: fix missing pde_set_flags() for net proc files";
patch = pkgs.fetchurl {
name = "fix-missing-pde_set_flags-for-net-proc-files.patch";
url = "https://patchwork.kernel.org/project/linux-fsdevel/patch/20250821105806.1453833-1-wangzijie1@honor.com/raw/";
hash = "sha256-DbQ8FiRj65B28zP0xxg6LvW5ocEH8AHOqaRbYZOTDXg=";
};
}
];
services.resolved = { services.resolved = {
enable = true; enable = true;
fallbackDns = [ ]; fallbackDns = [ ];

View file

@ -20,21 +20,4 @@
}; };
networking.domain = "birdsong.network"; networking.domain = "birdsong.network";
# Workaround for: https://github.com/tailscale/tailscale/issues/16966
nixpkgs.overlays = [
(_: prev: {
tailscale = prev.tailscale.overrideAttrs (old: {
checkFlags =
builtins.map
(
flag:
if prev.lib.hasPrefix "-skip=" flag
then flag + "|^TestGetList$|^TestIgnoreLocallyBoundPorts$|^TestPoller$"
else flag
)
old.checkFlags;
});
})
];
} }