diff options
author | Peter Hoeg <peter@speartail.com> | 2016-09-08 16:40:54 +0800 |
---|---|---|
committer | Peter Hoeg <peter@speartail.com> | 2016-09-08 16:40:54 +0800 |
commit | 23b76b23f57c5b2372da85ff39371f26e74e00a1 (patch) | |
tree | 1e253cb187042d23c4a79c05bfdcb06b2e18a0ba /nixos/modules/system/boot/systemd.nix | |
parent | 0b469a6725a932456bea616a42bc8fdd313db80c (diff) | |
download | nixpkgs-23b76b23f57c5b2372da85ff39371f26e74e00a1.tar nixpkgs-23b76b23f57c5b2372da85ff39371f26e74e00a1.tar.gz nixpkgs-23b76b23f57c5b2372da85ff39371f26e74e00a1.tar.bz2 nixpkgs-23b76b23f57c5b2372da85ff39371f26e74e00a1.tar.lz nixpkgs-23b76b23f57c5b2372da85ff39371f26e74e00a1.tar.xz nixpkgs-23b76b23f57c5b2372da85ff39371f26e74e00a1.tar.zst nixpkgs-23b76b23f57c5b2372da85ff39371f26e74e00a1.zip |
support user config
Diffstat (limited to 'nixos/modules/system/boot/systemd.nix')
-rw-r--r-- | nixos/modules/system/boot/systemd.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 3fa257f9668..67751d8f72c 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -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 { type = types.listOf types.str; default = []; @@ -665,6 +675,11 @@ in ${config.systemd.extraConfig} ''; + "systemd/user.conf".text = '' + [Manager] + ${config.systemd.user.extraConfig} + ''; + "systemd/journald.conf".text = '' [Journal] RateLimitInterval=${config.services.journald.rateLimitInterval} |