_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: The specialArgs argument passed to evalModules.

  • 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 includes modulesPath, which allows you to import extra modules from the nixpkgs package tree without having to somehow make the module aware of the location of the nixpkgs 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 the nixpkgs.pkgs option.

Type: lazy attribute set of raw value

Declared by:

services.steam-servers.stationeers

Options to configure one or more Stationers servers.

Type: attribute set of (submodule)

Default: { }

Declared by:

services.steam-servers.stationeers.<name>.enable

Whether to enable Stationeers Dedicated Server.

Type: boolean

Default: false

Example: true

Declared by:

services.steam-servers.stationeers.<name>.package

Package to use for Stationeers binary

Type: package

Default: pkgs.stationeers

Declared by:

services.steam-servers.stationeers.<name>.adminPasswordPath

Path to a secret file containing a password required to connect to RCON.

Can be null for no RCON support.

Type: null or string

Default: null

Declared by:

services.steam-servers.stationeers.<name>.config.AutoSave

Whether to enable autosaving of the server

Type: boolean

Default: true

Declared by:

services.steam-servers.stationeers.<name>.config.DisconnectTimeout

Type: signed integer

Default: 10000

Declared by:

services.steam-servers.stationeers.<name>.config.GamePort

Game port

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default: 27016

Declared by:

services.steam-servers.stationeers.<name>.config.HungerRate

Rate at which hungre drains

Type: signed integer or floating point number

Default: 0.5

Declared by:

services.steam-servers.stationeers.<name>.config.LocalIpAddress

Local address to bind game server to

Type: string

Default: "0.0.0.0"

Declared by:

services.steam-servers.stationeers.<name>.config.NetworkDebugFrequency

Type: signed integer

Default: 500

Declared by:

services.steam-servers.stationeers.<name>.config.ResearchPoolKey

ResearchOff, ResearchOn, or a custom key from a mod

Type: string

Default: "ResearchOn"

Declared by:

services.steam-servers.stationeers.<name>.config.RespawnCondition

Easy, Normal, Stationeers, or mod provided

Type: string

Default: "Easy"

Declared by:

services.steam-servers.stationeers.<name>.config.RoomControlTickSpeed

Type: signed integer or floating point number

Default: 1

Declared by:

services.steam-servers.stationeers.<name>.config.SaveInterval

Auto-save interval (in seconds)

Type: signed integer

Default: 300

Declared by:

services.steam-servers.stationeers.<name>.config.SavePath

Path to world saves directory

Type: path

Default: "/var/lib/steam-servers/stationeers/‹name›"

Declared by:

services.steam-servers.stationeers.<name>.config.ServerMaxPlayers

Max number of simultaneous players on the server

Type: signed integer

Default: 10

Declared by:

services.steam-servers.stationeers.<name>.config.ServerName

Name of the server shown to clients

Type: string

Default: "Stationeers"

Declared by:

services.steam-servers.stationeers.<name>.config.ServerVisible

Whether or not server is publicly discoverable

Type: boolean

Default: false

Declared by:

services.steam-servers.stationeers.<name>.config.StartLocalHost

Type: boolean

Default: true

Declared by:

services.steam-servers.stationeers.<name>.config.StartingConditions

Default, Minimal, Vulcan, Venus, BareBones, or mod provided. (possible ignored by server)

Type: string

Default: "Default"

Declared by:

services.steam-servers.stationeers.<name>.config.SunOrbitPeriod

Multiplier on the time it takes for the sun to orbit, default is 20 minutes, 10 minute day 10 night.

Type: signed integer or floating point number

Default: 1

Declared by:

services.steam-servers.stationeers.<name>.config.UPNPEnabled

Whether to enable UPnP. Not recommended as enabling UPnP is inherently a security risk

Type: boolean

Default: false

Declared by:

services.steam-servers.stationeers.<name>.config.UpdatePort

Steam update port

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default: 27015

Declared by:

services.steam-servers.stationeers.<name>.config.WorldOrigin

Type: boolean

Default: false

Declared by:

services.steam-servers.stationeers.<name>.datadir

Directory to store save state of the game server. (eg world, saves, etc)

Type: path

Default: ${services.steam-servers.datadir}/stationeers/${name}

Declared by:

services.steam-servers.stationeers.<name>.difficulty

Difficulty setting to use when creating worlds

Type: string

Default: "normal"

Declared by:

services.steam-servers.stationeers.<name>.extraArgs

Extra command line arguments to pass to the server

Type: list of string

Default: [ ]

Declared by:

services.steam-servers.stationeers.<name>.extraConfig

Extra config to add to the settings.xml

Type: attribute set

Default: { }

Declared by:

services.steam-servers.stationeers.<name>.openFirewall

Whether to open ports in the firewall. Does not open telnet/admin ports

Type: boolean

Default: false

Declared by:

services.steam-servers.stationeers.<name>.serverPasswordPath

Path to a secret file containing a password required to connect to the server.

Can be null for no password.

Type: null or string

Default: null

Declared by:

services.steam-servers.stationeers.<name>.worldName

Name of the save game to use. A new world of type worldType will be created of save does not exist.

Type: string

Default: ${name}

Declared by:

services.steam-servers.stationeers.<name>.worldType

World type to use when creating a new world.

Must be one of moon, mars, europa, europa2, mimas, vulcan, vulcan2, space, loulan, venus or a mod-provided value

Type: string

Default: "mars"

Declared by: