finix Options
boot.bootspec.enableValidation Link copied!
Whether to enable the validation of bootspec documents for each build. This will introduce Go in the build-time closure as we are relying on Cuelang for schema validation. Enable this option if you want to ascertain that your documents are correct .
- Type
boolean- Default
false- Example
true
- Declared in
<finix/modules/boot/bootspec.nix>
boot.bootspec.package Link copied!
The package to use for bootspec.
- Type
package- Default
pkgs.bootspec
- Declared in
<finix/modules/boot/bootspec.nix>
boot.bootspec.extensions Link copied!
User-defined data that extends the bootspec document.
To reduce incompatibility and prevent names from clashing between applications, it is highly recommended to use a unique namespace for your extensions.
- Type
attribute set of anything- Default
{ }
- Declared in
<finix/modules/boot/bootspec.nix>
boot.extraModulePackages Link copied!
A list of additional packages supplying kernel modules.
- Type
list of package- Default
[ ]- Example
[ config.boot.kernelPackages.nvidia_x11 ]
- Declared in
<finix/modules/boot/kernel.nix>
boot.init Link copied!
Executable run as stage-2 PID 1, symlinked as ${config.system.build.toplevel}/init.
- Type
absolute path- Default
"${config.finit.package}/bin/finit"
- Declared in
<finix/modules/boot>
boot.initrd.enable Link copied!
Whether to enable the NixOS initial RAM disk (initrd). This may be needed to perform some initialisation tasks (like mounting network/encrypted file systems) before continuing the boot process.
- Type
boolean- Default
true
- Declared in
<finix/modules/boot/initrd.nix>
boot.initrd.package Link copied!
the initrd to use for your system... use a module to build one
- Type
package
- Declared in
<finix/modules/boot/initrd.nix>
boot.initrd.availableKernelModules Link copied!
The set of kernel modules in the initial ramdisk used during the
boot process. This set must include all modules necessary for
mounting the root device. That is, it should include modules
for the physical device (e.g., SCSI drivers) and for the file
system (e.g., ext3). The set specified here is automatically
closed under the module dependency relation, i.e., all
dependencies of the modules list here are included
automatically. The modules listed here are available in the
initrd, but are only loaded on demand (e.g., the ext3 module is
loaded automatically when an ext3 filesystem is mounted, and
modules for PCI devices are loaded when they match the PCI ID
of a device in your system). To force a module to be loaded,
include it in boot.initrd.kernelModules.
- Type
list of string- Default
[ ]- Example
[
"sata_nv"
"ext3"
]
- Declared in
<finix/modules/boot/kernel.nix>
boot.initrd.compressor Link copied!
The compressor to use on the initrd image. May be any of:
- The name of one of the predefined compressors, see
pkgs/build-support/kernel/initrd-compressor-meta.nixfor the definitions. - A function which, given the nixpkgs package set, returns the path to a compressor tool, e.g.
pkgs: "${pkgs.pigz}/bin/pigz" - (not recommended, because it does not work when cross-compiling) the full path to a compressor tool, e.g.
"${pkgs.pigz}/bin/pigz"
The given program should read data from stdin and write it to stdout compressed.
- Type
string or function that evaluates to a(n) string- Default
`zstd` if the kernel supports it (5.9+), `gzip` if not- Example
"xz"
- Declared in
<finix/modules/boot/initrd.nix>
boot.initrd.compressorArgs Link copied!
Arguments to pass to the compressor for the initrd image, or null to use the compressor's defaults.
- Type
null or (list of string)- Default
null
- Declared in
<finix/modules/boot/initrd.nix>
boot.initrd.contents Link copied!
Contents of the initrd.
- Type
list of (submodule)
- Declared in
<finix/modules/boot/initrd.nix>
boot.initrd.contents.*.source Link copied!
This option has no description.
- Type
absolute path
- Declared in
<finix/modules/boot/initrd.nix>
boot.initrd.contents.*.target Link copied!
This option has no description.
- Type
null or string- Default
null
- Declared in
<finix/modules/boot/initrd.nix>
boot.initrd.emergencyAccess Link copied!
Set to true for unauthenticated emergency access to the initramfs
rescue shell, and false or null for no access.
Can also be set to a hashed super user password to allow authenticated access to the rescue mode.
When access is denied, finix prints the failure reason on console and reboots after 10s instead of opening a shell.
- Type
null or boolean or (string, not containing newlines or colons)- Default
false
- Declared in
<finix/modules/finit/initrd.nix>
boot.initrd.fileSystemImportCommands Link copied!
Lines of shell commands that are run after coldbooting the device-manager and before mounting file-systems.
- Type
strings concatenated with "\n"- Default
""- Example
''
vgimport --all
''
- Declared in
<finix/modules/boot/initrd.nix>
boot.initrd.finit.run Link copied!
An attribute set of one-shot commands to run in sequence when entering a runlevel. run commands
are guaranteed to be completed before running the next command. Useful when serialization is required.
See upstream documentation for additional details.
- Type
attribute set of (open submodule of (libconfuse value))- Default
{ }
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.enable Link copied!
Whether to enable this stanza.
- Type
boolean- Default
true
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.cache-dir Link copied!
A directory name, resolved under /var/cache, created before the service starts and
owned by its user and group. Absolute paths and .. are refused. The resolved path
is exported to the process environment as $CACHE_DIRECTORY.
See upstream documentation for additional details.
- Type
null or non-empty string- Default
null- Example
"myservice"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.cache-dir-mode Link copied!
The mode of cache-dir, locked down again on every start, default: 0755. Modes are
octal, with the leading zero.
- Type
null or string matching the pattern 0[0-7]{3,4}- Default
null- Example
"0700"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.capabilities Link copied!
Allow services to run with minimal required privileges instead of running as root.
- Type
null or ((list of non-empty string) or non-empty string convertible to it)- Default
null- Example
[
"^cap_net_bind_service"
]
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.cgroup Link copied!
The cgroup to place this process under, keyed by the name of a
top-level cgroup. delegate hands the subtree over to the service
itself, for container runtimes like docker, podman,
systemd-nspawn or lxc; every other key names a cgroup file.
See upstream documentation and kernel documentation for additional details.
- Type
null or (attribute set of attribute set of (boolean or signed integer or string))- Default
null- Example
{
system = {
delegate = true;
};
}
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.command Link copied!
The command to execute.
- Type
main program, path or command
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.conditions Link copied!
See upstream documentation for details.
- Type
null or ((list of non-empty string) or non-empty string convertible to it)- Default
null- Example
"pid/syslog"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.config-dir Link copied!
A directory name, resolved under /etc, created before the service starts. Absolute
paths and .. are refused. The resolved path is exported to the process environment as
$CONFIGURATION_DIRECTORY.
As in systemd, config-dir is the odd one out: it is created but never chowned.
See upstream documentation for additional details.
- Type
null or non-empty string- Default
null- Example
"myservice"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.config-dir-mode Link copied!
The mode of config-dir, locked down again on every start, default: 0755. Modes are
octal, with the leading zero.
- Type
null or string matching the pattern 0[0-7]{3,4}- Default
null- Example
"0700"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.conflicts Link copied!
If you have conflicting services and want to prevent them from starting.
- Type
null or ((list of non-empty string) or non-empty string convertible to it)- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.description Link copied!
A human-readable description of this service, displayed by initctl.
- Type
null or string- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.envfile Link copied!
Either a path or a path prefixed with a '-' to indicate a missing file is fine.
- Type
null or (string or absolute path convertible to it)- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.environment Link copied!
Environment variables passed to this service.
- Type
attribute set of (atom (null, bool, int, float or string))- Default
{ }- Example
{
TZ = "CET";
}
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.exec-cleanup Link copied!
A script which will be called when the service is removed.
- Type
null or main program, path or command- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.exec-start-pre Link copied!
A script which will be called before the service is started.
- Type
null or main program, path or command- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.exec-stop-post Link copied!
A script which will be called after the service has stopped.
- Type
null or main program, path or command- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.extra-groups Link copied!
Explicitly specify supplementary groups, in addition to reading group membership from /etc/group.
- Type
null or (list of string)- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.group Link copied!
The group this service should be executed as.
- Type
null or string- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.id Link copied!
The instance identifier, derived from the attribute name if it contains an @ character.
- Type
null or string- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>."if" Link copied!
Only register this stanza when the given condition is asserted, or
when the named service exists. Prefix with ! to invert.
See upstream documentation for details.
- Type
null or non-empty string- Default
null- Example
"!int/container"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.log Link copied!
Redirect stderr and stdout of the application to a file or syslog using the native logit
tool. This is useful for programs that do not support syslog on their own, which is sometimes
the case when running in the foreground.
See upstream documentation for additional details.
- Type
(null or (attribute set of (libconfuse value))) or boolean convertible to it- Default
null- Example
{
file = "/dev/console";
}
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.logs-dir Link copied!
A directory name, resolved under /var/log, created before the service starts and owned
by its user and group. Absolute paths and .. are refused. The resolved path is
exported to the process environment as $LOGS_DIRECTORY.
See upstream documentation for additional details.
- Type
null or non-empty string- Default
null- Example
"myservice"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.logs-dir-mode Link copied!
The mode of logs-dir, locked down again on every start, default: 0755. Modes are
octal, with the leading zero.
- Type
null or string matching the pattern 0[0-7]{3,4}- Default
null- Example
"0700"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.manual-start Link copied!
If a service should not be automatically started, it can be configured as
manual. The service can then be started at any time by running initctl start <service>.
- Type
null or boolean- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.name Link copied!
The name of this stanza, derived from the attribute name.
- Type
string
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.path Link copied!
Packages added to the PATH environment variable of this service.
- Type
list of (package or string)- Default
[ ]
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.priority Link copied!
Order of this run command in relation to the others. The semantics are the same as
with lib.mkOrder. Smaller values have a greater priority.
- Type
integer between 0 and 9999 (both inclusive)- Default
1000
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.reload-triggers Link copied!
An arbitrary list of items such as derivations. If any item in the list changes between reconfigurations, the service will be reloaded or restarted if reloads are not supported.
- Type
list of (string or absolute path)- Default
[ ]
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.remain-after-exit Link copied!
By default, a run or task will re-run each time its runlevel is
entered, and its exec-stop-post script does not run on completion.
With remain-after-exit, the task runs once and does not re-run on runlevel.
The exec-stop-post script will run if the task is explicitly stopped or when
the task leaves its valid runlevels.
- Type
null or boolean- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.respawn Link copied!
Enable endless restarts without counting toward the retry limit. When set, the service
will be restarted indefinitely regardless of the restart-max limit.
- Type
null or boolean- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.restart-max Link copied!
The number of times finit tries to restart a crashing service. When
this limit is reached the service is marked crashed and must be restarted
manually with initctl restart NAME. When null, finit's built-in
default applies.
- Type
null or integer between -1 and 255 (both inclusive)- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.restart-sec Link copied!
The number of seconds before Finit tries to restart a crashing service, default: 2
seconds for the first five retries, then back-off to 5 seconds. The maximum of this
configured value and the above (2 and 5) will be used.
- Type
null or (unsigned integer, meaning >=0)- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.rlimit Link copied!
An attribute set of resource limits that will be apply by finit.
See upstream documentation for additional details.
- Type
null or (attribute set of (value "unlimited" (singular enum) or signed integer or (submodule)))- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.runlevel Link copied!
See upstream documentation for details.
- Type
null or string matching the pattern !?[0-9Ss]+- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.runtime-dir Link copied!
A directory name, resolved under /run, created before the service starts and owned by
its user and group. Absolute paths and .. are refused. The resolved path is
exported to the process environment as $RUNTIME_DIRECTORY.
Removed again when the service stops, after any exec-stop-post script has run, unless
runtime-dir-preserve says otherwise.
See upstream documentation for additional details.
- Type
null or non-empty string- Default
null- Example
"myservice"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.runtime-dir-mode Link copied!
The mode of runtime-dir, locked down again on every start, default: 0755. Modes are
octal, with the leading zero.
- Type
null or string matching the pattern 0[0-7]{3,4}- Default
null- Example
"0700"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.runtime-dir-preserve Link copied!
Whether runtime-dir survives the service stopping, the same values as systemd's
RuntimeDirectoryPreserve=, default: false.
false- removed when the service stops"restart"- kept across restarts, removed on a real stoptrue- never removed
- Type
null or boolean or value "restart" (singular enum)- Default
null- Example
"restart"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.script Link copied!
Shell commands executed as the main process.
- Type
strings concatenated with "\n"- Default
""
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.state-dir Link copied!
A directory name, resolved under /var/lib, created before the service starts and owned
by its user and group. Absolute paths and .. are refused. The resolved path is
exported to the process environment as $STATE_DIRECTORY.
See upstream documentation for additional details.
- Type
null or non-empty string- Default
null- Example
"myservice"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.state-dir-mode Link copied!
The mode of state-dir, locked down again on every start, default: 0755. Modes are
octal, with the leading zero.
- Type
null or string matching the pattern 0[0-7]{3,4}- Default
null- Example
"0700"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.tty Link copied!
Give this stanza a controlling terminal on the given device, connecting its stdin, stdout, and
stderr to the TTY. May be a device node like /dev/ttyS0 or the special keyword @console.
See upstream documentation for additional details.
- Type
null or non-empty string- Default
null- Example
"/dev/tty1"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.run.<name>.user Link copied!
The user this service should be executed as.
- Type
null or string- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services Link copied!
An attribute set of services, or daemons, to be monitored and automatically restarted if they exit prematurely.
See upstream documentation for additional details.
- Type
attribute set of (open submodule of (libconfuse value))- Default
{ }
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.enable Link copied!
Whether to enable this stanza.
- Type
boolean- Default
true
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.cache-dir Link copied!
A directory name, resolved under /var/cache, created before the service starts and
owned by its user and group. Absolute paths and .. are refused. The resolved path
is exported to the process environment as $CACHE_DIRECTORY.
See upstream documentation for additional details.
- Type
null or non-empty string- Default
null- Example
"myservice"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.cache-dir-mode Link copied!
The mode of cache-dir, locked down again on every start, default: 0755. Modes are
octal, with the leading zero.
- Type
null or string matching the pattern 0[0-7]{3,4}- Default
null- Example
"0700"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.capabilities Link copied!
Allow services to run with minimal required privileges instead of running as root.
- Type
null or ((list of non-empty string) or non-empty string convertible to it)- Default
null- Example
[
"^cap_net_bind_service"
]
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.cgroup Link copied!
The cgroup to place this process under, keyed by the name of a
top-level cgroup. delegate hands the subtree over to the service
itself, for container runtimes like docker, podman,
systemd-nspawn or lxc; every other key names a cgroup file.
See upstream documentation and kernel documentation for additional details.
- Type
null or (attribute set of attribute set of (boolean or signed integer or string))- Default
null- Example
{
system = {
delegate = true;
};
}
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.command Link copied!
The command to execute.
- Type
main program, path or command
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.conditions Link copied!
See upstream documentation for details.
- Type
null or ((list of non-empty string) or non-empty string convertible to it)- Default
null- Example
"pid/syslog"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.config-dir Link copied!
A directory name, resolved under /etc, created before the service starts. Absolute
paths and .. are refused. The resolved path is exported to the process environment as
$CONFIGURATION_DIRECTORY.
As in systemd, config-dir is the odd one out: it is created but never chowned.
See upstream documentation for additional details.
- Type
null or non-empty string- Default
null- Example
"myservice"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.config-dir-mode Link copied!
The mode of config-dir, locked down again on every start, default: 0755. Modes are
octal, with the leading zero.
- Type
null or string matching the pattern 0[0-7]{3,4}- Default
null- Example
"0700"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.conflicts Link copied!
If you have conflicting services and want to prevent them from starting.
- Type
null or ((list of non-empty string) or non-empty string convertible to it)- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.description Link copied!
A human-readable description of this service, displayed by initctl.
- Type
null or string- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.envfile Link copied!
Either a path or a path prefixed with a '-' to indicate a missing file is fine.
- Type
null or (string or absolute path convertible to it)- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.environment Link copied!
Environment variables passed to this service.
- Type
attribute set of (atom (null, bool, int, float or string))- Default
{ }- Example
{
TZ = "CET";
}
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.exec-cleanup Link copied!
A script which will be called when the service is removed.
- Type
null or main program, path or command- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.exec-reload Link copied!
Some services do not support SIGHUP but may have other ways to update the configuration of a running daemon. When
exec-reload is defined it is preferred over SIGHUP. Like systemd, finit sets ``$MAINPIDas a convenience to scripts, which in effect also allow settingexec-reload` to `kill -HUP $MAINPID`.
Note
exec-reload is called as PID 1, without any timeout! Meaning, it is up to you to ensure the script is not blocking for
seconds at a time or never terminates.
- Type
null or main program, path or command- Default
null- Example
"kill -HUP $MAINPID"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.exec-start-pre Link copied!
A script which will be called before the service is started.
- Type
null or main program, path or command- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.exec-start-ready Link copied!
A script which will be called when the service is ready.
- Type
null or main program, path or command- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.exec-stop Link copied!
Some services may require alternate methods to be stopped. If exec-stop is defined it is preferred over SIGTERM. Similar
to exec-reload, finit sets $MAINPID.
Note
exec-stop is called as PID 1, without any timeout! Meaning, it is up to you to ensure the script is not blocking for
seconds at a time or never terminates.
- Type
null or main program, path or command- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.exec-stop-post Link copied!
A script which will be called after the service has stopped.
- Type
null or main program, path or command- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.extra-groups Link copied!
Explicitly specify supplementary groups, in addition to reading group membership from /etc/group.
- Type
null or (list of string)- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.group Link copied!
The group this service should be executed as.
- Type
null or string- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.id Link copied!
The instance identifier, derived from the attribute name if it contains an @ character.
- Type
null or string- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>."if" Link copied!
Only register this stanza when the given condition is asserted, or
when the named service exists. Prefix with ! to invert.
See upstream documentation for details.
- Type
null or non-empty string- Default
null- Example
"!int/container"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.log Link copied!
Redirect stderr and stdout of the application to a file or syslog using the native logit
tool. This is useful for programs that do not support syslog on their own, which is sometimes
the case when running in the foreground.
See upstream documentation for additional details.
- Type
(null or (attribute set of (libconfuse value))) or boolean convertible to it- Default
null- Example
{
file = "/dev/console";
}
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.logs-dir Link copied!
A directory name, resolved under /var/log, created before the service starts and owned
by its user and group. Absolute paths and .. are refused. The resolved path is
exported to the process environment as $LOGS_DIRECTORY.
See upstream documentation for additional details.
- Type
null or non-empty string- Default
null- Example
"myservice"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.logs-dir-mode Link copied!
The mode of logs-dir, locked down again on every start, default: 0755. Modes are
octal, with the leading zero.
- Type
null or string matching the pattern 0[0-7]{3,4}- Default
null- Example
"0700"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.manual-start Link copied!
If a service should not be automatically started, it can be configured as
manual. The service can then be started at any time by running initctl start <service>.
- Type
null or boolean- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.name Link copied!
The name of this stanza, derived from the attribute name.
- Type
string
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.nohup Link copied!
Set when the service does not handle SIGHUP. Sets
reload-signal = "none".
- Type
boolean- Default
false
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.notify Link copied!
When null the stanza inherits finit.readiness, cf. service.c.
See upstream documentation for details.
- Type
null or one of "pid", "systemd", "s6", "none"- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.oncrash Link copied!
reboot- when all retries have failed, and the service has crashed, if this option is set the system is rebooted.script- similarly, but instead of rebooting, call theexec-stop-postscript if set.
- Type
null or one of "reboot", "script"- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.path Link copied!
Packages added to the PATH environment variable of this service.
- Type
list of (package or string)- Default
[ ]
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.pidfile Link copied!
See upstream documentation for details.
- Type
null or string- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.reload-signal Link copied!
Signal finit sends to reload the service, or "none" when the
service does not handle SIGHUP and must be stopped and started on
reconfiguration instead.
See upstream documentation for details.
- Type
null or string- Default
null- Example
"none"
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.reload-triggers Link copied!
An arbitrary list of items such as derivations. If any item in the list changes between reconfigurations, the service will be reloaded or restarted if reloads are not supported.
- Type
list of (string or absolute path)- Default
[ ]
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.respawn Link copied!
Enable endless restarts without counting toward the retry limit. When set, the service
will be restarted indefinitely regardless of the restart-max limit.
- Type
null or boolean- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.restart-max Link copied!
The number of times finit tries to restart a crashing service. When
this limit is reached the service is marked crashed and must be restarted
manually with initctl restart NAME. When null, finit's built-in
default applies.
- Type
null or integer between -1 and 255 (both inclusive)- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.restart-sec Link copied!
The number of seconds before Finit tries to restart a crashing service, default: 2
seconds for the first five retries, then back-off to 5 seconds. The maximum of this
configured value and the above (2 and 5) will be used.
- Type
null or (unsigned integer, meaning >=0)- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.rlimit Link copied!
An attribute set of resource limits that will be apply by finit.
See upstream documentation for additional details.
- Type
null or (attribute set of (value "unlimited" (singular enum) or signed integer or (submodule)))- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.runlevel Link copied!
See upstream documentation for details.
- Type
null or string matching the pattern !?[0-9Ss]+- Default
null
- Declared in
<finix/modules/finit/options.nix>
boot.initrd.finit.services.<name>.runtime-dir Link copied!
A directory name, resolved under /run, created before the service starts and owned by
its user and group. Absolute paths and .. are refused. The resolved path is
exported to the process environment as $RUNTIME_DIRECTORY.
Removed again when the service stops, after any exec-stop-post script has run, unless
runtime-dir-preserve says otherwise.
See upstream documentation for additional details.
- Type
null or non-empty string- Default
null- Example
"myservice"
- Declared in
<finix/modules/finit/options.nix>
More options load as you scroll.