_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."7-days-to-die"
Options to configure one or more 7 Days to Die servers.
Type: attribute set of (submodule)
Default:
{ }
Declared by:
services.steam-servers."7-days-to-die".<name>.enable
Whether to enable 7 Day to Die Dedicated Server.
Type: boolean
Default:
false
Example:
true
Declared by:
services.steam-servers."7-days-to-die".<name>.package
Package to use for 7 Days to Die binary
Type: package
Default:
pkgs."7-days-to-die"
Declared by:
services.steam-servers."7-days-to-die".<name>.config.AdminFileName
admin file name. Path relative to the SaveGameFolder
Type: string
Default:
"serveradmin.xml"
Declared by:
services.steam-servers."7-days-to-die".<name>.config.AirDropFrequency
How often airdrop occur in game-hours, 0 == never
Type: signed integer
Default:
72
Declared by:
services.steam-servers."7-days-to-die".<name>.config.AirDropMarker
Sets if a marker is added to map/compass for air drops.
Type: boolean
Default:
true
Declared by:
services.steam-servers."7-days-to-die".<name>.config.BedrollDeadZoneSize
Size (box “radius”, so a box with 2 times the given value for each side’s length) of bedroll deadzone, no zombies will spawn inside this area, and any cleared sleeper volumes that touch a bedroll deadzone will not spawn after they’ve been cleared.
Type: signed integer
Default:
15
Declared by:
services.steam-servers."7-days-to-die".<name>.config.BedrollExpiryTime
Number of real world days a bedroll stays active after owner was last online
Type: signed integer
Default:
45
Declared by:
services.steam-servers."7-days-to-die".<name>.config.BlockDamageAI
How much damage do AIs to blocks (percentage in whole numbers)
Type: signed integer
Default:
100
Declared by:
services.steam-servers."7-days-to-die".<name>.config.BlockDamageAIBM
How much damage do AIs during blood moons to blocks (percentage in whole numbers)
Type: signed integer
Default:
100
Declared by:
services.steam-servers."7-days-to-die".<name>.config.BlockDamagePlayer
How much damage do players to blocks (percentage in whole numbers)
Type: signed integer
Default:
100
Declared by:
services.steam-servers."7-days-to-die".<name>.config.BloodMoonEnemyCount
This is the number of zombies that can be alive (spawned at the same time) at any time PER PLAYER during a blood moon horde, however, MaxSpawnedZombies overrides this number in multiplayer games. Also note that your game stage sets the max number of zombies PER PARTY. Low game stage values can result in lower number of zombies than the BloodMoonEnemyCount setting. Changing this setting has a huge impact on performance.
Type: signed integer
Default:
8
Declared by:
services.steam-servers."7-days-to-die".<name>.config.BloodMoonFrequency
What frequency (in days) should a blood moon take place. Set to ‘0’ for no blood moons
Type: signed integer
Default:
7
Declared by:
services.steam-servers."7-days-to-die".<name>.config.BloodMoonRange
How many days can the actual blood moon day randomly deviate from the above setting. Setting this to 0 makes blood moons happen exactly each Nth day as specified in BloodMoonFrequency
Type: signed integer
Default:
0
Declared by:
services.steam-servers."7-days-to-die".<name>.config.BloodMoonWarning
The Hour number that the red day number begins on a blood moon day. Setting this to -1 makes the red never show.
Type: signed integer
Default:
8
Declared by:
services.steam-servers."7-days-to-die".<name>.config.BuildCreate
cheat mode on/off
Type: boolean
Default:
false
Declared by:
services.steam-servers."7-days-to-die".<name>.config.DayLightLength
in game hours the sun shines per day
Type: signed integer
Default:
18
Declared by:
services.steam-servers."7-days-to-die".<name>.config.DayNightLength
real time minutes per in game day
Type: signed integer
Default:
60
Declared by:
services.steam-servers."7-days-to-die".<name>.config.DropOnDeath
0 = nothing, 1 = everything, 2 = toolbelt only, 3 = backpack only, 4 = delete all
Type: integer between 0 and 4 (both inclusive)
Default:
1
Declared by:
services.steam-servers."7-days-to-die".<name>.config.DropOnQuit
0 = nothing, 1 = everything, 2 = toolbelt only, 3 = backpack only
Type: integer between 0 and 3 (both inclusive)
Default:
0
Declared by:
services.steam-servers."7-days-to-die".<name>.config.DynamicMeshEnabled
Is Dynamic Mesh system enabled
Type: boolean
Default:
true
Declared by:
services.steam-servers."7-days-to-die".<name>.config.DynamicMeshLandClaimBuffer
Dynamic Mesh LCB chunk radius
Type: signed integer
Default:
3
Declared by:
services.steam-servers."7-days-to-die".<name>.config.DynamicMeshLandClaimOnly
Is Dynamic Mesh system only active in player LCB areas
Type: boolean
Default:
true
Declared by:
services.steam-servers."7-days-to-die".<name>.config.DynamicMeshMaxItemCache
How many items can be processed concurrently, higher values use more RAM
Type: signed integer
Default:
3
Declared by:
services.steam-servers."7-days-to-die".<name>.config.EACEnabled
Enables/Disables EasyAntiCheat
Type: boolean
Default:
true
Declared by:
services.steam-servers."7-days-to-die".<name>.config.EnableMapRendering
Enable/disable rendering of the map to tile images while exploring it. This is used e.g. by the web dashboard to display a view of the map.
Type: boolean
Default:
false
Declared by:
services.steam-servers."7-days-to-die".<name>.config.EnemyDifficulty
0 = Normal, 1 = Feral
Type: one of 0, 1
Default:
0
Declared by:
services.steam-servers."7-days-to-die".<name>.config.EnemySpawnMode
Enable/Disable enemy spawning
Type: boolean
Default:
true
Declared by:
services.steam-servers."7-days-to-die".<name>.config.GameDifficulty
0=easiest, 5=hardest
Type: integer between 0 and 5 (both inclusive)
Default:
1
Declared by:
services.steam-servers."7-days-to-die".<name>.config.GameMode
Game mode
Type: string
Default:
"GameModeSurvival"
Declared by:
services.steam-servers."7-days-to-die".<name>.config.GameName
Whatever you want the game name to be. This affects the save game name as well as the seed used when placing decoration (trees etc) in the world. It does not control the generic layout of the world if creating an RWG world
Type: string
Default:
"My Game"
Declared by:
services.steam-servers."7-days-to-die".<name>.config.GameWorld
“RWG” (see WorldGenSeed and WorldGenSize options below) or any already existing world name in the Worlds folder (currently shipping with e.g. “Navezgane”, “PREGEN6k”, “PREGEN8k”, “PREGEN10k”, …)
Type: string
Default:
"Navezgane"
Declared by:
services.steam-servers."7-days-to-die".<name>.config.HideCommandExecutionLog
Hide logging of command execution. 0 = show everything, 1 = hide only from Telnet/ControlPanel, 2 = also hide from remote game clients, 3 = hide everything
Type: integer between 0 and 3 (both inclusive)
Default:
0
Declared by:
services.steam-servers."7-days-to-die".<name>.config.LandClaimCount
Maximum allowed land claims per player.
Type: signed integer
Default:
3
Declared by:
services.steam-servers."7-days-to-die".<name>.config.LandClaimDeadZone
Keystones must be this many blocks apart (unless you are friends with the other player)
Type: signed integer
Default:
30
Declared by:
services.steam-servers."7-days-to-die".<name>.config.LandClaimDecayMode
Controls how offline players land claims decay. 0=Slow (Linear) , 1=Fast (Exponential), 2=None (Full protection until claim is expired).
Type: integer between 0 and 2 (both inclusive)
Default:
0
Declared by:
services.steam-servers."7-days-to-die".<name>.config.LandClaimExpiryTime
The number of real world days a player can be offline before their claims expire and are no longer protected
Type: signed integer
Default:
7
Declared by:
services.steam-servers."7-days-to-die".<name>.config.LandClaimOfflineDelay
The number of minutes after a player logs out that the land claim area hardness transitions from online to offline. Default is 0
Type: signed integer
Default:
0
Declared by:
services.steam-servers."7-days-to-die".<name>.config.LandClaimOfflineDurabilityModifier
How much protected claim area block hardness is increased when a player is offline. 0 means infinite (no damage will ever be taken). Default is 4x
Type: signed integer
Default:
4
Declared by:
services.steam-servers."7-days-to-die".<name>.config.LandClaimOnlineDurabilityModifier
How much protected claim area block hardness is increased when a player is online. 0 means infinite (no damage will ever be taken). Default is 4x
Type: signed integer
Default:
4
Declared by:
services.steam-servers."7-days-to-die".<name>.config.LandClaimSize
Size in blocks that is protected by a keystone
Type: signed integer
Default:
41
Declared by:
services.steam-servers."7-days-to-die".<name>.config.Language
Primary language for players on this server. Values: Use any language name that you would users expect to search for. Should be the English name of the language, e.g. not ‘Deutsch’ but ‘German’
Type: string
Default:
"English"
Declared by:
services.steam-servers."7-days-to-die".<name>.config.LootAbundance
percentage in whole numbers
Type: signed integer
Default:
100
Declared by:
services.steam-servers."7-days-to-die".<name>.config.LootRespawnDays
days in whole numbers
Type: signed integer
Default:
7
Declared by:
services.steam-servers."7-days-to-die".<name>.config.MaxChunkAge
The number of in-game days which must pass since visiting a chunk before it will reset to its original state if not revisited or protected (e.g. by a land claim or bedroll being in close proximity).
Type: signed integer
Default:
-1
Declared by:
services.steam-servers."7-days-to-die".<name>.config.MaxQueuedMeshLayers
Maximum amount of Chunk mesh layers that can be enqueued during mesh generation. Reducing this will improve memory usage but may increase Chunk generation time
Type: signed integer
Default:
1000
Declared by:
services.steam-servers."7-days-to-die".<name>.config.MaxSpawnedAnimals
If your server has a large number of players you can increase this limit to add more wildlife. Animals don’t consume as much CPU as zombies. NOTE: That this doesn’t cause more animals to spawn arbitrarily: The biome spawning system only spawns a certain number of animals in a given area, but if you have lots of players that are all spread out then you may be hitting the limit and can increase it.
Type: signed integer
Default:
50
Declared by:
services.steam-servers."7-days-to-die".<name>.config.MaxSpawnedZombies
This setting covers the entire map. There can only be this many zombies on the entire map at one time. Changing this setting has a huge impact on performance.
Type: signed integer
Default:
64
Declared by:
services.steam-servers."7-days-to-die".<name>.config.MaxUncoveredMapChunksPerPlayer
Override how many chunks can be uncovered on the ingame map by each player. Resulting max map file size limit per player is (x * 512 Bytes), uncovered area is (x * 256 m²). Default 131072 means max 32 km² can be uncovered at any time
Type: signed integer
Default:
131072
Declared by:
services.steam-servers."7-days-to-die".<name>.config.PartySharedKillRange
The distance you must be within to receive party shared kill xp and quest party kill objective credit.
Type: signed integer
Default:
100
Declared by:
services.steam-servers."7-days-to-die".<name>.config.PersistentPlayerProfiles
If disabled a player can join with any selected profile. If true they will join with the last profile they joined with
Type: boolean
Default:
false
Declared by:
services.steam-servers."7-days-to-die".<name>.config.PlayerKillingMode
Player Killing Settings (0 = No Killing, 1 = Kill Allies Only, 2 = Kill Strangers Only, 3 = Kill Everyone)
Type: signed integer
Default:
3
Declared by:
services.steam-servers."7-days-to-die".<name>.config.PlayerSafeZoneHours
Hours in world time this safe zone exists
Type: signed integer
Default:
5
Declared by:
services.steam-servers."7-days-to-die".<name>.config.PlayerSafeZoneLevel
If a player is less or equal this level he will create a safe zone (no enemies) when spawned
Type: signed integer
Default:
5
Declared by:
services.steam-servers."7-days-to-die".<name>.config.Region
region this server is in. Values: NorthAmericaEast, NorthAmericaWest, CentralAmerica, SouthAmerica, Europe, Russia, Asia, MiddleEast, Africa, Oceania
Type: string
Default:
"NorthAmericaEast"
Declared by:
services.steam-servers."7-days-to-die".<name>.config.SaveDataLimit
The maximum disk space allowance for each saved game in megabytes (MB). Saved chunks may be forceably reset to their original states to free up space when this limit is reached. Negative values disable the limit.
Type: signed integer
Default:
-1
Declared by:
services.steam-servers."7-days-to-die".<name>.config.SaveGameFolder
Use this to only override the save game path.
Type: string
Default:
"/var/lib/steam-servers/7-days-to-die/‹name›/UserData/Saves"
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ServerAdminSlots
This many admins can still join even if the server has reached MaxPlayerCount
Type: signed integer
Default:
0
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ServerAdminSlotsPermission
Required permission level to use the admin slots above
Type: signed integer
Default:
0
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ServerDescription
you want the server description to be, will be shown in the server browser.
Type: string
Default:
"A 7 Days to Die server"
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ServerDisabledNetworkProtocols
protocols that should not be used. Separated by comma. Possible values: LiteNetLib, SteamNetworking. Dedicated servers should disable SteamNetworking if there is no NAT router in between your users and the server or when port-forwarding is set up correctly
Type: string
Default:
"SteamNetworking"
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ServerLoginConfirmationText
If set the user will see the message during joining the server and has to confirm it before continuing. For more complex changes to this window you can change the ‘serverjoinrulesdialog’ window in XUi
Type: string
Default:
""
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ServerMaxAllowedViewDistance
Max viewdistance a client may request (6 - 12). High impact on memory usage and performance.
Type: signed integer
Default:
12
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ServerMaxPlayerCount
Maximum Concurrent Players
Type: signed integer
Default:
8
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ServerMaxWorldTransferSpeedKiBs
Maximum (!) speed in kiB/s the world is transferred at to a client on first connect if it does not have the world yet. Maximum is about 1300 kiB/s, even if you set a higher value.
Type: signed integer
Default:
512
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ServerName
Whatever you want the name of the server to be.
Type: string
Default:
"My Game Host"
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ServerPassword
Password to gain entry to the server
Type: string
Default:
""
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ServerPort
Port you want the server to listen on. Keep it in the ranges 26900 to 26905 or 27015 to 27020 if you want PCs on the same LAN to find it as a LAN server.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
26900
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ServerReservedSlots
Out of the MaxPlayerCount this many slots can only be used by players with a specific permission level
Type: signed integer
Default:
0
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ServerReservedSlotsPermission
Required permission level to use reserved slots above
Type: signed integer
Default:
100
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ServerVisibility
Visibility of this server: 2 = public, 1 = only shown to friends, 0 = not listed. As you are never friend of a dedicated server setting this to “1” will only work when the first player connects manually by IP.
Type: integer between 0 and 2 (both inclusive)
Default:
0
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ServerWebsiteURL
Website URL for the server, will be shown in the serverbrowser as a clickable link
Type: string
Default:
""
Declared by:
services.steam-servers."7-days-to-die".<name>.config.TelnetEnabled
Enable/Disable the telnet
Type: boolean
Default:
true
Declared by:
services.steam-servers."7-days-to-die".<name>.config.TelnetFailedLoginLimit
After this many wrong passwords from a single remote client the client will be blocked from connecting to the Telnet interface
Type: signed integer
Default:
10
Declared by:
services.steam-servers."7-days-to-die".<name>.config.TelnetFailedLoginsBlocktime
How long will the block persist (in seconds)
Type: signed integer
Default:
10
Declared by:
services.steam-servers."7-days-to-die".<name>.config.TelnetPassword
Password to gain entry to telnet interface. If no password is set the server will only listen on the local loopback interface
Type: string
Default:
""
Declared by:
services.steam-servers."7-days-to-die".<name>.config.TelnetPort
Port of the telnet server
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
8081
Declared by:
services.steam-servers."7-days-to-die".<name>.config.TerminalWindowEnabled
Show a terminal window for log output / command input (Windows only)
Type: boolean
Default:
true
Declared by:
services.steam-servers."7-days-to-die".<name>.config.TwitchBloodMoonAllowed
If the server allows twitch actions during a blood moon. This could cause server lag with extra zombies being spawned during blood moon.
Type: boolean
Default:
false
Declared by:
services.steam-servers."7-days-to-die".<name>.config.TwitchServerPermission
Required permission level to use twitch integration on the server
Type: signed integer
Default:
90
Declared by:
services.steam-servers."7-days-to-die".<name>.config.UserDataFolder
Use this to override where the server stores all generated data, including RWG generated worlds.
Type: string
Default:
"/var/lib/steam-servers/7-days-to-die/‹name›/UserData"
Declared by:
services.steam-servers."7-days-to-die".<name>.config.WebDashboardEnabled
Enable/disable the web dashboard
Type: boolean
Default:
false
Declared by:
services.steam-servers."7-days-to-die".<name>.config.WebDashboardPort
Port of the web dashboard
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
8080
Declared by:
services.steam-servers."7-days-to-die".<name>.config.WebDashboardUrl
External URL to the web dashboard if not just using the public IP of the server, e.g. if the web dashboard is behind a reverse proxy. Needs to be the full URL, like ‘https://domainOfReverseProxy.tld:1234/’. Can be left empty if directly using the public IP and dashboard port
Type: string
Default:
""
Declared by:
services.steam-servers."7-days-to-die".<name>.config.WorldGenSeed
If RWG this is the seed for the generation of the new world. If a world with the resulting name already exists it will simply load it
Type: string
Default:
"asdf"
Declared by:
services.steam-servers."7-days-to-die".<name>.config.WorldGenSize
If RWG, this controls the width and height of the created world. Officially supported sizes are between 6144 and 10240 and must be a multiple of 2048, e.g. 6144, 8192, 10240.
Type: signed integer
Default:
6144
Declared by:
services.steam-servers."7-days-to-die".<name>.config.XPMultiplier
XP gain multiplier (percentage in whole numbers)
Type: signed integer
Default:
100
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ZombieBMMove
0-4 (walk, jog, run, sprint, nightmare)
Type: integer between 0 and 3 (both inclusive)
Default:
3
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ZombieFeralMove
0-4 (walk, jog, run, sprint, nightmare)
Type: integer between 0 and 3 (both inclusive)
Default:
3
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ZombieFeralSense
0-3 (Off, Day, Night, All)
Type: integer between 0 and 3 (both inclusive)
Default:
0
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ZombieMove
0-4 (walk, jog, run, sprint, nightmare)
Type: integer between 0 and 3 (both inclusive)
Default:
0
Declared by:
services.steam-servers."7-days-to-die".<name>.config.ZombieMoveNight
0-4 (walk, jog, run, sprint, nightmare)
Type: integer between 0 and 3 (both inclusive)
Default:
3
Declared by:
services.steam-servers."7-days-to-die".<name>.datadir
Directory to store save state of the game server. (eg world, saves, etc)
Type: path
Default:
${services.steam-servers.datadir}/7-days-to-die/${name}
Declared by:
services.steam-servers."7-days-to-die".<name>.extraArgs
Extra command line arguments to pass to the server
Type: list of string
Default:
[ ]
Declared by:
services.steam-servers."7-days-to-die".<name>.logFile
Logfile to output logs to
Type: string
Default:
"/var/lib/steam-servers/7-days-to-die/‹name›/output_log__`date +%Y-%m-%d__%H-%M-%S`.txt"
Declared by:
services.steam-servers."7-days-to-die".<name>.openFirewall
Whether to open ports in the firewall. Does not open telnet/admin ports
Type: boolean
Default:
false
Declared by: