forked from mirrors/nixpkgs
systemd: Add systemd.extraConfig option for /etc/systemd/system.conf
This commit is contained in:
parent
e0171ef026
commit
36a05c7b15
|
@ -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 {
|
services.journald.console = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
type = types.str;
|
type = types.str;
|
||||||
|
@ -555,6 +565,7 @@ in
|
||||||
environment.etc."systemd/system.conf".text =
|
environment.etc."systemd/system.conf".text =
|
||||||
''
|
''
|
||||||
[Manager]
|
[Manager]
|
||||||
|
${config.systemd.extraConfig}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
environment.etc."systemd/journald.conf".text =
|
environment.etc."systemd/journald.conf".text =
|
||||||
|
|
Loading…
Reference in a new issue