nixos/systemd: remove systemd.extraConfig

This commit is contained in:
Grimmauld
2025-07-19 17:15:08 +02:00
parent a48bc46a3e
commit 1a846a2fff

View File

@@ -414,16 +414,6 @@ in
''; '';
}; };
extraConfig = mkOption {
default = "";
type = types.lines;
example = "DefaultLimitCORE=infinity";
description = ''
Extra config options for systemd. See {manpage}`systemd-system.conf(5)` man page
for available options.
'';
};
settings.Manager = mkOption { settings.Manager = mkOption {
default = { }; default = { };
defaultText = lib.literalExpression '' defaultText = lib.literalExpression ''
@@ -687,7 +677,6 @@ in
KExecWatchdogSec=${cfg.watchdog.kexecTime} KExecWatchdogSec=${cfg.watchdog.kexecTime}
''} ''}
${cfg.extraConfig}
${attrsToSection cfg.settings.Manager} ${attrsToSection cfg.settings.Manager}
''; '';
@@ -883,5 +872,6 @@ in
To forcibly reenable cgroup v1 support, you can set boot.kernelParams = [ "systemd.unified_cgroup_hierarchy=0" "SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1" ]. To forcibly reenable cgroup v1 support, you can set boot.kernelParams = [ "systemd.unified_cgroup_hierarchy=0" "SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1" ].
NixOS does not officially support this configuration and might cause your system to be unbootable in future versions. You are on your own. NixOS does not officially support this configuration and might cause your system to be unbootable in future versions. You are on your own.
'') '')
(mkRemovedOptionModule [ "systemd" "extraConfig" ] "Use systemd.settings.Manager instead.")
]; ];
} }