From 36a05c7b1583e4611fa824e1c05d94462dcbc3c2 Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Fri, 15 Nov 2013 19:49:01 +0100 Subject: [PATCH] systemd: Add systemd.extraConfig option for /etc/systemd/system.conf --- nixos/modules/system/boot/systemd.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index a21280414342..8895f9bf727f 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -486,6 +486,16 @@ in ''; }; + systemd.extraConfig = mkOption { + default = ""; + type = types.lines; + example = "DefaultLimitCORE=infinity"; + description = '' + Extra config options for systemd. See man systemd-system.conf for + available options. + ''; + }; + services.journald.console = mkOption { default = ""; type = types.str; @@ -555,6 +565,7 @@ in environment.etc."systemd/system.conf".text = '' [Manager] + ${config.systemd.extraConfig} ''; environment.etc."systemd/journald.conf".text =