Fix compatibility issue with etc-overlay

This commit is contained in:
Lan Tian 2025-12-09 09:12:54 -08:00
parent 26167a6319
commit 009f10657e
No known key found for this signature in database
GPG Key ID: 04E66B6B25A0862B

View File

@ -66,6 +66,15 @@ let
( (
{ {
NR_CPUS = lib.mkForce (option (freeform "8192")); NR_CPUS = lib.mkForce (option (freeform "8192"));
# Follow NixOS default config to not break etc overlay
OVERLAY_FS = module;
OVERLAY_FS_REDIRECT_DIR = no;
OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW = yes;
OVERLAY_FS_INDEX = no;
OVERLAY_FS_XINO_AUTO = no;
OVERLAY_FS_METACOPY = no;
OVERLAY_FS_DEBUG = no;
} }
// lib.optionalAttrs lto { // lib.optionalAttrs lto {
LTO_NONE = no; LTO_NONE = no;