summary refs log tree commit diff
path: root/nixos/modules/system/boot/systemd.nix
diff options
context:
space:
mode:
authorSong Wenwu <iyzsong@gmail.com>2013-11-29 18:57:42 +0800
committerBjørn Forsman <bjorn.forsman@gmail.com>2013-11-30 22:42:01 +0100
commitc4885173b66afe53497feb7f796ab6496dedc187 (patch)
treeb8bc9ec9439138e9d175683eb22ae3aae94cbe37 /nixos/modules/system/boot/systemd.nix
parentc06361a1fcfb7844a2a12cc700edbcb539e27c19 (diff)
downloadnixpkgs-c4885173b66afe53497feb7f796ab6496dedc187.tar
nixpkgs-c4885173b66afe53497feb7f796ab6496dedc187.tar.gz
nixpkgs-c4885173b66afe53497feb7f796ab6496dedc187.tar.bz2
nixpkgs-c4885173b66afe53497feb7f796ab6496dedc187.tar.lz
nixpkgs-c4885173b66afe53497feb7f796ab6496dedc187.tar.xz
nixpkgs-c4885173b66afe53497feb7f796ab6496dedc187.tar.zst
nixpkgs-c4885173b66afe53497feb7f796ab6496dedc187.zip
systemd: add services.journald.extraConfig option
Diffstat (limited to 'nixos/modules/system/boot/systemd.nix')
-rw-r--r--nixos/modules/system/boot/systemd.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix
index 9f5a7678c85..75c2c788f38 100644
--- a/nixos/modules/system/boot/systemd.nix
+++ b/nixos/modules/system/boot/systemd.nix
@@ -534,6 +534,16 @@ in
       '';
     };
 
+    services.journald.extraConfig = mkOption {
+      default = "";
+      type = types.lines;
+      example = "Storage=volatile";
+      description = ''
+        Extra config options for systemd-journald. See man journald.conf
+        for available options.
+      '';
+    };
+
     services.logind.extraConfig = mkOption {
       default = "";
       type = types.lines;
@@ -585,6 +595,7 @@ in
           ForwardToConsole=yes
           TTYPath=${config.services.journald.console}
         ''}
+        ${config.services.journald.extraConfig}
       '';
 
     environment.etc."systemd/logind.conf".text =