diff options
author | Ricardo M. Correia <rcorreia@wizy.org> | 2013-11-15 19:49:01 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2013-11-16 16:50:59 +0100 |
commit | 36a05c7b1583e4611fa824e1c05d94462dcbc3c2 (patch) | |
tree | 54bb99de18d74d0d9bf5e3c4de8b924f95b7895d /nixos | |
parent | e0171ef0267c13e4a9d8888013a08b6ae0d19406 (diff) | |
download | nixlib-36a05c7b1583e4611fa824e1c05d94462dcbc3c2.tar nixlib-36a05c7b1583e4611fa824e1c05d94462dcbc3c2.tar.gz nixlib-36a05c7b1583e4611fa824e1c05d94462dcbc3c2.tar.bz2 nixlib-36a05c7b1583e4611fa824e1c05d94462dcbc3c2.tar.lz nixlib-36a05c7b1583e4611fa824e1c05d94462dcbc3c2.tar.xz nixlib-36a05c7b1583e4611fa824e1c05d94462dcbc3c2.tar.zst nixlib-36a05c7b1583e4611fa824e1c05d94462dcbc3c2.zip |
systemd: Add systemd.extraConfig option for /etc/systemd/system.conf
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/system/boot/systemd.nix | 11 |
1 files changed, 11 insertions, 0 deletions
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 = |