diff options
author | Will Fancher <elvishjerricco@gmail.com> | 2022-12-20 18:44:39 -0500 |
---|---|---|
committer | Will Fancher <elvishjerricco@gmail.com> | 2022-12-24 19:36:29 -0500 |
commit | 9a497aab1bcc2fc7a8acf2119df83a83290ff9ba (patch) | |
tree | 20307f81d11f7aa47c581221fc296d48f9665b08 /nixos/modules/system | |
parent | b139bf1c47c6660cd0f5e2d3448e05e82da2ea6b (diff) |
systemd-stage-1: Improve test-instrumentation output
Diffstat (limited to 'nixos/modules/system')
-rw-r--r-- | nixos/modules/system/boot/systemd/initrd.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd/initrd.nix b/nixos/modules/system/boot/systemd/initrd.nix index 31702499b0f14..196f44ccd783c 100644 --- a/nixos/modules/system/boot/systemd/initrd.nix +++ b/nixos/modules/system/boot/systemd/initrd.nix @@ -148,6 +148,16 @@ in { visible = false; }; + extraConfig = mkOption { + default = ""; + type = types.lines; + example = "DefaultLimitCORE=infinity"; + description = lib.mdDoc '' + Extra config options for systemd. See systemd-system.conf(5) man page + for available options. + ''; + }; + contents = mkOption { description = lib.mdDoc "Set of files that have to be linked into the initrd"; example = literalExpression '' @@ -352,6 +362,7 @@ in { "/etc/systemd/system.conf".text = '' [Manager] DefaultEnvironment=PATH=/bin:/sbin ${optionalString (isBool cfg.emergencyAccess && cfg.emergencyAccess) "SYSTEMD_SULOGIN_FORCE=1"} + ${cfg.extraConfig} ''; "/lib/modules".source = "${modulesClosure}/lib/modules"; |