diff options
Diffstat (limited to 'nixpkgs/nixos/modules/system/boot/systemd/user.nix')
-rw-r--r-- | nixpkgs/nixos/modules/system/boot/systemd/user.nix | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/nixpkgs/nixos/modules/system/boot/systemd/user.nix b/nixpkgs/nixos/modules/system/boot/systemd/user.nix index 64dc19633eca..2685cf7e283a 100644 --- a/nixpkgs/nixos/modules/system/boot/systemd/user.nix +++ b/nixpkgs/nixos/modules/system/boot/systemd/user.nix @@ -59,14 +59,14 @@ in { default = ""; type = types.lines; example = "DefaultCPUAccounting=yes"; - description = lib.mdDoc '' + description = '' Extra config options for systemd user instances. See {manpage}`systemd-user.conf(5)` for available options. ''; }; systemd.user.units = mkOption { - description = lib.mdDoc "Definition of systemd per-user units."; + description = "Definition of systemd per-user units."; default = {}; type = systemdUtils.types.units; }; @@ -74,37 +74,37 @@ in { systemd.user.paths = mkOption { default = {}; type = systemdUtils.types.paths; - description = lib.mdDoc "Definition of systemd per-user path units."; + description = "Definition of systemd per-user path units."; }; systemd.user.services = mkOption { default = {}; type = systemdUtils.types.services; - description = lib.mdDoc "Definition of systemd per-user service units."; + description = "Definition of systemd per-user service units."; }; systemd.user.slices = mkOption { default = {}; type = systemdUtils.types.slices; - description = lib.mdDoc "Definition of systemd per-user slice units."; + description = "Definition of systemd per-user slice units."; }; systemd.user.sockets = mkOption { default = {}; type = systemdUtils.types.sockets; - description = lib.mdDoc "Definition of systemd per-user socket units."; + description = "Definition of systemd per-user socket units."; }; systemd.user.targets = mkOption { default = {}; type = systemdUtils.types.targets; - description = lib.mdDoc "Definition of systemd per-user target units."; + description = "Definition of systemd per-user target units."; }; systemd.user.timers = mkOption { default = {}; type = systemdUtils.types.timers; - description = lib.mdDoc "Definition of systemd per-user timer units."; + description = "Definition of systemd per-user timer units."; }; systemd.user.tmpfiles = { @@ -112,7 +112,7 @@ in { type = types.listOf types.str; default = []; example = [ "D %C - - - 7d" ]; - description = lib.mdDoc '' + description = '' Global user rules for creation, deletion and cleaning of volatile and temporary files automatically. See {manpage}`tmpfiles.d(5)` @@ -121,7 +121,7 @@ in { }; users = mkOption { - description = mdDoc '' + description = '' Per-user rules for creation, deletion and cleaning of volatile and temporary files automatically. ''; @@ -132,7 +132,7 @@ in { type = types.listOf types.str; default = []; example = [ "D %C - - - 7d" ]; - description = mdDoc '' + description = '' Per-user rules for creation, deletion and cleaning of volatile and temporary files automatically. See {manpage}`tmpfiles.d(5)` @@ -148,7 +148,7 @@ in { default = []; type = types.listOf types.str; example = []; - description = lib.mdDoc '' + description = '' Additional units shipped with systemd that should be enabled for per-user systemd instances. ''; internal = true; @@ -175,12 +175,12 @@ in { }; systemd.user.units = - mapAttrs' (n: v: nameValuePair "${n}.path" (pathToUnit n v)) cfg.paths - // mapAttrs' (n: v: nameValuePair "${n}.service" (serviceToUnit n v)) cfg.services - // mapAttrs' (n: v: nameValuePair "${n}.slice" (sliceToUnit n v)) cfg.slices - // mapAttrs' (n: v: nameValuePair "${n}.socket" (socketToUnit n v)) cfg.sockets - // mapAttrs' (n: v: nameValuePair "${n}.target" (targetToUnit n v)) cfg.targets - // mapAttrs' (n: v: nameValuePair "${n}.timer" (timerToUnit n v)) cfg.timers; + mapAttrs' (n: v: nameValuePair "${n}.path" (pathToUnit v)) cfg.paths + // mapAttrs' (n: v: nameValuePair "${n}.service" (serviceToUnit v)) cfg.services + // mapAttrs' (n: v: nameValuePair "${n}.slice" (sliceToUnit v)) cfg.slices + // mapAttrs' (n: v: nameValuePair "${n}.socket" (socketToUnit v)) cfg.sockets + // mapAttrs' (n: v: nameValuePair "${n}.target" (targetToUnit v)) cfg.targets + // mapAttrs' (n: v: nameValuePair "${n}.timer" (timerToUnit v)) cfg.timers; # Generate timer units for all services that have a ‘startAt’ value. systemd.user.timers = |