git.iko.soy/typeable/nixpkgs
on master help sign in
support user config
commit23b76b23f57c5b2372da85ff39371f26e74e00a1 authorPeter Hoeg <peter@speartail.com> dateThu 8 Sep 2016, 16:40 (10 years ago) parent0b469a6
1 file changed+15
nixos/modules/system/boot/systemd.nix+15
nixos/modules/system/boot/systemd.nix+15
@@ -571,6 +571,16 @@ in
571571 '';
572572 };
573573
574+ systemd.user.extraConfig = mkOption {
575+ default = "";
576+ type = types.lines;
577+ example = "DefaultCPUAccounting=yes";
578+ description = ''
579+ Extra config options for systemd user instances. See man systemd-user.conf for
580+ available options.
581+ '';
582+ };
583+
574584 systemd.tmpfiles.rules = mkOption {
575585 type = types.listOf types.str;
576586 default = [];
@@ -665,6 +675,11 @@ in
665675 ${config.systemd.extraConfig}
666676 '';
667677
678+ "systemd/user.conf".text = ''
679+ [Manager]
680+ ${config.systemd.user.extraConfig}
681+ '';
682+
668683 "systemd/journald.conf".text = ''
669684 [Journal]
670685 RateLimitInterval=${config.services.journald.rateLimitInterval}