support user config
This commit is contained in:
parent
0b469a6725
commit
23b76b23f5
@ -571,6 +571,16 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.user.extraConfig = mkOption {
|
||||||
|
default = "";
|
||||||
|
type = types.lines;
|
||||||
|
example = "DefaultCPUAccounting=yes";
|
||||||
|
description = ''
|
||||||
|
Extra config options for systemd user instances. See man systemd-user.conf for
|
||||||
|
available options.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
systemd.tmpfiles.rules = mkOption {
|
systemd.tmpfiles.rules = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [];
|
default = [];
|
||||||
@ -665,6 +675,11 @@ in
|
|||||||
${config.systemd.extraConfig}
|
${config.systemd.extraConfig}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
"systemd/user.conf".text = ''
|
||||||
|
[Manager]
|
||||||
|
${config.systemd.user.extraConfig}
|
||||||
|
'';
|
||||||
|
|
||||||
"systemd/journald.conf".text = ''
|
"systemd/journald.conf".text = ''
|
||||||
[Journal]
|
[Journal]
|
||||||
RateLimitInterval=${config.services.journald.rateLimitInterval}
|
RateLimitInterval=${config.services.journald.rateLimitInterval}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user