_module.args
Additional arguments passed to each module in addition to ones
like lib
, config
,
and pkgs
, modulesPath
.
This option is also available to all submodules. Submodules do not
inherit args from their parent module, nor do they provide args to
their parent module or sibling submodules. The sole exception to
this is the argument name
which is provided by
parent modules to a submodule and contains the attribute name
the submodule is bound to, or a unique generated name if it is
not bound to an attribute.
Some arguments are already passed by default, of which the following cannot be changed with this option:
-
lib
: The nixpkgs library. -
config
: The results of all options after merging the values from all modules together. -
options
: The options declared in all modules. -
specialArgs
: ThespecialArgs
argument passed toevalModules
. -
All attributes of
specialArgs
Whereas option values can generally depend on other option values thanks to laziness, this does not apply to
imports
, which must be computed statically before anything else.For this reason, callers of the module system can provide
specialArgs
which are available during import resolution.For NixOS,
specialArgs
includesmodulesPath
, which allows you to import extra modules from the nixpkgs package tree without having to somehow make the module aware of the location of thenixpkgs
or NixOS directories.{ modulesPath, ... }: { imports = [ (modulesPath + "/profiles/minimal.nix") ]; }
For NixOS, the default value for this option includes at least this argument:
pkgs
: The nixpkgs package set according to thenixpkgs.pkgs
option.
Type: lazy attribute set of raw value
Declared by:
services.steam-servers.palworld
Options to configure one or more Stationers servers.
Type: attribute set of (submodule)
Default:
{ }
Declared by:
services.steam-servers.palworld.<name>.enable
Whether to enable Palworld Dedicated Server.
Type: boolean
Default:
false
Example:
true
Declared by:
services.steam-servers.palworld.<name>.package
Package to use for Palworld binary
Type: package
Default:
pkgs.palworld
Declared by:
services.steam-servers.palworld.<name>.datadir
Directory to store save state of the game server. (eg world, saves, etc)
Type: path
Default:
${services.steam-servers.datadir}/palworld/${name}
Declared by:
services.steam-servers.palworld.<name>.extraArgs
Extra command line arguments to pass to the server
Type: list of string
Default:
[ ]
Declared by:
services.steam-servers.palworld.<name>.openFirewall
Whether to open ports in the firewall.
Type: boolean
Default:
false
Declared by:
services.steam-servers.palworld.<name>.port
UDP port to listen on
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
8211
Declared by:
services.steam-servers.palworld.<name>.worldSettings
World settings used to generate PalWorldSettings.ini
Type: attribute set
Default:
{ }
Declared by: