nixos/systemd: remove obsolete DefaultCPUAccounting option

This option is made uncondiotional in systemd 258 [1].
Earlier, it defaulted to true on kernels newer than 4.15,
which applies to all supported nixos kernels.
This means removing the option does not change behavior.

[1] 29da53dde3
This commit is contained in:
Grimmauld
2025-07-20 17:24:22 +02:00
parent f47b100763
commit 231c142766

View File

@@ -425,13 +425,6 @@ in
type = lib.types.submodule {
freeformType = types.attrsOf unitOption;
options = {
DefaultCPUAccounting = mkOption {
type = types.bool;
default = cfg.enableCgroupAccounting;
defaultText = lib.literalExpression "config.systemd.enableCgroupAccounting";
description = "Turn on CPU usage accounting";
};
DefaultIOAccounting = mkOption {
type = types.bool;
default = cfg.enableCgroupAccounting;