summary refs log tree commit diff
path: root/nixos/modules/system/boot/systemd-unit-options.nix
diff options
context:
space:
mode:
authorPeter Hoeg <peter@speartail.com>2016-04-27 10:56:40 +0800
committerPeter Hoeg <peter@speartail.com>2016-09-29 17:02:10 +0800
commit1049fd49ed3e35b72db127709e7c2e661745ea8a (patch)
tree30253ce2f71801db088abd98f700eec32f7aba8c /nixos/modules/system/boot/systemd-unit-options.nix
parentadfcc2d9531e78bf6a9e3b56e2f4fc873cb3d87b (diff)
downloadnixpkgs-1049fd49ed3e35b72db127709e7c2e661745ea8a.tar
nixpkgs-1049fd49ed3e35b72db127709e7c2e661745ea8a.tar.gz
nixpkgs-1049fd49ed3e35b72db127709e7c2e661745ea8a.tar.bz2
nixpkgs-1049fd49ed3e35b72db127709e7c2e661745ea8a.tar.lz
nixpkgs-1049fd49ed3e35b72db127709e7c2e661745ea8a.tar.xz
nixpkgs-1049fd49ed3e35b72db127709e7c2e661745ea8a.tar.zst
nixpkgs-1049fd49ed3e35b72db127709e7c2e661745ea8a.zip
systemd: add user target support
This allows us to define system user targets in addition to the existing
services, timers and sockets.

Furthermore, we add a top-level configuration keyword:

 - Documentation
Diffstat (limited to 'nixos/modules/system/boot/systemd-unit-options.nix')
-rw-r--r--nixos/modules/system/boot/systemd-unit-options.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd-unit-options.nix b/nixos/modules/system/boot/systemd-unit-options.nix
index f4892244de4..731b1701e00 100644
--- a/nixos/modules/system/boot/systemd-unit-options.nix
+++ b/nixos/modules/system/boot/systemd-unit-options.nix
@@ -77,6 +77,12 @@ in rec {
       description = "Description of this unit used in systemd messages and progress indicators.";
     };
 
+    documentation = mkOption {
+      default = [];
+      type = types.listOf types.str;
+      description = "A list of URIs referencing documentation for this unit or its configuration.";
+    };
+
     requires = mkOption {
       default = [];
       type = types.listOf types.str;