systemd: remove patch
Some checks failed
Build and Deploy / mreow (push) Successful in 59s
Build and Deploy / yarn (push) Successful in 1m4s
Build and Deploy / muffin (push) Failing after 16m36s

This commit is contained in:
2026-05-12 00:55:15 -04:00
parent ea0f9884d3
commit 9d4b420326
2 changed files with 0 additions and 74 deletions

View File

@@ -335,12 +335,6 @@
prev.callPackage "${patchedStableSrc}/pkgs/by-name/sy/syncstorage-rs/package.nix"
{ };
})
# NOTE: systemd patch is applied via `systemd.package` in the module
# list below, not via an overlay. An overlay replaces pkgs.systemd
# for every consumer, which cascades through udev-check-hook and
# causes the entire closure (fish, e2fsprogs, valkey, …) to rebuild
# and re-run flaky test suites in the sandbox. `systemd.package`
# only injects the patched systemd into the runtime init chain.
];
nixpkgs.config.allowUnfreePredicate =
pkg:
@@ -349,26 +343,6 @@
];
}
# Runtime-only systemd patch: reset FreezerState on inactive/failed
# transitions so a SIGKILL to a frozen unit doesn't strand
# FreezerState=frozen (unrecoverable without a reboot, upstream issue
# #38517). PR #38528 closed only the watchdog path; this closes
# systemctl kill / OOM / segfault paths too.
#
# Applied via systemd.package, not via overlay, so pkgs.systemd stays
# untouched for every other consumer — no udev-check-hook cascade,
# no fish/e2fsprogs/valkey rebuild, no flaky-test fallout.
(
{ pkgs, ... }:
{
systemd.package = pkgs.systemd.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [
./patches/systemd/0001-core-unit-reset-freezer-state-on-inactive-failed.patch
];
});
}
)
lanzaboote.nixosModules.lanzaboote
arr-init.nixosModules.default
(import "${nixpkgs-p2pool-module}/nixos/modules/services/networking/p2pool.nix")