services (F)

services.factorio.admins

List of player names which will be admin.

Type: list of string

Default: [ ]

Example:

[
  "username"
]

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.allowedPlayers

If non-empty, only these player names are allowed to connect. The game will not be able to save any changes made in-game with the /whitelist console command, though they will still take effect until the server is restarted.

If empty, the whitelist defaults to open, but can be managed with the in-game /whitelist console command (see: /help whitelist), which will cause changes to be saved to the game's state directory (see also: stateDirName).

Type: list of string

Default: [ ]

Example:

[
  "Rseding91"
  "Oxyd"
]

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.autosave-interval

Autosave interval in minutes.

Type: null or signed integer

Default: null

Example: 10

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.bind

The address to which the service should bind.

Type: string

Default: "0.0.0.0"

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.configFile

The server's configuration file.

The default file generated by this module contains lines essential to the server's operation. Use its contents as a basis for any customizations.

Type: absolute path

Default: configFile

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.description

Description of the game that will appear in the listing.

Type: null or string

Default: ""

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.enable

Whether to enable Factorio.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.extraArgs

Extra command line arguments.

Type: list of string

Default: [ ]

Example:

[
  "--rcon-bind=localhost:27015"
  "--rcon-password=..."
]

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.extraSettings

Extra game configuration that will go into server-settings.json

Type: attribute set

Default: { }

Example:

{
  max_players = 64;
}

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.extraSettingsFile

File, which is dynamically applied to server-settings.json before startup.

This option should be used for credentials.

For example a settings file could contain:

{
  "game-password": "hunter1"
}

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.game-name

Name of the game as it will appear in the game listing.

Type: null or string

Default: "Factorio Game"

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.game-password

Game password.

This option is insecure. Use extraSettingsFile instead.

Type: null or string

Default: null

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.lan

Game will be broadcast on LAN.

Type: boolean

Default: false

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.loadLatestSave

Load the latest savegame on startup. This overrides saveName, in that the latest save will always be used even if a saved game of the given name exists. It still controls the 'canonical' name of the savegame.

Set this to true to have the server automatically reload a recent autosave after a crash or desync.

Type: boolean

Default: false

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.mods

Mods the server should install and activate.

The derivations in this list must "build" the mod by simply copying the .zip, named correctly, into the output directory. Eventually, there will be a way to pull in the most up-to-date list of derivations via nixos-channel. Until then, this is for experts only.

Type: list of package

Default: [ ]

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.mods-dat

Mods settings can be changed by specifying a dat file, in the mod settings file format.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.nonBlockingSaving

Highly experimental feature, enable only at your own risk of losing your saves. On UNIX systems, server will fork itself to create an autosave. Autosaving on connected Windows clients will be disabled regardless of autosave_only_on_server option.

Type: boolean

Default: false

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.openFirewall

Whether to automatically open the specified UDP port in the firewall.

Type: boolean

Default: false

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.package

The factorio-headless package to use.

Type: package

Default: pkgs.factorio-headless

Example: factorio-headless-experimental

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.password

Your factorio.com login credentials. Required for games with visibility public.

This option is insecure. Use extraSettingsFile instead.

Type: null or string

Default: null

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.port

The port to which the service should bind.

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

Default: 34197

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.public

Game will be published on the official Factorio matching server.

Type: boolean

Default: false

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.requireUserVerification

When set to true, the server will only allow clients that have a valid factorio.com account.

Type: boolean

Default: true

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.saveName

The name of the savegame that will be used by the server.

When not present in /var/lib/${config.services.factorio.stateDirName}/saves, a new map with default settings will be generated before starting the service.

Type: string

Default: "default"

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.stateDirName

Name of the directory under /var/lib holding the server's data.

The configuration and map will be stored here.

Type: string

Default: "factorio"

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.token

Authentication token. May be used instead of 'password' above.

Type: null or string

Default: null

Declared by: nixos/modules/services/games/factorio.nix

services.factorio.username

Your factorio.com login credentials. Required for games with visibility public.

This option is insecure. Use extraSettingsFile instead.

Type: null or string

Default: null

Declared by: nixos/modules/services/games/factorio.nix

services.fail2ban.banaction

Default banning action (e.g. iptables, iptables-new, iptables-multiport, iptables-ipset-proto6-allports, shorewall, etc). It is used to define action_* variables. Can be overridden globally or per section within jail.local file

Type: string

Default: if config.networking.nftables.enable then "nftables-multiport" else "iptables-multiport"

Declared by: nixos/modules/services/security/fail2ban.nix

services.fail2ban.banaction-allports

Default banning action (e.g. iptables, iptables-new, iptables-multiport, shorewall, etc) for "allports" jails. It is used to define action_* variables. Can be overridden globally or per section within jail.local file

Type: string

Default: if config.networking.nftables.enable then "nftables-allports" else "iptables-allports"

Declared by: nixos/modules/services/security/fail2ban.nix

services.fail2ban.bantime

Number of seconds that a host is banned.

Type: string

Default: "10m"

Example: "1h"

Declared by: nixos/modules/services/security/fail2ban.nix

services.fail2ban.bantime-increment.enable

"bantime.increment" allows to use database for searching of previously banned ip's to increase a default ban time using special formula, default it is banTime * 1, 2, 4, 8, 16, 32 ...

Type: boolean

Default: false

Declared by: nixos/modules/services/security/fail2ban.nix

services.fail2ban.bantime-increment.factor

"bantime.factor" is a coefficient to calculate exponent growing of the formula or common multiplier, default value of factor is 1 and with default value of formula, the ban time grows by 1, 2, 4, 8, 16 ...

Type: null or string

Default: null

Example: "4"

Declared by: nixos/modules/services/security/fail2ban.nix

services.fail2ban.bantime-increment.formula

"bantime.formula" used by default to calculate next value of ban time, default value below, the same ban time growing will be reached by multipliers 1, 2, 4, 8, 16, 32 ...

Type: null or string

Default: null

Example: "ban.Time * math.exp(float(ban.Count+1)*banFactor)/math.exp(1*banFactor)"

Declared by: nixos/modules/services/security/fail2ban.nix

services.fail2ban.bantime-increment.maxtime

"bantime.maxtime" is the max number of seconds using the ban time can reach (don't grows further)

Type: null or string

Default: null

Example: "48h"

Declared by: nixos/modules/services/security/fail2ban.nix

services.fail2ban.bantime-increment.multipliers

"bantime.multipliers" used to calculate next value of ban time instead of formula, corresponding previously ban count and given "bantime.factor" (for multipliers default is 1); following example grows ban time by 1, 2, 4, 8, 16 ... and if last ban count greater as multipliers count, always used last multiplier (64 in example), for factor '1' and original ban time 600 - 10.6 hours

Type: null or string

Default: null

Example: "1 2 4 8 16 32 64"

Declared by: nixos/modules/services/security/fail2ban.nix

services.fail2ban.bantime-increment.overalljails

"bantime.overalljails" (if true) specifies the search of IP in the database will be executed cross over all jails, if false (default), only current jail of the ban IP will be searched.

Type: null or boolean

Default: null

Example: true

Declared by: nixos/modules/services/security/fail2ban.nix

services.fail2ban.bantime-increment.rndtime

"bantime.rndtime" is the max number of seconds using for mixing with random time to prevent "clever" botnets calculate exact time IP can be unbanned again

Type: null or string

Default: null

Example: "8m"

Declared by: nixos/modules/services/security/fail2ban.nix

services.fail2ban.daemonSettings

The contents of Fail2ban's main configuration file. It's generally not necessary to change it.

Type: attribute set of section of an INI file (attrs of INI atom (null, bool, int, float or string))

Default:

{
  Definition = {
    logtarget = "SYSLOG";
    socket = "/run/fail2ban/fail2ban.sock";
    pidfile = "/run/fail2ban/fail2ban.pid";
    dbfile = "/var/lib/fail2ban/fail2ban.sqlite3";
  };
}

Declared by: nixos/modules/services/security/fail2ban.nix

services.fail2ban.enable

Whether to enable the fail2ban service.

See the documentation of services (F) for what jails are enabled by default.

Type: boolean

Default: false

Declared by: nixos/modules/services/security/fail2ban.nix

services.fail2ban.extraPackages

Extra packages to be made available to the fail2ban service. The example contains the packages needed by the iptables-ipset-proto6 action.

Type: list of package

Default: [ ]

Example: [ pkgs.ipset ]

Declared by: nixos/modules/services/security/fail2ban.nix

services.fail2ban.ignoreIP

"ignoreIP" can be a list of IP addresses, CIDR masks or DNS hosts. Fail2ban will not ban a host which matches an address in this list. Several addresses can be defined using space (and/or comma) separator.

Type: list of string

Default: [ ]

Example:

[
  "192.168.0.0/16"
  "2001:DB8::42"
]

Declared by: nixos/modules/services/security/fail2ban.nix

services.fail2ban.jails

The configuration of each Fail2ban “jail”. A jail consists of an action (such as blocking a port using iptables) that is triggered when a filter applied to a log file triggers more than a certain number of times in a certain time period. Actions are defined in /etc/fail2ban/action.d, while filters are defined in /etc/fail2ban/filter.d.

NixOS comes with a default sshd jail; for it to work well, services (O) should be set to "VERBOSE" or higher so that fail2ban can observe failed login attempts. This module sets it to "VERBOSE" if not set otherwise, so enabling fail2ban can make SSH logs more verbose.

Type: attribute set of (strings concatenated with "\n" or (submodule))

Default: { }

Example:

{
  apache-nohome-iptables = {
    settings = {
      # Block an IP address if it accesses a non-existent
      # home directory more than 5 times in 10 minutes,
      # since that indicates that it's scanning.
      filter = "apache-nohome";
      action = ''iptables-multiport[name=HTTP, port="http,https"]'';
      logpath = "/var/log/httpd/error_log*";
      backend = "auto";
      findtime = 600;
      bantime = 600;
      maxretry = 5;
    };
  };
  dovecot = {
    settings = {
      # block IPs which failed to log-in
      # aggressive mode add blocking for aborted connections
      filter = "dovecot[mode=aggressive]";
      maxretry = 3;
    };
  };
};

Declared by: nixos/modules/services/security/fail2ban.nix

services.fail2ban.maxretry

Number of failures before a host gets banned.

Type: unsigned integer, meaning >=0

Default: 3

Declared by: nixos/modules/services/security/fail2ban.nix

services.fail2ban.package

The fail2ban package to use.

Type: package

Default: pkgs.fail2ban

Example: fail2ban_0_11

Declared by: nixos/modules/services/security/fail2ban.nix

services.fail2ban.packageFirewall

The firewall package used by fail2ban service. Defaults to the package for your firewall (iptables or nftables).

Type: package

Default: config.networking.firewall.package

Declared by: nixos/modules/services/security/fail2ban.nix

services.fakeroute.enable

Whether to enable the fakeroute service.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/fakeroute.nix

services.fakeroute.route

Fake route that will appear after the real one to any host running a traceroute.

Type: list of string

Default: [ ]

Example:

[
  "216.102.187.130"
  "4.0.1.122"
  "198.116.142.34"
  "63.199.8.242"
]

Declared by: nixos/modules/services/networking/fakeroute.nix

services.falco.enable

Whether to enable Falco, a runtime security tool that detects unexpected behavior from kernel events.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/security/falco.nix

services.falco.package

The falco package to use.

Type: package

Default: pkgs.falco

Declared by: nixos/modules/services/security/falco.nix

services.falco.rules

Rule files, each given as the YAML list of rules, macros and lists that Falco reads. The attribute name becomes the file name.

Files are loaded after the stock rules, in the lexical order of their names. Overrides of a stock rule or macro (override or append) must therefore come from here, not from the stock file itself. Prefix the names with a number to control the order.

See the rules reference for the format.

Type: attribute set of (YAML 1.1 value)

Default: { }

Example:

{
  "50-local" = [
    {
      rule = "Write below /etc by a build";
      desc = "A build modified /etc";
      condition = "evt.type in (open, openat, openat2) and evt.is_open_write=true and fd.name startswith /etc/ and proc.name = nix-daemon";
      output = "Build wrote to /etc (file=%fd.name proc=%proc.name)";
      priority = "WARNING";
    }
  ];
}

Declared by: nixos/modules/services/security/falco.nix

services.falco.settings

Contents of falco.yaml. See the configuration reference for all keys.

Only what is set here is written, not the example file shipped with Falco, so a key you leave out takes Falco's built-in default. The module sets rules_files, load_plugins and plugins so that the stock rules and the container plugin are loaded. Lists you add to these are appended to them; use lib.mkForce to replace them.

Output goes to the journal by default. syslog_output and the webserver are disabled, since the former would log every alert twice and the latter listens on all interfaces upstream.

Type: YAML 1.1 value

Default: { }

Example:

{
  json_output = true;
  priority = "warning";
  file_output = {
    enabled = true;
    filename = "/var/log/falco/events.json";
  };
}

Declared by: nixos/modules/services/security/falco.nix

services.fanout.bufferSize

Size of /dev/fanout buffer in bytes

Type: signed integer

Default: 16384

Declared by: nixos/modules/config/fanout.nix

services.fanout.enable

Whether to enable fanout.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/config/fanout.nix

services.fanout.fanoutDevices

Number of /dev/fanout devices

Type: signed integer

Default: 1

Declared by: nixos/modules/config/fanout.nix

services.fastnetmon-advanced.bgpPeers

BGP Peers to declaratively load into FastNetMon Advanced

Type: attribute set of (YAML 1.1 value)

Default: { }

Declared by: nixos/modules/services/networking/fastnetmon-advanced.nix

services.fastnetmon-advanced.enable

Whether to enable the fastnetmon-advanced DDoS Protection daemon.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/fastnetmon-advanced.nix

services.fastnetmon-advanced.enableAdvancedTrafficPersistence

Store historical flow data in clickhouse

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/fastnetmon-advanced.nix

services.fastnetmon-advanced.hostgroups

Hostgroups to declaratively load into FastNetMon Advanced

Type: attribute set of (YAML 1.1 value)

Default: { }

Declared by: nixos/modules/services/networking/fastnetmon-advanced.nix

services.fastnetmon-advanced.settings

Extra configuration options to declaratively load into FastNetMon Advanced.

See the FastNetMon Advanced Configuration options reference for more details.

Type: YAML 1.1 value

Default: { }

Example:

{
  networks_list = [ "192.0.2.0/24" ];
  gobgp = true;
  gobgp_flow_spec_announces = true;
}

Declared by: nixos/modules/services/networking/fastnetmon-advanced.nix

services.fastnetmon-advanced.traffic_db.settings

Additional settings for /etc/fastnetmon/traffic_db.conf

Type: YAML 1.1 value

Default: null

Declared by: nixos/modules/services/networking/fastnetmon-advanced.nix

services.fcgiwrap.instances

Configuration for fcgiwrap instances.

Type: attribute set of (submodule)

Default: { }

Declared by: nixos/modules/services/web-servers/fcgiwrap.nix

services.fcgiwrap.instances.<name>.process.group

Group as which this instance of fcgiwrap will be run.

Type: null or string

Default: null

Declared by: nixos/modules/services/web-servers/fcgiwrap.nix

services.fcgiwrap.instances.<name>.process.prefork

Number of processes to prefork.

Type: positive integer, meaning >0

Default: 1

Declared by: nixos/modules/services/web-servers/fcgiwrap.nix

services.fcgiwrap.instances.<name>.process.user

User as which this instance of fcgiwrap will be run. Set to null (the default) to use a dynamically allocated user.

Type: null or string

Default: null

Declared by: nixos/modules/services/web-servers/fcgiwrap.nix

services.fcgiwrap.instances.<name>.socket.address

Socket address. In case of a UNIX socket, this should be its filesystem path.

Type: string

Default: "/run/fcgiwrap-‹name›.sock"

Example: "1.2.3.4:5678"

Declared by: nixos/modules/services/web-servers/fcgiwrap.nix

services.fcgiwrap.instances.<name>.socket.group

Group to be set as owner of the UNIX socket.

Type: null or string

Default: null

Declared by: nixos/modules/services/web-servers/fcgiwrap.nix

services.fcgiwrap.instances.<name>.socket.mode

Mode to be set on the UNIX socket. Defaults to private to the socket's owner.

Type: null or string

Default:

if config.socket.type == "unix" then "0600" else null

Declared by: nixos/modules/services/web-servers/fcgiwrap.nix

services.fcgiwrap.instances.<name>.socket.type

Socket type: 'unix', 'tcp' or 'tcp6'.

Type: one of "unix", "tcp", "tcp6"

Default: "unix"

Declared by: nixos/modules/services/web-servers/fcgiwrap.nix

services.fcgiwrap.instances.<name>.socket.user

User to be set as owner of the UNIX socket.

Type: null or string

Default: null

Declared by: nixos/modules/services/web-servers/fcgiwrap.nix

services.fcron.allow

Users allowed to use fcrontab and fcrondyn (one name per line, all for everyone).

Type: list of string

Default:

[
  "all"
]

Declared by: nixos/modules/services/scheduling/fcron.nix

services.fcron.deny

Users forbidden from using fcron.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/scheduling/fcron.nix

services.fcron.enable

Whether to enable the fcron daemon.

Type: boolean

Default: false

Declared by: nixos/modules/services/scheduling/fcron.nix

services.fcron.maxSerialJobs

Maximum number of serial jobs which can run simultaneously.

Type: signed integer

Default: 1

Declared by: nixos/modules/services/scheduling/fcron.nix

services.fcron.queuelen

Number of jobs the serial queue and the lavg queue can contain.

Type: null or signed integer

Default: null

Declared by: nixos/modules/services/scheduling/fcron.nix

services.fcron.systab

The "system" crontab contents.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/scheduling/fcron.nix

services.fedimintd

Specification of one or more fedimintd instances.

Type: attribute set of (submodule)

Default: { }

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.api_iroh.bind

Address to bind on for Iroh endpoint for API connections

Type: string

Default: "0.0.0.0"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.api_iroh.openFirewall

Opens UDP port in firewall for fedimintd's API Iroh endpoint

Type: boolean

Default: true

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.api_iroh.port

UDP Port to bind Iroh endpoint for API connections

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

Default: 8174

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.api_ws.bind

Address to bind on for API connections relied by the reverse proxy/tls terminator.

Type: string

Default: "127.0.0.1"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.api_ws.openFirewall

Opens TCP port in firewall for fedimintd's Websocket API

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.api_ws.port

TCP Port to bind on for API connections relayed by the reverse proxy/tls terminator.

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

Default: 8174

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.api_ws.url

Public URL of the API address of the reverse proxy/tls terminator. Usually starting with wss://.

Type: null or string

Default: null

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.bitcoin.network

Bitcoin network to participate in.

Type: string

Default: "signet"

Example: "bitcoin"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.bitcoin.rpc.kind

Kind of a bitcoin node.

Type: string

Default: "bitcoind"

Example: "electrum"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.bitcoin.rpc.secretFile

If set the URL specified in bitcoin.rpc.url will get the content of this file added as an URL password, so http://user@example.com will turn into http://user:SOMESECRET@example.com.

Example:

/etc/nix-bitcoin-secrets/bitcoin-rpcpassword-public (for nix-bitcoin default)

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.bitcoin.rpc.url

Bitcoin node (bitcoind/electrum/esplora) address to connect to

Type: string

Default: "http://127.0.0.1:38332"

Example: "signet"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.consensus.finalityDelay

Consensus peg-in finality delay.

Type: unsigned integer, meaning >=0

Default: 10

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.dataDir

Path to the data dir fedimintd will use to store its data. Note that due to using the DynamicUser feature of systemd, this value should not be changed and is set to be read only.

Type: absolute path

Default: "/var/lib/fedimintd-‹name›/"

Read only

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.enable

Whether to enable fedimintd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.environment

Extra Environment variables to pass to the fedimintd.

Type: attribute set of string

Default:

{
  RUST_BACKTRACE = "1";
}

Example:

{
  RUST_BACKTRACE = "1";
  RUST_LOG = "info,fm=debug";
}

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config

Overrides to the nginx vhost section for api

Type: submodule

Default: { }

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.acmeFallbackHost

Host which to proxy requests to if ACME challenge is not found. Useful if you want multiple hosts to be able to verify the same domain name.

With this option, you could request certificates for the present domain with an ACME client that is running on another host, which you would specify here.

Type: null or string

Default: null

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.acmeRoot

Directory for the ACME challenge, which is public. Don't put certs or keys in here. Set to null to inherit from config.security.acme.

Type: null or string

Default: "/var/lib/acme/acme-challenge"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.addSSL

Whether to enable HTTPS in addition to plain HTTP. This will set defaults for listen to listen on all interfaces on the respective default ports (80, 443).

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.basicAuth

Basic Auth protection for a vhost.

WARNING: This is implemented to store the password in plain text in the Nix store.

Type: attribute set of string

Default: { }

Example:

{
  user = "password";
};

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.basicAuthFile

Basic Auth password file for a vhost. Can be created by running nix-shell --packages apacheHttpd --run 'htpasswd -B -c FILENAME USERNAME'.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.default

Makes this vhost the default.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.enableACME

Whether to ask Let's Encrypt to sign a certificate for this vhost. Alternately, you can use an existing certificate through useACMEHost.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.extraConfig

These lines go to the end of the vhost verbatim.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.forceSSL

Whether to add a separate nginx server block that redirects (defaults to 301, configurable with redirectCode) all plain HTTP traffic to HTTPS. This will set defaults for listen to listen on all interfaces on the respective default ports (80, 443), where the non-SSL listens are used for the redirect vhosts.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.globalRedirect

If set, all requests for this host are redirected (defaults to 301, configurable with redirectCode) to the given hostname.

Type: null or string

Default: null

Example: "newserver.example.org"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.http2

Whether to enable the HTTP/2 protocol. Note that (as of writing) due to nginx's implementation, to disable HTTP/2 you have to disable it on all vhosts that use a given IP address / port. If there is one server block configured to enable http2, then it is enabled for all server blocks on this IP. See https://stackoverflow.com/a/39466948/263061.

Type: boolean

Default: true

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.http3

Whether to enable the HTTP/3 protocol. This requires activating the QUIC transport protocol services.nginx.virtualHosts.<name>.quic = true;. Note that HTTP/3 support is experimental and not yet recommended for production. Read more at https://quic.nginx.org/ HTTP/3 availability must be manually advertised, preferably in each location block.

Type: boolean

Default: true

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.http3_hq

Whether to enable the HTTP/0.9 protocol negotiation used in QUIC interoperability tests. This requires activating the QUIC transport protocol services.nginx.virtualHosts.<name>.quic = true;. Note that special application protocol support is experimental and not yet recommended for production. Read more at https://quic.nginx.org/

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.kTLS

Whether to enable kTLS support. Implementing TLS in the kernel (kTLS) improves performance by significantly reducing the need for copying operations between user space and the kernel. Required Nginx version 1.21.4 or later.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.listen

Listen addresses and ports for this virtual host. IPv6 addresses must be enclosed in square brackets. Note: this option overrides addSSL and onlySSL.

If you only want to set the addresses manually and not the ports, take a look at listenAddresses.

Type: list of (submodule)

Default: [ ]

Example:

[
  {
    addr = "195.154.1.1";
    port = 443;
    ssl = true;
  }
  {
    addr = "192.154.1.1";
    port = 80;
  }
  {
    addr = "unix:/var/run/nginx.sock";
  }
]

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.listen.*.addr

Listen address.

Type: string

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.listen.*.extraParameters

Extra parameters of this listen directive.

Type: list of string

Default: [ ]

Example:

[
  "backlog=1024"
  "deferred"
]

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.listen.*.port

Port number to listen on. If unset and the listen address is not a socket then nginx defaults to 80.

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

Default: null

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.listen.*.proxyProtocol

Enable PROXY protocol.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.listen.*.ssl

Enable SSL.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.listenAddresses

Listen addresses for this virtual host. Compared to listen this only sets the addresses and the ports are chosen automatically.

Note: This option overrides networking.enableIPv6

Type: list of string

Default: [ ]

Example:

[
  "127.0.0.1"
  "[::1]"
]

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.locations

Declarative location config

Type: attribute set of (submodule)

Default: { }

Example:

{
  "/" = {
    proxyPass = "http://localhost:3000";
  };
};

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.locations.<name>.alias

Alias directory for requests.

Type: null or absolute path

Default: null

Example: "/your/alias/directory"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.locations.<name>.basicAuth

Basic Auth protection for a vhost.

WARNING: This is implemented to store the password in plain text in the Nix store.

Type: attribute set of string

Default: { }

Example:

{
  user = "password";
};

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.locations.<name>.basicAuthFile

Basic Auth password file for a vhost. Can be created by running nix-shell --packages apacheHttpd --run 'htpasswd -B -c FILENAME USERNAME'.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.locations.<name>.extraConfig

These lines go to the end of the location verbatim.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.locations.<name>.fastcgiParams

FastCGI parameters to override. Unlike in the Nginx configuration file, overriding only some default parameters won't unset the default values for other parameters.

Type: attribute set of (string or absolute path)

Default: { }

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.locations.<name>.index

Adds index directive.

Type: null or string

Default: null

Example: "index.php index.html"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.locations.<name>.priority

Order of this location block in relation to the others in the vhost. The semantics are the same as with lib.mkOrder. Smaller values have a greater priority.

Type: signed integer

Default: 1000

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.locations.<name>.proxyPass

Adds proxy_pass directive and sets recommended proxy headers if recommendedProxySettings is enabled.

Type: null or string

Default: null

Example: "http://www.example.org/"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.locations.<name>.proxyWebsockets

Whether to support proxying websocket connections with HTTP/1.1.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.locations.<name>.recommendedProxySettings

Enable recommended proxy settings.

Type: boolean

Default: config.services.nginx.recommendedProxySettings

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.locations.<name>.recommendedUwsgiSettings

Enable recommended uwsgi settings.

Type: boolean

Default: config.services.nginx.recommendedUwsgiSettings

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.locations.<name>.return

Adds a return directive, for e.g. redirections.

Type: null or string or signed integer

Default: null

Example: "301 http://example.com$request_uri"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.locations.<name>.root

Root directory for requests.

Type: null or absolute path

Default: null

Example: "/your/root/directory"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.locations.<name>.tryFiles

Adds try_files directive.

Type: null or string

Default: null

Example: "$uri =404"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.locations.<name>.useGrpcErrorPages

Whether to configure error codes to be emitted as gRPC-compatible errors.

Should be set when proxying gRPC, and returning responses from nginx (like when adding authentication).

This defines a few @grpc-* locations inside the containing vhost.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.locations.<name>.uwsgiPass

Adds uwsgi_pass directive and sets recommended proxy headers if recommendedUwsgiSettings is enabled.

Type: null or string

Default: null

Example: "unix:/run/example/example.sock"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.onlySSL

Whether to enable HTTPS and reject plain HTTP connections. This will set defaults for listen to listen on all interfaces on port 443.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.quic

Whether to enable the QUIC transport protocol. Note that QUIC support is experimental and not yet recommended for production. Read more at https://quic.nginx.org/

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.redirectCode

HTTP status used by globalRedirect and forceSSL. Possible usecases include temporary (302, 307) redirects, keeping the request method and body (307, 308), or explicitly resetting the method to GET (303). See https://developer.mozilla.org/en-US/docs/Web/HTTP/Redirections.

Type: integer between 300 and 399 (both inclusive)

Default: 301

Example: 308

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.rejectSSL

Whether to listen for and reject all HTTPS connections to this vhost. Useful in default server blocks to avoid serving the certificate for another vhost. Uses the ssl_reject_handshake directive available in nginx versions 1.19.4 and above.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.reuseport

Create an individual listening socket . It is required to specify only once on one of the hosts.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.root

The path of the web root directory.

Type: null or absolute path

Default: null

Example: "/data/webserver/docs"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.serverAliases

Additional names of virtual hosts served by this virtual host configuration.

Type: list of string

Default: [ ]

Example:

[
  "www.example.org"
  "example.org"
]

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.serverName

Name of this virtual host. Defaults to attribute name in virtualHosts.

Type: null or string

Default: null

Example: "example.org"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.sslCertificate

Path to server SSL certificate.

Type: absolute path

Example: "/var/host.cert"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.sslCertificateKey

Path to server SSL certificate key.

Type: absolute path

Example: "/var/host.key"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.sslTrustedCertificate

Path to root SSL certificate for stapling and client certificates.

Type: null or absolute path

Default: null

Example: "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.config.useACMEHost

A host of an existing Let's Encrypt certificate to use. This is useful if you have many subdomains and want to avoid hitting the rate limit. Alternately, you can generate a certificate through enableACME. Note that this option does not create any certificates, nor it does add subdomains to existing ones – you will need to create them manually using security.

Type: null or string

Default: null

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.enable

Whether to configure nginx for fedimintd

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.fqdn

Public domain of the API address of the reverse proxy/tls terminator.

Type: string

Example: "api.myfedimint.com"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.path_ui

Path to host the built-in UI on and forward to the daemon's api port

Type: string

Default: "/"

Example: "/"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.nginx.path_ws

Path to host the API on and forward to the daemon's api port

Type: string

Default: "/ws/"

Example: "/"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.p2p.bind

Address to bind on for p2p connections from peers (both TCP and UDP)

Type: string

Default: "0.0.0.0"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.p2p.openFirewall

Opens port in firewall for fedimintd's p2p port (both TCP and UDP)

Type: boolean

Default: true

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.p2p.port

Port to bind on for p2p connections from peers (both TCP and UDP)

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

Default: 8173

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.p2p.url

Public address for p2p connections from peers (if TCP is used)

Type: null or string

Default: null

Example: "fedimint://p2p.myfedimint.com:8173"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.package

The fedimint package to use.

Type: package

Default: pkgs.fedimint

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.ui.bind

Address to bind on for UI connections

Type: string

Default: "127.0.0.1"

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.ui.openFirewall

Opens TCP port in firewall for built-in UI

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fedimintd.<name>.ui.port

TCP Port to bind on for UI connections

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

Default: 8175

Declared by: nixos/modules/services/networking/fedimintd.nix

services.fediwall.enable

Whether to enable fediwall, a social media wall for the fediverse.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.hostName

The hostname to serve fediwall on.

Type: string

Default: config.networking.fqdnOrHostName

Example: "fediwall.example.org"

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx

Allows customizing the nginx virtualHost settings

Type: submodule

Default: { }

Example:

{
  serverAliases = [
    "fedi.${config.networking.domain}"
  ];
  # Enable TLS and use let's encrypt for ACME
  forceSSL = true;
  enableACME = true;
}

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.acmeFallbackHost

Host which to proxy requests to if ACME challenge is not found. Useful if you want multiple hosts to be able to verify the same domain name.

With this option, you could request certificates for the present domain with an ACME client that is running on another host, which you would specify here.

Type: null or string

Default: null

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.acmeRoot

Directory for the ACME challenge, which is public. Don't put certs or keys in here. Set to null to inherit from config.security.acme.

Type: null or string

Default: "/var/lib/acme/acme-challenge"

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.addSSL

Whether to enable HTTPS in addition to plain HTTP. This will set defaults for listen to listen on all interfaces on the respective default ports (80, 443).

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.basicAuth

Basic Auth protection for a vhost.

WARNING: This is implemented to store the password in plain text in the Nix store.

Type: attribute set of string

Default: { }

Example:

{
  user = "password";
};

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.basicAuthFile

Basic Auth password file for a vhost. Can be created by running nix-shell --packages apacheHttpd --run 'htpasswd -B -c FILENAME USERNAME'.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.default

Makes this vhost the default.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.enableACME

Whether to ask Let's Encrypt to sign a certificate for this vhost. Alternately, you can use an existing certificate through useACMEHost.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.extraConfig

These lines go to the end of the vhost verbatim.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.forceSSL

Whether to add a separate nginx server block that redirects (defaults to 301, configurable with redirectCode) all plain HTTP traffic to HTTPS. This will set defaults for listen to listen on all interfaces on the respective default ports (80, 443), where the non-SSL listens are used for the redirect vhosts.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.globalRedirect

If set, all requests for this host are redirected (defaults to 301, configurable with redirectCode) to the given hostname.

Type: null or string

Default: null

Example: "newserver.example.org"

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.http2

Whether to enable the HTTP/2 protocol. Note that (as of writing) due to nginx's implementation, to disable HTTP/2 you have to disable it on all vhosts that use a given IP address / port. If there is one server block configured to enable http2, then it is enabled for all server blocks on this IP. See https://stackoverflow.com/a/39466948/263061.

Type: boolean

Default: true

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.http3

Whether to enable the HTTP/3 protocol. This requires activating the QUIC transport protocol services.nginx.virtualHosts.<name>.quic = true;. Note that HTTP/3 support is experimental and not yet recommended for production. Read more at https://quic.nginx.org/ HTTP/3 availability must be manually advertised, preferably in each location block.

Type: boolean

Default: true

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.http3_hq

Whether to enable the HTTP/0.9 protocol negotiation used in QUIC interoperability tests. This requires activating the QUIC transport protocol services.nginx.virtualHosts.<name>.quic = true;. Note that special application protocol support is experimental and not yet recommended for production. Read more at https://quic.nginx.org/

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.kTLS

Whether to enable kTLS support. Implementing TLS in the kernel (kTLS) improves performance by significantly reducing the need for copying operations between user space and the kernel. Required Nginx version 1.21.4 or later.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.listen

Listen addresses and ports for this virtual host. IPv6 addresses must be enclosed in square brackets. Note: this option overrides addSSL and onlySSL.

If you only want to set the addresses manually and not the ports, take a look at listenAddresses.

Type: list of (submodule)

Default: [ ]

Example:

[
  {
    addr = "195.154.1.1";
    port = 443;
    ssl = true;
  }
  {
    addr = "192.154.1.1";
    port = 80;
  }
  {
    addr = "unix:/var/run/nginx.sock";
  }
]

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.listen.*.addr

Listen address.

Type: string

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.listen.*.extraParameters

Extra parameters of this listen directive.

Type: list of string

Default: [ ]

Example:

[
  "backlog=1024"
  "deferred"
]

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.listen.*.port

Port number to listen on. If unset and the listen address is not a socket then nginx defaults to 80.

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

Default: null

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.listen.*.proxyProtocol

Enable PROXY protocol.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.listen.*.ssl

Enable SSL.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.listenAddresses

Listen addresses for this virtual host. Compared to listen this only sets the addresses and the ports are chosen automatically.

Note: This option overrides networking.enableIPv6

Type: list of string

Default: [ ]

Example:

[
  "127.0.0.1"
  "[::1]"
]

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.locations

Declarative location config

Type: attribute set of (submodule)

Default: { }

Example:

{
  "/" = {
    proxyPass = "http://localhost:3000";
  };
};

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.locations.<name>.alias

Alias directory for requests.

Type: null or absolute path

Default: null

Example: "/your/alias/directory"

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.locations.<name>.basicAuth

Basic Auth protection for a vhost.

WARNING: This is implemented to store the password in plain text in the Nix store.

Type: attribute set of string

Default: { }

Example:

{
  user = "password";
};

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.locations.<name>.basicAuthFile

Basic Auth password file for a vhost. Can be created by running nix-shell --packages apacheHttpd --run 'htpasswd -B -c FILENAME USERNAME'.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.locations.<name>.extraConfig

These lines go to the end of the location verbatim.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.locations.<name>.fastcgiParams

FastCGI parameters to override. Unlike in the Nginx configuration file, overriding only some default parameters won't unset the default values for other parameters.

Type: attribute set of (string or absolute path)

Default: { }

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.locations.<name>.index

Adds index directive.

Type: null or string

Default: null

Example: "index.php index.html"

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.locations.<name>.priority

Order of this location block in relation to the others in the vhost. The semantics are the same as with lib.mkOrder. Smaller values have a greater priority.

Type: signed integer

Default: 1000

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.locations.<name>.proxyPass

Adds proxy_pass directive and sets recommended proxy headers if recommendedProxySettings is enabled.

Type: null or string

Default: null

Example: "http://www.example.org/"

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.locations.<name>.proxyWebsockets

Whether to support proxying websocket connections with HTTP/1.1.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.locations.<name>.recommendedProxySettings

Enable recommended proxy settings.

Type: boolean

Default: config.services.nginx.recommendedProxySettings

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.locations.<name>.recommendedUwsgiSettings

Enable recommended uwsgi settings.

Type: boolean

Default: config.services.nginx.recommendedUwsgiSettings

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.locations.<name>.return

Adds a return directive, for e.g. redirections.

Type: null or string or signed integer

Default: null

Example: "301 http://example.com$request_uri"

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.locations.<name>.root

Root directory for requests.

Type: null or absolute path

Default: null

Example: "/your/root/directory"

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.locations.<name>.tryFiles

Adds try_files directive.

Type: null or string

Default: null

Example: "$uri =404"

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.locations.<name>.useGrpcErrorPages

Whether to configure error codes to be emitted as gRPC-compatible errors.

Should be set when proxying gRPC, and returning responses from nginx (like when adding authentication).

This defines a few @grpc-* locations inside the containing vhost.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.locations.<name>.uwsgiPass

Adds uwsgi_pass directive and sets recommended proxy headers if recommendedUwsgiSettings is enabled.

Type: null or string

Default: null

Example: "unix:/run/example/example.sock"

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.onlySSL

Whether to enable HTTPS and reject plain HTTP connections. This will set defaults for listen to listen on all interfaces on port 443.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.quic

Whether to enable the QUIC transport protocol. Note that QUIC support is experimental and not yet recommended for production. Read more at https://quic.nginx.org/

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.redirectCode

HTTP status used by globalRedirect and forceSSL. Possible usecases include temporary (302, 307) redirects, keeping the request method and body (307, 308), or explicitly resetting the method to GET (303). See https://developer.mozilla.org/en-US/docs/Web/HTTP/Redirections.

Type: integer between 300 and 399 (both inclusive)

Default: 301

Example: 308

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.rejectSSL

Whether to listen for and reject all HTTPS connections to this vhost. Useful in default server blocks to avoid serving the certificate for another vhost. Uses the ssl_reject_handshake directive available in nginx versions 1.19.4 and above.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.reuseport

Create an individual listening socket . It is required to specify only once on one of the hosts.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.root

The path of the web root directory.

Type: null or absolute path

Default: null

Example: "/data/webserver/docs"

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.serverAliases

Additional names of virtual hosts served by this virtual host configuration.

Type: list of string

Default: [ ]

Example:

[
  "www.example.org"
  "example.org"
]

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.serverName

Name of this virtual host. Defaults to attribute name in virtualHosts.

Type: null or string

Default: null

Example: "example.org"

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.sslCertificate

Path to server SSL certificate.

Type: absolute path

Example: "/var/host.cert"

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.sslCertificateKey

Path to server SSL certificate key.

Type: absolute path

Example: "/var/host.key"

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.sslTrustedCertificate

Path to root SSL certificate for stapling and client certificates.

Type: null or absolute path

Default: null

Example: "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.nginx.useACMEHost

A host of an existing Let's Encrypt certificate to use. This is useful if you have many subdomains and want to avoid hitting the rate limit. Alternately, you can generate a certificate through enableACME. Note that this option does not create any certificates, nor it does add subdomains to existing ones – you will need to create them manually using security.

Type: null or string

Default: null

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.package

The fediwall package to use.

Type: package

Default: pkgs.fediwall

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.settings

Fediwall configuration. See https://github.com/defnull/fediwall/blob/main/public/wall-config.json.example for information on supported values.

Type: open submodule of (JSON value)

Default: { }

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.settings.hideBoosts

Hide boosts

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.settings.hideBots

Hide posts from bot accounts

Type: boolean

Default: true

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.settings.hideReplies

Hide replies

Type: boolean

Default: true

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.settings.hideSensitive

Hide sensitive (potentially NSFW) posts

Type: boolean

Default: true

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.settings.loadFederated

Load federated posts

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.settings.loadPublic

Load public posts

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.settings.loadTrends

Load trending posts

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.settings.playVideos

Autoplay videos in posts

Type: boolean

Default: true

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.settings.servers

Servers to load posts from

Type: list of string

Default:

[
  "mastodon.social"
]

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.settings.showMedia

Show media in posts

Type: boolean

Default: true

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.fediwall.settings.tags

Tags to follow

Type: list of string

Default: [ ]

Example: [ "cats" "dogs"]

Declared by: nixos/modules/services/web-apps/fediwall.nix

services.feishin.caddy.enable

Whether to enable a virtualhost to serve Feishin through Caddy.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.caddy.virtualHost

Extra configuration for the Caddy virtualhost for Feishin.

Type: submodule

Default: { }

Example:

{
  serverAliases = [ "feishin.${config.networking.domain}" ];
}

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.caddy.virtualHost.extraConfig

Additional lines of configuration appended to this virtual host in the automatically generated Caddyfile.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.caddy.virtualHost.hostName

Canonical hostname for the server.

Type: string

Default: "‹name›"

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.caddy.virtualHost.listenAddresses

A list of host interfaces to bind to for this virtual host.

Type: list of string

Default: [ ]

Example:

[
  "127.0.0.1"
  "::1"
]

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.caddy.virtualHost.logFormat

Configuration for HTTP request logging (also known as access logs). See https://caddyserver.com/docs/caddyfile/directives/log#log for details.

Type: null or strings concatenated with "\n"

Default:

''
  output file ''${config.services.caddy.logDir}/access-''${hostName}.log
''

Example:

mkForce ''
  output discard
'';

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.caddy.virtualHost.serverAliases

Additional names of virtual hosts served by this virtual host configuration.

Type: list of string

Default: [ ]

Example:

[
  "www.example.org"
  "example.org"
]

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.caddy.virtualHost.useACMEHost

A host of an existing Let's Encrypt certificate to use. This is mostly useful if you use DNS challenges but Caddy does not currently support your provider.

Note that this option does not create any certificates, nor does it add subdomains to existing ones – you will need to create them manually using security.

Type: null or string

Default: null

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.domain

Domain to use for the virtualhost.

Type: string

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.enable

Whether to enable the web version of Feishin.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.enable

Whether to enable a virtualhost to serve Feishin through nginx.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost

Extra configuration for the nginx virtualhost for Feishin.

Type: submodule

Default: { }

Example:

{
  serverAliases = [ "feishin.${config.networking.domain}" ];
}

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.acmeFallbackHost

Host which to proxy requests to if ACME challenge is not found. Useful if you want multiple hosts to be able to verify the same domain name.

With this option, you could request certificates for the present domain with an ACME client that is running on another host, which you would specify here.

Type: null or string

Default: null

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.acmeRoot

Directory for the ACME challenge, which is public. Don't put certs or keys in here. Set to null to inherit from config.security.acme.

Type: null or string

Default: "/var/lib/acme/acme-challenge"

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.addSSL

Whether to enable HTTPS in addition to plain HTTP. This will set defaults for listen to listen on all interfaces on the respective default ports (80, 443).

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.basicAuth

Basic Auth protection for a vhost.

WARNING: This is implemented to store the password in plain text in the Nix store.

Type: attribute set of string

Default: { }

Example:

{
  user = "password";
};

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.basicAuthFile

Basic Auth password file for a vhost. Can be created by running nix-shell --packages apacheHttpd --run 'htpasswd -B -c FILENAME USERNAME'.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.default

Makes this vhost the default.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.enableACME

Whether to ask Let's Encrypt to sign a certificate for this vhost. Alternately, you can use an existing certificate through useACMEHost.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.extraConfig

These lines go to the end of the vhost verbatim.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.forceSSL

Whether to add a separate nginx server block that redirects (defaults to 301, configurable with redirectCode) all plain HTTP traffic to HTTPS. This will set defaults for listen to listen on all interfaces on the respective default ports (80, 443), where the non-SSL listens are used for the redirect vhosts.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.globalRedirect

If set, all requests for this host are redirected (defaults to 301, configurable with redirectCode) to the given hostname.

Type: null or string

Default: null

Example: "newserver.example.org"

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.http2

Whether to enable the HTTP/2 protocol. Note that (as of writing) due to nginx's implementation, to disable HTTP/2 you have to disable it on all vhosts that use a given IP address / port. If there is one server block configured to enable http2, then it is enabled for all server blocks on this IP. See https://stackoverflow.com/a/39466948/263061.

Type: boolean

Default: true

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.http3

Whether to enable the HTTP/3 protocol. This requires activating the QUIC transport protocol services.nginx.virtualHosts.<name>.quic = true;. Note that HTTP/3 support is experimental and not yet recommended for production. Read more at https://quic.nginx.org/ HTTP/3 availability must be manually advertised, preferably in each location block.

Type: boolean

Default: true

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.http3_hq

Whether to enable the HTTP/0.9 protocol negotiation used in QUIC interoperability tests. This requires activating the QUIC transport protocol services.nginx.virtualHosts.<name>.quic = true;. Note that special application protocol support is experimental and not yet recommended for production. Read more at https://quic.nginx.org/

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.kTLS

Whether to enable kTLS support. Implementing TLS in the kernel (kTLS) improves performance by significantly reducing the need for copying operations between user space and the kernel. Required Nginx version 1.21.4 or later.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.listen

Listen addresses and ports for this virtual host. IPv6 addresses must be enclosed in square brackets. Note: this option overrides addSSL and onlySSL.

If you only want to set the addresses manually and not the ports, take a look at listenAddresses.

Type: list of (submodule)

Default: [ ]

Example:

[
  {
    addr = "195.154.1.1";
    port = 443;
    ssl = true;
  }
  {
    addr = "192.154.1.1";
    port = 80;
  }
  {
    addr = "unix:/var/run/nginx.sock";
  }
]

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.listen.*.addr

Listen address.

Type: string

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.listen.*.extraParameters

Extra parameters of this listen directive.

Type: list of string

Default: [ ]

Example:

[
  "backlog=1024"
  "deferred"
]

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.listen.*.port

Port number to listen on. If unset and the listen address is not a socket then nginx defaults to 80.

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

Default: null

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.listen.*.proxyProtocol

Enable PROXY protocol.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.listen.*.ssl

Enable SSL.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.listenAddresses

Listen addresses for this virtual host. Compared to listen this only sets the addresses and the ports are chosen automatically.

Note: This option overrides networking.enableIPv6

Type: list of string

Default: [ ]

Example:

[
  "127.0.0.1"
  "[::1]"
]

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.locations

Declarative location config

Type: attribute set of (submodule)

Default: { }

Example:

{
  "/" = {
    proxyPass = "http://localhost:3000";
  };
};

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.locations.<name>.alias

Alias directory for requests.

Type: null or absolute path

Default: null

Example: "/your/alias/directory"

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.locations.<name>.basicAuth

Basic Auth protection for a vhost.

WARNING: This is implemented to store the password in plain text in the Nix store.

Type: attribute set of string

Default: { }

Example:

{
  user = "password";
};

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.locations.<name>.basicAuthFile

Basic Auth password file for a vhost. Can be created by running nix-shell --packages apacheHttpd --run 'htpasswd -B -c FILENAME USERNAME'.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.locations.<name>.extraConfig

These lines go to the end of the location verbatim.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.locations.<name>.fastcgiParams

FastCGI parameters to override. Unlike in the Nginx configuration file, overriding only some default parameters won't unset the default values for other parameters.

Type: attribute set of (string or absolute path)

Default: { }

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.locations.<name>.index

Adds index directive.

Type: null or string

Default: null

Example: "index.php index.html"

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.locations.<name>.priority

Order of this location block in relation to the others in the vhost. The semantics are the same as with lib.mkOrder. Smaller values have a greater priority.

Type: signed integer

Default: 1000

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.locations.<name>.proxyPass

Adds proxy_pass directive and sets recommended proxy headers if recommendedProxySettings is enabled.

Type: null or string

Default: null

Example: "http://www.example.org/"

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.locations.<name>.proxyWebsockets

Whether to support proxying websocket connections with HTTP/1.1.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.locations.<name>.recommendedProxySettings

Enable recommended proxy settings.

Type: boolean

Default: config.services.nginx.recommendedProxySettings

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.locations.<name>.recommendedUwsgiSettings

Enable recommended uwsgi settings.

Type: boolean

Default: config.services.nginx.recommendedUwsgiSettings

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.locations.<name>.return

Adds a return directive, for e.g. redirections.

Type: null or string or signed integer

Default: null

Example: "301 http://example.com$request_uri"

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.locations.<name>.root

Root directory for requests.

Type: null or absolute path

Default: null

Example: "/your/root/directory"

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.locations.<name>.tryFiles

Adds try_files directive.

Type: null or string

Default: null

Example: "$uri =404"

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.locations.<name>.useGrpcErrorPages

Whether to configure error codes to be emitted as gRPC-compatible errors.

Should be set when proxying gRPC, and returning responses from nginx (like when adding authentication).

This defines a few @grpc-* locations inside the containing vhost.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.locations.<name>.uwsgiPass

Adds uwsgi_pass directive and sets recommended proxy headers if recommendedUwsgiSettings is enabled.

Type: null or string

Default: null

Example: "unix:/run/example/example.sock"

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.onlySSL

Whether to enable HTTPS and reject plain HTTP connections. This will set defaults for listen to listen on all interfaces on port 443.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.quic

Whether to enable the QUIC transport protocol. Note that QUIC support is experimental and not yet recommended for production. Read more at https://quic.nginx.org/

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.redirectCode

HTTP status used by globalRedirect and forceSSL. Possible usecases include temporary (302, 307) redirects, keeping the request method and body (307, 308), or explicitly resetting the method to GET (303). See https://developer.mozilla.org/en-US/docs/Web/HTTP/Redirections.

Type: integer between 300 and 399 (both inclusive)

Default: 301

Example: 308

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.rejectSSL

Whether to listen for and reject all HTTPS connections to this vhost. Useful in default server blocks to avoid serving the certificate for another vhost. Uses the ssl_reject_handshake directive available in nginx versions 1.19.4 and above.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.reuseport

Create an individual listening socket . It is required to specify only once on one of the hosts.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.root

The path of the web root directory.

Type: null or absolute path

Default: null

Example: "/data/webserver/docs"

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.serverAliases

Additional names of virtual hosts served by this virtual host configuration.

Type: list of string

Default: [ ]

Example:

[
  "www.example.org"
  "example.org"
]

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.serverName

Name of this virtual host. Defaults to attribute name in virtualHosts.

Type: null or string

Default: null

Example: "example.org"

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.sslCertificate

Path to server SSL certificate.

Type: absolute path

Example: "/var/host.cert"

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.sslCertificateKey

Path to server SSL certificate key.

Type: absolute path

Example: "/var/host.key"

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.sslTrustedCertificate

Path to root SSL certificate for stapling and client certificates.

Type: null or absolute path

Default: null

Example: "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.nginx.virtualHost.useACMEHost

A host of an existing Let's Encrypt certificate to use. This is useful if you have many subdomains and want to avoid hitting the rate limit. Alternately, you can generate a certificate through enableACME. Note that this option does not create any certificates, nor it does add subdomains to existing ones – you will need to create them manually using security.

Type: null or string

Default: null

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.package

The feishin-web package to use.

Type: package

Default: pkgs.feishin-web

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.pathbase

URL path base to use for the virtualhost.

Type: string

Default: ""

Example: "/music"

Declared by: nixos/modules/services/web-apps/feishin.nix

services.feishin.settings

Configuration for the web version of Feishin, specified as key-value pairs.

Refer to https://github.com/jeffvli/feishin#configuration, and https://github.com/jeffvli/feishin/blob/development/settings.js.template for the template.

Type: attribute set of string

Default:

{
  ANALYTICS_DISABLED = "true";
}

Example:

{
  ANALYTICS_DISABLED = "true";
  SERVER_LOCK = "true";
  SERVER_NAME = "My Server";
}

Declared by: nixos/modules/services/web-apps/feishin.nix

services.felix.bundles

List of bundles that should be activated on startup

Type: list of package

Default: [ pkgs.felix_remoteshell ]

Declared by: nixos/modules/services/misc/felix.nix

services.felix.enable

Whether to enable the Apache Felix OSGi service.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/misc/felix.nix

services.felix.group

Group account under which Apache Felix runs.

Type: string

Default: "osgi"

Declared by: nixos/modules/services/misc/felix.nix

services.felix.user

User account under which Apache Felix runs.

Type: string

Default: "osgi"

Declared by: nixos/modules/services/misc/felix.nix

services.ferm.config

Verbatim ferm.conf configuration.

Type: strings concatenated with "\n"

Default: empty firewall, allows any traffic

Declared by: nixos/modules/services/networking/ferm.nix

services.ferm.enable

Whether to enable Ferm Firewall. Warning: Enabling this service WILL disable the existing NixOS firewall! Default firewall rules provided by packages are not considered at the moment.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/ferm.nix

services.ferm.package

The ferm package to use.

Type: package

Default: pkgs.ferm

Declared by: nixos/modules/services/networking/ferm.nix

services.ferretdb.enable

Whether to enable FerretDB, an Open Source MongoDB alternative.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/databases/ferretdb.nix

services.ferretdb.package

The ferretdb package to use.

Type: package

Default: pkgs.ferretdb

Declared by: nixos/modules/services/databases/ferretdb.nix

services.ferretdb.settings

Additional configuration for FerretDB, see https://docs.ferretdb.io/configuration/flags/ for supported values.

Type: open submodule of attribute set of string

Example:

{
  FERRETDB_LOG_LEVEL = "warn";
  FERRETDB_MODE = "normal";
}

Declared by: nixos/modules/services/databases/ferretdb.nix

services.ferretdb.settings.FERRETDB_HANDLER

Backend handler

Type: one of "sqlite", "pg"

Default: "sqlite"

Declared by: nixos/modules/services/databases/ferretdb.nix

services.ferretdb.settings.FERRETDB_POSTGRESQL_URL

PostgreSQL URL for 'pg' handler

Type: string

Default: "postgres://ferretdb@localhost/ferretdb?host=/run/postgresql"

Declared by: nixos/modules/services/databases/ferretdb.nix

services.ferretdb.settings.FERRETDB_SQLITE_URL

SQLite URI (directory) for 'sqlite' handler

Type: string

Default: "file:/var/lib/ferretdb/"

Declared by: nixos/modules/services/databases/ferretdb.nix

services.ferretdb.settings.FERRETDB_TELEMETRY

Enable or disable basic telemetry.

See https://docs.ferretdb.io/telemetry/ for more information.

Type: one of "enable", "disable"

Default: "disable"

Declared by: nixos/modules/services/databases/ferretdb.nix

services.fider.dataDir

Default data folder for Fider.

Type: string

Default: "/var/lib/fider"

Example: "/mnt/fider"

Declared by: nixos/modules/services/web-apps/fider.nix

services.fider.database.url

URI to use for the main PostgreSQL database. If this needs to include credentials that shouldn't be world-readable in the Nix store, set an environment file on the systemd service and override the DATABASE_URL entry. Pass the string local to setup a database on the local server.

Type: string

Default: "local"

Declared by: nixos/modules/services/web-apps/fider.nix

services.fider.enable

Whether to enable the Fider server.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/fider.nix

services.fider.environment

Environment variables to set for the service. Secrets should be specified using environmentFiles. Refer to https://github.com/getfider/fider/blob/stable/.example.env and https://github.com/getfider/fider/blob/stable/app/pkg/env/env.go for available options.

Type: attribute set of string

Default: { }

Example:

{
  BASE_URL = "https://fider.example.com";
  BLOB_STORAGE = "fs";
  EMAIL = "smtp";
  EMAIL_NOREPLY = "fider@example.com";
  EMAIL_SMTP_HOST = "mail.example.com";
  EMAIL_SMTP_PORT = "587";
  EMAIL_SMTP_USERNAME = "fider@example.com";
  PORT = "31213";
}

Declared by: nixos/modules/services/web-apps/fider.nix

services.fider.environmentFiles

Files to load environment variables from. Loaded variables override values set in environment.

Type: list of absolute path

Default: [ ]

Example: "/run/secrets/fider.env"

Declared by: nixos/modules/services/web-apps/fider.nix

services.fider.package

The fider package to use.

Type: package

Default: pkgs.fider

Declared by: nixos/modules/services/web-apps/fider.nix

services.filebeat.enable

Whether to enable filebeat.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/logging/filebeat.nix

services.filebeat.inputs

Inputs specify how Filebeat locates and processes input data.

This is like services.filebeat.settings.filebeat.inputs, but structured as an attribute set. This has the benefit that multiple NixOS modules can contribute settings to a single filebeat input.

An input type can be specified multiple times by choosing a different <name> for each, but setting services (F) to the same value.

See https://www.elastic.co/guide/en/beats/filebeat/current/configuration-filebeat-options.html.

Type: attribute set of (open submodule of (JSON value))

Default: { }

Example:

{
  journald.id = "everything";  # Only for filebeat7
  log = {
    enabled = true;
    paths = [
      "/var/log/*.log"
    ];
  };
};

Declared by: nixos/modules/services/logging/filebeat.nix

services.filebeat.inputs.<name>.type

The input type.

Look for the value after type: on the individual input pages linked from https://www.elastic.co/guide/en/beats/filebeat/current/configuration-filebeat-options.html.

Type: string

Default: "‹name›"

Declared by: nixos/modules/services/logging/filebeat.nix

services.filebeat.modules

Filebeat modules provide a quick way to get started processing common log formats. They contain default configurations, Elasticsearch ingest pipeline definitions, and Kibana dashboards to help you implement and deploy a log monitoring solution.

This is like services.filebeat.settings.filebeat.modules, but structured as an attribute set. This has the benefit that multiple NixOS modules can contribute settings to a single filebeat module.

A module can be specified multiple times by choosing a different <name> for each, but setting services (F) to the same value.

See https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-modules.html.

Type: attribute set of (open submodule of (JSON value))

Default: { }

Example:

{
  nginx = {
    access = {
      enabled = true;
      var.paths = [ "/path/to/log/nginx/access.log*" ];
    };
    error = {
      enabled = true;
      var.paths = [ "/path/to/log/nginx/error.log*" ];
    };
  };
};

Declared by: nixos/modules/services/logging/filebeat.nix

services.filebeat.modules.<name>.module

The name of the module.

Look for the value after module: on the individual input pages linked from https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-modules.html.

Type: string

Default: "‹name›"

Declared by: nixos/modules/services/logging/filebeat.nix

services.filebeat.package

The filebeat package to use.

Type: package

Default: pkgs.filebeat

Example: filebeat7

Declared by: nixos/modules/services/logging/filebeat.nix

services.filebeat.settings

Configuration for filebeat. See https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-reference-yml.html for supported values.

Options containing secret data should be set to an attribute set containing the attribute _secret - a string pointing to a file containing the value the option should be set to. See the example to get a better picture of this: in the resulting filebeat.yml file, the output.elasticsearch.password key will be set to the contents of the /var/keys/elasticsearch_password file.

Type: open submodule of (JSON value)

Default: { }

Example:

{
  settings = {
    output.elasticsearch = {
      hosts = [ "myEShost:9200" ];
      username = "filebeat_internal";
      password = { _secret = "/var/keys/elasticsearch_password"; };
    };
    logging.level = "info";
  };
};

Declared by: nixos/modules/services/logging/filebeat.nix

services.filebeat.settings.output.elasticsearch.hosts

The list of Elasticsearch nodes to connect to.

The events are distributed to these nodes in round robin order. If one node becomes unreachable, the event is automatically sent to another node. Each Elasticsearch node can be defined as a URL or IP:PORT. For example: http://192.15.3.2, https://es.found.io:9230 or 192.24.3.2:9300. If no port is specified, 9200 is used.

Type: list of string

Default:

[
  "127.0.0.1:9200"
]

Example:

[
  "myEShost:9200"
]

Declared by: nixos/modules/services/logging/filebeat.nix

services.filebrowser.enable

Whether to enable FileBrowser.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/filebrowser.nix

services.filebrowser.group

Group under which FileBrowser runs.

Type: string

Default: "filebrowser"

Declared by: nixos/modules/services/web-apps/filebrowser.nix

services.filebrowser.openFirewall

Whether to enable opening firewall ports for FileBrowser.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/filebrowser.nix

services.filebrowser.package

The filebrowser package to use.

Type: package

Default: pkgs.filebrowser

Declared by: nixos/modules/services/web-apps/filebrowser.nix

services.filebrowser.settings

Settings for FileBrowser. Refer to https://filebrowser.org/cli/filebrowser#options for all supported values.

Type: open submodule of (JSON value)

Default: { }

Declared by: nixos/modules/services/web-apps/filebrowser.nix

services.filebrowser.settings.address

The address to listen on.

Type: string

Default: "localhost"

Declared by: nixos/modules/services/web-apps/filebrowser.nix

services.filebrowser.settings.cache-dir

The directory where FileBrowser stores its cache.

Type: absolute path

Default: "/var/cache/filebrowser"

Read only

Declared by: nixos/modules/services/web-apps/filebrowser.nix

services.filebrowser.settings.database

The path to FileBrowser's Bolt database.

Type: absolute path

Default: "/var/lib/filebrowser/database.db"

Declared by: nixos/modules/services/web-apps/filebrowser.nix

services.filebrowser.settings.port

The port to listen on.

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

Default: 8080

Declared by: nixos/modules/services/web-apps/filebrowser.nix

services.filebrowser.settings.root

The directory where FileBrowser stores files.

Type: absolute path

Default: "/var/lib/filebrowser/data"

Declared by: nixos/modules/services/web-apps/filebrowser.nix

services.filebrowser.user

User account under which FileBrowser runs.

Type: string

Default: "filebrowser"

Declared by: nixos/modules/services/web-apps/filebrowser.nix

services.filesender.auth.backend

FileSender authentication backend.

Note that saml requires an external SimpleSAMLphp installation, which is not provided by this module and fake is for testing only.

Type: one of "fake", "header", "oidc", "saml", "shibboleth"

Default: "oidc"

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.auth.oidc.clientID

OIDC client ID.

Type: string

Default: ""

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.auth.oidc.clientSecretFile

File containing the OIDC client secret.

Use a runtime path such as /run/keys/... so the secret is not copied into the Nix store.

Type: null or absolute path not in the Nix store

Default: null

Example: "/run/keys/filesender-oidc-client-secret"

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.auth.oidc.emailAttribute

Name of the claim that contains the user's email address.

Type: string

Default: "email"

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.auth.oidc.groupsClaim

Name of the claim that contains the user's groups.

Type: string

Default: "groups"

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.auth.oidc.idpAttribute

IdP identification for audit/statistics.

Type: null or string

Default: null

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.auth.oidc.issuer

OIDC issuer URL.

Type: string

Default: ""

Example: "https://login.example.com/realms/yourrealm"

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.auth.oidc.nameAttribute

Name of the claim that contains the user's full name.

Type: string

Default: "name"

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.auth.oidc.requiredGroups

List of group names that users must belong to in order to access FileSender.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.auth.oidc.scopes

OIDC scopes to request during authentication. This allows customization of the information requested from the identity provider.

Type: list of string

Default:

[
  "openid"
  "profile"
  "email"
]

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.auth.oidc.uidAttribute

Name of the claim that contains the user's unique identifier.

Type: string

Default: "sub"

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.configureNginx

Configure nginx as a reverse proxy for FileSender.

Type: boolean

Default: true

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.database.createLocally

Create the PostgreSQL database and database user locally.

Type: boolean

Default: true

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.database.hostname

Database hostname.

Type: string

Default: "/run/postgresql"

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.database.name

Database name.

Type: string

Default: "filesender"

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.database.passwordFile

A file containing the password corresponding to services (F).

Type: null or absolute path

Default: null

Example: "/run/keys/filesender-dbpassword"

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.database.port

Database port.

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

Default: 5432

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.database.user

Database user.

Type: string

Default: "filesender"

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.enable

Whether to enable FileSender.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.localDomain

The domain serving your FileSender instance.

Type: string

Example: "filesender.example.org"

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.package

The filesender package to use.

Type: package

Default: pkgs.filesender

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.poolSettings

Options for FileSender's PHP pool.

See the documentation on php-fpm.conf for details on configuration directives.

Type: attribute set of (string or signed integer or boolean)

Default:

{
  pm = "dynamic";
  "pm.max_children" = "32";
  "pm.max_requests" = "500";
  "pm.max_spare_servers" = "4";
  "pm.min_spare_servers" = "2";
  "pm.start_servers" = "2";
}

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.settings

Configuration options used by FileSender.

See for available options.

Type: open submodule of (PHP value)

Default: { }

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.settings.admin

UIDs (as per the configured saml_uid_attribute) of FileSender administrators. Accounts with these UIDs can access the Admin page through the web UI.

Type: strings concatenated with ","

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.settings.admin_email

Email address of FileSender administrator(s). Emails regarding disk full etc. are sent here. You should use a role-address here.

Type: strings concatenated with ","

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.settings.log_facilities

Defines where FileSender logging is sent.

You can sent logging to a file, to syslog or to the default PHP log facility (as configured through your webserver's PHP module).

The directive takes an array of one or more logging targets. Logging can be sent to multiple targets simultaneously, each a list containing the name of the logging target and a number of attributes which vary per log target.

Type: PHP value

Default:

[
  {
    type = "error_log";
  }
]

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.settings.site_url

Site URL. Used in emails, to build URLs for logging in, logging out, build URL for upload endpoint for web workers, to include scripts etc.

Type: string

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.settings.storage_filesystem_path

FileSender storage root.

When using a storage-type filesystem, this is the absolute path to the file system where uploaded files are stored until they expire.

Type: null or string

Default: null

Declared by: nixos/modules/services/web-apps/filesender.nix

services.filesender.user

User under which filesender runs.

Type: string

Default: "filesender"

Declared by: nixos/modules/services/web-apps/filesender.nix

services.firebird.baseDir

Location containing data/ and system/ directories. data/ stores the databases, system/ stores the password database security2.fdb.

Type: string

Default: "/var/lib/firebird"

Declared by: nixos/modules/services/databases/firebird.nix

services.firebird.enable

Whether to enable the Firebird super server.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/databases/firebird.nix

services.firebird.package

The firebird package to use. For SuperServer use override: pkgs.firebird_3.override { superServer = true; };

Type: package

Default: pkgs.firebird

Example: firebird_3

Declared by: nixos/modules/services/databases/firebird.nix

services.firebird.port

Port Firebird uses.

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

Default: 3050

Declared by: nixos/modules/services/databases/firebird.nix

services.firebird.user

User account under which firebird runs.

Type: string

Default: "firebird"

Declared by: nixos/modules/services/databases/firebird.nix

services.firefly-iii-data-importer.dataDir

The place where firefly-iii data importer stores its state.

Type: absolute path

Default: "/var/lib/firefly-iii-data-importer"

Declared by: nixos/modules/services/web-apps/firefly-iii-data-importer.nix

services.firefly-iii-data-importer.enable

Whether to enable Firefly III Data Importer.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/firefly-iii-data-importer.nix

services.firefly-iii-data-importer.enableNginx

Whether to enable nginx or not. If enabled, an nginx virtual host will be created for access to firefly-iii data importer. If not enabled, then you may use ${config.services.firefly-iii-data-importer.package} as your document root in whichever webserver you wish to setup.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/firefly-iii-data-importer.nix

services.firefly-iii-data-importer.group

Group under which firefly-iii-data-importer runs. While this also changes which group has access to the phpfpm socket, changing services.firefly-iii-data-importer.poolConfig."listen.group" is preferred.

Type: string

Default: "firefly-iii-data-importer"

Declared by: nixos/modules/services/web-apps/firefly-iii-data-importer.nix

services.firefly-iii-data-importer.package

The firefly-iii-data-importer package served by php-fpm and the webserver of choice. This option can be used to point the webserver to the correct root. It may also be used to set the package to a different version, say a development version.

Type: package

Default: pkgs.firefly-iii-data-importer

Declared by: nixos/modules/services/web-apps/firefly-iii-data-importer.nix

services.firefly-iii-data-importer.poolConfig

Options for the Firefly III Data Importer PHP pool. See the documentation on php-fpm.conf for details on configuration directives.

Type: attribute set of (string or signed integer or boolean)

Default:

{
  "listen.mode" = "0660";
  "listen.owner" = if config.services.firefly-iii-data-importer.enableNginx then config.services.nginx.user else config.services.firefly-iii-data-importer.user;
  "listen.group" = if config.services.firefly-iii-data-importer.enableNginx then config.services.nginx.group else config.services.firefly-iii-data-importer.group;
  "pm" = "dynamic";
  "pm.max_children" = 32;
  "pm.start_servers" = 2;
  "pm.min_spare_servers" = 2;
  "pm.max_spare_servers" = 4;
  "pm.max_requests" = 500;
}

Declared by: nixos/modules/services/web-apps/firefly-iii-data-importer.nix

services.firefly-iii-data-importer.settings

Options for firefly-iii data importer configuration. Refer to https://github.com/firefly-iii/data-importer/blob/main/.env.example for details on supported values. All

APP_URL will be the same as services.firefly-iii-data-importer.virtualHost if the former is unset in services.firefly-iii-data-importer.settings.

Type: open submodule of attribute set of (string or signed integer or boolean)

Default: { }

Example:

{
  APP_ENV = "local";
  LOG_CHANNEL = "syslog";
  FIREFLY_III_ACCESS_TOKEN= = "/var/secrets/firefly-iii-access-token.txt";
}

Declared by: nixos/modules/services/web-apps/firefly-iii-data-importer.nix

services.firefly-iii-data-importer.user

User account under which firefly-iii-data-importer runs.

Type: string

Default: "firefly-iii-data-importer"

Declared by: nixos/modules/services/web-apps/firefly-iii-data-importer.nix

services.firefly-iii-data-importer.virtualHost

The hostname at which you wish firefly-iii-data-importer to be served. If you have enabled nginx using services.firefly-iii-data-importer.enableNginx then this will be used.

Type: string

Default: "localhost"

Declared by: nixos/modules/services/web-apps/firefly-iii-data-importer.nix

services.firefly-iii.dataDir

The place where firefly-iii stores its state.

Type: absolute path

Default: "/var/lib/firefly-iii"

Declared by: nixos/modules/services/web-apps/firefly-iii.nix

services.firefly-iii.enable

Whether to enable Firefly III: A free and open source personal finance manager.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/firefly-iii.nix

services.firefly-iii.enableNginx

Whether to enable nginx or not. If enabled, an nginx virtual host will be created for access to firefly-iii. If not enabled, then you may use ${config.services.firefly-iii.package} as your document root in whichever webserver you wish to setup.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/firefly-iii.nix

services.firefly-iii.group

Group under which firefly-iii runs. While this also changes which group has access to the phpfpm socket, changing services.firefly-iii.poolConfig."listen.group" is preferred.

Type: string

Default: "firefly-iii"

Declared by: nixos/modules/services/web-apps/firefly-iii.nix

services.firefly-iii.package

The firefly-iii package to use.

Type: package

Default: pkgs.firefly-iii

Declared by: nixos/modules/services/web-apps/firefly-iii.nix

services.firefly-iii.poolConfig

Options for the Firefly III PHP pool. See the documentation on php-fpm.conf for details on configuration directives.

Type: attribute set of (string or signed integer or boolean)

Default:

''
  {
    "listen.mode" = "0660";
    "listen.owner" = if config.services.firefly-iii.enableNginx then config.services.nginx.user else config.services.firefly-iii.user;
    "listen.group" = if config.services.firefly-iii.enableNginx then config.services.nginx.group else config.services.firefly-iii.group;
    "pm" = "dynamic";
    "pm.max_children" = 32;
    "pm.start_servers" = 2;
    "pm.min_spare_servers" = 2;
    "pm.max_spare_servers" = 4;
    "pm.max_requests" = 500;
  }
''

Declared by: nixos/modules/services/web-apps/firefly-iii.nix

services.firefly-iii.settings

Options for firefly-iii configuration. Refer to https://github.com/firefly-iii/firefly-iii/blob/main/.env.example for details on supported values. All

APP_URL will be the same as services.firefly-iii.virtualHost if the former is unset in services.firefly-iii.settings.

Type: open submodule of attribute set of (string or signed integer or boolean)

Default: { }

Example:

{
  APP_ENV = "production";
  APP_KEY_FILE = "/var/secrets/firefly-iii-app-key.txt";
  SITE_OWNER = "mail@example.com";
  DB_CONNECTION = "mysql";
  DB_HOST = "db";
  DB_PORT = 3306;
  DB_DATABASE = "firefly";
  DB_USERNAME = "firefly";
  DB_PASSWORD_FILE = "/var/secrets/firefly-iii-mysql-password.txt";
}

Declared by: nixos/modules/services/web-apps/firefly-iii.nix

services.firefly-iii.settings.APP_ENV

The app environment. It is recommended to keep this at "local". Possible values are "local", "production" and "testing"

Type: one of "local", "production", "testing"

Default: "local"

Example: "production"

Declared by: nixos/modules/services/web-apps/firefly-iii.nix

services.firefly-iii.settings.APP_KEY_FILE

The path to your appkey. The file should contain a 32 character random app key. This may be set using echo "base64:$(head -c 32 /dev/urandom | base64)" > /path/to/key-file.

Type: absolute path

Declared by: nixos/modules/services/web-apps/firefly-iii.nix

services.firefly-iii.settings.APP_URL

The APP_URL used by firefly-iii internally. Please make sure this URL matches the external URL of your Firefly III installation. It is used to validate specific requests and to generate URLs in emails.

Type: string

Default:

''
  http(s)://''${config.services.firefly-iii.virtualHost}
''

Declared by: nixos/modules/services/web-apps/firefly-iii.nix

services.firefly-iii.settings.DB_CONNECTION

The type of database you wish to use. Can be one of "sqlite", "mysql" or "pgsql".

Type: one of "sqlite", "pgsql", "mysql"

Default: "sqlite"

Example: "pgsql"

Declared by: nixos/modules/services/web-apps/firefly-iii.nix

services.firefly-iii.settings.DB_HOST

The machine which hosts your database. This is left at the default value for "mysql" because we use the "DB_SOCKET" option to connect to a unix socket instead. "pgsql" requires that the unix socket location be specified here instead of at "DB_SOCKET". This option does not affect "sqlite".

Type: string

Default:

''
  "localhost" if DB_CONNECTION is "sqlite" or "mysql", "/run/postgresql" if "pgsql".
''

Declared by: nixos/modules/services/web-apps/firefly-iii.nix

services.firefly-iii.settings.DB_PORT

The port your database is listening at. sqlite does not require this value to be filled.

Type: null or signed integer

Default:

''
  `null` if DB_CONNECTION is "sqlite", `3306` if "mysql", `5432` if "pgsql"
''

Declared by: nixos/modules/services/web-apps/firefly-iii.nix

services.firefly-iii.user

User account under which firefly-iii runs.

Type: string

Default: "firefly-iii"

Declared by: nixos/modules/services/web-apps/firefly-iii.nix

services.firefly-iii.virtualHost

The hostname at which you wish firefly-iii to be served. If you have enabled nginx using services.firefly-iii.enableNginx then this will be used.

Type: string

Default: "localhost"

Declared by: nixos/modules/services/web-apps/firefly-iii.nix

services.firefox-syncserver.database.createLocally

Whether to create database and user on the local machine if they do not exist. This includes enabling the configured database service and setting up authentication for the configured user.

Type: boolean

Default: true

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.firefox-syncserver.database.host

Database host name. localhost is treated specially and inserts systemd dependencies, other hostnames or IP addresses of the local machine do not.

Type: string

Default: "localhost"

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.firefox-syncserver.database.name

Database to use for storage. Will be created automatically if it does not exist and config.services.firefox-syncserver.database.createLocally is set.

Type: string matching the pattern [a-z_][a-z0-9_]*

Default: "firefox_syncserver"

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.firefox-syncserver.database.type

Which database backend to use for storage.

Note

"postgresql" is recommended for new deployments. "mysql" is the backend used by legacy installations.

Type: one of "mysql", "postgresql"

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.firefox-syncserver.database.user

Username for database connections. When using PostgreSQL with createLocally, this defaults to the database name so that ensureDBOwnership works (it requires user and database names to match).

Type: string

Default:

if database.type == "postgresql" then "firefox_syncserver" else "firefox-syncserver"

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.firefox-syncserver.enable

Whether to enable the Firefox Sync storage service.

Out of the box this will not be very useful unless you also configure at least one service and one nodes by inserting them into the database manually, e.g. by running

  INSERT INTO services (id, service, pattern) VALUES (1, 'sync-1.5', '{node}/1.5/{uid}');
  INSERT INTO nodes (id, service, node, available, current_load,
      capacity, downed, backoff)
    VALUES (1, 1, 'https://mydomain.tld', 1, 0, 10, 0, 0);

services.firefox-syncserver.singleNode.enable does this automatically when enabled .

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.firefox-syncserver.logLevel

Log level to run with. This can be a simple log level like error or trace, or a more complicated logging expression.

Type: string

Default: "error"

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.firefox-syncserver.package

Syncstorage server package to use. When null, the package is selected automatically based on services.firefox-syncserver.database.type.

Type: null or package

Default:

if config.services.firefox-syncserver.database.type == "mysql" then
  pkgs.syncstorage-rs-mysql
else
  pkgs.syncstorage-rs-pgsql

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.firefox-syncserver.secrets

A file containing the various secrets. Should be in the format expected by systemd's EnvironmentFile directory. Two secrets are currently available: SYNC_MASTER_SECRET and SYNC_TOKENSERVER__FXA_METRICS_HASH_SECRET.

Type: absolute path

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.firefox-syncserver.settings

Settings for the sync server. These take priority over values computed from NixOS options.

See the example config in https://github.com/mozilla-services/syncstorage-rs/blob/master/config/local.example.toml and the doc comments on the Settings structs in https://github.com/mozilla-services/syncstorage-rs/blob/master/syncstorage-settings/src/lib.rs and https://github.com/mozilla-services/syncstorage-rs/blob/master/tokenserver-settings/src/lib.rs for available options.

Type: open submodule of (TOML value)

Default: { }

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.firefox-syncserver.settings.port

Port to bind to.

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

Default: 5000

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.firefox-syncserver.settings.tokenserver.enabled

Whether to enable the token service as well.

Type: boolean

Default: true

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.firefox-syncserver.singleNode.capacity

How many sync accounts are allowed on this server. Setting this value equal to or less than the number of currently active accounts will effectively deny service to accounts not yet registered here.

Type: unsigned integer, meaning >=0

Default: 10

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.firefox-syncserver.singleNode.enable

Whether to enable auto-configuration for a simple single-node setup.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.firefox-syncserver.singleNode.enableNginx

Whether to enable nginx virtualhost definitions.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.firefox-syncserver.singleNode.enableTLS

Whether to enable automatic TLS setup.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.firefox-syncserver.singleNode.hostname

Host name to use for this service.

Type: string

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.firefox-syncserver.singleNode.url

URL of the host. If you are not using the automatic webserver proxy setup you will have to change this setting or your sync server may not be functional.

Type: string

Default:

${if cfg.singleNode.enableTLS then "https" else "http"}://${config.services.firefox-syncserver.singleNode.hostname}

Declared by: nixos/modules/services/networking/firefox-syncserver.nix

services.fireqos.config

The FireQOS configuration.

Type: strings concatenated with "\n"

Example:

''
  interface wlp3s0 world-in input rate 10mbit ethernet
    class web commit 50kbit
      match tcp ports 80,443
  
  interface wlp3s0 world-out input rate 10mbit ethernet
    class web commit 50kbit
      match tcp ports 80,443
''

Declared by: nixos/modules/services/networking/fireqos.nix

services.fireqos.enable

Whether to enable FireQOS.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/fireqos.nix

services.firewalld.enable

Whether to enable FirewallD.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firewalld

services.firewalld.extraArgs

Extra arguments to pass to FirewallD.

Type: list of string

Default: [ ]

Example:

[
  "--debug"
]

Declared by: nixos/modules/services/networking/firewalld

services.firewalld.package

The firewalld package to use.

Type: package

Default: pkgs.firewalld

Declared by: nixos/modules/services/networking/firewalld

services.firewalld.packages

Packages providing firewalld zones and other files. Files found in /lib/firewalld will be included.

Type: list of package

Default: [ ]

Declared by: nixos/modules/services/networking/firewalld

services.firewalld.services

firewalld service configuration files. See firewalld.service(5).

Type: attribute set of (submodule)

Default: { }

Declared by: nixos/modules/services/networking/firewalld/service.nix

services.firewalld.services.<name>.description

Description for the service.

Type: null or non-empty string

Default: null

Declared by: nixos/modules/services/networking/firewalld/service.nix

services.firewalld.services.<name>.destination

Destinations for the service.

Type: submodule

Default: { }

Declared by: nixos/modules/services/networking/firewalld/service.nix

services.firewalld.services.<name>.destination.ipv4

IPv4 destination.

Type: null or string matching the pattern ([0-9]{1,3}.){3}[0-9]{1,3}(/[0-9]{1,2})?

Default: null

Declared by: nixos/modules/services/networking/firewalld/service.nix

services.firewalld.services.<name>.destination.ipv6

IPv6 destination.

Type: null or string matching the pattern [0-9A-Fa-f:]{3,39}(/[0-9]{1,3})?

Default: null

Declared by: nixos/modules/services/networking/firewalld/service.nix

services.firewalld.services.<name>.helpers

Helpers for the service.

Type: list of non-empty string

Default: [ ]

Declared by: nixos/modules/services/networking/firewalld/service.nix

services.firewalld.services.<name>.includes

Services to include for the service.

Type: list of non-empty string

Default: [ ]

Declared by: nixos/modules/services/networking/firewalld/service.nix

services.firewalld.services.<name>.ports

Ports of the service.

Type: list of (submodule)

Default: [ ]

Declared by: nixos/modules/services/networking/firewalld/service.nix

services.firewalld.services.<name>.ports.*.port

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

Declared by: nixos/modules/services/networking/firewalld/service.nix

services.firewalld.services.<name>.ports.*.protocol

Type: one of "tcp", "udp", "sctp", "dccp"

Declared by: nixos/modules/services/networking/firewalld/service.nix

services.firewalld.services.<name>.protocols

Protocols for the service.

Type: list of non-empty string

Default: [ ]

Declared by: nixos/modules/services/networking/firewalld/service.nix

services.firewalld.services.<name>.short

Short description for the service.

Type: null or non-empty string

Default: null

Declared by: nixos/modules/services/networking/firewalld/service.nix

services.firewalld.services.<name>.sourcePorts

Source ports for the service.

Type: list of (submodule)

Default: [ ]

Declared by: nixos/modules/services/networking/firewalld/service.nix

services.firewalld.services.<name>.sourcePorts.*.port

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

Declared by: nixos/modules/services/networking/firewalld/service.nix

services.firewalld.services.<name>.sourcePorts.*.protocol

Type: one of "tcp", "udp", "sctp", "dccp"

Declared by: nixos/modules/services/networking/firewalld/service.nix

services.firewalld.services.<name>.version

Version of the service.

Type: null or non-empty string

Default: null

Declared by: nixos/modules/services/networking/firewalld/service.nix

services.firewalld.settings

FirewallD config file. See firewalld.conf(5).

Type: open submodule of attribute set of (boolean or non-empty string)

Default: { }

Declared by: nixos/modules/services/networking/firewalld/settings.nix

services.firewalld.settings.CleanupModulesOnExit

Whether to unload all firewall-related kernel modules when firewalld stops.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/firewalld/settings.nix

services.firewalld.settings.CleanupOnExit

Whether to clean up firewall rules when firewalld stops.

Type: boolean

Default: true

Declared by: nixos/modules/services/networking/firewalld/settings.nix

services.firewalld.settings.DefaultZone

Default zone for connections.

Type: non-empty string

Default: "public"

Declared by: nixos/modules/services/networking/firewalld/settings.nix

services.firewalld.settings.FirewallBackend

The firewall backend implementation. This applies to all firewalld primitives. The only exception is direct and passthrough rules which always use the traditional iptables, ip6tables, and ebtables backends.

Caution

The iptables backend is deprecated. It will be removed in a future release.

Type: one of "nftables", "iptables"

Default: "nftables"

Declared by: nixos/modules/services/networking/firewalld/settings.nix

services.firewalld.settings.FlushAllOnReload

Whether to flush all runtime rules on a reload.

Type: boolean

Default: true

Declared by: nixos/modules/services/networking/firewalld/settings.nix

services.firewalld.settings.IPv6_rpfilter

Performs reverse path filtering (RPF) on IPv6 packets as per RFC 3704.

Possible values:

"strict"

Performs "strict" filtering as per RFC 3704. This check verifies that the in ingress interface is the same interface that would be used to send a packet reply to the source. That is, ingress == egress.

"loose"

Performs "loose" filtering as per RFC 3704. This check only verifies that there is a route back to the source through any interface; even if it's not the same one on which the packet arrived.

"strict-forward"

This is almost identical to "strict", but does not perform RPF for packets targeted to the host (INPUT).

"loose-forward"

This is almost identical to "loose", but does not perform RPF for packets targeted to the host (INPUT).

"no"

RPF is completely disabled.

The rp_filter for IPv4 is controlled using sysctl.

Type: one of "strict", "loose", "strict-forward", "loose-forward", "no"

Default: "strict"

Declared by: nixos/modules/services/networking/firewalld/settings.nix

services.firewalld.settings.IndividualCalls

Whether to use individual -restore calls to apply changes to the firewall. The use of individual calls increases the time that is needed to apply changes and to start the daemon, but is good for debugging as error messages are more specific.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/firewalld/settings.nix

services.firewalld.settings.LogDenied

Add logging rules right before reject and drop rules in the INPUT, FORWARD and OUTPUT chains for the default rules and also final reject and drop rules in zones for the configured link-layer packet type.

Type: one of "all", "unicast", "broadcast", "multicast", "off"

Default: "off"

Declared by: nixos/modules/services/networking/firewalld/settings.nix

services.firewalld.settings.NftablesCounters

Whether to add a counter to every nftables rule.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/firewalld/settings.nix

services.firewalld.settings.NftablesFlowtable

This may improve forwarded traffic throughput by enabling nftables flowtable. It is a software fastpath and avoids calling nftables rule evaluation for data packets. Its value is a space separate list of interfaces.

Type: strings concatenated with " "

Default: "off"

Declared by: nixos/modules/services/networking/firewalld/settings.nix

services.firewalld.settings.NftablesTableOwner

If enabled, the generated nftables rule set will be owned exclusively by firewalld. This prevents other entities from mistakenly (or maliciously) modifying firewalld's rule set. If you intend to modify firewalld's rules, set this to false.

Type: boolean

Default: true

Declared by: nixos/modules/services/networking/firewalld/settings.nix

services.firewalld.settings.RFC3964_IPv4

Whether to filter IPv6 traffic with 6to4 destination addresses that correspond to IPv4 addresses that should not be routed over the public internet.

Type: boolean

Default: true

Declared by: nixos/modules/services/networking/firewalld/settings.nix

services.firewalld.settings.ReloadPolicy

The policy during reload.

Type: one of "DROP", "REJECT", "ACCEPT" or strings concatenated with ","

Default: "INPUT:DROP,FORWARD:DROP,OUTPUT:DROP"

Declared by: nixos/modules/services/networking/firewalld/settings.nix

services.firewalld.settings.StrictForwardPorts

If enabled, the generated destination NAT (DNAT) rules will NOT accept traffic that was DNAT'd by other entities, e.g. docker. Firewalld will be strict and not allow published container ports until they're explicitly allowed via firewalld. If set to false, then docker (and podman) integrates seamlessly with firewalld. Published container ports are implicitly allowed.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/firewalld/settings.nix

services.firewalld.zones

firewalld zone configuration files. See firewalld.zone(5).

Type: attribute set of (submodule)

Default: { }

Example:

{
  dmz = {
    forward = true;
    services = [
      "ssh"
    ];
  };
  external = {
    forward = true;
    masquerade = true;
    services = [
      "ssh"
    ];
  };
  home = {
    forward = true;
    services = [
      "ssh"
      "mdns"
      "samba-client"
      "dhcpv6-client"
    ];
  };
  internal = {
    forward = true;
    services = [
      "ssh"
      "mdns"
      "samba-client"
      "dhcpv6-client"
    ];
  };
  public = {
    forward = true;
    services = [
      "ssh"
      "dhcpv6-client"
    ];
  };
  work = {
    forward = true;
    services = [
      "ssh"
      "dhcpv6-client"
    ];
  };
}

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.description

Description for the zone.

Type: null or non-empty string

Default: null

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.egressPriority

Priority for outbound traffic. Lower values have higher priority.

Type: null or 16 bit signed integer; between -32768 and 32767 (both inclusive)

Default: null

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.forward

Whether to enable intra-zone forwarding. When enabled, packets will be forwarded between interfaces or sources within a zone, even if the zone's target is not set to ACCEPT.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.forwardPorts

Ports to forward in the zone.

Type: list of (submodule)

Default: [ ]

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.forwardPorts.*.port

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

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.forwardPorts.*.protocol

Type: one of "tcp", "udp", "sctp", "dccp"

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.forwardPorts.*.to-addr

Destination IP address.

Type: null or non-empty string

Default: null

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.forwardPorts.*.to-port

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

Default: null

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.icmpBlockInversion

Whether to invert the icmp block handling. Only enabled ICMP types are accepted and all others are rejected in the zone.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.icmpBlocks

ICMP types to block in the zone.

Type: list of non-empty string

Default: [ ]

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.ingressPriority

Priority for inbound traffic. Lower values have higher priority.

Type: null or 16 bit signed integer; between -32768 and 32767 (both inclusive)

Default: null

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.interfaces

Interfaces to bind.

Type: list of non-empty string

Default: [ ]

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.masquerade

Whether to enable masquerading in the zone.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.ports

Ports to allow in the zone.

Type: list of (submodule)

Default: [ ]

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.ports.*.port

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

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.ports.*.protocol

Type: one of "tcp", "udp", "sctp", "dccp"

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.protocols

Protocols to allow in the zone.

Type: list of non-empty string

Default: [ ]

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.rules

Rich rules for the zone.

Type: list of XML value

Default: [ ]

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.services

Services to allow in the zone.

Type: list of non-empty string

Default: [ ]

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.short

Short description for the zone.

Type: null or non-empty string

Default: null

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.sourcePorts

Source ports to allow in the zone.

Type: list of (submodule)

Default: [ ]

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.sourcePorts.*.port

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

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.sourcePorts.*.protocol

Type: one of "tcp", "udp", "sctp", "dccp"

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.sources

Source addresses, address ranges, MAC addresses or ipsets to bind.

Type: list of attribute-tagged union with choices: address, ipset, mac

Default: [ ]

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.sources.*.address

An IP address or a network IP address with a mask for IPv4 or IPv6. For IPv4, the mask can be a network mask or a plain number. For IPv6 the mask is a plain number. The use of host names is not supported.

Type: non-empty string

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.sources.*.ipset

An ipset.

Type: non-empty string

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.sources.*.mac

A MAC address.

Type: string matching the pattern ([[:xdigit:]]{2}:){5}[[:xdigit:]]{2}

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.target

Action for packets that doesn't match any rules.

Type: one of "ACCEPT", "%%REJECT%%", "DROP"

Default: "%%REJECT%%"

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firewalld.zones.<name>.version

Version of the zone.

Type: null or non-empty string

Default: null

Declared by: nixos/modules/services/networking/firewalld/zone.nix

services.firezone.gateway.apiUrl

The URL of your firezone server's API. This should be the same as your server's setting for services.firezone.server.settings.api.externalUrl, but with wss:// instead of https://.

Type: string matching the pattern ^wss://.+/$

Example: "wss://firezone.example.com/api/"

Declared by: nixos/modules/services/networking/firezone/gateway.nix

services.firezone.gateway.enable

Whether to enable the firezone gateway.

You have to manually masquerade and forward traffic from the tun-firezone interface to your resource! Refer to the upstream setup script for a list of iptable commands.

See the firezone nixos test in this repository for an nftables based example.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firezone/gateway.nix

services.firezone.gateway.enableTelemetry

Whether to enable telemetry.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firezone/gateway.nix

services.firezone.gateway.logLevel

The log level for the firezone application. See RUST_LOG for the format.

Type: string

Default: "info"

Declared by: nixos/modules/services/networking/firezone/gateway.nix

services.firezone.gateway.name

The name of this gateway as shown in firezone

Type: string

Declared by: nixos/modules/services/networking/firezone/gateway.nix

services.firezone.gateway.package

The firezone-gateway package to use.

Type: package

Default: pkgs.firezone-gateway

Declared by: nixos/modules/services/networking/firezone/gateway.nix

services.firezone.gateway.tokenFile

A file containing the firezone gateway token. Do not use a nix-store path here as it will make the token publicly readable!

This file will be passed via systemd credentials, it should only be accessible by the root user.

Type: absolute path

Example: "/run/secrets/firezone-gateway-token"

Declared by: nixos/modules/services/networking/firezone/gateway.nix

services.firezone.gui-client.allowedUsers

All listed users will become part of the firezone-client group so they can control the tunnel service. This is a convenience option.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/firezone/gui-client.nix

services.firezone.gui-client.enable

Whether to enable the firezone gui client.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firezone/gui-client.nix

services.firezone.gui-client.logLevel

The log level for the firezone application. See RUST_LOG for the format.

Type: string

Default: "info"

Declared by: nixos/modules/services/networking/firezone/gui-client.nix

services.firezone.gui-client.name

The name of this client as shown in firezone

Type: string

Declared by: nixos/modules/services/networking/firezone/gui-client.nix

services.firezone.gui-client.package

The firezone-gui-client package to use.

Type: package

Default: pkgs.firezone-gui-client

Declared by: nixos/modules/services/networking/firezone/gui-client.nix

services.firezone.headless-client.apiUrl

The URL of your firezone server's API. This should be the same as your server's setting for services.firezone.server.settings.api.externalUrl, but with wss:// instead of https://.

Type: string matching the pattern ^wss://.+/$

Example: "wss://firezone.example.com/api/"

Declared by: nixos/modules/services/networking/firezone/headless-client.nix

services.firezone.headless-client.enable

Whether to enable the firezone headless client.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firezone/headless-client.nix

services.firezone.headless-client.enableTelemetry

Whether to enable telemetry.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firezone/headless-client.nix

services.firezone.headless-client.logLevel

The log level for the firezone application. See RUST_LOG for the format.

Type: string

Default: "info"

Declared by: nixos/modules/services/networking/firezone/headless-client.nix

services.firezone.headless-client.name

The name of this client as shown in firezone

Type: string

Declared by: nixos/modules/services/networking/firezone/headless-client.nix

services.firezone.headless-client.package

The firezone-headless-client package to use.

Type: package

Default: pkgs.firezone-headless-client

Declared by: nixos/modules/services/networking/firezone/headless-client.nix

services.firezone.headless-client.tokenFile

A file containing the firezone client token. Do not use a nix-store path here as it will make the token publicly readable!

This file will be passed via systemd credentials, it should only be accessible by the root user.

Type: absolute path

Example: "/run/secrets/firezone-client-token"

Declared by: nixos/modules/services/networking/firezone/headless-client.nix

services.firezone.relay.apiUrl

The URL of your firezone server's API. This should be the same as your server's setting for services.firezone.server.settings.api.externalUrl, but with wss:// instead of https://.

Type: string matching the pattern ^wss://.+/$

Example: "wss://firezone.example.com/api/"

Declared by: nixos/modules/services/networking/firezone/relay.nix

services.firezone.relay.enable

Whether to enable the firezone relay server.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firezone/relay.nix

services.firezone.relay.enableTelemetry

Whether to enable telemetry.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firezone/relay.nix

services.firezone.relay.highestPort

The highest port to use in TURN allocation

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

Default: 65535

Declared by: nixos/modules/services/networking/firezone/relay.nix

services.firezone.relay.logLevel

The log level for the firezone application. See RUST_LOG for the format.

Type: string

Default: "info"

Declared by: nixos/modules/services/networking/firezone/relay.nix

services.firezone.relay.lowestPort

The lowest port to use in TURN allocation

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

Default: 49152

Declared by: nixos/modules/services/networking/firezone/relay.nix

services.firezone.relay.name

The name of this gateway as shown in firezone

Type: string

Example: "My relay"

Declared by: nixos/modules/services/networking/firezone/relay.nix

services.firezone.relay.openFirewall

Opens up the main STUN port and the TURN allocation range.

Type: boolean

Default: true

Declared by: nixos/modules/services/networking/firezone/relay.nix

services.firezone.relay.package

The firezone-relay package to use.

Type: package

Default: pkgs.firezone-relay

Declared by: nixos/modules/services/networking/firezone/relay.nix

services.firezone.relay.port

The port to listen on for STUN messages

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

Default: 3478

Declared by: nixos/modules/services/networking/firezone/relay.nix

services.firezone.relay.publicIpv4

The public ipv4 address of this relay

Type: null or string

Default: null

Declared by: nixos/modules/services/networking/firezone/relay.nix

services.firezone.relay.publicIpv6

The public ipv6 address of this relay

Type: null or string

Default: null

Declared by: nixos/modules/services/networking/firezone/relay.nix

services.firezone.relay.tokenFile

A file containing the firezone relay token. Do not use a nix-store path here as it will make the token publicly readable!

This file will be passed via systemd credentials, it should only be accessible by the root user.

Type: absolute path

Example: "/run/secrets/firezone-relay-token"

Declared by: nixos/modules/services/networking/firezone/relay.nix

services.firezone.server.api.address

The address to listen on

Type: string

Default: "127.0.0.1"

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.api.enable

Whether to enable the Firezone api server.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.api.externalUrl

The external URL under which you will serve the api. You need to setup a reverse proxy for TLS termination, either with services.firezone.server.nginx.enable or manually.

Type: string matching the pattern ^https://.+/$

Example: "https://firezone.example.com/api/"

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.api.package

The firezone-server-api package to use.

Type: package

Default: pkgs.firezone-server-api

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.api.port

The port under which the api will be served locally

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

Default: 8081

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.api.settings

Environment variables for this component of the Firezone server. For a list of available variables, please refer to the upstream definitions. Some variables like OUTBOUND_EMAIL_ADAPTER_OPTS require json values for which you can use VAR = builtins.toJSON { /* ... */ }.

This component will automatically inherit all variables defined via services.firezone.server.settings and services.firezone.server.settingsSecret, but which can be overwritten by this option.

Type: open submodule of attribute set of (boolean or floating point number or signed integer or string or absolute path or package)

Default: { }

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.api.trustedProxies

A list of trusted proxies

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.clusterHosts

A list of components and their hosts that are part of this cluster. For a single-machine setup, the default value will be sufficient. This value will automatically set ERLANG_CLUSTER_ADAPTER_CONFIG.

The format is <COMPONENT_NAME>@<HOSTNAME>.

Type: list of string

Default:

[
  "api@localhost.localdomain"
  "web@localhost.localdomain"
  "domain@localhost.localdomain"
]

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.domain.enable

Whether to enable the Firezone domain server.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.domain.package

The firezone-server-domain package to use.

Type: package

Default: pkgs.firezone-server-domain

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.domain.settings

Environment variables for this component of the Firezone server. For a list of available variables, please refer to the upstream definitions. Some variables like OUTBOUND_EMAIL_ADAPTER_OPTS require json values for which you can use VAR = builtins.toJSON { /* ... */ }.

This component will automatically inherit all variables defined via services.firezone.server.settings and services.firezone.server.settingsSecret, but which can be overwritten by this option.

Type: open submodule of attribute set of (boolean or floating point number or signed integer or string or absolute path or package)

Default: { }

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.enable

Whether to enable all Firezone components.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.enableLocalDB

Whether to enable a local postgresql database for Firezone.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.nginx.enable

Whether to enable nginx virtualhost definition.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.openClusterFirewall

Opens up the erlang distribution port of all enabled components to allow reaching the server cluster from the internet. You only need to set this if you are actually distributing your cluster across multiple machines.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.settings

Environment variables for the Firezone server. For a list of available variables, please refer to the upstream definitions. Some variables like OUTBOUND_EMAIL_ADAPTER_OPTS require json values for which you can use VAR = builtins.toJSON { /* ... */ }.

Each component has an additional settings option which allows you to override specific variables passed to that component.

Type: open submodule of attribute set of (boolean or floating point number or signed integer or string or absolute path or package)

Default: { }

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.settingsSecret

This is a convenience option which allows you to set secret values for environment variables by specifying a file which will contain the value at runtime. Before starting the server, the content of each file will be loaded into the respective environment variable.

Otherwise, this option is equivalent to services.firezone.server.settings. Refer to the settings option for more information regarding the actual variables and how filtering rules are applied for each component.

Type: open submodule of attribute set of absolute path

Default: { }

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.settingsSecret.COOKIE_ENCRYPTION_SALT

A file containing a unique base64 encoded secret for the COOKIE_ENCRYPTION_SALT. All Firezone components in your cluster must use the same value.

If this is null, a shared value will automatically be generated on startup and used for all components on this machine. You do not need to set this except when you spread your cluster over multiple hosts.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.settingsSecret.COOKIE_SIGNING_SALT

A file containing a unique base64 encoded secret for the COOKIE_SIGNING_SALT. All Firezone components in your cluster must use the same value.

If this is null, a shared value will automatically be generated on startup and used for all components on this machine. You do not need to set this except when you spread your cluster over multiple hosts.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.settingsSecret.LIVE_VIEW_SIGNING_SALT

A file containing a unique base64 encoded secret for the LIVE_VIEW_SIGNING_SALT. All Firezone components in your cluster must use the same value.

If this is null, a shared value will automatically be generated on startup and used for all components on this machine. You do not need to set this except when you spread your cluster over multiple hosts.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/networking/firezone/server.nix

A file containing a unique secret identifier for the Erlang cluster. All Firezone components in your cluster must use the same value.

If this is null, a shared value will automatically be generated on startup and used for all components on this machine. You do not need to set this except when you spread your cluster over multiple hosts.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.settingsSecret.SECRET_KEY_BASE

A file containing a unique base64 encoded secret for the SECRET_KEY_BASE. All Firezone components in your cluster must use the same value.

If this is null, a shared value will automatically be generated on startup and used for all components on this machine. You do not need to set this except when you spread your cluster over multiple hosts.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.settingsSecret.TOKENS_KEY_BASE

A file containing a unique base64 encoded secret for the TOKENS_KEY_BASE. All Firezone components in your cluster must use the same value.

If this is null, a shared value will automatically be generated on startup and used for all components on this machine. You do not need to set this except when you spread your cluster over multiple hosts.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.settingsSecret.TOKENS_SALT

A file containing a unique base64 encoded secret for the TOKENS_SALT. All Firezone components in your cluster must use the same value.

If this is null, a shared value will automatically be generated on startup and used for all components on this machine. You do not need to set this except when you spread your cluster over multiple hosts.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.smtp.configureManually

Outbound email configuration is mandatory for Firezone and supports many different delivery adapters. Yet, most users will only need an SMTP relay to send emails, so this configuration enforced by default.

If you want to utilize an alternative way to send emails (e.g. via a supportd API-based service), enable this option and define OUTBOUND_EMAIL_FROM, OUTBOUND_EMAIL_ADAPTER and OUTBOUND_EMAIL_ADAPTER_OPTS manually via services.firezone.server.settings and/or services.firezone.server.settingsSecret.

The Firezone documentation holds a list of supported Swoosh adapters.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.smtp.from

Outbound SMTP FROM address

Type: string

Example: "firezone@example.com"

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.smtp.host

Outbound SMTP host

Type: string

Example: "mail.example.com"

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.smtp.implicitTls

Whether to use implicit TLS instead of STARTTLS (usually port 465)

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.smtp.passwordFile

File containing the password for the given username. Beware that a file in the nix store will be world readable.

Type: absolute path

Example: "/run/secrets/smtp-password"

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.smtp.port

Outbound SMTP port

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

Example: 465

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.smtp.username

Username to authenticate against the SMTP relay

Type: string

Example: "firezone@example.com"

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.web.address

The address to listen on

Type: string

Default: "127.0.0.1"

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.web.enable

Whether to enable the Firezone web server.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.web.externalUrl

The external URL under which you will serve the web interface. You need to setup a reverse proxy for TLS termination, either with services.firezone.server.nginx.enable or manually.

Type: string matching the pattern ^https://.+/$

Example: "https://firezone.example.com/"

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.web.package

The firezone-server-web package to use.

Type: package

Default: pkgs.firezone-server-web

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.web.port

The port under which the web interface will be served locally

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

Default: 8080

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.web.settings

Environment variables for this component of the Firezone server. For a list of available variables, please refer to the upstream definitions. Some variables like OUTBOUND_EMAIL_ADAPTER_OPTS require json values for which you can use VAR = builtins.toJSON { /* ... */ }.

This component will automatically inherit all variables defined via services.firezone.server.settings and services.firezone.server.settingsSecret, but which can be overwritten by this option.

Type: open submodule of attribute set of (boolean or floating point number or signed integer or string or absolute path or package)

Default: { }

Declared by: nixos/modules/services/networking/firezone/server.nix

services.firezone.server.web.trustedProxies

A list of trusted proxies

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/firezone/server.nix

services.flame.apps

Applications shown on the dashboard. When non-empty, this fully replaces the contents of Flame's apps table on every service start — any apps added through the web UI will not persist across restarts.

Type: list of (submodule)

Default: [ ]

Example:

[
  {
    name = "Router";
    url = "http://192.168.1.1";
  }
]

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.apps.*.description

Short description shown for the app.

Type: string

Default: ""

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.apps.*.icon

Icon name or URL for the app.

Type: string

Default: "cancel"

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.apps.*.isPinned

Whether the app is pinned by default.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.apps.*.name

Name of the app.

Type: string

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.apps.*.url

URL of the app.

Type: string

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.categories

Bookmark categories and their bookmarks. When non-empty, this fully replaces the contents of Flame's categories and bookmarks tables on every service start — any bookmarks added through the web UI will not persist across restarts.

Type: list of (submodule)

Default: [ ]

Example:

[
  {
    bookmarks = [
      {
        name = "GitHub";
        url = "https://github.com";
      }
    ];
    name = "Dev";
  }
]

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.categories.*.bookmarks

Bookmarks belonging to this category.

Type: list of (submodule)

Default: [ ]

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.categories.*.bookmarks.*.icon

Icon name or URL for the bookmark.

Type: string

Default: ""

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.categories.*.bookmarks.*.name

Name of the bookmark.

Type: string

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.categories.*.bookmarks.*.url

URL of the bookmark.

Type: string

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.categories.*.isPinned

Whether the category is pinned by default.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.categories.*.name

Name of the bookmark category.

Type: string

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.customCSS

Custom CSS injected into Flame's UI, written to public/flame.css on every service start. Can also be used to define a fully custom theme via CSS custom properties — see Flame's Custom CSS wiki page.

Type: strings concatenated with "\n"

Default: ""

Example:

''
  .Home_SettingsButton__Qvn8C {
    border-radius: 0 !important;
  }
''

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.enable

Whether to enable Flame, a self-hosted startpage for your server.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.openFirewall

Whether to open the firewall for the port used by Flame.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.package

The flame package to use.

Type: package

Default: pkgs.flame

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.passwordFile

Path to a file containing the password to log in to Flame's settings panel. This is the recommended option as it avoids storing the password in the Nix store. Compatible with sops-nix and agenix.

Type: absolute path

Example: "/run/secrets/flame-password"

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.port

Port on which to serve the Flame web interface.

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

Default: 5005

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.settings

Flame settings, written to Flame's settings JSON on every service start. Accepts any key Flame's settings API supports; see Flame's source for the current schema, since Flame does not publish separate settings documentation.

greetingsSchema, daySchema, and monthSchema accept either a list of strings or a single semicolon-separated string.

Type: open submodule of (JSON value)

Default: { }

Example:

{
  customTitle = "My Dashboard";
  hideHeader = true;
  lat = 52.52;
  long = 13.405;
}

Declared by: nixos/modules/services/web-apps/flame.nix

services.flame.settings.weatherApiKeyFile

Path to a file containing the API key obtained from https://www.weatherapi.com used for Flame's weather widget. Compatible with sops-nix and agenix.

Type: null or absolute path

Default: null

Example: "/run/secrets/flame-weather-api-key"

Declared by: nixos/modules/services/web-apps/flame.nix

services.flannel.backend

Type of backend to use and specific configurations for that backend.

Type: attribute set

Default:

{
  Type = "vxlan";
}

Declared by: nixos/modules/services/networking/flannel.nix

services.flannel.enable

Whether to enable flannel.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/flannel.nix

services.flannel.etcd.caFile

Etcd certificate authority file

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/networking/flannel.nix

services.flannel.etcd.certFile

Etcd cert file

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/networking/flannel.nix

services.flannel.etcd.endpoints

Etcd endpoints

Type: list of string

Default:

[
  "http://127.0.0.1:2379"
]

Declared by: nixos/modules/services/networking/flannel.nix

services.flannel.etcd.keyFile

Etcd key file

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/networking/flannel.nix

services.flannel.etcd.prefix

Etcd key prefix

Type: string

Default: "/coreos.com/network"

Declared by: nixos/modules/services/networking/flannel.nix

services.flannel.extraNetworkConfig

Extra configuration to be added to the net-conf.json/etcd-backed network configuration.

Type: JSON value

Default: { }

Example:

{
  EnableIPv6 = true;
}

Declared by: nixos/modules/services/networking/flannel.nix

services.flannel.iface

Interface to use (IP or name) for inter-host communication. Defaults to the interface for the default route on the machine.

Type: null or string

Default: null

Declared by: nixos/modules/services/networking/flannel.nix

services.flannel.kubeconfig

Path to kubeconfig to use for storing flannel config using the Kubernetes API

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/networking/flannel.nix

services.flannel.network

IPv4 network in CIDR format to use for the entire flannel network

Type: string

Declared by: nixos/modules/services/networking/flannel.nix

services.flannel.nodeName

Needed when running with Kubernetes as backend as this cannot be auto-detected";

Type: null or string

Default: config.networking.fqdnOrHostName

Example: "node1.example.com"

Declared by: nixos/modules/services/networking/flannel.nix

services.flannel.package

The flannel package to use.

Type: package

Default: pkgs.flannel

Declared by: nixos/modules/services/networking/flannel.nix

services.flannel.publicIp

IP accessible by other nodes for inter-host communication. Defaults to the IP of the interface being used for communication.

Type: null or string

Default: null

Declared by: nixos/modules/services/networking/flannel.nix

services.flannel.storageBackend

Determines where flannel stores its configuration at runtime

Type: one of "etcd", "kubernetes"

Default: "etcd"

Declared by: nixos/modules/services/networking/flannel.nix

services.flannel.subnetLen

The size of the subnet allocated to each host. Defaults to 24 (i.e. /24) unless the Network was configured to be smaller than a /24 in which case it is one less than the network.

Type: signed integer

Default: 24

Declared by: nixos/modules/services/networking/flannel.nix

services.flannel.subnetMax

The end of IP range which the subnet allocation should start with. Defaults to the last subnet of Network.

Type: null or string

Default: null

Declared by: nixos/modules/services/networking/flannel.nix

services.flannel.subnetMin

The beginning of IP range which the subnet allocation should start with. Defaults to the first subnet of Network.

Type: null or string

Default: null

Declared by: nixos/modules/services/networking/flannel.nix

services.flap-alerted.enable

Whether to enable FlapAlerted.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/monitoring/flap-alerted.nix

services.flap-alerted.environmentFiles

Files to load environment variables from. This is useful to avoid putting secrets into the nix store. See https://github.com/Kioubit/FlapAlerted for a list of options.

Type: list of absolute path

Default: [ ]

Example:

[
  "/run/secrets/flap-alerted.env"
]

Declared by: nixos/modules/services/monitoring/flap-alerted.nix

services.flap-alerted.extraArgs

Extra command line arguments to pass to FlapAlerted. See https://github.com/Kioubit/FlapAlerted for a list of options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/monitoring/flap-alerted.nix

services.flap-alerted.package

The flap-alerted package to use.

Type: package

Default: pkgs.flap-alerted

Declared by: nixos/modules/services/monitoring/flap-alerted.nix

services.flap-alerted.settings

Configuration of FlapAlerted. See https://github.com/Kioubit/FlapAlerted for a list of options.

Type: open submodule of attribute set of (null or string or signed integer or boolean)

Default: { }

Declared by: nixos/modules/services/monitoring/flap-alerted.nix

services.flap-alerted.settings.asn

Your ASN number

Type: 32 bit unsigned integer; between 0 and 4294967295 (both inclusive)

Declared by: nixos/modules/services/monitoring/flap-alerted.nix

services.flap-alerted.settings.bgpListenAddress

Address to listen on for incoming BGP connections

Type: string

Default: ":1790"

Declared by: nixos/modules/services/monitoring/flap-alerted.nix

services.flap-alerted.settings.debug

Enable debug mode (produces a lot of output)

Type: boolean

Default: false

Declared by: nixos/modules/services/monitoring/flap-alerted.nix

services.flaresolverr.enable

Whether to enable FlareSolverr, a proxy server to bypass Cloudflare protection.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/misc/flaresolverr.nix

services.flaresolverr.openFirewall

Open the port in the firewall for FlareSolverr.

Type: boolean

Default: false

Declared by: nixos/modules/services/misc/flaresolverr.nix

services.flaresolverr.package

The flaresolverr package to use.

Type: package

Default: pkgs.flaresolverr

Declared by: nixos/modules/services/misc/flaresolverr.nix

services.flaresolverr.port

The port on which FlareSolverr will listen for incoming HTTP traffic.

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

Default: 8191

Declared by: nixos/modules/services/misc/flaresolverr.nix

services.flarum.adminEmail

Email for first web application administrator

Type: string

Default: "admin@example.com"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.adminUser

Username for first web application administrator

Type: string

Default: "flarum"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.adoptConfig

Whether to let this module manage a pre-existing config.php, such as a hand-maintained one (typically with createDatabaseLocally = false).

By default, a config.php this module didn't create is left alone: baseUrl and database are not applied to it, so real settings can't get silently overwritten by their defaults.

Before enabling this, make sure baseUrl and database already match the file's real values. Once enabled, config.php is regenerated from these options on every activation, and anything in the file not covered by them is lost.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.baseUrl

Change domain instead.

Type: string

Default: "http://localhost"

Example: "https://forum.example.com"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.createDatabaseLocally

Create the database and database user locally, and run installation.

WARNING: Due to https://github.com/flarum/framework/issues/4018, this option is set to false by default. The 'flarum install' command may delete existing database tables. Only set this to true if you are certain you are working with a fresh, empty database.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.database

MySQL database parameters.

WARNING: A password set here is stored world-readable in the Nix store. Use databasePasswordFile instead.

Type: open submodule of attribute set of (string or boolean or signed integer)

Default: { }

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.database.charset

Character encoding for the database.

Type: string

Default: "utf8mb4"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.database.collation

Character collation for database sorting and comparison.

Type: string

Default: "utf8mb4_unicode_ci"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.database.database

Database name.

Type: string

Default: "flarum"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.database.driver

Database driver; i.e. MySQL, MariaDB...

Type: string

Default: "mysql"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.database.engine

Storage engine for new tables; MySQL-only.

Type: string

Default: "InnoDB"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.database.host

Database server hostname.

Type: string

Default: "localhost"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.database.password

Password for database server access.

Type: string

Default: ""

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.database.port

Database connection port; defaults to 3306 with MySQL.

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

Default: 3306

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.database.prefix

Table prefix; useful for sharing a database with other services.

Type: string

Default: ""

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.database.prefix_indexes

Apply table prefix to database index names.

Type: boolean

Default: true

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.database.strict

Enable strict SQL mode.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.database.username

Username for database server access.

Type: string

Default: "flarum"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.databasePasswordFile

File containing the database password. Must be readable by the flarum user. Takes precedence over database.password.

The password must not contain " or \ characters, as it is substituted into a JSON installation config verbatim.

Type: null or absolute path

Default: null

Example: "/run/secrets/flarum-db-password"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.domain

Domain to serve on.

Type: string

Default: "localhost"

Example: "forum.example.com"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.enable

Whether to enable Flarum discussion platform.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.forumTitle

Title of the forum.

Type: string

Default: "A Flarum Forum on NixOS"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.group

System group to run Flarum

Type: string

Default: "flarum"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.initialAdminPassword

Initial password for the adminUser.

WARNING: This is stored world-readable in the Nix store. Use initialAdminPasswordFile instead.

Type: string

Default: "flarum"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.initialAdminPasswordFile

File containing the initial password for adminUser. Must be readable by the flarum user. Takes precedence over initialAdminPassword.

The password must not contain " or \ characters, as it is substituted into a JSON installation config verbatim.

Type: null or absolute path

Default: null

Example: "/run/secrets/flarum-admin-password"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.package

Flarum package to use.

Upgrading from Flarum 1.x to 2.x migrates the database and can't be undone, so back up the database and make sure all extensions support Flarum 2 before switching.

Type: package

Default:

if versionOlder config.system.stateVersion "26.11" then pkgs.flarum_1 else pkgs.flarum_2

Related packages:

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.stateDir

Home directory for writable storage

Type: absolute path

Default: "/var/lib/flarum"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flarum.user

System user to run Flarum

Type: string

Default: "flarum"

Declared by: nixos/modules/services/web-apps/flarum.nix

services.flatpak.enable

Whether to enable flatpak.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/desktops/flatpak.nix

services.flatpak.package

The flatpak package to use.

Type: package

Default: pkgs.flatpak

Declared by: nixos/modules/services/desktops/flatpak.nix

services.flexget.config

The YAML configuration for FlexGet.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/torrent/flexget.nix

services.flexget.enable

Whether to enable FlexGet daemon.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/torrent/flexget.nix

services.flexget.homeDir

Where files live.

Type: absolute path

Default: "/var/lib/deluge"

Example: "/home/flexget"

Declared by: nixos/modules/services/torrent/flexget.nix

services.flexget.interval

When to perform a flexget run. See man 7 systemd.time for the format.

Type: string

Default: "10m"

Example: "1h"

Declared by: nixos/modules/services/torrent/flexget.nix

services.flexget.package

The flexget package to use.

Type: package

Default: pkgs.flexget

Declared by: nixos/modules/services/torrent/flexget.nix

services.flexget.systemScheduler

When true, execute the runs via the flexget-runner.timer. If false, you have to specify the settings yourself in the YML file.

Type: boolean

Default: true

Example: false

Declared by: nixos/modules/services/torrent/flexget.nix

services.flexget.user

The user under which to run flexget.

Type: string

Default: "deluge"

Example: "some_user"

Declared by: nixos/modules/services/torrent/flexget.nix

services.flood.enable

Whether to enable flood.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/torrent/flood.nix

services.flood.extraArgs

Extra arguments passed to flood.

Type: list of string

Default: [ ]

Example:

[
  "--baseuri=/"
]

Declared by: nixos/modules/services/torrent/flood.nix

services.flood.host

Host to bind webserver.

Type: string

Default: "localhost"

Example: "::"

Declared by: nixos/modules/services/torrent/flood.nix

services.flood.openFirewall

Whether to open the firewall for the port in services.flood.port.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/torrent/flood.nix

services.flood.package

The flood package to use.

Type: package

Default: pkgs.flood

Declared by: nixos/modules/services/torrent/flood.nix

services.flood.port

Port to bind webserver.

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

Default: 3000

Example: 3001

Declared by: nixos/modules/services/torrent/flood.nix

services.fluent-bit.configurationFile

Fluent Bit configuration. See https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/yaml for supported values.

configurationFile takes precedence over settings.

Note: Restricted evaluation blocks access to paths outside the Nix store. This means detecting content changes for mutable paths (i.e. not input or content-addressed) can't be done. As a result, nixos-rebuild won't reload/restart the systemd unit when mutable path contents change. systemctl restart fluent-bit.service must be used instead.

Type: absolute path

Default: yamlFormat.generate "fluent-bit.yaml" cfg.settings

Example: "/etc/fluent-bit/fluent-bit.yaml"

Declared by: nixos/modules/services/monitoring/fluent-bit.nix

services.fluent-bit.enable

Whether to enable Fluent Bit.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/monitoring/fluent-bit.nix

services.fluent-bit.graceLimit

The grace time limit. Sets the systemd unit's TimeoutStopSec.

The service.grace option in the Fluent Bit configuration should be ≤ this option.

Type: null or positive integer, meaning >0, or string

Default: null

Example: 30

Declared by: nixos/modules/services/monitoring/fluent-bit.nix

services.fluent-bit.package

The fluent-bit package to use.

Type: package

Default: pkgs.fluent-bit

Declared by: nixos/modules/services/monitoring/fluent-bit.nix

services.fluent-bit.settings

See configurationFile.

configurationFile takes precedence over settings.

Type: YAML 1.1 value

Default: { }

Example:

{
  pipeline = {
    inputs = [
      {
        name = "systemd";
        systemd_filter = "_SYSTEMD_UNIT=fluent-bit.service";
      }
    ];
    outputs = [
      {
        file = "fluent-bit.out";
        name = "file";
        path = "/var/log/fluent-bit";
      }
    ];
  };
  service = {
    grace = 30;
  };
}

Declared by: nixos/modules/services/monitoring/fluent-bit.nix

services.fluentd.config

Fluentd config.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/logging/fluentd.nix

services.fluentd.enable

Whether to enable fluentd, a data/log collector.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/logging/fluentd.nix

services.fluentd.package

The fluentd package to use.

Type: package

Default: pkgs.fluentd

Declared by: nixos/modules/services/logging/fluentd.nix

services.fluentd.plugins

A list of plugin paths to pass into fluentd. It will make plugins defined in ruby files there available in your config.

Type: list of absolute path

Default: [ ]

Declared by: nixos/modules/services/logging/fluentd.nix

services.fluidd.enable

Whether to enable Fluidd, a Klipper web interface for managing your 3d printer.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.hostName

Hostname to serve fluidd on

Type: string

Default: "localhost"

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx

Extra configuration for the nginx virtual host of fluidd.

Type: submodule

Default: { }

Example:

{
  serverAliases = [ "fluidd.${config.networking.domain}" ];
}

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.acmeFallbackHost

Host which to proxy requests to if ACME challenge is not found. Useful if you want multiple hosts to be able to verify the same domain name.

With this option, you could request certificates for the present domain with an ACME client that is running on another host, which you would specify here.

Type: null or string

Default: null

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.acmeRoot

Directory for the ACME challenge, which is public. Don't put certs or keys in here. Set to null to inherit from config.security.acme.

Type: null or string

Default: "/var/lib/acme/acme-challenge"

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.addSSL

Whether to enable HTTPS in addition to plain HTTP. This will set defaults for listen to listen on all interfaces on the respective default ports (80, 443).

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.basicAuth

Basic Auth protection for a vhost.

WARNING: This is implemented to store the password in plain text in the Nix store.

Type: attribute set of string

Default: { }

Example:

{
  user = "password";
};

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.basicAuthFile

Basic Auth password file for a vhost. Can be created by running nix-shell --packages apacheHttpd --run 'htpasswd -B -c FILENAME USERNAME'.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.default

Makes this vhost the default.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.enableACME

Whether to ask Let's Encrypt to sign a certificate for this vhost. Alternately, you can use an existing certificate through useACMEHost.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.extraConfig

These lines go to the end of the vhost verbatim.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.forceSSL

Whether to add a separate nginx server block that redirects (defaults to 301, configurable with redirectCode) all plain HTTP traffic to HTTPS. This will set defaults for listen to listen on all interfaces on the respective default ports (80, 443), where the non-SSL listens are used for the redirect vhosts.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.globalRedirect

If set, all requests for this host are redirected (defaults to 301, configurable with redirectCode) to the given hostname.

Type: null or string

Default: null

Example: "newserver.example.org"

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.http2

Whether to enable the HTTP/2 protocol. Note that (as of writing) due to nginx's implementation, to disable HTTP/2 you have to disable it on all vhosts that use a given IP address / port. If there is one server block configured to enable http2, then it is enabled for all server blocks on this IP. See https://stackoverflow.com/a/39466948/263061.

Type: boolean

Default: true

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.http3

Whether to enable the HTTP/3 protocol. This requires activating the QUIC transport protocol services.nginx.virtualHosts.<name>.quic = true;. Note that HTTP/3 support is experimental and not yet recommended for production. Read more at https://quic.nginx.org/ HTTP/3 availability must be manually advertised, preferably in each location block.

Type: boolean

Default: true

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.http3_hq

Whether to enable the HTTP/0.9 protocol negotiation used in QUIC interoperability tests. This requires activating the QUIC transport protocol services.nginx.virtualHosts.<name>.quic = true;. Note that special application protocol support is experimental and not yet recommended for production. Read more at https://quic.nginx.org/

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.kTLS

Whether to enable kTLS support. Implementing TLS in the kernel (kTLS) improves performance by significantly reducing the need for copying operations between user space and the kernel. Required Nginx version 1.21.4 or later.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.listen

Listen addresses and ports for this virtual host. IPv6 addresses must be enclosed in square brackets. Note: this option overrides addSSL and onlySSL.

If you only want to set the addresses manually and not the ports, take a look at listenAddresses.

Type: list of (submodule)

Default: [ ]

Example:

[
  {
    addr = "195.154.1.1";
    port = 443;
    ssl = true;
  }
  {
    addr = "192.154.1.1";
    port = 80;
  }
  {
    addr = "unix:/var/run/nginx.sock";
  }
]

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.listen.*.addr

Listen address.

Type: string

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.listen.*.extraParameters

Extra parameters of this listen directive.

Type: list of string

Default: [ ]

Example:

[
  "backlog=1024"
  "deferred"
]

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.listen.*.port

Port number to listen on. If unset and the listen address is not a socket then nginx defaults to 80.

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

Default: null

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.listen.*.proxyProtocol

Enable PROXY protocol.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.listen.*.ssl

Enable SSL.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.listenAddresses

Listen addresses for this virtual host. Compared to listen this only sets the addresses and the ports are chosen automatically.

Note: This option overrides networking.enableIPv6

Type: list of string

Default: [ ]

Example:

[
  "127.0.0.1"
  "[::1]"
]

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.locations

Declarative location config

Type: attribute set of (submodule)

Default: { }

Example:

{
  "/" = {
    proxyPass = "http://localhost:3000";
  };
};

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.locations.<name>.alias

Alias directory for requests.

Type: null or absolute path

Default: null

Example: "/your/alias/directory"

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.locations.<name>.basicAuth

Basic Auth protection for a vhost.

WARNING: This is implemented to store the password in plain text in the Nix store.

Type: attribute set of string

Default: { }

Example:

{
  user = "password";
};

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.locations.<name>.basicAuthFile

Basic Auth password file for a vhost. Can be created by running nix-shell --packages apacheHttpd --run 'htpasswd -B -c FILENAME USERNAME'.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.locations.<name>.extraConfig

These lines go to the end of the location verbatim.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.locations.<name>.fastcgiParams

FastCGI parameters to override. Unlike in the Nginx configuration file, overriding only some default parameters won't unset the default values for other parameters.

Type: attribute set of (string or absolute path)

Default: { }

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.locations.<name>.index

Adds index directive.

Type: null or string

Default: null

Example: "index.php index.html"

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.locations.<name>.priority

Order of this location block in relation to the others in the vhost. The semantics are the same as with lib.mkOrder. Smaller values have a greater priority.

Type: signed integer

Default: 1000

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.locations.<name>.proxyPass

Adds proxy_pass directive and sets recommended proxy headers if recommendedProxySettings is enabled.

Type: null or string

Default: null

Example: "http://www.example.org/"

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.locations.<name>.proxyWebsockets

Whether to support proxying websocket connections with HTTP/1.1.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.locations.<name>.recommendedProxySettings

Enable recommended proxy settings.

Type: boolean

Default: config.services.nginx.recommendedProxySettings

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.locations.<name>.recommendedUwsgiSettings

Enable recommended uwsgi settings.

Type: boolean

Default: config.services.nginx.recommendedUwsgiSettings

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.locations.<name>.return

Adds a return directive, for e.g. redirections.

Type: null or string or signed integer

Default: null

Example: "301 http://example.com$request_uri"

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.locations.<name>.root

Root directory for requests.

Type: null or absolute path

Default: null

Example: "/your/root/directory"

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.locations.<name>.tryFiles

Adds try_files directive.

Type: null or string

Default: null

Example: "$uri =404"

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.locations.<name>.useGrpcErrorPages

Whether to configure error codes to be emitted as gRPC-compatible errors.

Should be set when proxying gRPC, and returning responses from nginx (like when adding authentication).

This defines a few @grpc-* locations inside the containing vhost.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.locations.<name>.uwsgiPass

Adds uwsgi_pass directive and sets recommended proxy headers if recommendedUwsgiSettings is enabled.

Type: null or string

Default: null

Example: "unix:/run/example/example.sock"

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.onlySSL

Whether to enable HTTPS and reject plain HTTP connections. This will set defaults for listen to listen on all interfaces on port 443.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.quic

Whether to enable the QUIC transport protocol. Note that QUIC support is experimental and not yet recommended for production. Read more at https://quic.nginx.org/

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.redirectCode

HTTP status used by globalRedirect and forceSSL. Possible usecases include temporary (302, 307) redirects, keeping the request method and body (307, 308), or explicitly resetting the method to GET (303). See https://developer.mozilla.org/en-US/docs/Web/HTTP/Redirections.

Type: integer between 300 and 399 (both inclusive)

Default: 301

Example: 308

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.rejectSSL

Whether to listen for and reject all HTTPS connections to this vhost. Useful in default server blocks to avoid serving the certificate for another vhost. Uses the ssl_reject_handshake directive available in nginx versions 1.19.4 and above.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.reuseport

Create an individual listening socket . It is required to specify only once on one of the hosts.

Type: boolean

Default: false

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.root

The path of the web root directory.

Type: null or absolute path

Default: null

Example: "/data/webserver/docs"

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.serverAliases

Additional names of virtual hosts served by this virtual host configuration.

Type: list of string

Default: [ ]

Example:

[
  "www.example.org"
  "example.org"
]

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.serverName

Name of this virtual host. Defaults to attribute name in virtualHosts.

Type: null or string

Default: null

Example: "example.org"

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.sslCertificate

Path to server SSL certificate.

Type: absolute path

Example: "/var/host.cert"

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.sslCertificateKey

Path to server SSL certificate key.

Type: absolute path

Example: "/var/host.key"

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.sslTrustedCertificate

Path to root SSL certificate for stapling and client certificates.

Type: null or absolute path

Default: null

Example: "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.nginx.useACMEHost

A host of an existing Let's Encrypt certificate to use. This is useful if you have many subdomains and want to avoid hitting the rate limit. Alternately, you can generate a certificate through enableACME. Note that this option does not create any certificates, nor it does add subdomains to existing ones – you will need to create them manually using security.

Type: null or string

Default: null

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.fluidd.package

The fluidd package to use.

Type: package

Default: pkgs.fluidd

Declared by: nixos/modules/services/web-apps/fluidd.nix

services.foldingathome.daemonNiceLevel

Daemon process priority for FAHClient. 0 is the default Unix process priority, 19 is the lowest.

Type: integer between -20 and 19 (both inclusive)

Default: 0

Declared by: nixos/modules/services/computing/foldingathome/client.nix

services.foldingathome.enable

Whether to enable Folding@home client.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/computing/foldingathome/client.nix

services.foldingathome.extraArgs

Extra startup options for the FAHClient. Run fah-client --help to find all the available options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/computing/foldingathome/client.nix

services.foldingathome.package

The fahclient package to use.

Type: package

Default: pkgs.fahclient

Declared by: nixos/modules/services/computing/foldingathome/client.nix

services.foldingathome.team

The team ID associated with the reported computation results. This will be used in the ranking statistics.

By default, use the NixOS folding@home team ID is being used.

Type: signed integer

Default: 236565

Declared by: nixos/modules/services/computing/foldingathome/client.nix

services.foldingathome.user

The user associated with the reported computation results. This will be used in the ranking statistics.

Type: null or string

Default: null

Declared by: nixos/modules/services/computing/foldingathome/client.nix

services.forgejo-runner.instances

Forgejo Runner instances.

Type: attribute set of (submodule)

Default: { }

Declared by: nixos/modules/services/continuous-integration/forgejo-runner.nix

services.forgejo-runner.instances.<name>.enable

Whether to enable this Forgejo Runner instance.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/continuous-integration/forgejo-runner.nix

services.forgejo-runner.instances.<name>.hostPackages

List of packages that are available to your workflow and actions when the runner is configured with a label of type host (services.forgejo-runner.instances.<name>.runtimes.host).

Note

gitMinimal is always part of the environment because forgejo-runner depends on it. If you need a different variant of git, e.g. gitFull, add it here. Your package will take priority over gitMinimal.

Type: list of package

Default:

with pkgs; [
  bash
  coreutils
  curl
  gawk
  gnused
  nodejs
  wget
]

Declared by: nixos/modules/services/continuous-integration/forgejo-runner.nix

services.forgejo-runner.instances.<name>.runtimes.docker

Whether to configure the systemd service to work with Docker.

Warning

Setting this will override the automatic detection and safeguards.

Type: boolean

Default: Whether this instance has at least one label with infix :docker and config.virtualisation.docker.enable set to true.

Declared by: nixos/modules/services/continuous-integration/forgejo-runner.nix

services.forgejo-runner.instances.<name>.runtimes.host

Whether to configure the systemd service for jobs with the backend of type host.

Warning

Setting this will override the automatic detection and safeguards.

Type: boolean

Default: Whether this instance has at least one label with suffix :host.

Declared by: nixos/modules/services/continuous-integration/forgejo-runner.nix

services.forgejo-runner.instances.<name>.runtimes.podman

Whether to configure the systemd service to work with Podman.

Warning

Setting this will override the automatic detection and safeguards.

Type: boolean

Default: Whether this instance has at least one label with infix :docker and config.virtualisation.podman.enable set to true.

Declared by: nixos/modules/services/continuous-integration/forgejo-runner.nix

services.forgejo-runner.instances.<name>.secrets

This follows the same structure as services.forgejo-runner.instances.<name>.settings but the value of each key is a path.

The specified secret path is then read by systemd via LoadCredential= and templated into services.forgejo-runner.instances.<name>.settings for you.

Type: nested attribute set of absolute path not in the Nix store

Default: { }

Example:

{
  server.connections.example = {
    token_url = "/run/keys/forgejo-runner_token";
  };

  cache = {
    secret_url = "/run/keys/forgejo-runner_cache-secret";
  };
}

Declared by: nixos/modules/services/continuous-integration/forgejo-runner.nix

services.forgejo-runner.instances.<name>.settings

Free-form settings written directly to the config.yaml file. Refer to config.example.yaml or run forgejo-runner generation-config for supported values.

Type: open submodule of (YAML 1.1 value)

Default: { }

Declared by: nixos/modules/services/continuous-integration/forgejo-runner.nix

services.forgejo-runner.instances.<name>.settings.runner.labels

Labels used to map jobs to their runtime environment.

Many common actions require bash, git and node, as well as a filesystem that follows the filesystem hierarchy standard.

If you specify a label of type docker, the resulting runner service will be automatically added to the Podman or Docker group.

See https://forgejo.org/docs/latest/admin/actions/configuration/#choosing-labels.

Note

Labels of type lxc are currently not supported.

Type: list of string

Default: [ ]

Example:

[
  # provide a debian base with nodejs for actions
  "debian-latest:docker://node:current"
  # fake the ubuntu name, because node provides no ubuntu builds
  "ubuntu-latest:docker://node:current"
  # provide native execution on the host
  #"native:host"
]

Declared by: nixos/modules/services/continuous-integration/forgejo-runner.nix

services.forgejo-runner.instances.<name>.settings.server.connections

One or more connections to Forgejo instances, each with a UUID and Token pair.

See https://forgejo.org/docs/latest/admin/actions/registration/.

Note

Ephemeral runner mode is not yet supported by this module.

Type: attribute set of (open submodule of (YAML 1.1 value))

Default: { }

Example:

{
  default = {
    url = "https://example.com/";
    uuid = "c9e50be9-a7c3-4aee-ba35-624c4ff8c519";

    # Also see services.forgejo-runner.instances.<name>.secrets.server.connections.<name>.token_url
    token = "6634bb58be0db23cc013a2e72dd1828ae0257cf";
  };
}

Declared by: nixos/modules/services/continuous-integration/forgejo-runner.nix

services.forgejo-runner.instances.<name>.settings.server.connections.<name>.token

Token of this runner.

See https://forgejo.org/docs/latest/admin/actions/registration/.

Note

The deprecated "Registration Token" is not supported. You need a UUID and Token pair.

Warning

The value will be stored unencrypted in the world-readable Nix store. To store the secret securely, see services.forgejo-runner.instances.<name>.secrets.server.connections.<name>.token_url.

Type: null or string

Default: null

Example: "6634bb58be0db23cc013a2e72dd1828ae0257cf"

Declared by: nixos/modules/services/continuous-integration/forgejo-runner.nix

services.forgejo-runner.instances.<name>.settings.server.connections.<name>.url

Base URL of your Forgejo instance.

Type: string

Example: "https://example.com/"

Declared by: nixos/modules/services/continuous-integration/forgejo-runner.nix

services.forgejo-runner.instances.<name>.settings.server.connections.<name>.uuid

UUID of this runner.

See https://forgejo.org/docs/latest/admin/actions/registration/.

Type: string

Example: "c9e50be9-a7c3-4aee-ba35-624c4ff8c519"

Declared by: nixos/modules/services/continuous-integration/forgejo-runner.nix

services.forgejo-runner.package

The forgejo-runner package to use.

Type: package

Default: pkgs.forgejo-runner

Declared by: nixos/modules/services/continuous-integration/forgejo-runner.nix

services.forgejo.customDir

Base directory for custom templates and other options.

If services.forgejo.useWizard is disabled (default), this directory will also hold secrets and the resulting app.ini config at runtime.

Type: string

Default: "${config.services.forgejo.stateDir}/custom"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.database.createDatabase

Whether to create a local database automatically.

Type: boolean

Default: true

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.database.host

Database host address.

Type: string

Default: "127.0.0.1"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.database.name

Database name.

Type: string

Default: "forgejo"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.database.passwordFile

A file containing the password corresponding to services.forgejo.database.user.

Type: null or absolute path

Default: null

Example: "/run/keys/forgejo-dbpassword"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.database.path

Path to the sqlite3 database file.

Type: string

Default: "${config.services.forgejo.stateDir}/data/forgejo.db"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.database.port

Database host port.

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

Default:

if config.services.forgejo.database.type != "postgresql"
then 3306
else 5432

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.database.socket

Path to the unix socket file to use for authentication.

Type: null or absolute path

Default: null

Example: "/run/mysqld/mysqld.sock"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.database.type

Database engine to use.

Type: one of "sqlite3", "mysql", "postgres"

Default: "sqlite3"

Example: "mysql"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.database.user

Database user.

Type: string

Default: "forgejo"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.dump.age

Age of backup used to decide what files to delete when cleaning. If a file or directory is older than the current time minus the age field, it is deleted.

The format is described in tmpfiles.d(5).

Type: string

Default: "4w"

Example: "5d"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.dump.backupDir

Path to the directory where the dump archives will be stored.

Type: string

Default: "${config.services.forgejo.stateDir}/dump"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.dump.enable

Whether to enable periodic dumps via the built-in dump command.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.dump.file

Filename to be used for the dump. If null a default name is chosen by forgejo.

Type: null or string

Default: null

Example: "forgejo-dump"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.dump.interval

Run a Forgejo dump at this interval. Runs by default at 04:31 every day.

The format is described in systemd.time(7).

Type: string

Default: "04:31"

Example: "hourly"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.dump.type

Archive format used to store the dump file.

Type: one of "zip", "tar", "tar.sz", "tar.gz", "tar.xz", "tar.bz2", "tar.br", "tar.lz4", "tar.zst"

Default: "zip"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.enable

Whether to enable Forgejo, a software forge.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.group

Group under which Forgejo runs.

Type: string

Default: "forgejo"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.lfs.contentDir

Where to store LFS files.

Type: string

Default: "${config.services.forgejo.stateDir}/data/lfs"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.lfs.enable

Enables git-lfs support.

Type: boolean

Default: false

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.package

The forgejo-lts package to use.

Type: package

Default: pkgs.forgejo-lts

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.repositoryRoot

Path to the git repositories.

Type: string

Default: "${config.services.forgejo.stateDir}/repositories"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.secrets

This is a small wrapper over systemd's LoadCredential.

It takes the same sections and keys as services.forgejo.settings, but the value of each key is a path instead of a string or bool.

The path is then loaded as credential, exported as environment variable and then feed through https://codeberg.org/forgejo/forgejo/src/branch/forgejo/contrib/environment-to-ini/environment-to-ini.go.

It does the required environment variable escaping for you.

Note

Keys specified here take priority over the ones in services.forgejo.settings!

Type: open submodule of attribute set of attribute set of absolute path

Default: { }

Example:

{
  metrics = {
    TOKEN = "/run/keys/forgejo-metrics-token";
  };
  camo = {
    HMAC_KEY = "/run/keys/forgejo-camo-hmac";
  };
  service = {
    HCAPTCHA_SECRET = "/run/keys/forgejo-hcaptcha-secret";
    HCAPTCHA_SITEKEY = "/run/keys/forgejo-hcaptcha-sitekey";
  };
}

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.settings

Free-form settings written directly to the app.ini configfile file. Refer to https://forgejo.org/docs/latest/admin/config-cheat-sheet/ for supported values.

Type: open submodule of attribute set of section of an INI file (attrs of INI atom (null, bool, int, float or string))

Default: { }

Example:

{
  DEFAULT = {
    RUN_MODE = "dev";
  };
  "cron.sync_external_users" = {
    RUN_AT_START = true;
    SCHEDULE = "@every 24h";
    UPDATE_EXISTING = true;
  };
  mailer = {
    ENABLED = true;
    PROTOCOL = "sendmail";
    FROM = "do-not-reply@example.org";
    SENDMAIL_PATH = "${pkgs.system-sendmail}/bin/sendmail";
  };
  other = {
    SHOW_FOOTER_VERSION = false;
  };
}

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.settings.log.LEVEL

General log level.

Type: one of "Trace", "Debug", "Info", "Warn", "Error", "Critical"

Default: "Info"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.settings.log.ROOT_PATH

Root path for log files.

Type: string

Default: "${config.services.forgejo.stateDir}/log"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.settings.server.DISABLE_SSH

Disable external SSH feature.

Type: boolean

Default: false

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.settings.server.DOMAIN

Domain name of your server.

Type: string

Default: "localhost"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.settings.server.HTTP_ADDR

Listen address. Must be a path when using a unix socket.

Type: string or absolute path

Default: if lib.hasSuffix "+unix" cfg.settings.server.PROTOCOL then "/run/forgejo/forgejo.sock" else "0.0.0.0"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.settings.server.HTTP_PORT

Listen port. Ignored when using a unix socket.

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

Default: 3000

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.settings.server.PROTOCOL

Listen protocol. +unix means "over unix", not "in addition to."

Type: one of "http", "https", "fcgi", "http+unix", "fcgi+unix"

Default: "http"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.settings.server.ROOT_URL

Full public URL of Forgejo server.

Type: string

Default: "http://${config.services.forgejo.settings.server.DOMAIN}:${toString config.services.forgejo.settings.server.HTTP_PORT}/"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.settings.server.SSH_PORT

SSH port displayed in clone URL. The option is required to configure a service when the external visible port differs from the local listening port i.e. if port forwarding is used.

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

Default: 22

Example: 2222

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.settings.server.STATIC_ROOT_PATH

Upper level of template and static files path.

Type: string or absolute path

Default: config.services.forgejo.package.data

Example: "/var/lib/forgejo/data"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.stateDir

Forgejo data directory.

Type: string

Default: "/var/lib/forgejo"

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.useWizard

Whether to use the built-in installation wizard instead of declaratively managing the app.ini config file in nix.

Type: boolean

Default: false

Declared by: nixos/modules/services/misc/forgejo.nix

services.forgejo.user

User account under which Forgejo runs.

Type: string

Default: "forgejo"

Declared by: nixos/modules/services/misc/forgejo.nix

services.foundationdb.backupProcesses

Number of backup_agent processes to run for snapshots.

Type: signed integer

Default: 1

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.class

Process class

Type: null or one of "storage", "transaction", "stateless"

Default: null

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.dataDir

Data directory. All cluster data will be put under here.

Type: absolute path

Default: "/var/lib/foundationdb"

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.enable

Whether to enable FoundationDB Server.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.extraReadWritePaths

An extra set of filesystem paths that FoundationDB can read to and write from. By default, FoundationDB runs under a heavily namespaced systemd environment without write access to most of the filesystem outside of its data and log directories. By adding paths to this list, the set of writeable paths will be expanded. This is useful for allowing e.g. backups to local files, which must be performed on behalf of the foundationdb service.

Type: list of absolute path

Default: [ ]

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.group

Group account under which FoundationDB runs.

Type: string

Default: "foundationdb"

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.listenAddress

Publicly visible IP address of the process. Port is determined by process ID

Type: string

Default: "public"

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.listenPortStart

Starting port number for database listening sockets. Every FDB process binds to a subsequent port, to this number reflects the start of the overall range. e.g. having 8 server processes will use all ports between 4500 and 4507.

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

Default: 4500

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.locality

FoundationDB locality settings.

Type: submodule

Default:

{
  dataHall = null;
  datacenterId = null;
  machineId = null;
  zoneId = null;
}

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.locality.dataHall

Data hall identifier key. All processes physically located in a data hall should share the id. If you are depending on data hall based replication this must be set on all processes.

Type: null or string

Default: null

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.locality.datacenterId

Data center identifier key. All processes physically located in a data center should share the id. If you are depending on data center based replication this must be set on all processes.

Type: null or string

Default: null

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.locality.machineId

Machine identifier key. All processes on a machine should share a unique id. By default, processes on a machine determine a unique id to share. This does not generally need to be set.

Type: null or string

Default: null

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.locality.zoneId

Zone identifier key. Processes that share a zone id are considered non-unique for the purposes of data replication. If unset, defaults to machine id.

Type: null or string

Default: null

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.logDir

Log directory.

Type: absolute path

Default: "/var/log/foundationdb"

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.logSize

Roll over to a new log file after the current log file reaches the specified size.

Type: string

Default: "10MiB"

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.maxLogSize

Delete the oldest log file when the total size of all log files exceeds the specified size. If set to 0, old log files will not be deleted.

Type: string

Default: "100MiB"

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.memory

Maximum memory used by the process. The default value is 8GiB. When specified without a unit, MiB is assumed. This parameter does not change the memory allocation of the program. Rather, it sets a hard limit beyond which the process will kill itself and be restarted. The default value of 8GiB is double the intended memory usage in the default configuration (providing an emergency buffer to deal with memory leaks or similar problems). It is not recommended to decrease the value of this parameter below its default value. It may be increased if you wish to allocate a very large amount of storage engine memory or cache. In particular, when the storageMemory parameter is increased, the memory parameter should be increased by an equal amount.

Type: string

Default: "8GiB"

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.openFirewall

Open the firewall ports corresponding to FoundationDB processes and coordinators using config.networking.firewall.*.

Type: boolean

Default: false

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.package

The FoundationDB package to use for this server. This must be specified by the user in order to ensure migrations and upgrades are controlled appropriately.

Type: package

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.pidfile

Path to pidfile for fdbmonitor.

Type: absolute path

Default: "/run/foundationdb.pid"

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.publicAddress

Publicly visible IP address of the process. Port is determined by process ID

Type: string

Default: "auto"

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.restartDelay

Number of seconds to wait before restarting servers.

Type: signed integer

Default: 10

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.serverProcesses

Number of fdbserver processes to run.

Type: signed integer

Default: 1

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.storageMemory

Maximum memory used for data storage. The default value is 1GiB. When specified without a unit, MB is assumed. Clusters using the memory storage engine will be restricted to using this amount of memory per process for purposes of data storage. Memory overhead associated with storing the data is counted against this total. If you increase the storageMemory, you should also increase the memory parameter by the same amount.

Type: string

Default: "1GiB"

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.tls

FoundationDB Transport Security Layer (TLS) settings.

Type: null or (submodule)

Default: null

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.tls.allowedPeers

"Peer verification string". This may be used to adjust which TLS client certificates a server will accept, as a form of user authorization; for example, it may only accept TLS clients who offer a certificate abiding by some locality or organization name.

For more information, please see the FoundationDB documentation.

Type: string

Default: "Check.Valid=1,Check.Unexpired=1"

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.tls.certificate

Path to the TLS certificate file. This certificate will be offered to, and may be verified by, clients.

Type: string

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.tls.key

Private key file for the certificate.

Type: string

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.traceFormat

Trace logging format.

Type: one of "xml", "json"

Default: "xml"

Declared by: nixos/modules/services/databases/foundationdb.nix

services.foundationdb.user

User account under which FoundationDB runs.

Type: string

Default: "foundationdb"

Declared by: nixos/modules/services/databases/foundationdb.nix

services.fprintd.enable

Whether to enable fprintd daemon and PAM module for fingerprint readers handling.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/security/fprintd.nix

services.fprintd.enablePam

When enabled, PAM services will be configured to use fprintd for authorization.

Note

Enabling this option will add fingerprint-based authorization to all PAM services, including those which can authorize users in the background. If this is undesired, you can override this setting on a per-service basis through config.security.pam.services.<name>.fprintAuth. See https://github.com/NixOS/nixpkgs/issues/442117

Type: boolean

Default: config.services.fprintd.enable

Declared by: nixos/modules/services/security/fprintd.nix

services.fprintd.package

fprintd package to use.

Type: package

Default: if config.services.fprintd.tod.enable then pkgs.fprintd-tod else pkgs.fprintd

Declared by: nixos/modules/services/security/fprintd.nix

services.fprintd.tod.driver

Touch OEM Drivers (TOD) package to use.

Type: package

Example: pkgs.libfprint-2-tod1-goodix

Declared by: nixos/modules/services/security/fprintd.nix

services.fprintd.tod.enable

Whether to enable Touch OEM Drivers library support.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/security/fprintd.nix

services.fractalart.enable

Enable FractalArt for generating colorful wallpapers on login

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/x11/fractalart.nix

services.fractalart.height

Screen height

Type: null or signed integer

Default: null

Example: 1080

Declared by: nixos/modules/services/x11/fractalart.nix

services.fractalart.width

Screen width

Type: null or signed integer

Default: null

Example: 1920

Declared by: nixos/modules/services/x11/fractalart.nix

services.framework-control.enable

Whether to enable Framework Control device hardware service.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/hardware/framework-control.nix

services.framework-control.package

The framework-control package to use.

Type: package

Default: pkgs.framework-control

Declared by: nixos/modules/services/hardware/framework-control.nix

services.freeciv.enable

Whether to enable freeciv.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/games/freeciv.nix

services.freeciv.openFirewall

Whether to enable opening the firewall for the port listening for clients.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/games/freeciv.nix

services.freeciv.settings

Parameters of freeciv-server.

Type: open submodule of (freeciv-server params)

Default: { }

Declared by: nixos/modules/services/games/freeciv.nix

services.freeciv.settings.Announce

Announce game in LAN using given protocol.

Type: one of "IPv4", "IPv6", "none"

Default: "none"

Declared by: nixos/modules/services/games/freeciv.nix

services.freeciv.settings.Database

Enable database connection with given configuration.

Type: null or string

Default:

''
  [fcdb]
    backend="sqlite"
    database="/var/lib/freeciv/auth.sqlite"
''

Declared by: nixos/modules/services/games/freeciv.nix

services.freeciv.settings.Guests

Whether to enable guests to login if auth is enabled.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/games/freeciv.nix

services.freeciv.settings.Newusers

Whether to enable new users to login if auth is enabled.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/games/freeciv.nix

services.freeciv.settings.auth

Whether to enable server authentication.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/games/freeciv.nix

services.freeciv.settings.debug

Set debug log level.

Type: integer between 0 and 3 (both inclusive)

Default: 0

Declared by: nixos/modules/services/games/freeciv.nix

services.freeciv.settings.exit-on-end

Whether to enable exit instead of restarting when a game ends.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/games/freeciv.nix

services.freeciv.settings.port

Listen for clients on given port

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

Default: 5556

Declared by: nixos/modules/services/games/freeciv.nix

services.freeciv.settings.quitidle

Quit if no players for given time in seconds.

Type: null or signed integer

Default: null

Declared by: nixos/modules/services/games/freeciv.nix

services.freeciv.settings.read

Startup script.

Type: strings concatenated with "\n"

Default:

''
  /fcdb lua sqlite_createdb()
''

Declared by: nixos/modules/services/games/freeciv.nix

services.freeciv.settings.saves

Save games to given directory, a sub-directory named after the starting date of the service will me inserted to preserve older saves.

Type: null or string

Default: "/var/lib/freeciv/saves/"

Declared by: nixos/modules/services/games/freeciv.nix

services.freefall.devices

Device paths to all internal spinning hard drives.

Type: list of string

Default:

[
  "/dev/sda"
]

Declared by: nixos/modules/services/hardware/freefall.nix

services.freefall.enable

Whether to protect HP/Dell laptop hard drives (not SSDs) in free fall.

Type: boolean

Default: false

Declared by: nixos/modules/services/hardware/freefall.nix

services.freefall.package

The freefall package to use.

Type: package

Default: pkgs.freefall

Declared by: nixos/modules/services/hardware/freefall.nix

services.freeradius.configDir

The path of the freeradius server configuration directory.

Type: absolute path

Default: "/etc/raddb"

Declared by: nixos/modules/services/networking/freeradius.nix

services.freeradius.debug

Whether to enable debug logging for freeradius (-xx option). This should not be left on, since it includes sensitive data such as passwords in the logs.

Type: boolean

Default: false

Declared by: nixos/modules/services/networking/freeradius.nix

services.freeradius.enable

Whether to enable the freeradius server.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/freeradius.nix

services.freeradius.package

The freeradius package to use.

Type: package

Default: pkgs.freeradius

Declared by: nixos/modules/services/networking/freeradius.nix

services.freescout.databaseSetup.enable

Whether to enable automatic database setup and configuration

Type: boolean

Default: true

Declared by: nixos/modules/services/web-apps/freescout.nix

services.freescout.databaseSetup.kind

Type of database to automatically set up

Type: one of "mysql", "pgsql"

Default: "pgsql"

Example: "mysql"

Declared by: nixos/modules/services/web-apps/freescout.nix

services.freescout.domain

Domain the freescout installation will run under

Type: string

Example: "support.mydomain.net"

Declared by: nixos/modules/services/web-apps/freescout.nix

services.freescout.enable

Whether to enable FreeScout helpdesk application.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/freescout.nix

services.freescout.package

The freescout package to use.

Type: package

Default: pkgs.freescout

Declared by: nixos/modules/services/web-apps/freescout.nix

services.freescout.phpPackage

The php package to use

Type: package

Default: pkgs.php

Declared by: nixos/modules/services/web-apps/freescout.nix

services.freescout.poolConfig

Options for the freescout PHP pool. See the documentation on php-fpm.conf for details on configuration directives.

Type: attribute set of (string or signed integer or boolean)

Default:

{
  pm = "ondemand";
  "pm.max_children" = 32;
  "pm.max_requests" = 500;
  "pm.process_idle_timeout" = "120s";
}

Declared by: nixos/modules/services/web-apps/freescout.nix

services.freescout.settings

Settings to be set in the .env file. See https://github.com/freescout-help-desk/freescout/blob/master/.env.example for reference on available environment variables.

Will be merged with the shown defaults.

Type: attribute set of anything

Default:

{
  APP_ENV = "production";
  APP_FORCE_HTTPS = true;
  APP_URL = "https://${config.services.freescout.domain}";
  APP_TIMEZONE = config.time.timeZone;
  APP_DISABLE_UPDATING = true;
}

Example:

{
  # NOTE: MUST be 256 bits (32 bytes) in length, the form of base64:<base64 encoded key> is recommended.
  # You can generate a valid one using `echo "base64:$(openssl rand -base64 32)"`
  APP_KEY_FILE = "/run/secret/freescout/app_key";
  DB_CONNECTION = "mysql";
  DB_HOST = "localhost";
  DB_PORT = 3306;
  DB_DATABASE = "freescout";
  DB_USERNAME = "freescout";
  DB_PASSWORD._secret = "/run/secret/freescout/db_pass";
}

Declared by: nixos/modules/services/web-apps/freescout.nix

services.freeswitch.configDir

Override file in FreeSWITCH config template directory. Each top-level attribute denotes a file path in the configuration directory, its value is the file path. See FreeSWITCH documentation for more info. Also check available templates in FreeSWITCH repository.

Type: attribute set of absolute path

Default: { }

Example:

{
  "freeswitch.xml" = ./freeswitch.xml;
  "dialplan/default.xml" = pkgs.writeText "dialplan-default.xml" ''
    [xml lines]
  '';
}

Declared by: nixos/modules/services/misc/freeswitch.nix

services.freeswitch.configTemplate

Configuration template to use. See available templates in FreeSWITCH repository. You can also set your own configuration directory.

Type: absolute path

Default: "${config.services.freeswitch.package}/share/freeswitch/conf/vanilla"

Example: "${config.services.freeswitch.package}/share/freeswitch/conf/minimal"

Declared by: nixos/modules/services/misc/freeswitch.nix

services.freeswitch.enable

Whether to enable FreeSWITCH.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/misc/freeswitch.nix

services.freeswitch.enableReload

Issue the reloadxml command to FreeSWITCH when configuration directory changes (instead of restart). See FreeSWITCH documentation for more info. The configuration directory is exposed at /etc/freeswitch. See also systemd.services.*.restartIfChanged.

Type: boolean

Default: false

Declared by: nixos/modules/services/misc/freeswitch.nix

services.freeswitch.package

The freeswitch package to use.

Type: package

Default: pkgs.freeswitch

Declared by: nixos/modules/services/misc/freeswitch.nix

services.freshrss.api.enable

Whether to enable API access for mobile apps and third-party clients (Google Reader API and Fever API). Users must set individual API passwords in their profile settings.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.authType

Authentication type for FreshRSS.

Type: one of "form", "http_auth", "none"

Default: "form"

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.baseUrl

Default URL for FreshRSS.

Type: string

Example: "https://freshrss.example.com"

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.dataDir

Default data folder for FreshRSS.

Type: string

Default: "/var/lib/freshrss"

Example: "/mnt/freshrss"

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.database.host

Database host for FreshRSS.

Type: null or string

Default: "localhost"

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.database.name

Database name for FreshRSS.

Type: null or string

Default: "freshrss"

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.database.passFile

Database password file for FreshRSS.

Type: null or absolute path

Default: null

Example: "/run/secrets/freshrss"

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.database.port

Database port for FreshRSS.

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

Default: null

Example: 3306

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.database.tableprefix

Database table prefix for FreshRSS.

Type: null or string

Default: null

Example: "freshrss"

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.database.type

Database type.

Type: one of "sqlite", "pgsql", "mysql"

Default: "sqlite"

Example: "pgsql"

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.database.user

Database user for FreshRSS.

Type: null or string

Default: "freshrss"

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.defaultUser

Default username for FreshRSS.

Type: string

Default: "admin"

Example: "eva"

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.enable

Whether to enable FreshRSS RSS aggregator and reader with php-fpm backend.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.extensions

Additional extensions to be used.

Type: list of package

Default: []

Example:

with freshrss-extensions; [
  youtube
] ++ [
  (freshrss-extensions.buildFreshRssExtension {
    FreshRssExtUniqueId = "ReadingTime";
    pname = "reading-time";
    version = "1.5";
    src = pkgs.fetchFromGitLab {
      domain = "framagit.org";
      owner = "Lapineige";
      repo = "FreshRSS_Extension-ReadingTime";
      rev = "fb6e9e944ef6c5299fa56ffddbe04c41e5a34ebf";
     hash = "sha256-C5cRfaphx4Qz2xg2z+v5qRji8WVSIpvzMbethTdSqsk=";
   };
  })
]

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.internalHostAllowlist

Hosts on local and private networks that FreshRSS fetches feeds from.

FreshRSS blocks requests to local and private networks, such as 127.0.0.1, by default. Each entry is a host:port pair, a network in CIDR notation (0.0.0.0/0 for any IPv4, ::/0 for any IPv6 address) or * for all hosts (unsafe).

This list overrides the allowlist set in the web UI.

Type: list of string

Default: [ ]

Example:

[
  "rss-bridge.lan:80"
  "192.168.1.0/24"
  "127.0.0.1:8080"
]

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.language

Default language for FreshRSS.

Type: string

Default: "en"

Example: "de"

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.package

The freshrss package to use.

Type: package

Default: pkgs.freshrss

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.passwordFile

Password for the defaultUser for FreshRSS.

Type: null or absolute path

Default: null

Example: "/run/secrets/freshrss"

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.pool

Name of the php-fpm pool to use and setup. If not specified, a pool will be created with default values.

Type: null or string

Default: "freshrss"

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.user

User under which FreshRSS runs.

Type: string

Default: "freshrss"

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.virtualHost

Name of the caddy/nginx virtualhost to use and setup.

Type: string

Default: "freshrss"

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.freshrss.webserver

Whether to use nginx or caddy for virtual host management.

Further nginx configuration can be done by adapting services.nginx.virtualHosts.<name>. See services (N) for further information.

Further caddy configuration can be done by adapting services.caddy.virtualHosts.<name>. See services (C) for further information.

Type: one of "nginx", "caddy"

Default: "nginx"

Declared by: nixos/modules/services/web-apps/freshrss.nix

services.frigate.checkConfig

Whether to check the configuration at build time.

Type: boolean

Default:

pkgs.stdenv.buildPlatform.canExecute pkgs.stdenv.hostPlatform && !(pkgs.stdenv.hostPlaform.isAarch64)

Declared by: nixos/modules/services/video/frigate.nix

services.frigate.enable

Whether to enable Frigate NVR.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/video/frigate.nix

services.frigate.hostname

Hostname of the nginx vhost to configure.

Only nginx is supported by upstream for direct reverse proxying.

Type: string

Example: "frigate.exampe.com"

Declared by: nixos/modules/services/video/frigate.nix

services.frigate.package

The frigate package to use.

Type: package

Default: pkgs.frigate

Declared by: nixos/modules/services/video/frigate.nix

services.frigate.preCheckConfig

This script gets run before the config is checked. It can be used to, e.g., set environment variables needed or transform the config (available as $out) to make it checkable in the sandbox.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/video/frigate.nix

services.frigate.settings

Frigate configuration as a nix attribute set.

See the project documentation for how to configure frigate.

Type: open submodule of (YAML 1.1 value)

Default: { }

Declared by: nixos/modules/services/video/frigate.nix

services.frigate.settings.cameras

Attribute set of cameras configurations.

https://docs.frigate.video/configuration/cameras

Type: attribute set of (open submodule of (YAML 1.1 value))

Declared by: nixos/modules/services/video/frigate.nix

services.frigate.settings.cameras.<name>.ffmpeg.inputs

List of inputs for this camera.

Type: list of (open submodule of (YAML 1.1 value))

Declared by: nixos/modules/services/video/frigate.nix

services.frigate.settings.cameras.<name>.ffmpeg.inputs.*.path

Stream URL

Type: string

Example: "rtsp://192.0.2.1:554/rtsp"

Declared by: nixos/modules/services/video/frigate.nix

services.frigate.settings.cameras.<name>.ffmpeg.inputs.*.roles

List of roles for this stream

Type: list of (one of "audio", "detect", "record")

Default: [ ]

Example:

[
  "detect"
  "record"
]

Declared by: nixos/modules/services/video/frigate.nix

services.frigate.settings.database.path

Path to the SQLite database used

Type: absolute path

Default: "/var/lib/frigate/frigate.db"

Declared by: nixos/modules/services/video/frigate.nix

services.frigate.settings.ffmpeg.path

Package providing the ffmpeg and ffprobe executables below the bin/ directory.

Type: string or package convertible to it

Default: <derivation ffmpeg-headless-9.0.2>

Example: pkgs.ffmpeg-full

Declared by: nixos/modules/services/video/frigate.nix

services.frigate.settings.mqtt.enabled

Whether to enable MQTT support.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/video/frigate.nix

services.frigate.settings.mqtt.host

MQTT server hostname

Type: null or string

Default: null

Example: "mqtt.example.com"

Declared by: nixos/modules/services/video/frigate.nix

services.frigate.vaapiDriver

Force usage of a particular VA-API driver for video acceleration. Use together with settings.ffmpeg.hwaccel_args.

Setting this is not required for VA-API to work, but it can help steer VA-API towards the correct card if you have multiple.

Note

For VA-API to work you must enable hardware.graphics.enable (sufficient for AMDGPU) and pass for example pkgs.intel-media-driver (required for Intel 5th Gen. and newer) into hardware.graphics.extraPackages.

See also:

Type: null or one of "i965", "iHD", "nouveau", "vdpau", "nvidia", "radeonsi"

Default: null

Example: "radeonsi"

Declared by: nixos/modules/services/video/frigate.nix

services.froide-govplan.dataDir

Directory to store the Froide-Govplan server data.

Type: string

Default: "/var/lib/froide-govplan"

Declared by: nixos/modules/services/web-apps/froide-govplan.nix

services.froide-govplan.enable

Whether to enable Gouvernment planer web app Govplan.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/web-apps/froide-govplan.nix

services.froide-govplan.hostName

FQDN for the froide-govplan instance.

Type: string

Default: "localhost"

Declared by: nixos/modules/services/web-apps/froide-govplan.nix

services.froide-govplan.package

The froide-govplan package to use.

Type: package

Default: pkgs.froide-govplan

Declared by: nixos/modules/services/web-apps/froide-govplan.nix

services.froide-govplan.secretKeyFile

Path to a file containing the secret key.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/web-apps/froide-govplan.nix

services.froide-govplan.settings

Configuration options to set in extra_settings.py.

Type: open submodule of attribute set of (Python value)

Default: { }

Declared by: nixos/modules/services/web-apps/froide-govplan.nix

services.froide-govplan.settings.ALLOWED_HOSTS

A list of valid fully-qualified domain names (FQDNs) and/or IP addresses that can be used to reach the Froide-Govplan service.

Type: list of string

Default:

[
  "*"
]

Declared by: nixos/modules/services/web-apps/froide-govplan.nix

services.frp.instances

Frp instances.

Type: attribute set of (submodule)

Default: { }

Declared by: nixos/modules/services/networking/frp.nix

services.frp.instances.<name>.enable

Whether to enable frp.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frp.nix

services.frp.instances.<name>.environmentFiles

List of paths files that follows systemd environmentfile structure. Can be used to pass secrets to settings attribute.

Example content of a file: SECRET_TOKEN=1234

Type: list of absolute path

Default: [ ]

Declared by: nixos/modules/services/networking/frp.nix

services.frp.instances.<name>.extraConfig

Extra frp TOML configuration included at the end of the generated configuration file. Especially useful for port range mapping.

Type: strings concatenated with "\n"

Default: ""

Example:

''
  {{- range $_, $v := parseNumberRangePair "6000-6006,6007" "6000-6006,6007" }}
  [[proxies]]
  name = "tcp-{{ $v.First }}"
  type = "tcp"
  localPort = {{ $v.First }}
  remotePort = {{ $v.Second }}
  {{- end }}
''

Declared by: nixos/modules/services/networking/frp.nix

services.frp.instances.<name>.role

The frp consists of client and server. The server is usually deployed on the machine with a public IP address, and the client is usually deployed on the machine where the Intranet service to be penetrated resides.

Type: one of "server", "client"

Declared by: nixos/modules/services/networking/frp.nix

services.frp.instances.<name>.settings

Frp configuration, for configuration options see the example of client or server on github.

Type: TOML value

Default: { }

Example:

{
  proxies = [
    {
      localIP = "127.0.0.1";
      localPort = 22;
      name = "ssh";
      remotePort = 6000;
      type = "tcp";
    }
  ];
  serverAddr = "x.x.x.x";
  serverPort = 7000;
}

Declared by: nixos/modules/services/networking/frp.nix

services.frp.package

The frp package to use.

Type: package

Default: pkgs.frp

Declared by: nixos/modules/services/networking/frp.nix

services.frr.babeld.enable

Whether to enable FRR babeld.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.babeld.extraOptions

Extra options to be appended to the FRR babeld daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.babeld.options

Options for the FRR babeld daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.bfdd.enable

Whether to enable FRR bfdd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.bfdd.extraOptions

Extra options to be appended to the FRR bfdd daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.bfdd.options

Options for the FRR bfdd daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.bgpd.enable

Whether to enable FRR bgpd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.bgpd.extraOptions

Extra options to be appended to the FRR bgpd daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.bgpd.options

Options for the FRR bgpd daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.config

FRR configuration statements.

Type: strings concatenated with "\n"

Default: ""

Example:

''
  router rip
    network 10.0.0.0/8
  router ospf
    network 10.0.0.0/8 area 0
  router bgp 65001
    neighbor 10.0.0.1 remote-as 65001
''

Declared by: nixos/modules/services/networking/frr.nix

services.frr.configFile

Configuration file to use for FRR. By default the NixOS generated files are used.

Type: null or absolute path

Default: null

Example: "/etc/frr/frr.conf"

Declared by: nixos/modules/services/networking/frr.nix

services.frr.eigrpd.enable

Whether to enable FRR eigrpd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.eigrpd.extraOptions

Extra options to be appended to the FRR eigrpd daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.eigrpd.options

Options for the FRR eigrpd daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.fabricd.enable

Whether to enable FRR fabricd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.fabricd.extraOptions

Extra options to be appended to the FRR fabricd daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.fabricd.options

Options for the FRR fabricd daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.isisd.enable

Whether to enable FRR isisd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.isisd.extraOptions

Extra options to be appended to the FRR isisd daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.isisd.options

Options for the FRR isisd daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.ldpd.enable

Whether to enable FRR ldpd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.ldpd.extraOptions

Extra options to be appended to the FRR ldpd daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.ldpd.options

Options for the FRR ldpd daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.mgmtd.extraOptions

Extra options to be appended to the FRR mgmtd daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.mgmtd.options

Options for the FRR mgmtd daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.nhrpd.enable

Whether to enable FRR nhrpd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.nhrpd.extraOptions

Extra options to be appended to the FRR nhrpd daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.nhrpd.options

Options for the FRR nhrpd daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.openFilesLimit

This is the maximum number of FD's that will be available. Use a reasonable value for your setup if you are expecting a large number of peers in say BGP.

Type: unsigned integer, meaning >=0

Default: 1024

Declared by: nixos/modules/services/networking/frr.nix

services.frr.ospf6d.enable

Whether to enable FRR ospf6d.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.ospf6d.extraOptions

Extra options to be appended to the FRR ospf6d daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.ospf6d.options

Options for the FRR ospf6d daemon.

Type: list of string

Default:

[
  "-A ::1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.ospfd.enable

Whether to enable FRR ospfd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.ospfd.extraOptions

Extra options to be appended to the FRR ospfd daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.ospfd.options

Options for the FRR ospfd daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.pathd.enable

Whether to enable FRR pathd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.pathd.extraOptions

Extra options to be appended to the FRR pathd daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.pathd.options

Options for the FRR pathd daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.pbrd.enable

Whether to enable FRR pbrd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.pbrd.extraOptions

Extra options to be appended to the FRR pbrd daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.pbrd.options

Options for the FRR pbrd daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.pim6d.enable

Whether to enable FRR pim6d.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.pim6d.extraOptions

Extra options to be appended to the FRR pim6d daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.pim6d.options

Options for the FRR pim6d daemon.

Type: list of string

Default:

[
  "-A ::1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.pimd.enable

Whether to enable FRR pimd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.pimd.extraOptions

Extra options to be appended to the FRR pimd daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.pimd.options

Options for the FRR pimd daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.ripd.enable

Whether to enable FRR ripd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.ripd.extraOptions

Extra options to be appended to the FRR ripd daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.ripd.options

Options for the FRR ripd daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.ripngd.enable

Whether to enable FRR ripngd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.ripngd.extraOptions

Extra options to be appended to the FRR ripngd daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.ripngd.options

Options for the FRR ripngd daemon.

Type: list of string

Default:

[
  "-A ::1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.sharpd.enable

Whether to enable FRR sharpd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.sharpd.extraOptions

Extra options to be appended to the FRR sharpd daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.sharpd.options

Options for the FRR sharpd daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.staticd.extraOptions

Extra options to be appended to the FRR staticd daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.staticd.options

Options for the FRR staticd daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.vrrpd.enable

Whether to enable FRR vrrpd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/frr.nix

services.frr.vrrpd.extraOptions

Extra options to be appended to the FRR vrrpd daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.vrrpd.options

Options for the FRR vrrpd daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1"
]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.zebra.extraOptions

Extra options to be appended to the FRR zebra daemon options.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/networking/frr.nix

services.frr.zebra.options

Options for the FRR zebra daemon.

Type: list of string

Default:

[
  "-A 127.0.0.1 -s 90000000"
]

Declared by: nixos/modules/services/networking/frr.nix

services.fstrim.enable

Whether to enable periodic SSD TRIM of mounted partitions in background.

Type: boolean

Default: true

Example: true

Declared by: nixos/modules/services/misc/fstrim.nix

services.fstrim.interval

How often we run fstrim. For most desktop and server systems a sufficient trimming frequency is once a week.

The format is described in systemd.time(7).

Type: string

Default: "weekly"

Declared by: nixos/modules/services/misc/fstrim.nix

services.fusionInventory.enable

Whether to enable Fusion Inventory Agent.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/monitoring/fusion-inventory.nix

services.fusionInventory.extraConfig

Configuration that is injected verbatim into the configuration file.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/monitoring/fusion-inventory.nix

services.fusionInventory.servers

The urls of the OCS/GLPI servers to connect to.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/monitoring/fusion-inventory.nix

services.fwupd.daemonSettings

Configurations for the fwupd daemon.

Type: open submodule of section of an INI file (attrs of INI atom (null, bool, int, float or string) or a non-empty list of them)

Default: { }

Declared by: nixos/modules/services/hardware/fwupd.nix

services.fwupd.daemonSettings.DisabledDevices

List of device GUIDs to be disabled.

Type: list of string

Default: [ ]

Example:

[
  "2082b5e0-7a64-478a-b1b2-e3404fab6dad"
]

Declared by: nixos/modules/services/hardware/fwupd.nix

services.fwupd.daemonSettings.DisabledPlugins

List of plugins to be disabled.

Type: list of string

Default: [ ]

Example:

[
  "udev"
]

Declared by: nixos/modules/services/hardware/fwupd.nix

services.fwupd.daemonSettings.EspLocation

The EFI system partition (ESP) path used if UDisks is not available or if this partition is not mounted at /boot/efi, /boot, or /efi

Type: absolute path

Default: config.boot.loader.efi.efiSysMountPoint

Declared by: nixos/modules/services/hardware/fwupd.nix

services.fwupd.enable

Whether to enable fwupd, a DBus service that allows applications to update firmware.

Type: boolean

Default: false

Declared by: nixos/modules/services/hardware/fwupd.nix

services.fwupd.extraRemotes

Enables extra remotes in fwupd. See /etc/fwupd/remotes.d.

Type: list of string

Default: [ ]

Example:

[
  "lvfs-testing"
]

Declared by: nixos/modules/services/hardware/fwupd.nix

services.fwupd.extraTrustedKeys

Installing a public key allows firmware signed with a matching private key to be recognized as trusted, which may require less authentication to install than for untrusted files. By default trusted firmware can be upgraded (but not downgraded) without the user or administrator password. Only very few keys are installed by default.

Type: list of absolute path

Default: [ ]

Example: [ /etc/nixos/fwupd/myfirmware.pem ]

Declared by: nixos/modules/services/hardware/fwupd.nix

services.fwupd.package

The fwupd package to use.

Type: package

Default: pkgs.fwupd

Declared by: nixos/modules/services/hardware/fwupd.nix

services.fwupd.uefiCapsuleSettings

UEFI capsule configurations for the fwupd daemon.

Type: open submodule of section of an INI file (attrs of INI atom (null, bool, int, float or string) or a non-empty list of them)

Default: { }

Declared by: nixos/modules/services/hardware/fwupd.nix