wrapperManagerLib.systemd.submodules

A convenient set of module types for the systemd unit. Take note, all of the documented items here contain a list of modules and intended to be included as a submodule. You can use it like in the following code:

{ config, lib, wrapperManagerLib, ... }:

let
  otherCustomModules = [ ];
in
{
  options.custom-systemd-option.units = lib.mkOption {
    type = with lib.types; attrsof (submodule (
      wrapperManagerLib.systemd.submodules.units
      ++ [ otherCustomModules ];
    ));
  };
}

Furthermore, it doesn’t set any of the global systemd options found in the base module configuration (e.g., programs.systemd.enableCommonDependencies, programs.systemd.enableStatelessInstallation).

wrapperManagerLib.systemd.submodules.units

List of modules associated for {option}`programs.systemd.$VARIANT.units`.

wrapperManagerLib.systemd.submodules.services

List of modules associated for {option}`programs.systemd.$VARIANT.services`.

wrapperManagerLib.systemd.submodules.services'

Convenience function around services to make a list of modules with the global wrapper-manager systemd-related options.

Arguments

cfg

The wrapper-manager configuration.

Type

services' :: Attrs -> [ Module ]

Examples

Assume it’s in a wrapper-manager module.

{ lib, wrapperManagerLib, config, ... }: {
  options.custom-systemd-option.services = lib.mkOption {
    type = with lib.types; attrsOf (submodule (wrapperManagerLib.systemd.submodules.services' config));
  };
}

wrapperManagerLib.systemd.submodules.targets

List of modules associated for {option}`programs.systemd.$VARIANT.targets`.

wrapperManagerLib.systemd.submodules.targets'

Convenience function around targets to make a list of modules with the global wrapper-manager systemd-related options.

Arguments

cfg

The wrapper-manager configuration.

Type

targets' :: Attrs -> [ Module ]

Examples

Assume it’s in a wrapper-manager module.

{ lib, wrapperManagerLib, config, ... }: {
  options.custom-systemd-option.targets = lib.mkOption {
    type = with lib.types; attrsOf (submodule (wrapperManagerLib.systemd.submodules.targets' config));
  };
}

wrapperManagerLib.systemd.submodules.sockets

List of modules associated for {option}`programs.systemd.$VARIANT.sockets`.

wrapperManagerLib.systemd.submodules.sockets'

Convenience function around sockets to make a list of modules with the global wrapper-manager systemd-related options.

Arguments

cfg

The wrapper-manager configuration.

Type

sockets' :: Attrs -> [ Module ]

Examples

Assume it’s in a wrapper-manager module.

{ lib, wrapperManagerLib, config, ... }: {
  options.custom-systemd-option.sockets = lib.mkOption {
    type = with lib.types; attrsOf (submodule (wrapperManagerLib.systemd.submodules.sockets' config));
  };
}

wrapperManagerLib.systemd.submodules.timers

List of modules associated for {option}`programs.systemd.$VARIANT.timers`.

wrapperManagerLib.systemd.submodules.timers'

Convenience function around timers to make a list of modules with the global wrapper-manager systemd-related options.

Arguments

cfg

The wrapper-manager configuration.

Type

timers' :: Attrs -> [ Module ]

Examples

Assume it’s in a wrapper-manager module.

{ lib, wrapperManagerLib, config, ... }: {
  options.custom-systemd-option.timers = lib.mkOption {
    type = with lib.types; attrsOf (submodule (wrapperManagerLib.systemd.submodules.timers' config));
  };
}

wrapperManagerLib.systemd.submodules.paths

List of modules associated for {option}`programs.systemd.$VARIANT.paths`.

wrapperManagerLib.systemd.submodules.paths'

Convenience function around paths to make a list of modules with the global wrapper-manager systemd-related options.

Arguments

cfg

The wrapper-manager configuration.

Type

paths' :: Attrs -> [ Module ]

Examples

Assume it’s in a wrapper-manager module.

{ lib, wrapperManagerLib, config, ... }: {
  options.custom-systemd-option.paths = lib.mkOption {
    type = with lib.types; attrsOf (submodule (wrapperManagerLib.systemd.submodules.paths' config));
  };
}

wrapperManagerLib.systemd.submodules.slices

List of modules associated for {option}`programs.systemd.$VARIANT.slices`.

wrapperManagerLib.systemd.submodules.slices'

Convenience function around slices to make a list of modules with the global wrapper-manager systemd-related options.

Arguments

cfg

The wrapper-manager configuration.

Type

slices' :: Attrs -> [ Module ]

Examples

Assume it’s in a wrapper-manager module.

{ lib, wrapperManagerLib, config, ... }: {
  options.custom-systemd-option.slices = lib.mkOption {
    type = with lib.types; attrsOf (submodule (wrapperManagerLib.systemd.submodules.slices' config));
  };
}

wrapperManagerLib.systemd.submodules.mounts

List of modules associated for {option}`programs.systemd.$VARIANT.mounts`.

wrapperManagerLib.systemd.submodules.mounts'

Convenience function around mounts to make a list of modules with the global wrapper-manager systemd-related options.

Arguments

cfg

The wrapper-manager configuration.

Type

mounts' :: Attrs -> [ Module ]

Examples

Assume it’s in a wrapper-manager module.

{ lib, wrapperManagerLib, config, ... }: {
  options.custom-systemd-option.mounts = lib.mkOption {
    type = with lib.types; attrsOf (submodule (wrapperManagerLib.systemd.submodules.mounts' config));
  };
}

wrapperManagerLib.systemd.submodules.automounts

List of modules associated for {option}`programs.systemd.$VARIANT.automounts`.

wrapperManagerLib.systemd.submodules.automounts'

Convenience function around automounts to make a list of modules with the global wrapper-manager systemd-related options.

Arguments

cfg

The wrapper-manager configuration.

Type

automounts' :: Attrs -> [ Module ]

Examples

Assume it’s in a wrapper-manager module.

{ lib, wrapperManagerLib, config, ... }: {
  options.custom-systemd-option.automounts = lib.mkOption {
    type = with lib.types; attrsOf (submodule (wrapperManagerLib.systemd.submodules.automounts' config));
  };
}