summary refs log tree commit diff
path: root/nixos/modules/system/boot/systemd-unit-options.nix
diff options
context:
space:
mode:
authorMarkov Dmitry <markovdm@ecotelecom.ru>2016-12-20 09:21:52 +0300
committerJörg Thalheim <joerg@higgsboson.tk>2016-12-20 10:49:08 +0100
commitefd5508b8998667dd04a090bc43f8ab6683d4f52 (patch)
tree13aacc1fef3db57eb0a987af83557e886d102e6a /nixos/modules/system/boot/systemd-unit-options.nix
parentccbce6b11ab0e47c2f701f2539f989a7fd323687 (diff)
downloadnixpkgs-efd5508b8998667dd04a090bc43f8ab6683d4f52.tar
nixpkgs-efd5508b8998667dd04a090bc43f8ab6683d4f52.tar.gz
nixpkgs-efd5508b8998667dd04a090bc43f8ab6683d4f52.tar.bz2
nixpkgs-efd5508b8998667dd04a090bc43f8ab6683d4f52.tar.lz
nixpkgs-efd5508b8998667dd04a090bc43f8ab6683d4f52.tar.xz
nixpkgs-efd5508b8998667dd04a090bc43f8ab6683d4f52.tar.zst
nixpkgs-efd5508b8998667dd04a090bc43f8ab6683d4f52.zip
systemd: add slice support
Diffstat (limited to 'nixos/modules/system/boot/systemd-unit-options.nix')
-rw-r--r--nixos/modules/system/boot/systemd-unit-options.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd-unit-options.nix b/nixos/modules/system/boot/systemd-unit-options.nix
index 4c3fc30358c..69af2398148 100644
--- a/nixos/modules/system/boot/systemd-unit-options.nix
+++ b/nixos/modules/system/boot/systemd-unit-options.nix
@@ -465,4 +465,20 @@ in rec {
 
   targetOptions = commonUnitOptions;
 
+  sliceOptions = commonUnitOptions // {
+
+    sliceConfig = mkOption {
+      default = {};
+      example = { MemoryMax = "2G"; };
+      type = types.attrsOf unitOption;
+      description = ''
+        Each attribute in this set specifies an option in the
+        <literal>[Slice]</literal> section of the unit.  See
+        <citerefentry><refentrytitle>systemd.slice</refentrytitle>
+        <manvolnum>5</manvolnum></citerefentry> for details.
+      '';
+    };
+
+  };
+
 }