services (P)
services.p2pool.dataDir
The directory where p2pool stores its data files.
Type: string
Default: "/var/lib/p2pool"
Declared by: nixos/modules/services/networking/p2pool.nix
services.p2pool.enable
Whether to enable Monero P2Pool node daemon.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/p2pool.nix
services.p2pool.environmentFile
Path to an EnvironmentFile for the p2pool service as defined in systemd.exec(5).
Secrets may be passed to the service by specifying placeholder variables in the Nix config and setting values in the environment file.
Example:
# In environment file:
WALLET_ADDRESS=888tNkZrPN6JsEgekjMnABU4TBzc2Dt29EPAvkRxbANsAnjyPbb3iQ1YBRk1UXcdRsiKc9dhwMVgN5S9cQUiyoogDavup3H
# Service config
services.p2pool.walletAddress = "$WALLET_ADDRESS";
Type: null or absolute path
Default: null
Example: "/var/lib/p2pool/p2pool.env"
Declared by: nixos/modules/services/networking/p2pool.nix
services.p2pool.extraArgs
List of extra command-line arguments to be passed to the P2Pool daemon.
Type: list of string
Default: [ ]
Example:
[
"--out-peers 12"
"--in-peers 8"
]
Declared by: nixos/modules/services/networking/p2pool.nix
services.p2pool.host
The IP address of your Monero node.
Type: string
Default: "127.0.0.1"
Declared by: nixos/modules/services/networking/p2pool.nix
services.p2pool.logLevel
Log level for the P2Pool node. (Between 0 - 6)
Type: integer between 0 and 6 (both inclusive)
Default: 2
Declared by: nixos/modules/services/networking/p2pool.nix
services.p2pool.package
The p2pool package to use.
Type: package
Default: pkgs.p2pool
Declared by: nixos/modules/services/networking/p2pool.nix
services.p2pool.rpcPort
Monero daemon RPC API port.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 18081
Declared by: nixos/modules/services/networking/p2pool.nix
services.p2pool.sidechain
Which sidechain to mine on. (null for Main, "mini" or "nano" for the Mini and Nano chains.)
Type: null or one of "mini", "nano"
Default: null
Declared by: nixos/modules/services/networking/p2pool.nix
services.p2pool.socks5.enable
Whether to enable connecting to a SOCKS5 proxy for outgoing connections.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/p2pool.nix
services.p2pool.socks5.ip
IP address of the SOCKS5 proxy to connect to.
Type: string
Default: "127.0.0.1"
Declared by: nixos/modules/services/networking/p2pool.nix
services.p2pool.socks5.port
The port number of the SOCKS5 proxy.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9050
Declared by: nixos/modules/services/networking/p2pool.nix
services.p2pool.walletAddress
The Monero wallet address used for mining payouts. It's recommended to store your wallet address in an environment file to avoid it being saved in the nix store. See services (P) for more details.
Type: string
Default: ""
Declared by: nixos/modules/services/networking/p2pool.nix
services.p2pool.zmqPort
Monero daemon ZMQ pub port.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 18083
Declared by: nixos/modules/services/networking/p2pool.nix
services.pacemaker.enable
Whether to enable pacemaker.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/cluster/pacemaker/default.nix
services.pacemaker.package
The pacemaker package to use.
Type: package
Default: pkgs.pacemaker
Declared by: nixos/modules/services/cluster/pacemaker/default.nix
services.packagekit.enable
Whether to enable PackageKit, a cross-platform D-Bus abstraction layer for installing software. Software utilizing PackageKit can install software regardless of the package manager .
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/misc/packagekit.nix
services.packagekit.settings
Additional settings passed straight through to PackageKit.conf
Type: attribute set of section of an INI file (attrs of INI atom (null, bool, int, float or string))
Default: { }
Declared by: nixos/modules/services/misc/packagekit.nix
services.packagekit.vendorSettings
Additional settings passed straight through to Vendor.conf
Type: attribute set of section of an INI file (attrs of INI atom (null, bool, int, float or string))
Default: { }
Declared by: nixos/modules/services/misc/packagekit.nix
services.pairdrop.enable
Whether to enable pairdrop.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/pairdrop.nix
services.pairdrop.environment
Additional configuration (environment variables) for PairDrop, see https://github.com/schlagmichdoch/PairDrop/blob/master/docs/host-your-own.md#environment-variables for supported values.
Type: open submodule of attribute set of (boolean or signed integer or string)
Default: { }
Example:
{
BLUESKY_BUTTON_ACTIVE = false;
CUSTOM_BUTTON_ACTIVE = false;
DEBUG_MODE = true;
DONATION_BUTTON_ACTIVE = false;
IPV6_LOCALIZE = 4;
MASTODON_BUTTON_ACTIVE = false;
PRIVACYPOLICY_BUTTON_ACTIVE = false;
RATE_LIMIT = 1;
RTC_CONFIG = "/etc/pairdrop/rtc-config.json";
SIGNALING_SERVER = "pairdrop.net";
TWITTER_BUTTON_ACTIVE = false;
WS_FALLBACK = true;
}
Declared by: nixos/modules/services/web-apps/pairdrop.nix
services.pairdrop.package
The pairdrop package to use.
Type: package
Default: pkgs.pairdrop
Declared by: nixos/modules/services/web-apps/pairdrop.nix
services.pairdrop.port
The port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 3000
Example: 3010
Declared by: nixos/modules/services/web-apps/pairdrop.nix
services.pairdrop.rtcConfig
Configuration for STUN/TURN servers.
This is converted to JSON and written into a file automatically.
If you want to provide a file path instead, set RTC_CONFIG in services.pairdrop.environment.
Type: JSON value
Default: null
Example:
{
iceServers = [
{
urls = "stun:stun.example.com:19302";
}
];
sdpSemantics = "unified-plan";
}
Declared by: nixos/modules/services/web-apps/pairdrop.nix
services.paisa.enable
Whether to enable Paisa personal finance manager.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/misc/paisa.nix
services.paisa.host
Host bind IP address.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/misc/paisa.nix
services.paisa.mutableSettings
Allow changes made on the web interface to persist between service restarts.
Type: boolean
Default: true
Declared by: nixos/modules/services/misc/paisa.nix
services.paisa.openFirewall
Open ports in the firewall for the Paisa web server.
Type: boolean
Default: false
Declared by: nixos/modules/services/misc/paisa.nix
services.paisa.package
The paisa package to use.
Type: package
Default: pkgs.paisa
Declared by: nixos/modules/services/misc/paisa.nix
services.paisa.port
Port to serve Paisa on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 7500
Declared by: nixos/modules/services/misc/paisa.nix
services.paisa.settings
Paisa configuration. Please refer to https://paisa.fyi/reference/config/ for details.
On start and if mutableSettings is true, these options are merged
into the configuration file on start, taking precedence over
configuration changes made on the web interface.
Type: null or (open submodule of (YAML 1.1 value))
Default: null
Declared by: nixos/modules/services/misc/paisa.nix
services.paisa.settings.dataDir
Path to paisa data directory.
Type: string
Default: "/var/lib/paisa/"
Declared by: nixos/modules/services/misc/paisa.nix
services.paisa.settings.dbFile
Filename of the Paisa database.
Type: string
Default: "paisa.sqlite3"
Declared by: nixos/modules/services/misc/paisa.nix
services.paisa.settings.journalFile
Filename of the main journal / ledger file.
Type: string
Default: "main.ledger"
Declared by: nixos/modules/services/misc/paisa.nix
services.pangolin.baseDomain
Your base fully qualified domain name (without any subdomains).
Type: null or string
Default: null
Example: "example.com"
Declared by: nixos/modules/services/networking/pangolin.nix
services.pangolin.dashboardDomain
The domain where the application will be hosted. This is used for many things, including generating links. You can run Pangolin on a subdomain or root domain. Do not prefix with http or https.
Type: string
Default: "pangolin.\${config.services.pangolin.baseDomain}"
Example: "auth.example.com"
Declared by: nixos/modules/services/networking/pangolin.nix
services.pangolin.dataDir
Path to variable state data directory for Pangolin.
Type: string
Default: "/var/lib/pangolin"
Example: "/srv/pangolin"
Declared by: nixos/modules/services/networking/pangolin.nix
services.pangolin.dnsProvider
The DNS provider Traefik will request wildcard certificates from. See the Traefik Documentation for more information.
Type: null or string
Default: null
Declared by: nixos/modules/services/networking/pangolin.nix
services.pangolin.enable
Whether to enable Pangolin reverse proxy server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/pangolin.nix
services.pangolin.environmentFile
Path to a file containing sensitive environment variables for Pangolin. See the Pangolin Documentation for more information. These will overwrite anything defined in the config. The file should contain environment-variable assignments like:
SERVER_SECRET=1234567890abc
Type: null or absolute path
Default: null
Example: "/etc/nixos/secrets/pangolin.env"
Declared by: nixos/modules/services/networking/pangolin.nix
services.pangolin.letsEncryptEmail
An email address for SSL certificate registration with Let's Encrypt. This should be an email you have access to.
Type: null or string
Default: config.security.acme.defaults.email
Declared by: nixos/modules/services/networking/pangolin.nix
services.pangolin.openFirewall
Whether to enable opening TCP ports 80 and 443, and UDP ports 21820 and 51820 in the firewall for the Pangolin service(s).
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/pangolin.nix
services.pangolin.package
The fosrl-pangolin package to use.
Type: package
Default: pkgs.fosrl-pangolin
Declared by: nixos/modules/services/networking/pangolin.nix
services.pangolin.settings
Additional attributes to be merged with the configuration options and written to Pangolin's config.yml file.
Type: YAML 1.1 value
Default:
{
app.dashboard_url = "https://${config.services.pangolin.dashboardDomain}";
domains.domain1 = {
base_domain = cfg.baseDomain;
prefer_wildcard_cert = false;
};
server = {
external_port = 3000;
internal_port = 3001;
next_port = 3002;
integration_port = 3003;
# needs to be set, otherwise this fails silently
# see https://github.com/fosrl/newt/issues/37
internal_hostname = "localhost";
};
gerbil.base_endpoint = config.services.pangolin.dashboardDomain;
flags = {
disable_signup_without_invite = true;
enable_integration_api = false;
};
}
Example:
{
app = {
save_logs = true;
};
domains = {
domain1 = {
prefer_wildcard_cert = true;
};
};
server = {
external_port = 3007;
internal_port = 3008;
};
}
Declared by: nixos/modules/services/networking/pangolin.nix
services.pantalaimon-headless.instances
Declarative instance config.
Note: to use pantalaimon interactively, e.g. for a Matrix client which does not
support End-to-end encryption (like fractal), refer to the home-manager module.
Type: attribute set of (submodule)
Default: { }
Declared by: nixos/modules/services/matrix/pantalaimon.nix
services.pantalaimon-headless.instances.<name>.dataPath
The directory where pantalaimon should store its state such as the database file.
Type: absolute path
Default: "/var/lib/pantalaimon-‹name›"
Declared by: nixos/modules/services/matrix/pantalaimon.nix
services.pantalaimon-headless.instances.<name>.extraSettings
Extra configuration options. See pantalaimon(5) for available options.
Type: attribute set
Default: { }
Declared by: nixos/modules/services/matrix/pantalaimon.nix
services.pantalaimon-headless.instances.<name>.homeserver
The URI of the homeserver that the pantalaimon proxy should
forward requests to, without the matrix API path but including
the http(s) schema.
Type: string
Example: "https://matrix.org"
Declared by: nixos/modules/services/matrix/pantalaimon.nix
services.pantalaimon-headless.instances.<name>.listenAddress
The address where the daemon will listen to client connections for this homeserver.
Type: string
Default: "localhost"
Declared by: nixos/modules/services/matrix/pantalaimon.nix
services.pantalaimon-headless.instances.<name>.listenPort
The port where the daemon will listen to client connections for this homeserver. Note that the listen address/port combination needs to be lib.unique between different homeservers.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8009
Declared by: nixos/modules/services/matrix/pantalaimon.nix
services.pantalaimon-headless.instances.<name>.logLevel
Set the log level of the daemon.
Type: one of "info", "warning", "error", "debug"
Default: "warning"
Declared by: nixos/modules/services/matrix/pantalaimon.nix
services.pantalaimon-headless.instances.<name>.ssl
Whether or not SSL verification should be enabled for outgoing connections to the homeserver.
Type: boolean
Default: true
Declared by: nixos/modules/services/matrix/pantalaimon.nix
services.pantheon.apps.enable
Whether to enable Pantheon default applications.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/desktop-managers/pantheon.nix
services.pantheon.contractor.enable
Whether to enable contractor, a desktop-wide extension service used by Pantheon.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/desktop-managers/pantheon.nix
services.pantheon.parental-controls.enable
Whether to enable Pantheon parental controls daemon.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/desktop-managers/pantheon.nix
services.paperless.address
Web interface address.
Type: string
Default: "127.0.0.1"
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.configureNginx
Whether to configure nginx as a reverse proxy.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.configureTika
Whether to configure Tika and Gotenberg to process Office and e-mail files with OCR.
Type: boolean
Default: false
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.consumptionDir
Directory from which new documents are imported.
Type: string
Default: "${dataDir}/consume"
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.consumptionDirIsPublic
Whether all users can write to the consumption dir.
Type: boolean
Default: false
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.dataDir
Directory to store the Paperless data.
Type: string
Default: "/var/lib/paperless"
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.database.createLocally
Configure local PostgreSQL database server for Paperless.
Type: boolean
Default: false
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.domain
Domain under which paperless will be available.
Type: null or string
Default: null
Example: "paperless.example.com"
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.enable
Whether to enable Paperless-ngx.
When started, the Paperless database is automatically created if it doesn't exist and updated if the Paperless package has changed. Both tasks are achieved by running a Django migration.
A script to manage the Paperless-ngx instance (by wrapping Django's manage.py) is available as paperless-manage.
Type: boolean
Default: false
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.environmentFile
Path to a file containing extra paperless config options in the systemd EnvironmentFile
format. Refer to the documentation for
config options.
This can be used to pass secrets to paperless without putting them in the Nix store.
To set a database password, point environmentFile at a file containing:
PAPERLESS_DBPASS=<pass>
Type: null or absolute path
Default: null
Example: "/run/secrets/paperless"
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.exporter.directory
Directory to store export.
Type: string
Default: ${config.services.paperless.dataDir}/export
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.exporter.enable
Whether to enable regular automatic document exports.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.exporter.onCalendar
When to run the exporter. See systemd.time(7).
null disables the timer; allowing you to run the
paperless-exporter service through other means.
Type: null or string
Default: "01:30:00"
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.exporter.settings
Settings to pass to the document exporter as CLI arguments.
Type: attribute set of anything
Default:
{
compare-checksums = true;
delete = true;
no-color = true;
no-progress-bar = true;
}
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.extraPythonPackages
Additional Python packages to add to add to Paperless-ngx' Python environment.
This is mainly used to add and automatically load Paperless-ngx Plugins as defined in https://docs.paperless-ngx.com/development#plugin-discovery.
Type: function that evaluates to a(n) list of package
Default: _: [ ]
Example: with ps; [ paperless-ngx-erechnung ]
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.group
Primary group under which Paperless runs
Note
If left as the default value this group will automatically be created on system activation, otherwise you are responsible for ensuring the group exists before the redis service starts.
Type: string
Default: "paperless"
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.manage
The package derivation for the paperless-manage wrapper script.
Useful for other modules that need to add this specific script to a service's PATH.
Type: package
Read only
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.mediaDir
Directory to store the Paperless documents.
Type: string
Default: "${dataDir}/media"
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.openMPThreadingWorkaround
Whether to enable a workaround for document classifier timeouts.
Paperless uses OpenBLAS via scikit-learn for document classification.
The default is to use threading for OpenMP but this would cause the document classifier to spin on one core seemingly indefinitely if there are large amounts of classes per classification; causing it to effectively never complete due to running into timeouts.
This sets OMP_NUM_THREADS to 1 in order to mitigate the issue. See
https://github.com/NixOS/nixpkgs/issues/240591 for more information
.
Type: boolean
Default: true
Example: true
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.package
The paperless-ngx package to use.
Type: package
Default: pkgs.paperless-ngx
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.passwordFile
A file containing the superuser password.
A superuser is required to access the web interface.
If unset, you can create a superuser manually by running paperless-manage createsuperuser.
The default superuser name is admin. To change it, set
option settings.PAPERLESS_ADMIN_USER.
WARNING: When changing the superuser name after the initial setup, the old superuser
will continue to exist.
To disable login for the web interface, set the following:
settings.PAPERLESS_AUTO_LOGIN_USERNAME = "admin";.
WARNING: Only use this on a trusted system without internet access to Paperless.
Type: null or absolute path
Default: null
Example: "/run/keys/paperless-password"
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.port
Web interface port.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 28981
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.settings
Extra paperless config options.
See the documentation for available options.
Note that some settings such as PAPERLESS_CONSUMER_IGNORE_PATTERN expect JSON values.
Settings declared as lists or attrsets will automatically be serialised into JSON strings for your convenience.
Type: open submodule of attribute set of (boolean or floating point number or signed integer or string or absolute path or package or list of (boolean or floating point number or signed integer or string or absolute path or package) or attribute set of (boolean or floating point number or signed integer or string or absolute path or package))
Default: { }
Example:
{
PAPERLESS_CONSUMER_IGNORE_PATTERN = [
".DS_STORE/*"
"desktop.ini"
];
PAPERLESS_OCR_LANGUAGE = "deu+eng";
PAPERLESS_OCR_USER_ARGS = {
optimize = 1;
pdfa_image_compression = "lossless";
};
}
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.tesseractLanguages
Languages to build into Tesseract. null includes all languages and may use
binary-cached packages. Setting a smaller-than-default list reduces closure
size, but means tesseract, ocrmypdf and paperless-ngx cannot be fetched from
the cache and have to be built.
eng, equ and osd are always included.
Type: null or (list of string)
Default:
lib.splitString "+" config.services.paperless.settings.PAPERLESS_OCR_LANGUAGE
# or null if setting is unset
Example:
[
"deu"
"eng"
]
Declared by: nixos/modules/services/misc/paperless.nix
services.paperless.user
User under which Paperless runs
Note
If left as the default value this user will automatically be created on system activation, otherwise you are responsible for ensuring the group exists before the paperless service starts.
Type: string
Default: "paperless"
Declared by: nixos/modules/services/misc/paperless.nix
services.papra.enable
Whether to enable Papra.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/papra.nix
services.papra.environment
Environment variables to pass to Papra. See https://docs.papra.app/self-hosting/configuration/#configuration-variables for more information.
Type: open submodule of attribute set of (string or signed integer or floating point number or boolean or absolute path or package)
Default: { }
Declared by: nixos/modules/services/web-apps/papra.nix
services.papra.environment.DATABASE_URL
The URL of the database. See https://docs.papra.app/self-hosting/configuration/#database_url for more information.
Note
When specifying a file: URL with an absolute path through this option,
the database's parent directory is automatically added to the systemd
service's ReadWritePaths. Other local database paths, including paths
specified through environmentFiles, may need to be added to ReadWritePaths manually.
Type: string
Default: "file:/var/lib/papra/db.sqlite"
Declared by: nixos/modules/services/web-apps/papra.nix
services.papra.environment.DOCUMENT_STORAGE_FILESYSTEM_ROOT
The root directory to store documents in. The parent directory must already exist if using a custom path. See https://docs.papra.app/self-hosting/configuration/#document_storage_filesystem_root for more information.
Type: absolute path
Default: "/var/lib/papra/local-documents"
Declared by: nixos/modules/services/web-apps/papra.nix
services.papra.environment.INGESTION_FOLDER_ROOT_PATH
The root directory in which ingestion folders for each organization are stored. The parent directory must already exist if using a custom path. See https://docs.papra.app/self-hosting/configuration/#ingestion_folder_root_path for more information.
Type: absolute path
Default: "/var/lib/papra/ingestion"
Declared by: nixos/modules/services/web-apps/papra.nix
services.papra.environment.PORT
The port on which Papra listens. See https://docs.papra.app/self-hosting/configuration/#port for more information.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 1221
Declared by: nixos/modules/services/web-apps/papra.nix
services.papra.environment.SERVER_SERVE_PUBLIC_DIR
Whether to serve the public directory. See https://docs.papra.app/self-hosting/configuration/#server_serve_public_dir for more information.
Type: boolean
Default: true
Declared by: nixos/modules/services/web-apps/papra.nix
services.papra.environmentFiles
Files to load environment variables from in addition to services (P). This is useful to avoid putting secrets into the nix store. See https://docs.papra.app/self-hosting/configuration/#configuration-variables for more information.
Type: list of absolute path
Default: [ ]
Example:
[
"/run/secrets/papra.env"
]
Declared by: nixos/modules/services/web-apps/papra.nix
services.papra.group
If the default user "papra" is configured then this is the primary group of that user.
Type: string
Default: "papra"
Declared by: nixos/modules/services/web-apps/papra.nix
services.papra.openFirewall
Whether to open the firewall for Papra.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/papra.nix
services.papra.package
The papra package to use.
Type: package
Default: pkgs.papra
Declared by: nixos/modules/services/web-apps/papra.nix
services.papra.user
User under which Papra runs.
Type: string
Default: "papra"
Declared by: nixos/modules/services/web-apps/papra.nix
services.paretosecurity.enable
Whether to enable ParetoSecurity agent and its root helper.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/security/paretosecurity.nix
services.paretosecurity.package
The paretosecurity package to use.
Type: package
Default: pkgs.paretosecurity
Declared by: nixos/modules/services/security/paretosecurity.nix
services.paretosecurity.trayIcon
Set to false to disable the tray icon and run as a CLI tool only.
Type: boolean
Default: true
Declared by: nixos/modules/services/security/paretosecurity.nix
services.paretosecurity.users
Per-user Pareto Security configuration.
Type: attribute set of (submodule)
Default: { }
Declared by: nixos/modules/services/security/paretosecurity.nix
services.paretosecurity.users.<name>.inviteId
A unique ID that links the agent to Pareto Cloud.
Get it from the Join Team page on https://cloud.paretosecurity.com/team/join/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
In Step 2, under Linux tab, enter your email then copy it from the generated command.
Type: string
Example: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Declared by: nixos/modules/services/security/paretosecurity.nix
services.parsedmarc.enable
Whether to enable parsedmarc, a DMARC report monitoring service .
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.provision.geoIp
Whether to enable and configure the geoipupdate service to automatically fetch GeoIP databases. Not crucial, but recommended for full functionality.
To finish the setup, you need to manually set the services (G) and services (G) options.
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.provision.grafana.dashboard
Whether the official parsedmarc grafana dashboard should be provisioned to the local grafana instance.
Type: boolean
Default: config.services.grafana.enable
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.provision.grafana.datasource
Whether the automatically provisioned OpenSearch instance should be added as a grafana datasource. Has no effect unless services (P) is also enabled.
Type: boolean
Default:
config.services.parsedmarc.provision.opensearch && config.services.grafana.enable
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.provision.localMail.enable
Whether Postfix should be set up to receive mail locally. parsedmarc will be configured to watch the local inbox as the automatically created user specified in services (P)
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.provision.localMail.hostname
The hostname to use when configuring Postfix.
Should correspond to the host's fully qualified domain name and the domain part of the email address which receives DMARC reports. You also have to set up an MX record pointing to this domain name.
Type: string
Default: config.networking.fqdn
Example: "monitoring.example.com"
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.provision.localMail.recipientName
The DMARC mail recipient name, i.e. the name part of the email address which receives DMARC reports.
A local user with this name will be set up and assigned a randomized password on service start.
Type: string
Default: "dmarc"
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.provision.opensearch
Whether to set up and use a local instance of OpenSearch.
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings
Configuration parameters to set in
parsedmarc.ini. For a full list of
available parameters, see
https://domainaware.github.io/parsedmarc/#configuration-file.
Settings 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 parsedmarc.ini
file, the splunk_hec.token key will be set
to the contents of the
/run/keys/splunk_token file.
Type: open submodule of attribute set of section of an INI file (attrs of INI atom (null, bool, int, float or string))
Example:
{
imap = {
host = "imap.example.com";
user = "alice@example.com";
password = { _secret = "/run/keys/imap_password" };
};
mailbox = {
watch = true;
batch_size = 30;
};
splunk_hec = {
url = "https://splunkhec.example.com";
token = { _secret = "/run/keys/splunk_token" };
index = "email";
};
}
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.general.save_aggregate
Save aggregate report data to OpenSearch and/or Splunk.
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.general.save_forensic
Save forensic report data to OpenSearch and/or Splunk.
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.imap.host
The IMAP server hostname or IP address.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.imap.password
The IMAP server password.
Always handled as a secret whether the value is
wrapped in a { _secret = ...; }
attrset or not (refer to services (P) for
details).
Type: null or absolute path or attribute set of absolute path
Default: null
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.imap.port
The IMAP server port.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.imap.ssl
Use an encrypted SSL/TLS connection.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.imap.user
The IMAP server username.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.mailbox.delete
Delete messages after processing them, instead of archiving them.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.mailbox.watch
Use the IMAP IDLE command to process messages as they arrive.
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.opensearch.cert_path
The path to a TLS certificate bundle used to verify the server's certificate.
Type: absolute path
Default: config.security.pki.caBundle
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.opensearch.hosts
A list of OpenSearch hosts to push parsed reports to.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.opensearch.password
The password to use when connecting to OpenSearch, if required.
Always handled as a secret whether the value is
wrapped in a { _secret = ...; }
attrset or not (refer to services (P) for
details).
Type: null or absolute path or attribute set of absolute path
Default: null
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.opensearch.ssl
Whether to use an encrypted SSL/TLS connection.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.opensearch.user
Username to use when connecting to OpenSearch, if required.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.smtp.from
The From address to use for the
outgoing mail.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.smtp.host
The SMTP server hostname or IP address.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.smtp.password
The SMTP server password.
Always handled as a secret whether the value is
wrapped in a { _secret = ...; }
attrset or not (refer to services (P) for
details).
Type: null or absolute path or attribute set of absolute path
Default: null
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.smtp.port
The SMTP server port.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.smtp.ssl
Use an encrypted SSL/TLS connection.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.smtp.to
The addresses to send outgoing mail to.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.parsedmarc.settings.smtp.user
The SMTP server username.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/parsedmarc.nix
services.part-db.enable
Whether to enable PartDB.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/part-db.nix
services.part-db.enableNginx
Whether to enable nginx or not. If enabled, an nginx virtual host will
be created for access to part-db. If not enabled, then you may use
${config.services.part-db.package}/public as your document root in
whichever webserver you wish to setup.
Type: boolean
Default: true
Declared by: nixos/modules/services/web-apps/part-db.nix
services.part-db.enablePostgresql
Whether to configure the postgresql database for part-db. If enabled, a database and user will be created for part-db.
Type: boolean
Default: true
Declared by: nixos/modules/services/web-apps/part-db.nix
services.part-db.environmentFile
Path to a file containing extra Part-DB environment variables in dotenv
format. This can be used for secrets such as APP_SECRET without
putting them in the Nix store.
Type: null or absolute path
Default: null
Example: "/run/secrets/part-db.env"
Declared by: nixos/modules/services/web-apps/part-db.nix
services.part-db.package
The part-db package to use.
Type: package
Default: pkgs.part-db
Declared by: nixos/modules/services/web-apps/part-db.nix
services.part-db.phpPackage
The php package to use.
Type: package
Default: pkgs.php
Declared by: nixos/modules/services/web-apps/part-db.nix
services.part-db.poolConfig
Options for the PartDB PHP pool. See the documentation on
Type: attribute set of (string or signed integer or boolean)
Default:
''
{
"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/part-db.nix
services.part-db.settings
Options for part-db configuration. Refer to https://github.com/Part-DB/Part-DB-server/blob/master/.env for details on supported values. All
Type: open submodule of attribute set of (string or signed integer or boolean)
Default: { }
Example:
{
DATABASE_URL = "postgresql://db_user@localhost/db_name?serverVersion=16.6&charset=utf8&host=/var/run/postgresql";
}
Declared by: nixos/modules/services/web-apps/part-db.nix
services.part-db.settings.DATABASE_URL
The postgresql database server to connect to. Defauls to local postgresql unix socket
Type: string
Default: "postgresql://part-db@localhost/part-db?serverVersion=\${config.services.postgresql.package.version}&host=/run/postgresql"
Declared by: nixos/modules/services/web-apps/part-db.nix
services.part-db.virtualHost
The virtualHost at which you wish part-db to be served.
Type: string
Default: "localhost"
Declared by: nixos/modules/services/web-apps/part-db.nix
services.passSecretService.enable
Whether to enable pass secret service.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/security/pass-secret-service.nix
services.passSecretService.package
The pass-secret-service package to use.
Type: package
Default: pkgs.pass-secret-service
Example: pass-secret-service.override { python3 = pkgs.python315 }
Declared by: nixos/modules/services/security/pass-secret-service.nix
services.patroni.dataDir
Folder where Patroni data will be written, this is where the pgpass password file will be written.
Type: absolute path
Default: "/var/lib/patroni"
Declared by: nixos/modules/services/cluster/patroni/default.nix
services.patroni.enable
Whether to enable Patroni.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/cluster/patroni/default.nix
services.patroni.environmentFiles
Environment variables made available to Patroni as files content, useful for providing secrets from files.
Type: attribute set of (null or string or absolute path or package)
Default: { }
Example:
{
PATRONI_REPLICATION_PASSWORD = "/secret/file";
PATRONI_SUPERUSER_PASSWORD = "/secret/file";
}
Declared by: nixos/modules/services/cluster/patroni/default.nix
services.patroni.group
The group for the service. If left as the default value this group will automatically be created, otherwise the sysadmin is responsible for ensuring the group exists.
Type: string
Default: "patroni"
Example: "postgres"
Declared by: nixos/modules/services/cluster/patroni/default.nix
services.patroni.name
The name of the host. Must be unique for the cluster.
Type: string
Example: "node1"
Declared by: nixos/modules/services/cluster/patroni/default.nix
services.patroni.namespace
Path within the configuration store where Patroni will keep information about the cluster.
Type: string
Default: "/service"
Declared by: nixos/modules/services/cluster/patroni/default.nix
services.patroni.nodeIp
IP address of this node.
Type: string
Example: "192.168.1.1"
Declared by: nixos/modules/services/cluster/patroni/default.nix
services.patroni.otherNodesIps
IP addresses of the other nodes.
Type: list of string
Default: [ ]
Example:
[
"192.168.1.2"
"192.168.1.3"
]
Declared by: nixos/modules/services/cluster/patroni/default.nix
services.patroni.postgresqlDataDir
The data directory for PostgreSQL. If left as the default value this directory will automatically be created before the PostgreSQL server starts, otherwise the sysadmin is responsible for ensuring the directory exists with appropriate ownership and permissions.
Type: absolute path
Default: "/var/lib/postgresql/${config.services.patroni.postgresqlPackage.psqlSchema}"
Example: "/var/lib/postgresql/14"
Declared by: nixos/modules/services/cluster/patroni/default.nix
services.patroni.postgresqlPackage
PostgreSQL package to use.
Plugins can be enabled like this pkgs.postgresql_18.withPackages (p: [ p.pg_safeupdate p.postgis ]).
Type: package
Example: pkgs.postgresql_18
Declared by: nixos/modules/services/cluster/patroni/default.nix
services.patroni.postgresqlPort
The port on which PostgreSQL listens.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 5432
Declared by: nixos/modules/services/cluster/patroni/default.nix
services.patroni.restApiPort
The port on Patroni's REST api listens.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8008
Declared by: nixos/modules/services/cluster/patroni/default.nix
services.patroni.scope
Cluster name.
Type: string
Example: "cluster1"
Declared by: nixos/modules/services/cluster/patroni/default.nix
services.patroni.settings
The primary patroni configuration. See the documentation
for possible values.
Secrets should be passed in by using the environmentFiles option.
Type: YAML 1.1 value
Default: { }
Example:
{
bootstrap = {
initdb = [
"encoding=UTF-8"
"data-checksums"
];
};
postgresql = {
parameters = {
unix_socket_directories = "/tmp";
};
};
}
Declared by: nixos/modules/services/cluster/patroni/default.nix
services.patroni.softwareWatchdog
This will configure Patroni to use the software watchdog built into the Linux kernel as described in the documentation.
Type: boolean
Default: false
Declared by: nixos/modules/services/cluster/patroni/default.nix
services.patroni.user
The user for the service. If left as the default value this user will automatically be created, otherwise the sysadmin is responsible for ensuring the user exists.
Type: string
Default: "patroni"
Example: "postgres"
Declared by: nixos/modules/services/cluster/patroni/default.nix
services.pcscd.enable
Whether to enable PCSC-Lite daemon, to access smart cards using SCard API (PC/SC).
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/hardware/pcscd.nix
services.pcscd.extendReaderNames
String to append to every reader name. The special variable $HOSTNAME
will be expanded to the current host name.
Type: null or string
Default: null
Example: " $HOSTNAME"
Declared by: nixos/modules/services/hardware/pcscd.nix
services.pcscd.extraArgs
Extra command line arguments to be passed to the PCSC daemon.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/hardware/pcscd.nix
services.pcscd.ignoreReaderNames
List of reader name patterns for the PCSC daemon to ignore.
For more precise control, readers can be ignored through udev rules
(cf. services.udev.extraRules) by setting the
PCSCLITE_IGNORE property, for example:
ACTION!="remove|unbind", SUBSYSTEM=="usb", ATTR{idVendor}=="20a0", ENV{PCSCLITE_IGNORE}="1"
Type: list of string matching the pattern [^:]+
Default: [ ]
Example:
[
"Nitrokey"
"YubiKey"
]
Declared by: nixos/modules/services/hardware/pcscd.nix
services.pcscd.package
The pcsclite package to use.
Type: package
Default: if config.security.polkit.enable then pkgs.pcscliteWithPolkit else pkgs.pcsclite
Declared by: nixos/modules/services/hardware/pcscd.nix
services.pcscd.plugins
Plugin packages to be used for PCSC-Lite.
Type: list of package
Default: [ pkgs.ccid ]
Example: [ pkgs.pcsc-cyberjack ]
Declared by: nixos/modules/services/hardware/pcscd.nix
services.pcscd.readerConfigs
Configuration for devices that aren't hotpluggable.
See reader.conf(5) for valid options.
Type: list of strings concatenated with "\n"
Default: [ ]
Example:
[
''
FRIENDLYNAME "Some serial reader"
DEVICENAME /dev/ttyS0
LIBPATH /path/to/serial_reader.so
CHANNELID 1
''
]
Declared by: nixos/modules/services/hardware/pcscd.nix
services.pdfding.allowedHosts
Domains where PdfDing is allowed to run
Type: list of string
Default:
[
"127.0.0.1"
"localhost"
]
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.consume.enable
Bulk PDF import from consume directory.
When enabled, administrators can create per-user directories like /var/lib/pdfding/consume/<user_id> with permissions allowing the pdfding user to read and write. PDFs placed in these directories are automatically imported into user accounts.
PDFs are imported periodically via cronjob and successfully imported files are automatically deleted from the consume directory.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.consume.schedule
The cron schedule for the consume task to trigger. The format is "minute hour day month day_of_week" Read
- https://github.com/mrmn2/PdfDing/blob/d0f21ec2f9fbee4b1a2f6b7e0e6c7ea7784ab1bc/pdfding/base/task_helpers.py#L5
- https://huey.readthedocs.io/en/latest/api.html#crontab
Type: string
Default: "*/5 * * * *"
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.database.createLocally
Whether to create a local PostgreSQL database automatically
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.database.host
PostgreSQL host
Type: string
Default: ""
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.database.name
PostgreSQL database name
Type: string
Default: "pdfding"
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.database.passwordFile
File containing POSTGRES_PASSWORD. Consider using a secret managing scheme such as agenix or sops-nix to generate this file.
Type: null or absolute path
Default: null
Example: "/run/secrets/pdfding-db-password"
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.database.port
PostgreSQL port
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 5432
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.database.type
Database type to use
Type: one of "sqlite", "postgres"
Default: "sqlite"
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.database.user
PostgreSQL user
Type: string
Default: "pdfding"
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.enable
Whether to enable PdfDing service.
To use the pdfding-manage CLI, add your user to the pdfding group:
users.users.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.envFiles
Environment variable files
Type: list of absolute path
Default: [ ]
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.extraEnvironment
Additional environment variables
Type: attribute set of string
Default: { }
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.group
Group under which PdfDing runs
Type: string
Default: "pdfding"
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.gunicorn.extraArgs
Command line arguments passed to Gunicorn server.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.hostName
Listen address for PdfDing
Type: string
Default: "0.0.0.0"
Example: "pdfding.example.com"
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.openFirewall
Open ports in the firewall for the PdfDing web interface.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.package
The pdfding package to use.
Type: package
Default: pkgs.pdfding
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.port
Port on which PdfDing listens
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8000
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.secretKeyFile
File containing the Django SECRET_KEY. Consider using a secret managing scheme such as agenix or sops-nix to generate this file.
Type: absolute path
Default: null
Example: "/run/secrets/pdfding-secret-key"
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdfding.user
User account under which PdfDing runs
Type: string
Default: "pdfding"
Declared by: nixos/modules/services/web-apps/pdfding.nix
services.pdns-recursor.api.address
IP address Recursor REST API server will bind to.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/networking/pdns-recursor.nix
services.pdns-recursor.api.allowFrom
IP address ranges of clients allowed to make API requests.
Type: list of string
Default:
[
"127.0.0.1"
"::1"
]
Example:
[
"0.0.0.0/0"
"::/0"
]
Declared by: nixos/modules/services/networking/pdns-recursor.nix
services.pdns-recursor.api.enable
Whether to enable the built-in webserver. It serves the REST API (which additionally needs
an API key set via services.pdns-recursor.settings.webservice.api_key)
and, at /metrics, statistics in Prometheus format. Without this the
api.address, api.port and api.allowFrom options have no effect, as
the webserver stays disabled.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/pdns-recursor.nix
services.pdns-recursor.api.port
Port number Recursor REST API server will bind to.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8082
Declared by: nixos/modules/services/networking/pdns-recursor.nix
services.pdns-recursor.dns.address
IP addresses Recursor DNS server will bind to.
Type: string or list of string
Default:
[
"::"
"0.0.0.0"
]
Declared by: nixos/modules/services/networking/pdns-recursor.nix
services.pdns-recursor.dns.allowFrom
IP address ranges of clients allowed to make DNS queries.
Type: list of string
Default:
[
"127.0.0.0/8"
"10.0.0.0/8"
"100.64.0.0/10"
"169.254.0.0/16"
"192.168.0.0/16"
"172.16.0.0/12"
"::1/128"
"fc00::/7"
"fe80::/10"
]
Example:
[
"0.0.0.0/0"
"::/0"
]
Declared by: nixos/modules/services/networking/pdns-recursor.nix
services.pdns-recursor.dns.port
Port number Recursor DNS server will bind to.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 53
Declared by: nixos/modules/services/networking/pdns-recursor.nix
services.pdns-recursor.dnssecValidation
Controls the level of DNSSEC processing done by the PowerDNS Recursor. See https://doc.powerdns.com/md/recursor/dnssec/ for a detailed explanation.
Type: one of "off", "process-no-validate", "process", "log-fail", "validate"
Default: "validate"
Declared by: nixos/modules/services/networking/pdns-recursor.nix
services.pdns-recursor.enable
Whether to enable PowerDNS Recursor, a recursive DNS server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/pdns-recursor.nix
services.pdns-recursor.exportHosts
Whether to export names and IP addresses defined in /etc/hosts.
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/pdns-recursor.nix
services.pdns-recursor.forwardZones
DNS zones to be forwarded to other authoritative servers.
Type: attribute set
Default: { }
Declared by: nixos/modules/services/networking/pdns-recursor.nix
services.pdns-recursor.forwardZonesRecurse
DNS zones to be forwarded to other recursive servers.
Type: attribute set
Default: { }
Example:
{
eth = "[::1]:5353";
}
Declared by: nixos/modules/services/networking/pdns-recursor.nix
services.pdns-recursor.luaConfig
The content Lua configuration file for PowerDNS Recursor. See https://doc.powerdns.com/recursor/lua-config/index.html.
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/networking/pdns-recursor.nix
services.pdns-recursor.resolveNamecoin
Resolve .bit top-level domains using ncdns and namecoin.
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/ncdns.nix
services.pdns-recursor.serveRFC1918
Whether to directly resolve the RFC1918 reverse-mapping domains:
10.in-addr.arpa,
168.192.in-addr.arpa,
16-31.172.in-addr.arpa
This saves load on the AS112 servers.
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/pdns-recursor.nix
services.pdns-recursor.settings
PowerDNS Recursor settings. Use this option to configure Recursor settings not exposed in a NixOS option or to bypass one. See the full documentation at https://doc.powerdns.com/recursor/yamlsettings.html for the available options.
Type: YAML 1.1 value
Default: { }
Example:
{
loglevel = 8;
log-common-errors = true;
}
Declared by: nixos/modules/services/networking/pdns-recursor.nix
services.pdnsd.cacheDir
Directory holding the pdnsd cache
Type: string
Default: "/var/cache/pdnsd"
Declared by: nixos/modules/services/networking/pdnsd.nix
services.pdnsd.enable
Whether to enable pdnsd.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/pdnsd.nix
services.pdnsd.extraConfig
Extra configuration directives that should be added to
pdnsd.conf.
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/networking/pdnsd.nix
services.pdnsd.globalConfig
Global configuration that should be added to the global directory
of pdnsd.conf.
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/networking/pdnsd.nix
services.pdnsd.serverConfig
Server configuration that should be added to the server directory
of pdnsd.conf.
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/networking/pdnsd.nix
services.pdudaemon.bindAddress
Bind address for the PDUDaemon.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/hardware/pdudaemon.nix
services.pdudaemon.enable
Whether to enable PDUDaemon.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/hardware/pdudaemon.nix
services.pdudaemon.listener
Which kind of listener to provide.
Type: one of "http", "tcp"
Default: "http"
Declared by: nixos/modules/services/hardware/pdudaemon.nix
services.pdudaemon.logLevel
PDUDaemon log level.
Type: one of "debug", "info", "warning", "error"
Default: "error"
Declared by: nixos/modules/services/hardware/pdudaemon.nix
services.pdudaemon.openFirewall
Whether to automatically open the PDUDaemon listen port in the firewall.
Type: boolean
Default: false
Declared by: nixos/modules/services/hardware/pdudaemon.nix
services.pdudaemon.package
The pdudaemon package to use.
Type: package
Default: pkgs.pdudaemon
Declared by: nixos/modules/services/hardware/pdudaemon.nix
services.pdudaemon.pdus
Structural pdus section of PDUDaemon's pdudaemon.conf. Refer to https://github.com/pdudaemon/pdudaemon/blob/main/share/pdudaemon.conf for more examples.
Type: attribute set of anything
Default: { }
Example:
{
cbs350-poe-switch = {
driver = "snmpv1";
community = "private";
oid = ".1.3.6.1.2.1.105.1.1.1.3.1.*;
onsetting = 1;
offsetting = 2;
};
energenie = {
driver = "EG-PMS";
device = "aa:bb:cc:xx:yy";
};
local = {
driver = "localcmdline";
};
};
Declared by: nixos/modules/services/hardware/pdudaemon.nix
services.pdudaemon.port
Port to bind to.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 16421
Declared by: nixos/modules/services/hardware/pdudaemon.nix
services.peerflix.downloadDir
Peerflix temporary download directory.
Type: absolute path
Default: "${config.services.peerflix.stateDir}/torrents"
Declared by: nixos/modules/services/torrent/peerflix.nix
services.peerflix.enable
Whether to enable peerflix service.
Type: boolean
Default: false
Declared by: nixos/modules/services/torrent/peerflix.nix
services.peerflix.stateDir
Peerflix state directory.
Type: absolute path
Default: "/var/lib/peerflix"
Declared by: nixos/modules/services/torrent/peerflix.nix
services.peering-manager.enable
Enable Peering Manager.
This module requires a reverse proxy that serves /static separately.
See this example on how to configure this.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/peering-manager.nix
services.peering-manager.enableLdap
Enable LDAP-Authentication for Peering Manager.
This requires a configuration file being pass through ldapConfigPath.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/peering-manager.nix
services.peering-manager.enableScheduledTasks
Set up scheduled tasks
Type: boolean
Default: true
Declared by: nixos/modules/services/web-apps/peering-manager.nix
services.peering-manager.environmentFile
Environment file as defined in systemd.exec(5).
Secrets may be passed to the service without adding them to the world-readable Nix store, by specifying placeholder variables as the option value in Nix and setting these variables accordingly in the environment file.
# snippet of peering-manager-related config
services.peering-manager.settings.SOCIAL_AUTH_OIDC_SECRET = "$PM_OIDC_SECRET";
# content of the environment file
PM_OIDC_SECRET=topsecret
Note that this file needs to be available on the host on which
peering-manager is running.
Type: null or absolute path
Default: null
Example: "/run/secrets/peering-manager.env"
Declared by: nixos/modules/services/web-apps/peering-manager.nix
services.peering-manager.extraConfig
Additional lines of configuration appended to the configuration.py.
See the documentation for more possible options.
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/web-apps/peering-manager.nix
services.peering-manager.ldapConfigPath
Path to the Configuration-File for LDAP-Authentication, will be loaded as ldap_config.py.
See the documentation for possible options.
Type: absolute path
Declared by: nixos/modules/services/web-apps/peering-manager.nix
services.peering-manager.listenAddress
Address the server will listen on.
Type: string
Default: "[::1]"
Declared by: nixos/modules/services/web-apps/peering-manager.nix
services.peering-manager.peeringdbApiKeyFile
Path to a file containing the PeeringDB API key.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/web-apps/peering-manager.nix
services.peering-manager.plugins
List of plugin packages to install.
Type: function that evaluates to a(n) list of package
Default:
python3Packages: with python3Packages; [];
Declared by: nixos/modules/services/web-apps/peering-manager.nix
services.peering-manager.port
Port the server will listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8001
Declared by: nixos/modules/services/web-apps/peering-manager.nix
services.peering-manager.secretKeyFile
Path to a file containing the secret key.
Type: absolute path
Declared by: nixos/modules/services/web-apps/peering-manager.nix
services.peering-manager.settings
Configuration options to set in configuration.py.
See the documentation for more possible options.
Type: open submodule of attribute set of (Python value)
Default: { }
Declared by: nixos/modules/services/web-apps/peering-manager.nix
services.peering-manager.settings.ALLOWED_HOSTS
A list of valid fully-qualified domain names (FQDNs) and/or IP addresses that can be used to reach the peering manager service.
Type: list of string
Default:
[
"*"
]
Declared by: nixos/modules/services/web-apps/peering-manager.nix
services.peertube-runner.enable
Whether to enable peertube-runner.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/peertube-runner.nix
services.peertube-runner.enabledJobTypes
Job types that this runner will execute.
Type: non-empty (list of string)
Default:
[
"vod-web-video-transcoding"
"vod-hls-transcoding"
"vod-audio-merge-transcoding"
"live-rtmp-hls-transcoding"
"video-studio-transcoding"
"video-transcription"
]
Example:
[
"video-transcription"
]
Declared by: nixos/modules/services/web-apps/peertube-runner.nix
services.peertube-runner.group
Group under which peertube-runner runs.
Type: string
Default: "prunner"
Example: "peertube-runner"
Declared by: nixos/modules/services/web-apps/peertube-runner.nix
services.peertube-runner.instancesToRegister
PeerTube instances to register this runner with.
Type: attribute set of (submodule)
Default: { }
Example:
{
personal = {
registrationTokenFile = "/run/secrets/my-peertube-instance-registration-token";
runnerDescription = "Runner for video transcription";
runnerName = "Transcription";
url = "https://mypeertubeinstance.com";
};
}
Declared by: nixos/modules/services/web-apps/peertube-runner.nix
services.peertube-runner.instancesToRegister.<name>.registrationTokenFile
Path to a file containing a registration token for the PeerTube instance.
See how to generate registration tokens at https://docs.joinpeertube.org/admin/remote-runners#manage-remote-runners.
Type: absolute path
Example: "/run/secrets/my-peertube-instance-registration-token"
Declared by: nixos/modules/services/web-apps/peertube-runner.nix
services.peertube-runner.instancesToRegister.<name>.runnerDescription
Runner description declared to the PeerTube instance.
Type: null or string
Default: null
Example: "Runner for video transcription"
Declared by: nixos/modules/services/web-apps/peertube-runner.nix
services.peertube-runner.instancesToRegister.<name>.runnerName
Runner name declared to the PeerTube instance.
Type: string
Example: "Transcription"
Declared by: nixos/modules/services/web-apps/peertube-runner.nix
services.peertube-runner.instancesToRegister.<name>.url
URL of the PeerTube instance.
Type: string
Example: "https://mypeertubeinstance.com"
Declared by: nixos/modules/services/web-apps/peertube-runner.nix
services.peertube-runner.package
The runner package to use.
Type: package
Default: pkgs.peertube.runner
Declared by: nixos/modules/services/web-apps/peertube-runner.nix
services.peertube-runner.settings
Configuration for peertube-runner.
See available configuration options at https://docs.joinpeertube.org/maintain/tools#configuration.
Type: TOML value
Default: { }
Example:
{
jobs.concurrency = 4;
ffmpeg = {
threads = 0; # Let ffmpeg automatically choose.
nice = 5;
};
transcription.model = "large-v3";
}
Declared by: nixos/modules/services/web-apps/peertube-runner.nix
services.peertube-runner.user
User account under which peertube-runner runs.
Type: string
Default: "prunner"
Example: "peertube-runner"
Declared by: nixos/modules/services/web-apps/peertube-runner.nix
services.peertube.configureNginx
Configure nginx as a reverse proxy for peertube.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.dataDirs
Allow access to custom data locations.
Type: list of absolute path
Default: [ ]
Example:
[
"/opt/peertube/storage"
"/var/cache/peertube"
]
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.database.createLocally
Configure local PostgreSQL database server for PeerTube.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.database.host
Database host address or unix socket.
Type: string
Default:
if config.services.peertube.database.createLocally
then "/run/postgresql"
else null
Example: "192.168.15.47"
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.database.name
Database name.
Type: string
Default: "peertube"
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.database.passwordFile
Password for PostgreSQL database.
Type: null or absolute path
Default: null
Example: "/run/keys/peertube/password-postgresql"
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.database.port
Database host port.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 5432
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.database.user
Database user.
Type: string
Default: "peertube"
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.enable
Whether to enable Peertube.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.enableWebHttps
Whether clients will access your PeerTube instance with HTTPS. Does NOT configure the PeerTube webserver itself to listen for incoming HTTPS connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.group
Group under which Peertube runs.
Type: string
Default: "peertube"
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.listenHttp
The port that the local PeerTube web server will listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9000
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.listenWeb
The public-facing port that PeerTube will be accessible at (likely 80 or 443 if running behind a reverse proxy). Clients will try to access PeerTube at this port.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9000
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.localDomain
The domain serving your PeerTube instance.
Type: string
Example: "peertube.example.com"
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.package
The peertube package to use.
Type: package
Default: pkgs.peertube
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.redis.createLocally
Configure local Redis server for PeerTube.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.redis.enableUnixSocket
Use Unix socket.
Type: boolean
Default: config.services.peertube.redis.createLocally
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.redis.host
Redis host.
Type: null or string
Default:
if config.services.peertube.redis.createLocally && !config.services.peertube.redis.enableUnixSocket
then "127.0.0.1"
else null
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.redis.passwordFile
Password for redis database.
Type: null or absolute path
Default: null
Example: "/run/keys/peertube/password-redis-db"
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.redis.port
Redis port.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
if config.services.peertube.redis.createLocally && config.services.peertube.redis.enableUnixSocket
then null
else 6379
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.secrets.secretsFile
Secrets to run PeerTube.
Generate one using openssl rand -hex 32
Type: null or absolute path
Default: null
Example: "/run/secrets/peertube"
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.serviceEnvironmentFile
Set environment variables for the service. Mainly useful for setting the initial root password. For example write to file: PT_INITIAL_ROOT_PASSWORD=changeme
Type: null or absolute path
Default: null
Example: "/run/keys/peertube/password-init-root"
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.settings
Configuration for peertube.
Type: open submodule of (JSON value)
Example:
{
listen = {
hostname = "0.0.0.0";
};
log = {
level = "debug";
};
storage = {
tmp = "/opt/data/peertube/storage/tmp/";
logs = "/opt/data/peertube/storage/logs/";
cache = "/opt/data/peertube/storage/cache/";
};
}
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.settings.video_transcription.enabled
Enable automatic transcription of videos.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.settings.video_transcription.engine_path
Custom engine path for local transcription.
Type: absolute path or string
Default:
if config.services.peertube.settings.video_transcription.enabled then
lib.getExe pkgs.whisper-ctranslate2
else
"Set `services.peertube.settings.video_transcription.enabled = true`."
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.smtp.createLocally
Configure local Postfix SMTP server for PeerTube.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.smtp.passwordFile
Password for smtp server.
Type: null or absolute path
Default: null
Example: "/run/keys/peertube/password-smtp"
Declared by: nixos/modules/services/web-apps/peertube.nix
services.peertube.user
User account under which Peertube runs.
Type: string
Default: "peertube"
Declared by: nixos/modules/services/web-apps/peertube.nix
services.pelican-panel.caddy.domain
URL that caddy serves the panel on
Type: string
Default:
if (config.services.pelican-panel.domain != null) then
"${config.services.pelican-panel.domain}:${toString config.services.pelican-panel.port}"
else
":${toString config.services.pelican-panel.port}"
Example: :${toString config.pelican-panel.port}
Declared by: nixos/modules/services/misc/pelican-panel.nix
services.pelican-panel.database.createLocally
If set to true the database gets created locally.
If set to false, please set the environment variables according to your needs.
See more here.
Type: boolean
Default: true
Declared by: nixos/modules/services/misc/pelican-panel.nix
services.pelican-panel.database.type
Database used by pelican panel.
Type: one of "mariadb", "pgsql"
Default: "mariadb"
Declared by: nixos/modules/services/misc/pelican-panel.nix
services.pelican-panel.domain
The URL where the users access the panel. This must be reachable from the wings nodes.
Type: null or string
Default: null
Example: "https://panel.example.com"
Declared by: nixos/modules/services/misc/pelican-panel.nix
services.pelican-panel.enable
Whether to enable Pelican Panel.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/misc/pelican-panel.nix
services.pelican-panel.environment
Base Pelican Panel configuration written to the Nix store at eval time as a .env file. Merged with secretEnvironmentFile at runtime, with secrets taking precedence.
Type: attribute set of (string or signed integer or boolean)
Default: { }
Declared by: nixos/modules/services/misc/pelican-panel.nix
services.pelican-panel.group
Group under which the Pelican Panel runs.
Note
If left as the default value this group will automatically be created on system activation, otherwise the sysadmin is responsible for ensuring the group exists before the Pelican Panel service starts.
Type: string
Default: "pelican"
Declared by: nixos/modules/services/misc/pelican-panel.nix
services.pelican-panel.openFirewall
Whether to enable firewall rules for Pelican.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/misc/pelican-panel.nix
services.pelican-panel.package
The pelican-panel package to use.
Type: package
Default: pkgs.pelican-panel
Declared by: nixos/modules/services/misc/pelican-panel.nix
services.pelican-panel.phpPackage
The php package to use.
Type: package
Default: config.services.pelican-panel.package.passthru.php
Declared by: nixos/modules/services/misc/pelican-panel.nix
services.pelican-panel.port
The port the webserver listens on
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8081
Declared by: nixos/modules/services/misc/pelican-panel.nix
services.pelican-panel.secretEnvironmentFile
Path to a .env file containing secret configuration values. Merged before configuration at runtime so its values take precedence.
Type: absolute path
Declared by: nixos/modules/services/misc/pelican-panel.nix
services.pelican-panel.stateDir
The state directory for Pelican Panel.
Type: absolute path
Default: "/var/lib/pelican"
Declared by: nixos/modules/services/misc/pelican-panel.nix
services.pelican-panel.user
User account under which the Pelican Panel runs.
Note
If left as the default value this user will automatically be created on system activation, otherwise the sysadmin is responsible for ensuring the user exists before the Pelican Panel service starts.
Type: string
Default: "pelican"
Declared by: nixos/modules/services/misc/pelican-panel.nix
services.pelican-panel.webserver
Webserver to serve Pelican Panel with. Set to none to configure it yourself.
Type: one of "caddy", "none"
Default: "caddy"
Example: "none"
Declared by: nixos/modules/services/misc/pelican-panel.nix
services.pelican-wings.apiPort
Port Wings listens on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8080
Declared by: nixos/modules/services/misc/pelican-wings.nix
services.pelican-wings.configuration
Base Wings configuration written to the Nix store at eval time. Merged with secretConfigurationFile at runtime, with secrets taking precedence.
Type: attribute set
Default: { }
Declared by: nixos/modules/services/misc/pelican-wings.nix
services.pelican-wings.containerBackend
Select the container backend you want to use.
If you using "podman" Keep the OOM killer enabled on every server.
Podman uses cgroup v2, which can't disable it, so a server with the OOM killer disabled fails to install or start with cannot disable OOM killer with cgroupv2.
More information here.
Type: one of "docker", "podman"
Default: "docker"
Declared by: nixos/modules/services/misc/pelican-wings.nix
services.pelican-wings.domain
the domain to run Wings on. Must be reachable from the panel and from all clients accessing the panel
Type: string
Declared by: nixos/modules/services/misc/pelican-wings.nix
services.pelican-wings.enable
Whether to enable Pelican Wings daemon.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/misc/pelican-wings.nix
services.pelican-wings.openFirewall
Whether to enable firewall rules for Wings. Will open both the SFTP port 2022 and the apiPort. Disable if you're using a reverse proxy and open 2022 manually.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/misc/pelican-wings.nix
services.pelican-wings.package
The pelican-wings package to use.
Type: package
Default: pkgs.pelican-wings
Declared by: nixos/modules/services/misc/pelican-wings.nix
services.pelican-wings.secretConfigurationFile
Path to a YAML file containing secret configuration values. Merged on top of configuration at runtime.
Type: absolute path
Declared by: nixos/modules/services/misc/pelican-wings.nix
services.perses.enable
Whether to enable perses.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/perses.nix
services.perses.extraOptions
Additional options passed to perses daemon.
Type: list of string
Default: [ ]
Example:
[
"-web.telemetry-path=/metrics"
]
Declared by: nixos/modules/services/monitoring/perses.nix
services.perses.listenAddress
Address to listen on. Empty string will listen on all interfaces.
Type: string
Default: ""
Declared by: nixos/modules/services/monitoring/perses.nix
services.perses.package
The perses package to use.
Type: package
Default: pkgs.perses
Declared by: nixos/modules/services/monitoring/perses.nix
services.perses.port
Perses Web interface port.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8080
Declared by: nixos/modules/services/monitoring/perses.nix
services.perses.settings
Perses settings. See https://perses.dev/perses/docs/configuration/configuration/ for available options.
You can specify secret values in this configuration by setting somevalue._secret = "/path/to/file" instead of setting somevalue directly.
Type: open submodule of (YAML 1.1 value)
Default: { }
Declared by: nixos/modules/services/monitoring/perses.nix
services.persistent-evdev.devices
A set of virtual proxy device labels with backing physical device ids.
Physical devices should already exist in /dev/input/by-id/.
Proxy devices will be automatically given a uinput- prefix.
See the project page
for example configuration of virtual devices with libvirt
and remember to add uinput-* devices to the qemu
cgroup_device_acl list (see virtualisation).
Type: attribute set of string
Default: { }
Example:
{
persist-mouse0 = "usb-Logitech_G403_Prodigy_Gaming_Mouse_078738533531-event-if01";
persist-mouse1 = "usb-Logitech_G403_Prodigy_Gaming_Mouse_078738533531-event-mouse";
persist-mouse2 = "usb-Logitech_G403_Prodigy_Gaming_Mouse_078738533531-if01-event-kbd";
persist-keyboard0 = "usb-Microsoft_Natural®_Ergonomic_Keyboard_4000-event-kbd";
persist-keyboard1 = "usb-Microsoft_Natural®_Ergonomic_Keyboard_4000-if01-event-kbd";
}
Declared by: nixos/modules/services/misc/persistent-evdev.nix
services.persistent-evdev.enable
Whether to enable virtual input devices that persist even if the backing device is hotplugged.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/misc/persistent-evdev.nix
services.pgadmin.emailServer.address
SMTP server for email delivery
Type: string
Default: "localhost"
Declared by: nixos/modules/services/admin/pgadmin.nix
services.pgadmin.emailServer.enable
Whether to enable SMTP email server. This is necessary, if you want to use password recovery or change your own password.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/admin/pgadmin.nix
services.pgadmin.emailServer.passwordFile
Password for SMTP email account. NOTE: Should be string not a store path, to prevent the password from being world readable
Type: absolute path
Declared by: nixos/modules/services/admin/pgadmin.nix
services.pgadmin.emailServer.port
SMTP server port for email delivery
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 25
Declared by: nixos/modules/services/admin/pgadmin.nix
services.pgadmin.emailServer.sender
SMTP server sender email for email delivery. Some servers require this to be a valid email address from that server
Type: string
Example: "noreply@example.com"
Declared by: nixos/modules/services/admin/pgadmin.nix
services.pgadmin.emailServer.useSSL
Whether to enable SSL for connecting to the SMTP server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/admin/pgadmin.nix
services.pgadmin.emailServer.useTLS
Whether to enable TLS for connecting to the SMTP server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/admin/pgadmin.nix
services.pgadmin.emailServer.username
SMTP server username for email delivery
Type: null or string
Default: null
Declared by: nixos/modules/services/admin/pgadmin.nix
services.pgadmin.enable
Whether to enable PostgreSQL Admin 4.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/admin/pgadmin.nix
services.pgadmin.initialEmail
Initial email for the pgAdmin account
Type: string
Declared by: nixos/modules/services/admin/pgadmin.nix
services.pgadmin.initialPasswordFile
Initial password file for the pgAdmin account. Minimum length by default is 6.
Please see services.pgadmin.minimumPasswordLength.
NOTE: Should be string not a store path, to prevent the password from being world readable
Type: absolute path
Declared by: nixos/modules/services/admin/pgadmin.nix
services.pgadmin.minimumPasswordLength
Minimum length of the password
Type: signed integer
Default: 6
Declared by: nixos/modules/services/admin/pgadmin.nix
services.pgadmin.openFirewall
Whether to enable firewall passthrough for pgadmin4.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/admin/pgadmin.nix
services.pgadmin.package
The pgadmin4 package to use.
Type: package
Default: pkgs.pgadmin4
Declared by: nixos/modules/services/admin/pgadmin.nix
services.pgadmin.port
Port for pgadmin4 to run on
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 5050
Declared by: nixos/modules/services/admin/pgadmin.nix
services.pgadmin.settings
Settings for pgadmin4. Documentation
Type: attribute set of ((attribute set of ((list of (signed integer or boolean or string)) or attribute set of (signed integer or boolean or string) or signed integer or boolean or string)) or list of ((list of (signed integer or boolean or string)) or attribute set of (signed integer or boolean or string) or signed integer or boolean or string) or (list of (signed integer or boolean or string)) or attribute set of (signed integer or boolean or string) or signed integer or boolean or string)
Default: { }
Declared by: nixos/modules/services/admin/pgadmin.nix
services.pgbackrest.commands.annotate
Options for the 'annotate' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.archive-get
Options for the 'archive-get' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.archive-push
Options for the 'archive-push' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.backup
Options for the 'backup' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.check
Options for the 'check' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.expire
Options for the 'expire' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.help
Options for the 'help' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.info
Options for the 'info' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.repo-get
Options for the 'repo-get' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.repo-ls
Options for the 'repo-ls' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.restore
Options for the 'restore' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.server
Options for the 'server' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.server-ping
Options for the 'server-ping' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.stanza-create
Options for the 'stanza-create' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.stanza-delete
Options for the 'stanza-delete' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.stanza-upgrade
Options for the 'stanza-upgrade' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.start
Options for the 'start' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.stop
Options for the 'stop' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.verify
Options for the 'verify' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.commands.version
Options for the 'version' command.
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.enable
Whether to enable pgBackRest.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.repos
An attribute set of repositories as described in: https://pgbackrest.org/configuration.html#section-repository
Each repository defaults to set repo-host to the attribute's name.
The special value "localhost" will unset repo-host.
Note
The prefix repoNNN- is added automatically.
Example: Use path instead of repo1-path.
Type: attribute set of (open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string))
Default: { }
Example:
{
localhost.path = "/var/lib/backup";
"backup.example.com".host-type = "tls";
}
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.repos.<name>.host
Repository host when operating remotely
Type: null or string
Default: name
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.repos.<name>.sftp-host
SFTP repository host
Type: null or string
Default: name
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.repos.<name>.sftp-private-key-file
SFTP private key file.
The file must be accessible by both the pgbackrest and the postgres users.
Type: null or absolute path not in the Nix store
Default: null
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.settings
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All globally available options, i.e. all except stanza options, can be used.
Repository options should be set via repos instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Example:
{
process-max = 2;
}
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.stanzas
An attribute set of stanzas as described in: https://pgbackrest.org/user-guide.html#quickstart/configure-stanza
Type: attribute set of (submodule)
Default: { }
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.stanzas.<name>.instances
An attribute set of database instances as described in: https://pgbackrest.org/configuration.html#section-stanza
Each instance defaults to set pg-host to the attribute's name.
The special value "localhost" will unset pg-host.
Note
The prefix pgNNN- is added automatically.
Example: Use user instead of pg1-user.
Type: attribute set of (open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string))
Default: { }
Example:
{
localhost.database = "app";
"postgres.example.com".port = "5433";
}
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.stanzas.<name>.instances.<name>.host
PostgreSQL host for operating remotely.
Type: null or string
Default: if name == "localhost" then null else name
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.stanzas.<name>.jobs
Backups jobs to schedule for this stanza as described in: https://pgbackrest.org/user-guide.html#quickstart/schedule-backup
Type: attribute set of (submodule)
Default: { }
Example:
{
weekly = { schedule = "Sun, 6:30"; type = "full"; };
daily = { schedule = "Mon..Sat, 6:30"; type = "diff"; };
}
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.stanzas.<name>.jobs.<name>.schedule
When or how often the backup should run.
Must be in the format described in systemd.time(7).
Type: string
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.stanzas.<name>.jobs.<name>.type
Backup type as described in: https://pgbackrest.org/command.html#command-backup/category-command/option-type
Type: string
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbackrest.stanzas.<name>.settings
An attribute set of options as described in: https://pgbackrest.org/configuration.html
All options can be used.
Repository options should be set via repos instead.
Stanza options should be set via instances instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string or attribute set of string or list of string)
Default: { }
Example:
{
process-max = 2;
}
Declared by: nixos/modules/services/backup/pgbackrest.nix
services.pgbouncer.enable
Whether to enable PostgreSQL connection pooler.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.group
The group pgbouncer is run as.
Type: string
Default: "pgbouncer"
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.homeDir
Specifies the home directory.
Type: absolute path
Default: "/var/lib/pgbouncer"
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.openFilesLimit
Maximum number of open files.
Type: signed integer
Default: 65536
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.openFirewall
Whether to automatically open the specified TCP port in the firewall.
Type: boolean
Default: false
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.package
The pgbouncer package to use.
Type: package
Default: pkgs.pgbouncer
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.settings
Configuration for PgBouncer, see https://www.pgbouncer.org/config.html 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: { }
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.settings.databases
Detailed information about PostgreSQL database definitions: https://www.pgbouncer.org/config.html#section-databases
Type: attribute set of string
Default: { }
Example:
{
bardb = "host=localhost dbname=bazdb";
exampledb = "host=/run/postgresql/ port=5432 auth_user=exampleuser dbname=exampledb sslmode=require";
foodb = "host=host1.example.com port=5432";
}
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.settings.peers
Optional.
Detailed information about PostgreSQL database definitions: https://www.pgbouncer.org/config.html#section-peers
Type: attribute set of string
Default: { }
Example:
{
"1" = "host=host1.example.com";
"2" = "host=/tmp/pgbouncer-2 port=5555";
}
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.settings.pgbouncer.default_pool_size
How many server connections to allow per user/database pair. Can be overridden in the per-database configuration.
Type: signed integer
Default: 20
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.settings.pgbouncer.ignore_startup_parameters
By default, PgBouncer allows only parameters it can keep track of in startup packets: client_encoding, datestyle, timezone and standard_conforming_strings.
All others parameters will raise an error. To allow others parameters, they can be specified here, so that PgBouncer knows that they are handled by the admin and it can ignore them.
If you need to specify multiple values, use a comma-separated list.
IMPORTANT: When using prometheus-pgbouncer-exporter, you need: extra_float_digits https://github.com/prometheus-community/pgbouncer_exporter#pgbouncer-configuration
Type: null or strings concatenated with ","
Default: null
Example: "extra_float_digits"
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.settings.pgbouncer.listen_addr
Specifies a list (comma-separated) of addresses where to listen for TCP connections. You may also use * meaning “listen on all addresses”. When not set, only Unix socket connections are accepted.
Addresses can be specified numerically (IPv4/IPv6) or by name.
Type: null or strings concatenated with ","
Default: null
Example: "*"
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.settings.pgbouncer.listen_port
Which port to listen on. Applies to both TCP and Unix sockets.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 6432
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.settings.pgbouncer.max_client_conn
Maximum number of client connections allowed.
When this setting is increased, then the file descriptor limits in the operating system might also have to be increased. Note that the number of file descriptors potentially used is more than maxClientConn. If each user connects under its own user name to the server, the theoretical maximum used is: maxClientConn + (max pool_size * total databases * total users)
If a database user is specified in the connection string (all users connect under the same user name), the theoretical maximum is: maxClientConn + (max pool_size * total databases)
The theoretical maximum should never be reached, unless somebody deliberately crafts a special load for it. Still, it means you should set the number of file descriptors to a safely high number.
Type: signed integer
Default: 100
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.settings.pgbouncer.max_db_connections
Do not allow more than this many server connections per database (regardless of user). This considers the PgBouncer database that the client has connected to, not the PostgreSQL database of the outgoing connection.
This can also be set per database in the [databases] section.
Note that when you hit the limit, closing a client connection to one pool will not immediately allow a server connection to be established for another pool, because the server connection for the first pool is still open. Once the server connection closes (due to idle timeout), a new server connection will immediately be opened for the waiting pool.
0 = unlimited
Type: signed integer
Default: 0
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.settings.pgbouncer.max_user_connections
Do not allow more than this many server connections per user (regardless of database). This considers the PgBouncer user that is associated with a pool, which is either the user specified for the server connection or in absence of that the user the client has connected as.
This can also be set per user in the [users] section.
Note that when you hit the limit, closing a client connection to one pool will not immediately allow a server connection to be established for another pool, because the server connection for the first pool is still open. Once the server connection closes (due to idle timeout), a new server connection will immediately be opened for the waiting pool.
0 = unlimited
Type: signed integer
Default: 0
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.settings.pgbouncer.pool_mode
Specifies when a server connection can be reused by other clients.
session Server is released back to pool after client disconnects. Default. transaction Server is released back to pool after transaction finishes. statement Server is released back to pool after query finishes. Transactions spanning multiple statements are disallowed in this mode.
Type: one of "session", "transaction", "statement"
Default: "session"
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.settings.users
Optional.
Detailed information about PostgreSQL user definitions: https://www.pgbouncer.org/config.html#section-users
Type: attribute set of string
Default: { }
Example:
{
user1 = "pool_mode=session";
}
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgbouncer.user
The user pgbouncer is run as.
Type: string
Default: "pgbouncer"
Declared by: nixos/modules/services/databases/pgbouncer.nix
services.pgmanage.allowCustomConnections
This tells pgmanage whether or not to allow anyone to use a custom connection from the login screen.
Type: boolean
Default: false
Declared by: nixos/modules/services/databases/pgmanage.nix
services.pgmanage.connections
pgmanage requires at least one PostgreSQL server be defined.
Detailed information about PostgreSQL connection strings is available at: https://www.postgresql.org/docs/current/libpq-connect.html
Note that you should not specify your user name or password. That information will be entered on the login screen. If you specify a username or password, it will be removed by pgmanage before attempting to connect to a database.
Type: attribute set of string
Default: { }
Example:
{
mini-server = "hostaddr=127.0.0.1 port=5432 dbname=postgres sslmode=require";
nuc-server = "hostaddr=192.168.0.100 port=5432 dbname=postgres";
}
Declared by: nixos/modules/services/databases/pgmanage.nix
services.pgmanage.enable
Whether to enable PostgreSQL Administration for the web.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/databases/pgmanage.nix
services.pgmanage.localOnly
This tells pgmanage whether or not to set the listening socket to local addresses only.
Type: boolean
Default: true
Declared by: nixos/modules/services/databases/pgmanage.nix
services.pgmanage.logLevel
Verbosity of logs
Type: one of "error", "warn", "notice", "info"
Default: "error"
Declared by: nixos/modules/services/databases/pgmanage.nix
services.pgmanage.loginGroup
This tells pgmanage to only allow users in a certain PostgreSQL group to login to pgmanage. Note that a connection will be made to PostgreSQL in order to test if the user is a member of the login group.
Type: null or string
Default: null
Declared by: nixos/modules/services/databases/pgmanage.nix
services.pgmanage.loginTimeout
Number of seconds of inactivity before user is automatically logged out.
Type: signed integer
Default: 3600
Declared by: nixos/modules/services/databases/pgmanage.nix
services.pgmanage.package
The pgmanage package to use.
Type: package
Default: pkgs.pgmanage
Declared by: nixos/modules/services/databases/pgmanage.nix
services.pgmanage.port
This tells pgmanage what port to listen on for browser requests.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8080
Declared by: nixos/modules/services/databases/pgmanage.nix
services.pgmanage.sqlRoot
This tells pgmanage where to put the SQL file history. All tabs are saved to this location so that if you get disconnected from pgmanage you don't lose your work.
Type: string
Default: "/var/lib/pgmanage"
Declared by: nixos/modules/services/databases/pgmanage.nix
services.pgmanage.superOnly
This tells pgmanage whether or not to only allow super users to login. The recommended value is true and will restrict users who are not super users from logging in to any PostgreSQL instance through pgmanage. Note that a connection will be made to PostgreSQL in order to test if the user is a superuser.
Type: boolean
Default: true
Declared by: nixos/modules/services/databases/pgmanage.nix
services.pgmanage.tls
These options tell pgmanage where the TLS Certificate and Key files reside. If you use these options then you'll only be able to access pgmanage through a secure TLS connection. These options are only necessary if you wish to connect directly to pgmanage using a secure TLS connection. As an alternative, you can set up pgmanage in a reverse proxy configuration. This allows your web server to terminate the secure connection and pass on the request to pgmanage. You can find help to set up this configuration in: https://github.com/pgManage/pgManage/blob/master/INSTALL_NGINX.md
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/databases/pgmanage.nix
services.pgmanage.tls.cert
TLS certificate
Type: string
Declared by: nixos/modules/services/databases/pgmanage.nix
services.pgmanage.tls.key
TLS key
Type: string
Declared by: nixos/modules/services/databases/pgmanage.nix
services.pgpkeyserver-lite.enable
Whether to enable pgpkeyserver-lite on a nginx vHost proxying to a gpg keyserver.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/pgpkeyserver-lite.nix
services.pgpkeyserver-lite.hkpAddress
Which IP address the sks-keyserver is listening on.
Type: string
Default: head config.services.sks.hkpAddress
Declared by: nixos/modules/services/web-apps/pgpkeyserver-lite.nix
services.pgpkeyserver-lite.hkpPort
Which port the sks-keyserver is listening on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: config.services.sks.hkpPort
Declared by: nixos/modules/services/web-apps/pgpkeyserver-lite.nix
services.pgpkeyserver-lite.hostname
Which hostname to set the vHost to that is proxying to sks.
Type: string
Declared by: nixos/modules/services/web-apps/pgpkeyserver-lite.nix
services.pgpkeyserver-lite.package
The pgpkeyserver-lite package to use.
Type: package
Default: pkgs.pgpkeyserver-lite
Declared by: nixos/modules/services/web-apps/pgpkeyserver-lite.nix
services.pgscv.enable
Whether to enable pgSCV, a PostgreSQL ecosystem metrics collector.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/pgscv.nix
services.pgscv.logLevel
Log level for pgSCV.
Type: one of "debug", "info", "warn", "error"
Default: "info"
Declared by: nixos/modules/services/monitoring/pgscv.nix
services.pgscv.package
The pgscv package to use.
Type: package
Default: pkgs.pgscv
Declared by: nixos/modules/services/monitoring/pgscv.nix
services.pgscv.settings
Configuration for pgSCV, in YAML format.
Type: YAML 1.1 value
Default: { }
Declared by: nixos/modules/services/monitoring/pgscv.nix
services.photonvision.enable
Whether to enable PhotonVision.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/video/photonvision.nix
services.photonvision.openFirewall
Whether to open the required ports in the firewall.
Type: boolean
Default: false
Declared by: nixos/modules/services/video/photonvision.nix
services.photonvision.package
The photonvision package to use.
Type: package
Default: pkgs.photonvision
Declared by: nixos/modules/services/video/photonvision.nix
services.photoprism.address
Web interface address.
Type: string
Default: "localhost"
Declared by: nixos/modules/services/web-apps/photoprism.nix
services.photoprism.databasePasswordFile
Database password file.
Type: null or absolute path not in the Nix store
Default: null
Declared by: nixos/modules/services/web-apps/photoprism.nix
services.photoprism.enable
Whether to enable Photoprism web server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/photoprism.nix
services.photoprism.group
Group under which photoprism runs.
Type: string
Default: "photoprism"
Declared by: nixos/modules/services/web-apps/photoprism.nix
services.photoprism.importPath
Relative or absolute to the originalsPath from where the files should be imported.
Type: string
Default: "import"
Declared by: nixos/modules/services/web-apps/photoprism.nix
services.photoprism.originalsPath
Storage path of your original media files (photos and videos).
Type: absolute path
Default: null
Example: "/data/photos"
Declared by: nixos/modules/services/web-apps/photoprism.nix
services.photoprism.package
The photoprism package to use.
Type: package
Default: pkgs.photoprism
Declared by: nixos/modules/services/web-apps/photoprism.nix
services.photoprism.passwordFile
Admin password file.
Type: null or absolute path not in the Nix store
Default: null
Declared by: nixos/modules/services/web-apps/photoprism.nix
services.photoprism.port
Web interface port.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 2342
Declared by: nixos/modules/services/web-apps/photoprism.nix
services.photoprism.settings
See the getting-started guide for available options.
Type: attribute set of string
Default: { }
Example:
{
PHOTOPRISM_ADMIN_USER = "root";
PHOTOPRISM_DEFAULT_LOCALE = "de";
}
Declared by: nixos/modules/services/web-apps/photoprism.nix
services.photoprism.storagePath
Location for sidecar, cache, and database files.
Type: absolute path
Default: "/var/lib/photoprism"
Declared by: nixos/modules/services/web-apps/photoprism.nix
services.photoprism.user
User under which photoprism runs.
Type: string
Default: "photoprism"
Declared by: nixos/modules/services/web-apps/photoprism.nix
services.photoview.dataDir
Directory for photoview state, cache, and database.
Type: absolute path
Default: "/var/lib/photoview"
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.database.host
Database host address.
Type: string
Default: "localhost"
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.database.name
Database name.
Type: string
Default: "photoview"
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.database.passwordFile
Path to a file containing the database password. Required when using MySQL or PostgreSQL.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.database.port
Database port.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 5432
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.database.type
Database engine to use.
Type: one of "sqlite", "mysql", "postgres"
Default: "sqlite"
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.database.user
Database user.
Type: string
Default: "photoview"
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.enable
Whether to enable Photoview, a photo gallery for self-hosted personal servers.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.group
Group under which photoview runs.
Type: string
Default: "photoview"
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.host
Address to listen on.
Type: string
Default: "127.0.0.1"
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.mediaPath
Path to the directory containing photos to be served. This directory must be readable by the photoview user.
Type: absolute path
Example: "/mnt/photos"
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.package
The photoview package to use.
Type: package
Default: pkgs.photoview
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 4001
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.secretsFile
Path to an environment file containing secrets. Can be used for MAPBOX_TOKEN or other sensitive settings.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.settings.disableFaceRecognition
Disable face recognition feature.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.settings.disableRawProcessing
Disable RAW photo processing.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.settings.disableVideoEncoding
Disable video encoding with FFmpeg.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.settings.mapboxToken
Mapbox API token for map features.
Type: null or string
Default: null
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.settings.videoEncoder
Hardware video encoder to use.
Type: null or one of "h264_qsv", "h264_vaapi", "h264_nvenc"
Default: null
Declared by: nixos/modules/services/web-apps/photoview.nix
services.photoview.user
User account under which photoview runs.
Type: string
Default: "photoview"
Declared by: nixos/modules/services/web-apps/photoview.nix
services.phpfpm.extraConfig
Extra configuration that should be put in the global section of
the PHP-FPM configuration file. Do not specify the options
error_log or
daemonize here, since they are generated by
NixOS.
Type: null or strings concatenated with "\n"
Default: null
Declared by: nixos/modules/services/web-servers/phpfpm/default.nix
services.phpfpm.phpOptions
Structured options appended to the PHP configuration file
php.ini.
For backwards compatibility, a string in
php.ini format is also accepted, but deprecated.
It will be removed in a future release. Please migrate to
the attribute set format:
{
services.phpfpm.phpOptions = {
"date.timezone" = "CET";
};
}
Type: strings concatenated with "\n" or attribute set of (null or boolean or signed integer or floating point number or string)
Default: { }
Example:
{
"date.timezone" = "CET";
}
Declared by: nixos/modules/services/web-servers/phpfpm/default.nix
services.phpfpm.phpPackage
The php package to use.
Type: package
Default: pkgs.php
Declared by: nixos/modules/services/web-servers/phpfpm/default.nix
services.phpfpm.pools
PHP-FPM pools. If no pools are defined, the PHP-FPM service is disabled.
Type: attribute set of (submodule)
Default: { }
Example:
{
mypool = {
user = "php";
group = "php";
phpPackage = pkgs.php;
settings = {
"pm" = "dynamic";
"pm.max_children" = 75;
"pm.start_servers" = 10;
"pm.min_spare_servers" = 5;
"pm.max_spare_servers" = 20;
"pm.max_requests" = 500;
};
}
}
Declared by: nixos/modules/services/web-servers/phpfpm/default.nix
services.phpfpm.pools.<name>.extraConfig
Extra lines that go into the pool configuration.
See the documentation on php-fpm.conf for
details on configuration directives.
Type: null or strings concatenated with "\n"
Default: null
Declared by: nixos/modules/services/web-servers/phpfpm/default.nix
services.phpfpm.pools.<name>.group
Group account under which this pool runs.
Type: string
Declared by: nixos/modules/services/web-servers/phpfpm/default.nix
services.phpfpm.pools.<name>.listen
The address on which to accept FastCGI requests.
Type: string
Default: ""
Example: "/path/to/unix/socket"
Declared by: nixos/modules/services/web-servers/phpfpm/default.nix
services.phpfpm.pools.<name>.phpEnv
Environment variables used for this PHP-FPM pool.
Type: attribute set of string
Default: { }
Example:
{
HOSTNAME = "$HOSTNAME";
TMP = "/tmp";
TMPDIR = "/tmp";
TEMP = "/tmp";
}
Declared by: nixos/modules/services/web-servers/phpfpm/default.nix
services.phpfpm.pools.<name>.phpOptions
Structured options appended to the PHP configuration file
php.ini used for this PHP-FPM pool.
For backwards compatibility, a string in
php.ini format is also accepted, but deprecated.
It will be removed in a future release. Please migrate to
the attribute set format:
{
services.phpfpm.pools.<name>.phpOptions = {
"date.timezone" = "CET";
};
}
Type: strings concatenated with "\n" or attribute set of (null or boolean or signed integer or floating point number or string)
Default: { }
Example:
{
"date.timezone" = "CET";
}
Declared by: nixos/modules/services/web-servers/phpfpm/default.nix
services.phpfpm.pools.<name>.phpPackage
The PHP package to use for running this PHP-FPM pool.
Type: package
Default: config.services.phpfpm.phpPackage
Declared by: nixos/modules/services/web-servers/phpfpm/default.nix
services.phpfpm.pools.<name>.settings
PHP-FPM pool directives. Refer to the "List of pool directives" section of
https://www.php.net/manual/en/install.fpm.configuration.php
for details. Note that settings names must be enclosed in quotes (e.g.
"pm.max_children" instead of pm.max_children).
Type: attribute set of (string or signed integer or boolean)
Default: { }
Example:
{
"pm" = "dynamic";
"pm.max_children" = 75;
"pm.start_servers" = 10;
"pm.min_spare_servers" = 5;
"pm.max_spare_servers" = 20;
"pm.max_requests" = 500;
}
Declared by: nixos/modules/services/web-servers/phpfpm/default.nix
services.phpfpm.pools.<name>.socket
Path to the unix socket file on which to accept FastCGI requests.
Note
This option is read-only and managed by NixOS.
Type: string
Example: "/run/phpfpm/<name>.sock"
Read only
Declared by: nixos/modules/services/web-servers/phpfpm/default.nix
services.phpfpm.pools.<name>.user
User account under which this pool runs.
Type: string
Declared by: nixos/modules/services/web-servers/phpfpm/default.nix
services.phpfpm.settings
PHP-FPM global directives. Refer to the "List of global php-fpm.conf directives" section of
https://www.php.net/manual/en/install.fpm.configuration.php
for details. Note that settings names must be enclosed in quotes (e.g.
"pm.max_children" instead of pm.max_children).
You need not specify the options error_log or
daemonize here, since they are generated by NixOS.
Type: attribute set of (string or signed integer or boolean)
Default: { }
Declared by: nixos/modules/services/web-servers/phpfpm/default.nix
services.phylactery.enable
Whether to enable Phylactery server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/phylactery.nix
services.phylactery.host
Listen host for Phylactery
Type: string
Default: "localhost"
Declared by: nixos/modules/services/web-apps/phylactery.nix
services.phylactery.library
Path to CBZ library
Type: absolute path
Declared by: nixos/modules/services/web-apps/phylactery.nix
services.phylactery.package
The phylactery package to use.
Type: package
Default: pkgs.phylactery
Declared by: nixos/modules/services/web-apps/phylactery.nix
services.phylactery.port
Listen port for Phylactery
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Declared by: nixos/modules/services/web-apps/phylactery.nix
services.physlock.allowAnyUser
Whether to allow any user to lock the screen. This will install a setuid wrapper to allow any user to start physlock as root, which is a minor security risk. Call the physlock binary to use this instead of using the systemd service.
Type: boolean
Default: false
Declared by: nixos/modules/services/security/physlock.nix
services.physlock.disableSysRq
Whether to disable SysRq when locked with physlock.
Type: boolean
Default: true
Declared by: nixos/modules/services/security/physlock.nix
services.physlock.enable
Whether to enable the physlock screen locking mechanism.
Enable this and then run systemctl start physlock
to securely lock the screen.
This will switch to a new virtual terminal, turn off console
switching and disable SysRq mechanism (when
services.physlock.disableSysRq is set)
until the root or user password is given.
Type: boolean
Default: false
Declared by: nixos/modules/services/security/physlock.nix
services.physlock.lockMessage
Message to show on physlock login terminal.
Type: string
Default: ""
Declared by: nixos/modules/services/security/physlock.nix
services.physlock.lockOn.extraTargets
Other targets to lock the screen just before.
Useful if you want to e.g. both autologin to X11 so that
your ~/.xsession gets executed and
still to have the screen locked so that the system can be
booted relatively unattended.
Type: list of string
Default: [ ]
Example:
[
"display-manager.service"
]
Declared by: nixos/modules/services/security/physlock.nix
services.physlock.lockOn.hibernate
Whether to lock screen with physlock just before hibernate.
Type: boolean
Default: true
Declared by: nixos/modules/services/security/physlock.nix
services.physlock.lockOn.suspend
Whether to lock screen with physlock just before suspend.
Type: boolean
Default: true
Declared by: nixos/modules/services/security/physlock.nix
services.physlock.muteKernelMessages
Disable kernel messages on console while physlock is running.
Type: boolean
Default: false
Declared by: nixos/modules/services/security/physlock.nix
services.picom.activeOpacity
Opacity of active windows.
Type: integer or floating point number between 0 and 1 (both inclusive)
Default: 1.0
Example: 0.8
Declared by: nixos/modules/services/x11/picom.nix
services.picom.backend
Backend to use: egl, glx, xrender or xr_glx_hybrid.
Type: one of "egl", "glx", "xrender", "xr_glx_hybrid"
Default: "xrender"
Declared by: nixos/modules/services/x11/picom.nix
services.picom.enable
Whether or not to enable Picom as the X.org composite manager.
Type: boolean
Default: false
Declared by: nixos/modules/services/x11/picom.nix
services.picom.fade
Fade windows in and out.
Type: boolean
Default: false
Declared by: nixos/modules/services/x11/picom.nix
services.picom.fadeDelta
Time between fade animation step (in ms).
Type: positive integer, meaning >0
Default: 10
Example: 5
Declared by: nixos/modules/services/x11/picom.nix
services.picom.fadeExclude
List of conditions of windows that should not be faded.
See picom(1) man page for more examples.
Type: list of string
Default: [ ]
Example:
[
"window_type *= 'menu'"
"name ~= 'Firefox$'"
"focused = 1"
]
Declared by: nixos/modules/services/x11/picom.nix
services.picom.fadeSteps
Opacity change between fade steps (in and out).
Type: pair of integer or floating point number between 0.01 and 1 (both inclusive)
Default:
[
0.028
0.03
]
Example:
[
0.04
0.04
]
Declared by: nixos/modules/services/x11/picom.nix
services.picom.inactiveOpacity
Opacity of inactive windows.
Type: integer or floating point number between 0.1 and 1 (both inclusive)
Default: 1.0
Example: 0.8
Declared by: nixos/modules/services/x11/picom.nix
services.picom.menuOpacity
Opacity of dropdown and popup menu.
Type: integer or floating point number between 0 and 1 (both inclusive)
Default: 1.0
Example: 0.8
Declared by: nixos/modules/services/x11/picom.nix
services.picom.opacityRules
Rules that control the opacity of windows, in format PERCENT:PATTERN.
Type: list of string
Default: [ ]
Example:
[
"95:class_g = 'URxvt' && !_NET_WM_STATE@:32a"
"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
]
Declared by: nixos/modules/services/x11/picom.nix
services.picom.package
The picom package to use.
Type: package
Default: pkgs.picom
Declared by: nixos/modules/services/x11/picom.nix
services.picom.settings
Picom settings. Use this option to configure Picom settings not exposed
in a NixOS option or to bypass one. For the available options see the
CONFIGURATION FILES section at picom(1).
Type: libconfig configuration. The format consists of an attributes set (called a group) of settings. Each setting can be a scalar type (boolean, integer, floating point number or string), a list of scalars or a group itself
Default: { }
Example:
blur =
{ method = "gaussian";
size = 10;
deviation = 5.0;
};
Declared by: nixos/modules/services/x11/picom.nix
services.picom.shadow
Draw window shadows.
Type: boolean
Default: false
Declared by: nixos/modules/services/x11/picom.nix
services.picom.shadowExclude
List of conditions of windows that should have no shadow.
See picom(1) man page for more examples.
Type: list of string
Default: [ ]
Example:
[
"window_type *= 'menu'"
"name ~= 'Firefox$'"
"focused = 1"
]
Declared by: nixos/modules/services/x11/picom.nix
services.picom.shadowOffsets
Left and right offset for shadows (in pixels).
Type: pair of signed integer
Default:
[
-15
-15
]
Example:
[
-10
-15
]
Declared by: nixos/modules/services/x11/picom.nix
services.picom.shadowOpacity
Window shadows opacity.
Type: integer or floating point number between 0 and 1 (both inclusive)
Default: 0.75
Example: 0.8
Declared by: nixos/modules/services/x11/picom.nix
services.picom.vSync
Enable vertical synchronization. Chooses the best method (drm, opengl, opengl-oml, opengl-swc, opengl-mswc) automatically. The bool value should be used, the others are just for backwards compatibility.
Type: boolean or one of "none", "drm", "opengl", "opengl-oml", "opengl-swc", "opengl-mswc"
Default: false
Declared by: nixos/modules/services/x11/picom.nix
services.picom.wintypes
Rules for specific window types.
Type: attribute set
Default:
{
popup_menu = { opacity = config.services.picom.menuOpacity; };
dropdown_menu = { opacity = config.services.picom.menuOpacity; };
}
Example: { }
Declared by: nixos/modules/services/x11/picom.nix
services.picosnitch.enable
Whether to enable picosnitch daemon.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/picosnitch.nix
services.pict-rs.address
The IPv4 address to deploy the service to.
Type: string
Default: "127.0.0.1"
Declared by: nixos/modules/services/web-apps/pict-rs.nix
services.pict-rs.dataDir
The directory where to store the uploaded images & database.
Type: absolute path
Default: "/var/lib/pict-rs"
Declared by: nixos/modules/services/web-apps/pict-rs.nix
services.pict-rs.enable
Whether to enable pict-rs server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/pict-rs.nix
services.pict-rs.package
The pict-rs package to use.
Type: package
Default: pkgs.pict-rs
Declared by: nixos/modules/services/web-apps/pict-rs.nix
services.pict-rs.port
The port which to bind the service to.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8080
Declared by: nixos/modules/services/web-apps/pict-rs.nix
services.pict-rs.repoPath
The directory where to store the database. This option takes precedence over dataDir.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/web-apps/pict-rs.nix
services.pict-rs.storePath
The directory where to store the uploaded images. This option takes precedence over dataDir.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/web-apps/pict-rs.nix
services.pid-fan-controller.enable
Whether to enable the PID fan controller, which controls the configured fans by running a closed-loop PID control loop.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/hardware/pid-fan-controller.nix
services.pid-fan-controller.package
The pid-fan-controller package to use.
Type: package
Default: pkgs.pid-fan-controller
Declared by: nixos/modules/services/hardware/pid-fan-controller.nix
services.pid-fan-controller.settings
Configuration for pid-fan-controller, see https://github.com/zimward/pid-fan-controller for supported values.
Type: open submodule of (JSON value or list of (JSON value))
Default: { }
Declared by: nixos/modules/services/hardware/pid-fan-controller.nix
services.pihole-ftl.enable
Whether to enable Pi-hole FTL.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.group
Group to run the service as.
Type: string
Default: "pihole"
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.lists
Deny (or allow) domain lists to use
Type: list of (submodule)
Default: [ ]
Example:
[
{
url = "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts";
}
]
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.lists.*.description
Description of the list
Type: string
Default: ""
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.lists.*.enabled
Whether this list is enabled
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.lists.*.type
Whether domains on this list should be explicitly allowed, or blocked
Type: one of "allow", "block"
Default: "block"
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.lists.*.url
URL of the domain list
Type: string
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.logDirectory
Path for Pi-hole log files
Type: absolute path
Default: "/var/log/pihole"
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.macvendorURL
URL from which to download the macvendor.db file.
Type: string
Default: "https://ftl.pi-hole.net/macvendor.db"
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.openFirewallDHCP
Open ports in the firewall for pihole-FTL's DHCP server.
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.openFirewallDNS
Open ports in the firewall for pihole-FTL's DNS server.
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.openFirewallWebserver
Open ports in the firewall for pihole-FTL's webserver, as configured in settings.webserver.port.
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.package
The pihole-ftl package to use.
Type: package
Default: pkgs.pihole-ftl
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.piholePackage
The pihole package to use.
Type: package
Default: pkgs.pihole
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.privacyLevel
Level of detail in generated statistics. 0 enables full statistics, 3 shows only anonymous statistics.
See the documentation.
Also see services.dnsmasq.settings.log-queries to completely disable query logging.
Type: integer or floating point number between 0 and 3 (both inclusive)
Default: 0
Example: 3
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.queryLogDeleter.age
Delete DNS query logs older than this many days, if services (P) is on.
Type: signed integer
Default: 90
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.queryLogDeleter.enable
Whether to enable Pi-hole FTL DNS query log deleter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.queryLogDeleter.interval
How often the query log deleter is run. See systemd.time(7) for more information about the format.
Type: string
Default: "weekly"
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.settings
Configuration options for pihole.toml. See the upstream documentation.
Type: TOML value
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.stateDirectory
Path for pihole state files.
Type: absolute path
Default: "/var/lib/pihole"
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.useDnsmasqConfig
Import options defined in services (D) via misc.dnsmasq_lines in Pi-hole's config.
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-ftl.user
User to run the service as.
Type: string
Default: "pihole"
Declared by: nixos/modules/services/networking/pihole-ftl.nix
services.pihole-web.enable
Whether to enable Pi-hole dashboard.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/pihole-web.nix
services.pihole-web.hostName
Domain name for the website.
Type: string
Default: "pi.hole"
Declared by: nixos/modules/services/web-apps/pihole-web.nix
services.pihole-web.package
The pihole-web package to use.
Type: package
Default: pkgs.pihole-web
Declared by: nixos/modules/services/web-apps/pihole-web.nix
services.pihole-web.ports
Port(s) for the webserver to serve on.
If provided as a string, optionally append suffixes to control behaviour:
o: to make the port is optional - failure to bind will not be an error.s: for the port to be used for SSL.r: for a non-SSL port to redirect to the first available SSL port.
Type: list of (16 bit unsigned integer; between 0 and 65535 (both inclusive) or string or (submodule))
Default: [ ]
Example:
[
"80r"
"443s"
]
Declared by: nixos/modules/services/web-apps/pihole-web.nix
services.pinchflat.enable
Whether to enable pinchflat.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/misc/pinchflat.nix
services.pinchflat.extraConfig
The configuration of Pinchflat is handled through environment variables. The available configuration options can be found in the Pinchflat README.
Type: attribute set of (null or boolean or signed integer or string)
Default: { }
Example:
{
YT_DLP_WORKER_CONCURRENCY = 1;
}
Declared by: nixos/modules/services/misc/pinchflat.nix
services.pinchflat.group
Group under which Pinchflat runs.
Type: string
Default: "pinchflat"
Declared by: nixos/modules/services/misc/pinchflat.nix
services.pinchflat.logLevel
Log level for Pinchflat.
Type: one of "debug", "info", "warning", "error"
Default: "info"
Declared by: nixos/modules/services/misc/pinchflat.nix
services.pinchflat.mediaDir
The directory into which Pinchflat downloads videos.
Type: absolute path
Default: "/var/lib/pinchflat/media"
Declared by: nixos/modules/services/misc/pinchflat.nix
services.pinchflat.openFirewall
Open ports in the firewall for the Pinchflat web interface
Type: boolean
Default: false
Declared by: nixos/modules/services/misc/pinchflat.nix
services.pinchflat.package
The pinchflat package to use.
Type: package
Default: pkgs.pinchflat
Declared by: nixos/modules/services/misc/pinchflat.nix
services.pinchflat.port
Port on which the Pinchflat web interface is available.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8945
Declared by: nixos/modules/services/misc/pinchflat.nix
services.pinchflat.secretsFile
Secrets like SECRET_KEY_BASE and BASIC_AUTH_PASSWORD
should be passed to the service without adding them to the world-readable Nix store.
Note that either this file needs to be available on the host on which pinchflat is running,
or the option selfhosted must be true.
Further, SECRET_KEY_BASE has a minimum length requirement of 64 bytes.
One way to generate such a secret is to use openssl rand -hex 64.
As an example, the contents of the file might look like this:
SECRET_KEY_BASE=...copy-paste a secret token here...
BASIC_AUTH_USERNAME=...basic auth username...
BASIC_AUTH_PASSWORD=...basic auth password...
Type: null or absolute path
Default: null
Example: "/run/secrets/pinchflat"
Declared by: nixos/modules/services/misc/pinchflat.nix
services.pinchflat.selfhosted
Use a weak secret. If true, you are not required to provide a SECRET_KEY_BASE through the secretsFile option. Do not use this option in production!
Type: boolean
Default: false
Declared by: nixos/modules/services/misc/pinchflat.nix
services.pinchflat.user
User account under which Pinchflat runs.
Type: string
Default: "pinchflat"
Declared by: nixos/modules/services/misc/pinchflat.nix
services.pinnwand.enable
Whether to enable Pinnwand, a pastebin.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/misc/pinnwand.nix
services.pinnwand.port
The port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8000
Declared by: nixos/modules/services/misc/pinnwand.nix
services.pinnwand.settings
Your pinnwand.toml as a Nix attribute set. Look up
possible options in the documentation.
Type: open submodule of (TOML value)
Default: { }
Declared by: nixos/modules/services/misc/pinnwand.nix
services.pinnwand.settings.database_uri
Database URI compatible with SQLAlchemy.
Additional packages may need to be introduced into the environment for certain databases.
Type: string
Default: "sqlite:////var/lib/pinnwand/pinnwand.db"
Example: "sqlite:///:memory"
Declared by: nixos/modules/services/misc/pinnwand.nix
services.pinnwand.settings.footer
The footer in raw HTML.
Type: string
Default:
''
View <a href="//github.com/supakeen/pinnwand" target="_BLANK">source code</a>, the <a href="/removal">removal</a> or <a href="/expiry">expiry</a> stories, or read the <a href="/about">about</a> page.
''
Declared by: nixos/modules/services/misc/pinnwand.nix
services.pinnwand.settings.paste_help
Raw HTML help text shown in the header area.
Type: string
Default:
''
<p>Welcome to pinnwand, this site is a pastebin. It allows you to share code with others. If you write code in the text area below and press the paste button you will be given a link you can share with others so they can view your code as well.</p><p>People with the link can view your pasted code, only you can remove your paste and it expires automatically. Note that anyone could guess the URI to your paste so don't rely on it being private.</p>
''
Declared by: nixos/modules/services/misc/pinnwand.nix
services.pinnwand.settings.paste_size
Maximum size of a paste in bytes.
Type: positive integer, meaning >0
Default: 262144
Example: 524288
Declared by: nixos/modules/services/misc/pinnwand.nix
services.pipewire.alsa.enable
Whether to enable ALSA support.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/desktops/pipewire/pipewire.nix
services.pipewire.alsa.support32Bit
Whether to enable 32-bit ALSA support on 64-bit systems.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/desktops/pipewire/pipewire.nix
services.pipewire.audio.enable
Whether to use PipeWire as the primary sound server
Type: boolean
Default: config.services.pipewire.alsa.enable || config.services.pipewire.jack.enable || config.services.pipewire.pulse.enable
Declared by: nixos/modules/services/desktops/pipewire/pipewire.nix
services.pipewire.configPackages
List of packages that provide PipeWire configuration, in the form of
share/pipewire/*/*.conf files.
LV2/LADSPA dependencies will be picked up from config packages automatically
via passthru.requiredLv2Packages/passthru.requiredLadspaPackages.
Type: list of package
Default: [ ]
Example:
[
(pkgs.writeTextDir "share/pipewire/pipewire.conf.d/10-loopback.conf" ''
context.modules = [
{ name = libpipewire-module-loopback
args = {
node.description = "Scarlett Focusrite Line 1"
capture.props = {
audio.position = [ FL ]
stream.dont-remix = true
node.target = "alsa_input.usb-Focusrite_Scarlett_Solo_USB_Y7ZD17C24495BC-00.analog-stereo"
node.passive = true
}
playback.props = {
node.name = "SF_mono_in_1"
media.class = "Audio/Source"
audio.position = [ MONO ]
}
}
}
]
'')
]
Declared by: nixos/modules/services/desktops/pipewire/pipewire.nix
services.pipewire.enable
Whether to enable PipeWire service.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/desktops/pipewire/pipewire.nix
services.pipewire.extraConfig.client
Additional configuration for the PipeWire client library, used by most applications.
Every item in this attrset becomes a separate drop-in file in /etc/pipewire/client.conf.d.
See the PipeWire wiki for examples.
Type: attribute set of (JSON value)
Default: { }
Example:
{
"10-no-resample" = {
"stream.properties" = {
"resample.disable" = true;
};
};
}
Declared by: nixos/modules/services/desktops/pipewire/pipewire.nix
services.pipewire.extraConfig.jack
Additional configuration for the PipeWire JACK server and client library.
Every item in this attrset becomes a separate drop-in file in /etc/pipewire/jack.conf.d.
See the PipeWire wiki for examples.
Type: attribute set of (JSON value)
Default: { }
Example:
{
"20-hide-midi" = {
"jack.properties" = {
"jack.show-midi" = false;
};
};
}
Declared by: nixos/modules/services/desktops/pipewire/pipewire.nix
services.pipewire.extraConfig.pipewire
Additional configuration for the PipeWire server.
Every item in this attrset becomes a separate drop-in file in /etc/pipewire/pipewire.conf.d.
See man pipewire.conf for details, and the PipeWire wiki for examples.
See also:
- PipeWire wiki - virtual devices for creating virtual devices or remapping channels
- PipeWire wiki - filter-chain for creating more complex processing pipelines
- PipeWire wiki - network for streaming audio over a network
Type: attribute set of (JSON value)
Default: { }
Example:
{
"10-clock-rate" = {
"context.properties" = {
"default.clock.rate" = 44100;
};
};
"11-no-upmixing" = {
"stream.properties" = {
"channelmix.upmix" = false;
};
};
}
Declared by: nixos/modules/services/desktops/pipewire/pipewire.nix
services.pipewire.extraConfig.pipewire-pulse
Additional configuration for the PipeWire PulseAudio server.
Every item in this attrset becomes a separate drop-in file in /etc/pipewire/pipewire-pulse.conf.d.
See man pipewire-pulse.conf for details, and the PipeWire wiki for examples.
See also:
- PipeWire wiki - PulseAudio tricks guide for more examples.
Type: attribute set of (JSON value)
Default: { }
Example:
{
"15-force-s16-info" = {
"pulse.rules" = [
{
actions = {
quirks = [
"force-s16-info"
];
};
matches = [
{
"application.process.binary" = "my-broken-app";
}
];
}
];
};
}
Declared by: nixos/modules/services/desktops/pipewire/pipewire.nix
services.pipewire.extraLadspaPackages
List of packages that provide LADSPA plugins in lib/ladspa that should
be made available to PipeWire for filter chains.
Config packages have their required LADSPA plugins added automatically,
so they don't need to be specified here. Config packages need to set
passthru.requiredLadspaPackages for this to work.
Type: list of package
Default: [ ]
Example: [ pkgs.noisetorch-ladspa ]
Declared by: nixos/modules/services/desktops/pipewire/pipewire.nix
services.pipewire.extraLv2Packages
List of packages that provide LV2 plugins in lib/lv2 that should
be made available to PipeWire for filter chains.
Config packages have their required LV2 plugins added automatically,
so they don't need to be specified here. Config packages need to set
passthru.requiredLv2Packages for this to work.
Type: list of package
Default: [ ]
Example: [ pkgs.lsp-plugins ]
Declared by: nixos/modules/services/desktops/pipewire/pipewire.nix
services.pipewire.jack.enable
Whether to enable JACK audio emulation.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/desktops/pipewire/pipewire.nix
services.pipewire.package
The pipewire package to use.
Type: package
Default: pkgs.pipewire
Declared by: nixos/modules/services/desktops/pipewire/pipewire.nix
services.pipewire.pulse.enable
Whether to enable PulseAudio server emulation.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/desktops/pipewire/pipewire.nix
services.pipewire.raopOpenFirewall
Opens UDP/6001-6002, required by RAOP/Airplay for timing and control data.
Type: boolean
Default: false
Declared by: nixos/modules/services/desktops/pipewire/pipewire.nix
services.pipewire.socketActivation
Automatically run PipeWire when connections are made to the PipeWire socket.
Type: boolean
Default: true
Declared by: nixos/modules/services/desktops/pipewire/pipewire.nix
services.pipewire.systemWide
If true, a system-wide PipeWire service and socket is enabled allowing all users in the "pipewire" group to use it simultaneously. If false, then user units are used instead, restricting access to only one user.
Enabling system-wide PipeWire is however not recommended and disabled by default according to https://github.com/PipeWire/pipewire/blob/0.3.11/NEWS#L14-L16
Type: boolean
Default: false
Declared by: nixos/modules/services/desktops/pipewire/pipewire.nix
services.pipewire.wireplumber.configPackages
List of packages that provide WirePlumber configuration, in the form of
share/wireplumber/*/*.conf files.
LV2/LADSPA dependencies will be picked up from config packages automatically
via passthru.requiredLv2Packages/passthru.requiredLadspaPackages.
Type: list of package
Default: [ ]
Example:
[
(pkgs.writeTextDir "share/wireplumber/wireplumber.conf.d/10-bluez.conf" ''
monitor.bluez.properties = {
bluez5.roles = [ a2dp_sink a2dp_source bap_sink bap_source hsp_hs hsp_ag hfp_hf hfp_ag ]
bluez5.codecs = [ sbc sbc_xq aac ]
bluez5.enable-sbc-xq = true
bluez5.hfphsp-backend = "native"
}
'')
]
Declared by: nixos/modules/services/desktops/pipewire/wireplumber.nix
services.pipewire.wireplumber.enable
Whether to enable WirePlumber, a modular session / policy manager for PipeWire
Type: boolean
Default: config.services.pipewire.enable
Declared by: nixos/modules/services/desktops/pipewire/wireplumber.nix
services.pipewire.wireplumber.extraConfig
Additional configuration for the WirePlumber daemon when run in
single-instance mode (the default in nixpkgs and currently the only
supported way to run WirePlumber configured via extraConfig).
See also:
- The configuration file
- Modifying configuration
- Locations of files
- and the configuration section of the docs in general
Note that WirePlumber (and PipeWire) use dotted attribute names like
device.product.id. These are not nested, but flat objects for WirePlumber/PipeWire,
so to write these in nix expressions, remember to quote them like "device.product.id".
Have a look at the example for this.
Type: attribute set of attribute set of (JSON value)
Default: { }
Example:
{
"log-level-debug" = {
"context.properties" = {
# Output Debug log messages as opposed to only the default level (Notice)
"log.level" = "D";
};
};
"wh-1000xm3-ldac-hq" = {
"monitor.bluez.rules" = [
{
matches = [
{
# Match any bluetooth device with ids equal to that of a WH-1000XM3
"device.name" = "~bluez_card.*";
"device.product.id" = "0x0cd3";
"device.vendor.id" = "usb:054c";
}
];
actions = {
update-props = {
# Set quality to high quality instead of the default of auto
"bluez5.a2dp.ldac.quality" = "hq";
};
};
}
];
};
}
Declared by: nixos/modules/services/desktops/pipewire/wireplumber.nix
services.pipewire.wireplumber.extraLadspaPackages
List of packages that provide LADSPA plugins in lib/ladspa that should
be made available to WirePlumber for filter chains.
Config packages have their required LADSPA plugins added automatically,
so they don't need to be specified here. Config packages need to set
passthru.requiredLadspaPackages for this to work.
Type: list of package
Default: [ ]
Example: [ pkgs.noisetorch-ladspa ]
Declared by: nixos/modules/services/desktops/pipewire/wireplumber.nix
services.pipewire.wireplumber.extraLv2Packages
List of packages that provide LV2 plugins in lib/lv2 that should
be made available to WirePlumber for filter chains.
Config packages have their required LV2 plugins added automatically,
so they don't need to be specified here. Config packages need to set
passthru.requiredLv2Packages for this to work.
Type: list of package
Default: [ ]
Example: [ pkgs.lsp-plugins ]
Declared by: nixos/modules/services/desktops/pipewire/wireplumber.nix
services.pipewire.wireplumber.extraScripts
Additional scripts for WirePlumber to be used by configuration files.
Every item in this attrset becomes a separate lua file with the path
relative to the scripts directory specified in the name of the item.
The scripts get passed to the WirePlumber service via the XDG_DATA_DIRS
variable. Scripts specified here are preferred over those shipped with
WirePlumber if they occupy the same relative path.
For a script to be loaded, it needs to be specified as part of a component,
and that component needs to be required by an active profile (e.g. main).
Components can be defined in config files either via extraConfig or configPackages.
For the hello-world example, you'd have to add the following extraConfig:
services.pipewire.wireplumber.extraConfig."99-hello-world" = {
"wireplumber.components" = [
{
name = "test/hello-world.lua";
type = "script/lua";
provides = "custom.hello-world";
}
];
"wireplumber.profiles" = {
main = {
"custom.hello-world" = "required";
};
};
};
See also:
Type: attribute set of strings concatenated with "\n"
Default: { }
Example:
{
"test/hello-world.lua" = ''
print("Hello, world!")
'';
}
Declared by: nixos/modules/services/desktops/pipewire/wireplumber.nix
services.pipewire.wireplumber.package
The WirePlumber derivation to use.
Type: package
Default: pkgs.wireplumber
Declared by: nixos/modules/services/desktops/pipewire/wireplumber.nix
services.pixelfed.dataDir
State directory of the pixelfed user which holds
the application's state and data.
Type: string
Default: "/var/lib/pixelfed"
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.database.automaticMigrations
Whether to enable automatic migrations for database schema and data.
Type: boolean
Default: true
Example: true
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.database.createLocally
Whether to enable a local database using UNIX socket authentication.
Type: boolean
Default: true
Example: true
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.database.name
Database name.
Type: string
Default: "pixelfed"
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.database.type
Database engine to use. Note that PGSQL is not well supported: https://github.com/pixelfed/pixelfed/issues/2727
Type: one of "mysql", "pgsql"
Default: "mysql"
Example: "pgsql"
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.domain
FQDN for the Pixelfed instance.
Type: string
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.enable
Whether to enable a Pixelfed instance.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.group
Group account under which pixelfed runs.
Note
If left as the default value this group will automatically be created on system activation, otherwise you are responsible for ensuring the group exists before the pixelfed application starts.
Type: string
Default: "pixelfed"
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.maxUploadSize
Max upload size with units.
Type: string
Default: "8M"
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.nginx
With this option, you can customize an nginx virtual host which already has sensible defaults for Pixelfed.
Set to {} if you do not need any customization to the virtual host.
If enabled, then by default, the serverName is
${domain},
If this is set to null (the default), no nginx virtualHost will be configured.
Type: null or (submodule)
Default: null
Example:
{
serverAliases = [
"pics.${config.networking.domain}"
];
enableACME = true;
forceSSL = true;
}
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.nginx.default
Makes this vhost the default.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.nginx.listen.*.addr
Listen address.
Type: string
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.nginx.listen.*.proxyProtocol
Enable PROXY protocol.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.nginx.listen.*.ssl
Enable SSL.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.nginx.locations
Declarative location config
Type: attribute set of (submodule)
Default: { }
Example:
{
"/" = {
proxyPass = "http://localhost:3000";
};
};
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.nginx.locations.<name>.recommendedProxySettings
Enable recommended proxy settings.
Type: boolean
Default: config.services.nginx.recommendedProxySettings
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.nginx.locations.<name>.recommendedUwsgiSettings
Enable recommended uwsgi settings.
Type: boolean
Default: config.services.nginx.recommendedUwsgiSettings
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.nginx.locations.<name>.tryFiles
Adds try_files directive.
Type: null or string
Default: null
Example: "$uri =404"
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.nginx.sslCertificate
Path to server SSL certificate.
Type: absolute path
Example: "/var/host.cert"
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.nginx.sslCertificateKey
Path to server SSL certificate key.
Type: absolute path
Example: "/var/host.key"
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.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/pixelfed.nix
services.pixelfed.package
The pixelfed package to use.
Type: package
Default: pkgs.pixelfed
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.phpPackage
The PHP package to use for Pixelfed.
Type: package
Default: config.services.pixelfed.package.phpPackage
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.poolConfig
Options for Pixelfed's PHP-FPM pool.
Type: attribute set of (signed integer or string or boolean)
Default: { }
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.redis.createLocally
Whether to enable a local Redis database using UNIX socket authentication.
Type: boolean
Default: true
Example: true
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.runtimeDir
Ruutime directory of the pixelfed user which holds
the application's caches and temporary files.
Type: string
Default: "/run/pixelfed"
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.schedulerInterval
How often the Pixelfed cron task should run
Type: string
Default: "1d"
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.secretFile
A secret file to be sourced for the .env settings.
Place APP_KEY and other settings that should not end up in the Nix store here.
Type: absolute path
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.settings
.env settings for Pixelfed.
Secrets should use secretFile option instead.
Type: attribute set of (boolean or signed integer or string)
Default: { }
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixelfed.user
User account under which pixelfed runs.
Note
If left as the default value this user will automatically be created on system activation, otherwise you are responsible for ensuring the user exists before the pixelfed application starts.
Type: string
Default: "pixelfed"
Declared by: nixos/modules/services/web-apps/pixelfed.nix
services.pixiecore.apiServer
URI to connect to the API. Ignored unless mode is set to 'api'
Type: string
Example: "http://localhost:8080"
Declared by: nixos/modules/services/networking/pixiecore.nix
services.pixiecore.cmdLine
Kernel commandline arguments. Ignored unless mode is set to 'boot'
Type: string
Default: ""
Declared by: nixos/modules/services/networking/pixiecore.nix
services.pixiecore.debug
Log more things that aren't directly related to booting a recognized client
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/pixiecore.nix
services.pixiecore.dhcpNoBind
Handle DHCP traffic without binding to the DHCP server port
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/pixiecore.nix
services.pixiecore.enable
Whether to enable Pixiecore.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/pixiecore.nix
services.pixiecore.extraArguments
Additional command line arguments to pass to Pixiecore
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/networking/pixiecore.nix
services.pixiecore.initrd
Initrd path. Ignored unless mode is set to 'boot'
Type: string
Default: ""
Declared by: nixos/modules/services/networking/pixiecore.nix
services.pixiecore.kernel
Kernel path. Ignored unless mode is set to 'boot'
Type: string
Default: ""
Declared by: nixos/modules/services/networking/pixiecore.nix
services.pixiecore.listen
IPv4 address to listen on
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/networking/pixiecore.nix
services.pixiecore.mode
Which mode to use
Type: one of "api", "boot", "quick"
Default: "boot"
Declared by: nixos/modules/services/networking/pixiecore.nix
services.pixiecore.openFirewall
Open ports (67, 69, 4011 UDP and 'port', 'statusPort' TCP) in the firewall for Pixiecore.
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/pixiecore.nix
services.pixiecore.port
Port to listen on for HTTP
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 80
Declared by: nixos/modules/services/networking/pixiecore.nix
services.pixiecore.quick
Which quick option to use
Type: one of "arch", "centos", "coreos", "debian", "fedora", "ubuntu", "xyz"
Default: "xyz"
Declared by: nixos/modules/services/networking/pixiecore.nix
services.pixiecore.statusPort
HTTP port for status information (can be the same as --port)
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 80
Declared by: nixos/modules/services/networking/pixiecore.nix
services.plantuml-server.enable
Whether to enable PlantUML server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/plantuml-server.nix
services.plantuml-server.graphvizPackage
The graphviz package to use.
Type: package
Default: pkgs.graphviz
Declared by: nixos/modules/services/web-apps/plantuml-server.nix
services.plantuml-server.group
Group which runs PlantUML server.
Type: string
Default: "plantuml"
Declared by: nixos/modules/services/web-apps/plantuml-server.nix
services.plantuml-server.home
Home directory of the PlantUML server instance.
Type: absolute path
Default: "/var/lib/plantuml"
Declared by: nixos/modules/services/web-apps/plantuml-server.nix
services.plantuml-server.httpAuthorization
When calling the proxy endpoint, the value of HTTP_AUTHORIZATION will be used to set the HTTP Authorization header.
Type: null or string
Default: null
Declared by: nixos/modules/services/web-apps/plantuml-server.nix
services.plantuml-server.listenHost
Host to listen on.
Type: string
Default: "127.0.0.1"
Declared by: nixos/modules/services/web-apps/plantuml-server.nix
services.plantuml-server.listenPort
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8080
Declared by: nixos/modules/services/web-apps/plantuml-server.nix
services.plantuml-server.package
The plantuml-server package to use.
Type: package
Default: pkgs.plantuml-server
Declared by: nixos/modules/services/web-apps/plantuml-server.nix
services.plantuml-server.packages.jdk
The jdk package to use.
Type: package
Default: pkgs.jdk
Declared by: nixos/modules/services/web-apps/plantuml-server.nix
services.plantuml-server.packages.jetty
The jetty package to use.
Type: package
Default: pkgs.jetty_12
Declared by: nixos/modules/services/web-apps/plantuml-server.nix
services.plantuml-server.plantumlLimitSize
Limits image width and height.
Type: signed integer
Default: 4096
Declared by: nixos/modules/services/web-apps/plantuml-server.nix
services.plantuml-server.plantumlStats
Set it to on to enable statistics report (https://plantuml.com/statistics-report).
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/plantuml-server.nix
services.plantuml-server.user
User which runs PlantUML server.
Type: string
Default: "plantuml"
Declared by: nixos/modules/services/web-apps/plantuml-server.nix
services.plausible.adminUser.email
Email address of an admin user to seed into the database before the Plausible web server starts accepting connections.
Plausible Community Edition shows an unauthenticated "first launch"
setup wizard whenever no user exists in the database, which redirects
every page to /register and lets anyone reaching the instance over
the network create the first admin account. Setting this option (and
services.plausible.adminUser.passwordHashFile) seeds an
admin user before the port is opened, so the wizard is never reachable
by strangers.
When null, no user is seeded and Plausible's setup wizard is used as
usual.
Seeding is idempotent: if any user already exists, no user is created.
Type: null or string
Default: null
Example: "admin@example.org"
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.adminUser.name
Display name of the seeded admin user (see
services.plausible.adminUser.email).
Type: string
Default: "Admin"
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.adminUser.passwordHashFile
Path to a file containing the bcrypt hash of the seeded admin user's
password (see services.plausible.adminUser.email).
Using a hash file (rather than the plaintext password) means the
plaintext never has to be stored on disk or in the Nix store. Generate
a hash e.g. with mkpasswd -m bcrypt (the resulting $2b$... string).
This file is read via systemd's LoadCredential, so it does not enter
the Nix store.
Type: null or string or absolute path
Default: null
Example: "/run/secrets/plausible-admin-password-hash"
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.database.clickhouse.setup
Whether to enable creating a clickhouse instance.
Type: boolean
Default: true
Example: true
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.database.clickhouse.url
The URL to be used to connect to clickhouse.
Type: string
Default: "http://localhost:8123/default"
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.database.postgres.dbname
Name of the database to use.
Type: string
Default: "plausible"
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.database.postgres.setup
Whether to enable creating a postgresql instance.
Type: boolean
Default: true
Example: true
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.database.postgres.socket
Path to the UNIX domain-socket to communicate with postgres.
Type: string
Default: "/run/postgresql"
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.enable
Whether to enable plausible.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.mail.email
The email id to use for as from address of all communications from Plausible.
Type: string
Default: "hello@plausible.local"
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.mail.smtp.enableSSL
Whether to enable SSL when connecting to the SMTP server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.mail.smtp.hostAddr
The host address of your smtp server.
Type: string
Default: "localhost"
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.mail.smtp.hostPort
The port of your smtp server.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 25
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.mail.smtp.passwordFile
The path to the file with the password in case SMTP auth is enabled.
Type: null or string or absolute path
Default: null
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.mail.smtp.retries
Number of retries to make until mailer gives up.
Type: unsigned integer, meaning >=0
Default: 2
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.mail.smtp.user
The username/email in case SMTP auth is enabled.
Type: null or string
Default: null
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.package
The plausible package to use.
Type: package
Default: pkgs.plausible
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.server.baseUrl
Public URL where plausible is available.
Note that /path components are currently ignored:
https://github.com/plausible/analytics/issues/1182.
Type: string
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.server.disableRegistration
Whether to prohibit creating an account in plausible's UI or allow on invite_only.
Type: one of true, false, "invite_only"
Default: true
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.server.listenAddress
The IP address on which the server is listening.
Type: string
Default: "127.0.0.1"
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.server.port
Port where the service should be available.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8000
Declared by: nixos/modules/services/web-apps/plausible.nix
services.plausible.server.secretKeybaseFile
Path to the secret used by the phoenix-framework. Instructions
how to generate one are documented in the
framework docs.
Type: absolute path or string
Declared by: nixos/modules/services/web-apps/plausible.nix
services.playerctld.enable
Whether to enable the playerctld daemon.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/desktops/playerctld.nix
services.playerctld.package
The playerctl package to use.
Type: package
Default: pkgs.playerctl
Declared by: nixos/modules/services/desktops/playerctld.nix
services.pleroma.configs
Pleroma public configuration.
This list gets appended from left to right into /etc/pleroma/config.exs. Elixir evaluates its configuration imperatively, meaning you can override a setting by appending a new str to this NixOS option list.
DO NOT STORE ANY PLEROMA SECRET HERE, use services.pleroma.secretConfigFile instead.
This setting is going to be stored in a file part of the Nix store. The Nix store being world-readable, it's not the right place to store any secret
Have a look to Pleroma section in the NixOS manual for more information.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/networking/pleroma.nix
services.pleroma.enable
Whether to enable pleroma.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/pleroma.nix
services.pleroma.group
Group account under which pleroma runs.
Type: string
Default: "pleroma"
Declared by: nixos/modules/services/networking/pleroma.nix
services.pleroma.package
The pleroma package to use.
Type: package
Default: pkgs.pleroma
Declared by: nixos/modules/services/networking/pleroma.nix
services.pleroma.secretConfigFile
Path to the file containing your secret pleroma configuration.
DO NOT POINT THIS OPTION TO THE NIX STORE, the store being world-readable, it'll compromise all your secrets.
Type: string
Default: "/var/lib/pleroma/secrets.exs"
Declared by: nixos/modules/services/networking/pleroma.nix
services.pleroma.stateDir
Directory where the pleroma service will save the uploads and static files.
Type: string
Default: "/var/lib/pleroma"
Read only
Declared by: nixos/modules/services/networking/pleroma.nix
services.pleroma.user
User account under which pleroma runs.
Type: string
Default: "pleroma"
Declared by: nixos/modules/services/networking/pleroma.nix
services.plex.accelerationDevices
A list of device paths to hardware acceleration devices that Plex should
have access to. This is useful when transcoding media files.
The special value "*" will allow all devices.
Type: list of string
Default:
[
"*"
]
Example:
[
"/dev/dri/renderD128"
]
Declared by: nixos/modules/services/misc/plex.nix
services.plex.dataDir
The directory where Plex stores its data files.
Type: string
Default: "/var/lib/plex"
Declared by: nixos/modules/services/misc/plex.nix
services.plex.enable
Whether to enable Plex Media Server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/misc/plex.nix
services.plex.extraPlugins
A list of paths to extra plugin bundles to install in Plex's plugin directory. Every time the systemd unit for Plex starts up, all of the symlinks in Plex's plugin directory will be cleared and this module will symlink all of the paths specified here to that directory.
Type: list of absolute path
Default: [ ]
Example:
[
(builtins.path {
name = "Audnexus.bundle";
path = pkgs.fetchFromGitHub {
owner = "djdembeck";
repo = "Audnexus.bundle";
rev = "v0.2.8";
sha256 = "sha256-IWOSz3vYL7zhdHan468xNc6C/eQ2C2BukQlaJNLXh7E=";
};
})
]
Declared by: nixos/modules/services/misc/plex.nix
services.plex.extraScanners
A list of paths to extra scanners to install in Plex's scanners directory.
Every time the systemd unit for Plex starts up, all of the symlinks in Plex's scanners directory will be cleared and this module will symlink all of the paths specified here to that directory.
Type: list of absolute path
Default: [ ]
Example:
[
(fetchFromGitHub {
owner = "ZeroQI";
repo = "Absolute-Series-Scanner";
rev = "773a39f502a1204b0b0255903cee4ed02c46fde0";
sha256 = "4l+vpiDdC8L/EeJowUgYyB3JPNTZ1sauN8liFAcK+PY=";
})
]
Declared by: nixos/modules/services/misc/plex.nix
services.plex.group
Group under which Plex runs.
Type: string
Default: "plex"
Declared by: nixos/modules/services/misc/plex.nix
services.plex.openFirewall
Open ports in the firewall for the media server.
Type: boolean
Default: false
Declared by: nixos/modules/services/misc/plex.nix
services.plex.package
The plex package to use. Plex subscribers may wish to use their own package here, pointing to subscriber-only server versions.
Type: package
Default: pkgs.plex
Declared by: nixos/modules/services/misc/plex.nix
services.plex.user
User account under which Plex runs.
Type: string
Default: "plex"
Declared by: nixos/modules/services/misc/plex.nix
services.plikd.enable
Whether to enable plikd, a temporary file upload system.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/misc/plikd.nix
services.plikd.openFirewall
Open ports in the firewall for the plikd.
Type: boolean
Default: false
Declared by: nixos/modules/services/misc/plikd.nix
services.plikd.settings
Configuration for plikd, see https://github.com/root-gg/plik/blob/master/server/plikd.cfg for supported values.
Type: TOML value
Default: { }
Declared by: nixos/modules/services/misc/plikd.nix
services.pocket-id.credentials
Credentials which are loaded from the contents of the specified file paths.
This can be used to securely store tokens and secrets outside of the world-readable Nix store.
See PocketID environment variables (all with the _FILE suffix).
Accepts an attrset mapping from the variable name without its _FILE suffix to the path on disk.
Alternatively you can use services.pocket-id.environmentFile to define all the variables in a single file.
Type: attribute set of absolute path
Default: { }
Example:
{
ENCRYPTION_KEY = "/run/secrets/pocket-id/encryption-key";
}
Declared by: nixos/modules/services/security/pocket-id.nix
services.pocket-id.dataDir
The directory where Pocket ID will store its data, such as the database when using SQLite.
Type: absolute path
Default: "/var/lib/pocket-id"
Declared by: nixos/modules/services/security/pocket-id.nix
services.pocket-id.enable
Whether to enable Pocket ID server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/security/pocket-id.nix
services.pocket-id.environmentFile
Path to an environment file to be loaded. This can be used to securely store tokens and secrets outside of the world-readable Nix store.
See PocketID environment variables.
Example contents of the file: MAXMIND_LICENSE_KEY=your-license-key
Alternatively you can use services.pocket-id.credentials to define each variable in separate files.
Type: absolute path
Default: "/dev/null"
Example: "/var/lib/secrets/pocket-id"
Declared by: nixos/modules/services/security/pocket-id.nix
services.pocket-id.group
Group account under which Pocket ID runs.
Type: string
Default: "pocket-id"
Declared by: nixos/modules/services/security/pocket-id.nix
services.pocket-id.package
The pocket-id package to use.
Type: package
Default: pkgs.pocket-id
Declared by: nixos/modules/services/security/pocket-id.nix
services.pocket-id.settings
Environment variables to be passed.
See PocketID environment variables.
Type: open submodule of attribute set of (atom (null, bool, int, float or string))
Default: { }
Declared by: nixos/modules/services/security/pocket-id.nix
services.pocket-id.settings.ANALYTICS_DISABLED
Whether to disable analytics.
See the analytics documentation.
Type: boolean
Default: false
Declared by: nixos/modules/services/security/pocket-id.nix
services.pocket-id.settings.APP_URL
The URL where you will access the app.
Type: string
Default: "http://localhost"
Declared by: nixos/modules/services/security/pocket-id.nix
services.pocket-id.settings.TRUST_PROXY
Whether the app is behind a reverse proxy.
Type: boolean
Default: false
Declared by: nixos/modules/services/security/pocket-id.nix
services.pocket-id.user
User account under which Pocket ID runs.
Type: string
Default: "pocket-id"
Declared by: nixos/modules/services/security/pocket-id.nix
services.polaris.enable
Whether to enable Polaris Music Server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/misc/polaris.nix
services.polaris.extraGroups
Polaris' auxiliary groups.
Type: list of string
Default: [ ]
Example: ["media" "music"]
Declared by: nixos/modules/services/misc/polaris.nix
services.polaris.group
Group under which Polaris is run.
Type: string
Default: "polaris"
Declared by: nixos/modules/services/misc/polaris.nix
services.polaris.openFirewall
Open the configured port in the firewall.
Type: boolean
Default: false
Declared by: nixos/modules/services/misc/polaris.nix
services.polaris.package
The polaris package to use.
Type: package
Default: pkgs.polaris
Declared by: nixos/modules/services/misc/polaris.nix
services.polaris.port
The port which the Polaris REST api and web UI should listen to. Note: polaris is hardcoded to listen to the hostname "0.0.0.0".
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 5050
Declared by: nixos/modules/services/misc/polaris.nix
services.polaris.settings
Contents for the TOML Polaris config, applied each start. Although poorly documented, an example may be found here: test-config.toml
Type: TOML value
Default: { }
Example:
{
settings.reindex_every_n_seconds = 7*24*60*60; # weekly, default is 1800
settings.album_art_pattern =
"(cover|front|folder)\.(jpeg|jpg|png|bmp|gif)";
mount_dirs = [
{
name = "NAS";
source = "/mnt/nas/music";
}
{
name = "Local";
source = "/home/my_user/Music";
}
];
}
Declared by: nixos/modules/services/misc/polaris.nix
services.polaris.user
User account under which Polaris runs.
Type: string
Default: "polaris"
Declared by: nixos/modules/services/misc/polaris.nix
services.pomerium.configFile
Path to Pomerium config YAML. If set, overrides services.pomerium.settings.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/web-servers/pomerium.nix
services.pomerium.enable
Whether to enable the Pomerium authenticating reverse proxy.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-servers/pomerium.nix
services.pomerium.secretsFile
Path to file containing secrets for Pomerium, in systemd
EnvironmentFile format. See the systemd.exec(5) man page.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/web-servers/pomerium.nix
services.pomerium.settings
The contents of Pomerium's config.yaml, in Nix expressions.
Specifying configFile will override this in its entirety.
See the Pomerium configuration reference for more information about what to put here.
Type: YAML 1.1 value
Default: { }
Declared by: nixos/modules/services/web-servers/pomerium.nix
services.pomerium.useACMEHost
If set, use a NixOS-generated ACME certificate with the specified name.
Note that this will require you to use a non-HTTP-based challenge, or disable Pomerium's in-built HTTP redirect server by setting http_redirect_addr to null and use a different HTTP server for serving the challenge response.
If you're using an HTTP-based challenge, you should use the Pomerium-native autocert option instead.
Type: null or string
Default: null
Declared by: nixos/modules/services/web-servers/pomerium.nix
services.porn-vault.autoStart
Whether to start porn-vault automatically.
Type: boolean
Default: true
Declared by: nixos/modules/services/web-apps/porn-vault/default.nix
services.porn-vault.cmdArgs
Extra commandline args to pass to porn-vault.
Type: string
Default: ""
Example: "--generate-missing-image-thumbnails"
Declared by: nixos/modules/services/web-apps/porn-vault/default.nix
services.porn-vault.enable
Whether to enable Porn-Vault.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/porn-vault/default.nix
services.porn-vault.openFirewall
Whether to open the Porn-Vault port in the firewall.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/porn-vault/default.nix
services.porn-vault.package
The porn-vault package to use.
Type: package
Default: pkgs.porn-vault
Declared by: nixos/modules/services/web-apps/porn-vault/default.nix
services.porn-vault.port
Which port Porn-Vault will use.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 3000
Declared by: nixos/modules/services/web-apps/porn-vault/default.nix
services.porn-vault.settings
Configuration for Porn-Vault. The attributes are serialized to JSON in config.json.
See https://gitlab.com/porn-vault/porn-vault/-/blob/dev/config.example.json
Type: JSON value
Default:
{
binaries = {
ffmpeg = "ffmpeg";
ffprobe = "ffprobe";
imagemagick = {
convert = "convert";
identify = "identify";
montage = "montage";
};
};
diagnostics = {
deadAudioChannelDetection = {
volumeThreshold = -50;
};
};
import = {
images = [
{
enable = true;
exclude = [ ];
extensions = [
".jpg"
".jpeg"
".png"
".gif"
];
include = [ ];
path = "/media/porn-vault/images";
}
];
videos = [
{
enable = true;
exclude = [ ];
extensions = [
".mp4"
".mov"
".webm"
];
include = [ ];
path = "/media/porn-vault/videos";
}
];
};
matching = {
applyActorLabels = true;
applyStudioLabels = true;
ignoreSingleNames = true;
regexAliasesCaseSensitive = false;
};
persistence = {
libraryPath = "/media/porn-vault/lib/library";
tempFolder = "tmp";
};
plugins = {
events = {
"scene:created" = [ ];
};
register = { };
};
processing = {
bookmarkNewScenes = false;
generatePreviewStrip = true;
};
}
Declared by: nixos/modules/services/web-apps/porn-vault/default.nix
services.portmaster.enable
Whether to enable Portmaster application firewall.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.extraArgs
Extra command-line arguments to pass to portmaster-core. Do not include secrets because these arguments are visible in the generated systemd unit and process list.
Type: list of string
Default: [ ]
Example:
[
"--print-stack-on-exit"
]
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.package
The portmaster package to use.
Type: package
Default: pkgs.portmaster
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profilePrefix
Prefix added to the display name of every declarative profile.
Type: string
Default: ""
Example: "[NixOS] "
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profiles
Declarative per-application profiles keyed by logical name.
Profiles are imported through Portmaster's profile import API with
allowReplace. Package-derived regular expressions remain stable across
package updates. At least one entry in packages or fingerprints is
required. Changing a profile's normalized
fingerprints creates a different Portmaster identity and can leave the
previous imported profile behind. Removing a declaration does not delete
a previously imported profile.
The profiles are imported through the API address set with
core/listenAddress in settings; an address set only in
settingsFile, in secretsFile or with
--api-address in extraArgs is not used for this.
Type: attribute set of (submodule)
Default: { }
Example:
{
Firefox = {
packages = [
{
package = pkgs.firefox;
directory = "lib/firefox";
}
];
settings.filter.defaultAction = "permit";
};
}
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profiles.<name>.fingerprints
Additional Portmaster fingerprints for this profile. These are
merged with fingerprints generated from packages.
Portmaster fingerprints are ORed, not ANDed, so broad fingerprints can match unrelated applications.
Type: list of (submodule)
Default: [ ]
Example:
[
{
key = "CHROME_DESKTOP";
operation = "equals";
type = "env";
value = "vesktop.desktop";
}
]
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profiles.<name>.fingerprints.*.key
Environment variable or metadata tag key. Required for env and
tag fingerprints, and invalid for path and cmdline fingerprints.
Type: null or string
Default: null
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profiles.<name>.fingerprints.*.operation
Operation used to compare the fingerprint value.
Type: one of "equals", "prefix", "regex"
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profiles.<name>.fingerprints.*.type
Portmaster fingerprint type.
Type: one of "path", "cmdline", "env", "tag"
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profiles.<name>.fingerprints.*.value
The value to match against.
Type: string
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profiles.<name>.name
Human-readable Portmaster profile name.
Type: string
Default: "‹name›"
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profiles.<name>.packages
Packages from which to derive Portmaster fingerprints.
A package can be specified directly for the default matching
behavior, or as an attribute set to customize its generated
fingerprint. Package-derived regular expressions do not include
a specific store hash or package version and also match
Nix-generated .program-wrapped executables by default.
Type: list of ((submodule) or package convertible to it)
Default: [ ]
Example:
[
pkgs.curl
{
package = pkgs.go;
directory = "share/go/bin";
}
]
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profiles.<name>.packages.*.directory
Relative directory below the package output that contains the executable. An empty string selects the output root.
Type: string
Default: "bin"
Example: "share/go/bin"
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profiles.<name>.packages.*.name
Executable name. Set this to null and disable strictLast to
match every path below directory.
Type: null or string
Default: package.meta.mainProgram or package.pname
Example: "nmap"
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profiles.<name>.packages.*.package
Package from which to derive a Portmaster fingerprint.
Type: package
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profiles.<name>.packages.*.storeNameRegex
Regular expression matching the package output name after the Nix
store hash. null matches the package's pname with an optional
version suffix.
Type: null or string
Default: null
Example: "python3[0-9.]*-umu-launcher-unwrapped-[0-9.]+"
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profiles.<name>.packages.*.strictHead
Anchor the generated regular expression at the beginning.
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profiles.<name>.packages.*.strictLast
Anchor the generated regular expression at the end.
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profiles.<name>.packages.*.type
Fingerprint type used for the generated package regular expression.
Type: one of "path", "cmdline"
Default: "path"
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profiles.<name>.packages.*.wrapped
Also match Nix wrapper names such as .program-wrapped.
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.profiles.<name>.settings
Per-application Portmaster settings for this profile, using the
upstream nested per-app configuration shape such as
history.enable, filter.defaultAction, or spn.use.
Global-only settings are rejected by Portmaster during sync.
Do not put secrets here; generated profile payloads are stored in the Nix store.
Type: open submodule of (JSON value)
Default: { }
Example:
{
filter = {
defaultAction = "permit";
};
}
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.secretsFile
Sensitive global settings JSON file merged last into runtime
config.json, keeping secret values out of the Nix store.
Type: null or absolute path not in the Nix store
Default: null
Example: "/run/secrets/portmaster-secrets.json"
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.settings
Global Portmaster settings for runtime config.json.
Per-application profiles are managed by profiles.
Inputs are merged per Portmaster setting key and later inputs win:
this option, settingsFile, then secretsFile.
Nested objects are flattened first, so core.devMode and
"core/devMode" refer to the same setting.
When declarative configuration is active, the module owns runtime
config.json; global changes made only through the UI are not
preserved across service starts.
Do not put secrets here; values are stored in the Nix store. Use
secretsFile instead.
Upstream currently documents the available keys in basic_config.go.
Type: open submodule of (JSON value)
Default: { }
Example:
{
"core/log/level" = "warning";
}
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.settings.devmode
Enable development mode for debugging. It turns off authentication
of the local API on 127.0.0.1:817, so every local process and user
gets full control over Portmaster, and pages served from
localhost can access the API. The packaged desktop client does
not require this option.
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.settingsFile
Additional global settings JSON file merged after settings.
Overlapping keys override values from that option.
Type: null or absolute path not in the Nix store
Default: null
Example: "/run/secrets/portmaster-settings.json"
Declared by: nixos/modules/services/networking/portmaster.nix
services.portmaster.stateDir
Directory used for Portmaster's mutable state, configuration, and logs.
Type: absolute path not in the Nix store
Default: "/var/lib/portmaster"
Example: "/persist/portmaster"
Declared by: nixos/modules/services/networking/portmaster.nix
services.portunus.dex.enable
Whether to enable Dex ldap connector.
To activate dex, first a search user must be created in the Portunus web ui
and then the password must to be set as the DEX_SEARCH_USER_PASSWORD environment variable
in the services (D) setting
.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.dex.oidcClients
List of OIDC clients.
The OIDC secret must be set as the DEX_CLIENT_${id} environment variable
in the services (D) setting.
Note
Make sure the id only contains characters that are allowed in an environment variable name, e.g. no -.
Type: list of (submodule)
Default: [ ]
Example:
[
{
id = "service";
redirectURIs = [
"https://example.com/client/oidc/callback"
];
}
]
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.dex.oidcClients.*.callbackURL
URL where the OIDC client should redirect (deprecated, use redirectURIs)
Type: null or string
Default: null
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.dex.oidcClients.*.id
ID of the OIDC client
Type: string
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.dex.oidcClients.*.redirectURIs
URLs where the OIDC client should redirect
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.dex.port
Port where dex should listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 5556
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.domain
Subdomain which gets reverse proxied to Portunus webserver.
Type: string
Example: "sso.example.com"
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.enable
Whether to enable Portunus, a self-contained user/group management and authentication service for LDAP.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.group
Group account under which Portunus runs its webserver.
Type: string
Default: "portunus"
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.ldap.group
Group account under which Portunus runs its LDAP server.
Type: string
Default: "openldap"
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.ldap.package
The openldap package to use.
Type: package
Default: pkgs.openldap
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.ldap.searchUserName
The login name of the search user. This user account must be configured in Portunus either manually or via seeding.
Type: string
Default: ""
Example: "admin"
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.ldap.suffix
The DN of the topmost entry in your LDAP directory. Please refer to the Portunus documentation for more information on how this impacts the structure of the LDAP directory.
Type: string
Example: "dc=example,dc=org"
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.ldap.tls
Whether to enable LDAPS protocol.
This also adds two entries to the /etc/hosts file to point services (P) to localhost,
so that CLIs and programs can use ldaps protocol and verify the certificate without opening the firewall port for the protocol.
This requires a TLS certificate for services (P) to be configured via security.
Type: boolean
Default: false
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.ldap.user
User account under which Portunus runs its LDAP server.
Type: string
Default: "openldap"
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.package
The portunus package to use.
Type: package
Default: pkgs.portunus
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.port
Port where the Portunus webserver should listen on.
This must be put behind a TLS-capable reverse proxy because Portunus only listens on localhost.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8080
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.seedPath
Path to a portunus seed file in json format. See https://github.com/majewsky/portunus#seeding-users-and-groups-from-static-configuration for available options.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.seedSettings
Seed settings for users and groups. See upstream for format https://github.com/majewsky/portunus#seeding-users-and-groups-from-static-configuration
Type: null or (attribute set of list of attribute set of anything)
Default: null
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.stateDir
Path where Portunus stores its state.
Type: absolute path
Default: "/var/lib/portunus"
Declared by: nixos/modules/services/misc/portunus.nix
services.portunus.user
User account under which Portunus runs its webserver.
Type: string
Default: "portunus"
Declared by: nixos/modules/services/misc/portunus.nix
services.porxie.enable
Whether to enable Porxie, an ATProto blob proxy for secure content delivery.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.environmentFiles
Files to load environment variables from. Use for secrets such as
PORXIE_SERVER_ADMIN_PASSWORD and PORXIE_POLICY_REQUEST_HEADERS.
Type: list of absolute path
Default: [ ]
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.package
The porxie package to use.
Type: package
Default: pkgs.porxie
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.settings
Configuration for Porxie as environment variables. See the README for detailed information about application configuration.
Secrets such as settings.PORXIE_SERVER_ADMIN_PASSWORD should be set via
environmentFiles rather than here, as values set here will
be readable in the Nix store.
Type: open submodule of attribute set of (null or string or boolean or signed integer)
Default: { }
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.settings.PORXIE_BLOB_ALLOWED_MIMETYPES
Blob mimetypes that can be served. Wildcards are supported "/", "image/*", etc.
Validation is done loosely via content sniffing. Further validation can be done by a layer
above this proxy, such as an image transformation service. When inference fails, the blob's
type falls back to application/octet-stream. When that type is allowed, blobs failing
inference can still be served.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.settings.PORXIE_BLOB_CACHE_HEADER
The Cache-Control header value to send alongside blob responses.
This does not affect internal cache lifetimes, only how downstream clients such as CDNs and browsers are instructed to cache responses.
Type: null or string
Default: null
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.settings.PORXIE_BLOB_HTTP_TIMEOUT
Maximum duration before blob fetch requests are timed out.
Type: null or string
Default: null
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.settings.PORXIE_BLOB_MAX_SIZE
Maximum blob size that can be served.
This value cannot be set higher than the system's total memory.
Type: null or string
Default: null
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.settings.PORXIE_BLOB_PROCESSING_TIMEOUT
Maximum duration a blob can be processed by this server before aborting.
Type: null or string
Default: null
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.settings.PORXIE_CACHE_ALLOCATION
Total memory allocation for the internal cache.
Blobs are cached using an LFU policy. The most frequently requested blobs are kept longest when the cache reaches maximum size.
For production deployments, a CDN or caching layer in front of this server is recommended for lower latency and better global availability.
The minimum value is 8mb and the maximum is the system's total memory.
Type: null or string
Default: null
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.settings.PORXIE_CACHE_BLOB_TTI
How long blobs can be idle in the cache before expiring.
Type: null or string
Default: null
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.settings.PORXIE_CACHE_IDENTITY_TTL
How long identity lookups (DID resolution, etc.) can be cached before expiring.
Type: null or string
Default: null
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.settings.PORXIE_CACHE_OWNERSHIP_TTL
How long blob ownership can be cached before expiring.
Type: null or string
Default: null
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.settings.PORXIE_CACHE_POLICY_TTL
How long policy decisions can be cached before expiring.
Type: null or string
Default: null
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.settings.PORXIE_IDENTITY_PLC_URL
URL of the PLC instance used for did:plc lookups.
Type: null or string
Default: null
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.settings.PORXIE_POLICY_FAIL_OPEN
Allow requests to proceed even if the policy service is unavailable.
Warning: enabling this means restricted blobs may be served when the policy service is unavailable.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.settings.PORXIE_POLICY_REQUEST_HEADERS
Headers sent alongside requests to the policy service.
Each header must be in the format Name: value.
As pipes are used as a delimiter, they cannot be contained in headers.
Should be set via environmentFiles for sensitive values such as API keys.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.settings.PORXIE_POLICY_URL
Policy service URL that DID+CID pairs will be checked against.
Requests are sent via XRPC to <url>/xrpc/dev.blooym.porxie.getBlobPolicy.
Type: null or string
Default: null
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.settings.PORXIE_SERVER_ADDRESS
Address to bind the server to.
Use the ip: prefix for an IP address (e.g. ip:127.0.0.1:6314), or on UNIX
systems, the unix: prefix for a UNIX socket path (e.g. unix:/run/porxie/porxie.sock).
Type: string
Default: "ip:127.0.0.1:6314"
Declared by: nixos/modules/services/networking/porxie.nix
services.porxie.settings.PORXIE_SERVER_ADMIN_PASSWORD
Admin password for authenticating privileged requests.
Authenticated requests always expect the username admin as per specification.
When not set, authenticated endpoints will be unavailable.
Should be set via environmentFiles rather than directly.
Type: null or string
Default: null
Declared by: nixos/modules/services/networking/porxie.nix
services.postfix-tlspol.configurePostfix
Whether to configure the required settings to use postfix-tlspol in the local Postfix instance.
Type: boolean
Default: true
Declared by: nixos/modules/services/mail/postfix-tlspol.nix
services.postfix-tlspol.enable
Whether to enable postfix-tlspol.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/mail/postfix-tlspol.nix
services.postfix-tlspol.package
The postfix-tlspol package to use.
Type: package
Default: pkgs.postfix-tlspol
Declared by: nixos/modules/services/mail/postfix-tlspol.nix
services.postfix-tlspol.settings
The postfix-tlspol configuration file as a Nix attribute set.
See the reference documentation for possible options. https://github.com/Zuplu/postfix-tlspol/blob/main/configs/config.default.yaml
Type: open submodule of (YAML 1.2 value)
Default: { }
Declared by: nixos/modules/services/mail/postfix-tlspol.nix
services.postfix-tlspol.settings.dns.address
IP and port to your DNS resolver.
Uses resolvers from /etc/resolv.conf if unset.
Note
The configured DNS resolver must validate DNSSEC signatures.
Type: null or string
Default: null
Example: "127.0.0.1:53"
Declared by: nixos/modules/services/mail/postfix-tlspol.nix
services.postfix-tlspol.settings.server.address
Path or address/port where postfix-tlspol binds its socket to.
Type: string
Default: "unix:/run/postfix-tlspol/tlspol.sock"
Example: "127.0.0.1:8642"
Declared by: nixos/modules/services/mail/postfix-tlspol.nix
services.postfix-tlspol.settings.server.cache-file
Path to the cache file.
Type: absolute path
Default: "/var/cache/postfix-tlspol/cache.db"
Read only
Declared by: nixos/modules/services/mail/postfix-tlspol.nix
services.postfix-tlspol.settings.server.log-level
Log level
Type: one of "debug", "info", "warn", "error"
Default: "info"
Example: "warn"
Declared by: nixos/modules/services/mail/postfix-tlspol.nix
services.postfix-tlspol.settings.server.prefetch
Whether to prefetch DNS records when the TTL of a cached record is about to expire.
Type: boolean
Default: true
Example: false
Declared by: nixos/modules/services/mail/postfix-tlspol.nix
services.postfix-tlspol.settings.server.socket-permissions
Permissions to the UNIX socket, if configured.
Note
Due to hardening on the systemd unit the socket can never be created world readable/writable.
Type: string
Default: "0660"
Read only
Declared by: nixos/modules/services/mail/postfix-tlspol.nix
services.postfix.aliasFiles
Aliases' tables to be compiled and placed into /var/lib/postfix/conf.
Type: attribute set of absolute path
Default: { }
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.aliasMapType
The format the alias map should have. Use regexp if you want to use regular expressions.
Type: one of "hash", "regexp", "pcre"
Default: "hash"
Example: "regexp"
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.canonical
Entries for the canonical(5) table.
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.dnsBlacklistOverrides
contents of check_client_access for overriding dnsBlacklists
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.dnsBlacklists
dns blacklist servers to use with smtpd_client_restrictions
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.enable
Whether to run the Postfix mail server.
Type: boolean
Default: false
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.enableHeaderChecks
Whether to enable postfix header checks
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.enableSmtp
Whether to enable the smtp service configured in the master.cf.
This service listens for plain text SMTP connections on port 25 and supports explicit TLS via StartTLS.
It is the primary port used by SMTP servers to exchange mail.
Type: boolean
Default: true
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.enableSubmission
Whether to enable the submission service configured in master.cf.
This service listens for plain text SMTP connections on port 587
and supports explicit TLS via StartTLS.
It is a way for clients to login and submit mails after an inband
connection upgrade using StartTLS.
::: {.warning}
[RFC 8314](https://www.rfc-editor.org/rfc/rfc8314) discourages the use
of explicit TLS for mail submissionn.
:::
Type: boolean
Default: false
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.enableSubmissions
Whether to enable the submissions service configured in master.cf.
This service listen for implicit TLS connections on port 465.
Info
Per RFC 8314 implicit TLS is recommended for mail submission.
Type: boolean
Default: false
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.extraAliases
Additional entries to put verbatim into aliases file, cf. man-page aliases(8).
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.extraHeaderChecks
Extra lines to /etc/postfix/header_checks file.
Type: strings concatenated with "\n"
Default: ""
Example: "/^X-Spam-Flag:/ REDIRECT spam@example.com"
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.extraMasterConf
Extra lines to append to the generated master.cf file.
Type: strings concatenated with "\n"
Default: ""
Example: "submission inet n - n - - smtpd"
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.group
What to call the Postfix group (must be used only for postfix).
Type: string
Default: "postfix"
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.headerChecks
Postfix header checks.
Type: list of (submodule)
Default: [ ]
Example:
[
{
action = "REDIRECT spam@example.com";
pattern = "/^X-Spam-Flag:/";
}
]
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.headerChecks.*.action
The action to be executed when the pattern is matched
Type: string
Default: "DUNNO"
Example: "BCC mail@example.com"
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.headerChecks.*.pattern
A regexp pattern matching the header
Type: string
Default: "/^.*/"
Example: "/^X-Mailer:/"
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.localRecipients
List of accepted local users. Specify a bare username, an
"@domain.tld" wild-card, or a complete
"user@domain.tld" address. If set, these names end
up in the local recipient map -- see the local(8) man-page -- and
effectively replace the system user database lookup that's otherwise
used by default.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.mapFiles
Maps to be compiled and placed into /var/lib/postfix/conf.
Type: attribute set of absolute path
Default: { }
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.package
The postfix package to use.
Type: package
Default: pkgs.postfix
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.postmasterAlias
Who should receive postmaster e-mail. Multiple values can be added by separating values with comma.
Type: string
Default: "root"
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.rootAlias
Who should receive root e-mail. Blank for no redirection. Multiple values can be added by separating values with comma.
Type: string
Default: ""
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.setSendmail
Whether to set the system sendmail to postfix's.
Type: boolean
Default: true
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.setgidGroup
How to call postfix setgid group (for postdrop). Should be uniquely used group.
Type: string
Default: "postdrop"
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.main
The main.cf configuration file as key value set.
Null values will not be rendered.
Tip
Check postconf -d for the default values of all settings.
Type: open submodule of attribute set of (null or boolean or signed integer or absolute path or string or list of string)
Example:
{
mail_owner = "postfix";
smtp_tls_security_level = "may";
}
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.main.message_size_limit
Maximum size of an email message in bytes.
https://www.postfix.org/postconf.5.html#message_size_limit
Type: null or signed integer
Default: 10240000
Example: 52428800
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.main.mydestination
List of domain names intended for local delivery using /etc/passwd and /etc/aliases.
Warning
Do not include virtual domains in this list.
https://www.postfix.org/postconf.5.html#mydestination
Type: null or string or list of string
Default:
[
"$myhostname"
"localhost.$mydomain"
"localhost"
]
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.main.myhostname
The internet hostname of this mail system.
Leave unset to default to the system hostname with the mydomain suffix.
https://www.postfix.org/postconf.5.html#myhostname
Type: null or string
Default: null
Example: "mail.example.com"
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.main.mynetworks
List of trusted remote SMTP clients, that are allowed to relay mail.
Leave unset to let Postfix populate this list based on the mynetworks_style setting.
https://www.postfix.org/postconf.5.html#mynetworks
Type: null or (list of string)
Default: null
Example:
[
"127.0.0.0/8"
"::1"
]
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.main.mynetworks_style
The method used for generating the default value for mynetworks, if that option is unset.
https://www.postfix.org/postconf.5.html#mynetworks_style
Type: null or one of "host", "subnet", "class"
Default: "host"
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.main.recipient_delimiter
Set of characters used as the delimiters for address extensions.
This allows creating different forwarding rules per extension.
https://www.postfix.org/postconf.5.html#recipient_delimiter
Type: null or string
Default: ""
Example: "+"
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.main.relay_domains
List of domains delivered via the relay transport.
https://www.postfix.org/postconf.5.html#relay_domains
Type: null or (list of string)
Default: [ ]
Example:
[
"lists.example.com"
]
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.main.relayhost
List of hosts to use for relaying outbound mail.
Note
Putting the hostname in angled brackets, e.g. [relay.example.com], turns off MX and SRV lookups for the hostname.
https://www.postfix.org/postconf.5.html#relayhost
Type: null or (list of string)
Default: [ ]
Example:
[
"[relay.example.com]:587"
]
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.main.smtp_tls_CAfile
File containing CA certificates of root CAs trusted to sign either remote SMTP server certificates or intermediate CA certificates.
Defaults to the system CA bundle that is managed through the security.pki options.
https://www.postfix.org/postconf.5.html#smtp_tls_CAfile
Type: absolute path
Default:
config.security.pki.caBundle
Example:
${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.main.smtp_tls_security_level
The client TLS security level.
Tip
Use dane with a local DNSSEC validating DNS resolver enabled.
https://www.postfix.org/postconf.5.html#smtp_tls_security_level
Type: one of "none", "may", "encrypt", "dane", "dane-only", "fingerprint", "verify", "secure"
Default: "may"
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.main.smtpd_tls_chain_files
List of paths to the server private keys and certificates.
Caution
The order of items matters and a private key must always be followed by the corresponding certificate.
https://www.postfix.org/postconf.5.html#smtpd_tls_chain_files
Type: list of absolute path
Default: [ ]
Example:
[
"/var/lib/acme/mail.example.com/privkey.pem"
"/var/lib/acme/mail.example.com/fullchain.pem"
]
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.main.smtpd_tls_security_level
The server TLS security level. Enable TLS by configuring at least may.
https://www.postfix.org/postconf.5.html#smtpd_tls_security_level
Type: one of "none", "may", "encrypt"
Default:
if config.services.postfix.settings.main.smtpd_tls_chain_files != [ ] then "may" else "none"
Example: "may"
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.master
The master.cf configuration file as an attribute set of service
defitions
Tip
Check https://www.postfix.org/master.5.html for possible settings.
Type: attribute set of (submodule)
Default: { }
Example:
{
submission = {
args = [
"-o"
"smtpd_tls_security_level=encrypt"
];
type = "inet";
};
}
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.master.<name>.args
Arguments to pass to the command. There is no shell
processing involved and shell syntax is passed verbatim to the
process.
Type: list of string
Default: [ ]
Example:
[
"-o"
"smtp_helo_timeout=5"
]
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.master.<name>.chroot
Whether the service is chrooted to have only access to the
services.postfix.queueDir and the closure of
store paths specified by the program option.
Type: boolean
Example: true
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.master.<name>.command
A program name specifying a Postfix service/daemon process.
By default it's the attribute name.
Type: string
Default: "‹name›"
Example: "smtpd"
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.master.<name>.maxproc
The maximum number of processes to spawn for this service. If the
value is 0 it doesn't have any limit. If
null is given it uses the postfix default of
100.
Type: signed integer
Example: 1
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.master.<name>.name
The name of the service to run. Defaults to the attribute set key.
Type: string
Default: "‹name›"
Example: "smtp"
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.master.<name>.private
Whether the service's sockets and storage directory is restricted to
be only available via the mail system. If null is
given it uses the postfix default true.
Type: boolean
Example: false
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.master.<name>.privileged
Type: boolean
Example: true
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.master.<name>.type
The type of the service
Type: one of "inet", "unix", "unix-dgram", "fifo", "pass"
Default: "unix"
Example: "inet"
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.master.<name>.wakeup
Automatically wake up the service after the specified number of
seconds. If 0 is given, never wake the service
up.
Type: signed integer
Example: 60
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.settings.master.<name>.wakeupUnusedComponent
If set to false the component will only be woken
up if it is used. This is equivalent to postfix' notion of adding a
question mark behind the wakeup time in
master.cf
Type: boolean
Example: false
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.submissionOptions
Options for the submission config in master.cf
Type: attribute set of string
Default:
{
milter_macro_daemon_name = "ORIGINATING";
smtpd_client_restrictions = "permit_sasl_authenticated,reject";
smtpd_sasl_auth_enable = "yes";
smtpd_tls_security_level = "encrypt";
}
Example:
{
milter_macro_daemon_name = "ORIGINATING";
smtpd_client_restrictions = "permit_sasl_authenticated,reject";
smtpd_sasl_auth_enable = "yes";
smtpd_sasl_type = "dovecot";
smtpd_tls_security_level = "encrypt";
}
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.submissionsOptions
Options for the submission config via smtps in master.cf.
smtpd_tls_security_level will be set to encrypt, if it is missing or has one of the values "may" or "none".
smtpd_tls_wrappermode with value "yes" will be added automatically.
Type: attribute set of string
Default:
{
milter_macro_daemon_name = "ORIGINATING";
smtpd_client_restrictions = "permit_sasl_authenticated,reject";
smtpd_sasl_auth_enable = "yes";
}
Example:
{
milter_macro_daemon_name = "ORIGINATING";
smtpd_client_restrictions = "permit_sasl_authenticated,reject";
smtpd_sasl_auth_enable = "yes";
smtpd_sasl_type = "dovecot";
}
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.transport
Entries for the transport map, cf. man-page transport(5).
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.user
What to call the Postfix user (must be used only for postfix).
Type: string
Default: "postfix"
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.virtual
Entries for the virtual alias map, cf. man-page virtual(5).
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/mail/postfix.nix
services.postfix.virtualMapType
What type of virtual alias map file to use. Use "regexp" for regular expressions.
Type: one of "hash", "regexp", "pcre"
Default: "hash"
Declared by: nixos/modules/services/mail/postfix.nix
services.postgres-websockets.enable
Whether to enable postgres-websockets.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/databases/postgres-websockets.nix
services.postgres-websockets.environment
postgres-websockets configuration as defined in: https://github.com/diogob/postgres-websockets/blob/master/src/PostgresWebsockets/Config.hs#L71-L87
PGWS_DB_URI is represented as an attribute set, see environment.PGWS_DB_URI
Note
The environment.PGWS_JWT_SECRET option is blocked.
Use jwtSecretFile instead.
Type: open submodule of attribute set of string
Default: { }
Example:
{
PGWS_LISTEN_CHANNEL = "my_channel";
PGWS_DB_URI.dbname = "postgres";
}
Declared by: nixos/modules/services/databases/postgres-websockets.nix
services.postgres-websockets.environment.PGWS_DB_URI
libpq connection parameters as documented in:
https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PARAMKEYWORDS
Note
The environment.PGWS_DB_URI.password and environment.PGWS_DB_URI.passfile options are blocked.
Use pgpassFile instead.
Type: open submodule of attribute set of string
Default: { }
Example:
{
host = "localhost";
dbname = "postgres";
}
Declared by: nixos/modules/services/databases/postgres-websockets.nix
services.postgres-websockets.environment.PGWS_HOST
Address the server will listen for websocket connections.
Type: null or string
Default: "127.0.0.1"
Declared by: nixos/modules/services/databases/postgres-websockets.nix
services.postgres-websockets.jwtSecretFile
Secret used to sign JWT tokens used to open communications channels.
Type: null or absolute path not in the Nix store
Default: null
Example: "/run/keys/jwt_secret"
Declared by: nixos/modules/services/databases/postgres-websockets.nix
services.postgres-websockets.pgpassFile
The password to authenticate to PostgreSQL with. Not needed for peer or trust based authentication.
The file must be a valid .pgpass file as described in:
https://www.postgresql.org/docs/current/libpq-pgpass.html
In most cases, the following will be enough:
*:*:*:*:<password>
Type: null or absolute path not in the Nix store
Default: null
Example: "/run/keys/db_password"
Declared by: nixos/modules/services/databases/postgres-websockets.nix
services.postgresql.authentication
Defines how users authenticate themselves to the server. See the
PostgreSQL documentation for pg_hba.conf
for details on the expected format of this option. By default,
peer based authentication will be used for users connecting
via the Unix socket, and md5 password authentication will be
used for users connecting via TCP. Any added rules will be
inserted above the default rules. If you'd like to replace the
default rules entirely, you can use lib.mkForce in your
module.
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.checkConfig
Check the syntax of the configuration file at compile time
Type: boolean
Default: true
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.dataDir
The data directory for PostgreSQL. If left as the default value this directory will automatically be created before the PostgreSQL server starts, otherwise the sysadmin is responsible for ensuring the directory exists with appropriate ownership and permissions.
Type: absolute path
Default: "/var/lib/postgresql/${config.services.postgresql.package.psqlSchema}"
Example: "/var/lib/postgresql/15"
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.enable
Whether to enable PostgreSQL Server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.enableJIT
Whether to enable JIT support.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.enableTCPIP
Whether PostgreSQL should listen on all network interfaces. If disabled, the database can only be accessed via its Unix domain socket or via TCP connections to localhost.
Type: boolean
Default: false
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.ensureDatabases
Ensures that the specified databases exist. This option will never delete existing databases, especially not when the value of this option is changed. This means that databases created once through this option or otherwise have to be removed manually.
Type: list of string
Default: [ ]
Example:
[
"gitea"
"nextcloud"
]
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.ensureUsers
Ensures that the specified users exist.
The PostgreSQL users will be identified using peer authentication. This authenticates the Unix user with the
same name only, and that without the need for a password.
This option will never delete existing users or remove DB ownership of databases
once granted with ensureDBOwnership = true;. This means that this must be
cleaned up manually when changing after changing the config in here.
Type: list of (submodule)
Default: [ ]
Example:
[
{
name = "nextcloud";
}
{
name = "superuser";
ensureDBOwnership = true;
}
]
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.ensureUsers.*.ensureClauses
An attrset of clauses to grant to the user. Under the hood this uses the
ALTER USER syntax for each attrName where
the attrValue is true in the attrSet:
ALTER USER user.name WITH attrName
Type: open submodule of attribute set of (string or signed integer or boolean)
Default: { }
Example:
{
superuser = true;
createrole = true;
createdb = true;
connection_limit = 5;
# SCRAM-SHA-256 hashed password for "password"
# Generate hashes using PostgreSQL or a dedicated script rather than storing passwords in plain text.
password = "SCRAM-SHA-256$4096:SZEJF5Si4QZ6l4fedrZZWQ==$6u3PWVcz+dts+NdpByPIjKa4CaSnoXGG3M2vpo76bVU=:WSZ0iGUCmVtKYVvNX0pFOp/60IgsdJ+90Y67Eun+QE0=";
}
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.ensureUsers.*.ensureDBOwnership
Grants the user ownership to a database with the same name. This database must be defined manually in services (P).
Type: boolean
Default: false
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.ensureUsers.*.name
Name of the user to ensure.
Type: string
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.extensions
List of PostgreSQL extensions to install.
Type: (function that evaluates to a(n) list of absolute path) or (list of absolute path) convertible to it
Default: <function>
Example: ps: with ps; [ postgis pg_repack ]
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.finalPackage
The postgresql package that will effectively be used in the system. It consists of the base package with plugins applied to it.
Type: package
Default: "with config.services.postgresql; package.withPackages extensions"
Read only
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.identMap
Defines the mapping from system users to database users.
See the auth doc.
There is a default map "postgres" which is used for local peer authentication as the postgres superuser role. For example, to allow the root user to login as the postgres superuser, add:
postgres root postgres
Type: strings concatenated with "\n"
Default: ""
Example:
''
map-name-0 system-username-0 database-username-0
map-name-1 system-username-1 database-username-1
''
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.initdbArgs
Additional arguments passed to initdb during data dir
initialisation.
Type: list of string
Default: [ ]
Example:
[
"--data-checksums"
"--allow-group-access"
]
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.initialScript
A file containing SQL statements to execute on first startup.
Type: null or absolute path
Default: null
Example:
pkgs.writeText "init-sql-script" ''
alter user postgres with password 'myPassword';
'';
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.package
The package being used by postgresql.
Type: package
Default:
if versionAtLeast config.system.stateVersion "26.11" then
pkgs.postgresql_18
else if versionAtLeast config.system.stateVersion "25.11" then
pkgs.postgresql_17
else if versionAtLeast config.system.stateVersion "24.11" then
pkgs.postgresql_16
else
pkgs.postgresql_15
Example: pkgs.postgresql_15
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.settings
PostgreSQL configuration. Refer to
https://www.postgresql.org/docs/current/config-setting.html#CONFIG-SETTING-CONFIGURATION-FILE
for an overview of postgresql.conf.
Note
String values will automatically be enclosed in single quotes. Single quotes will be escaped with two single quotes as described by the upstream documentation linked above.
Type: open submodule of attribute set of (boolean or floating point number or signed integer or string)
Default: { }
Example:
{
log_connections = true;
log_statement = "all";
logging_collector = true;
log_disconnections = true;
log_destination = lib.mkForce "syslog";
}
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.settings.log_line_prefix
A printf-style string that is output at the beginning of each log line.
Upstream default is '%m [%p] ', i.e. it includes the timestamp. We do
not include the timestamp, because journal has it anyway.
Type: string
Default: "[%p] "
Example: "%m [%p] "
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.settings.port
The port on which PostgreSQL listens.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 5432
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.settings.shared_preload_libraries
List of libraries to be preloaded.
Type: null or (strings concatenated with "," or (list of string) convertible to it)
Default: null
Example: [ "auto_explain" "anon" ]
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.systemCallFilter
Configures the syscall filter for postgresql.service. The keys are
declarations for SystemCallFilter as described in systemd.exec(5).
The value is a boolean: true adds the attribute name to the syscall filter-set,
false doesn't. This is done to allow downstream configurations to turn off
restrictions made here. E.g. with
{
services.postgresql.systemCallFilter."~@resources" = false;
}
it's possible to remove the restriction on @resources (keep in mind that
@system-service implies @resources).
As described in the section for services (P), the ordering matters. Hence, it's also possible to specify customizations with
{
services.postgresql.systemCallFilter = {
"foobar" = { enable = true; priority = 23; };
};
}
services (P) is the flag whether
or not it will be added to the SystemCallFilter of postgresql.service.
Settings with a higher priority are added after filter settings with a lower priority. Hence, syscall groups with a higher priority can discard declarations with a lower priority.
By default, syscall groups (i.e. attribute names starting with @) are added
before negated groups (i.e. ~@ as prefix) before syscall names
and negations.
Type: attribute set of ((submodule) or boolean convertible to it)
Default:
{
"@system-service" = true;
"~@privileged" = true;
"~@resources" = true;
}
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.systemCallFilter.<name>.enable
Whether to enable ‹name› in postgresql's syscall filter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresql.systemCallFilter.<name>.priority
Set the priority of the system call filter setting. Later declarations override earlier ones, e.g.
[Service]
SystemCallFilter=~read write
SystemCallFilter=write
results in a service where only read is not allowed.
The ordering in the unit file is controlled by this option: the higher the number, the later it will be added to the filterset.
By default, depending on the prefix a priority is assigned: usually, call-groups
(starting with @) are used to allow/deny a larger set of syscalls and later
on single syscalls are configured for exceptions. Hence, syscall groups
and negative groups are placed before individual syscalls by default.
Type: signed integer
Default:
if hasPrefix "@" name then 500 else if hasPrefix "~@" name then 1000 else 1500
Declared by: nixos/modules/services/databases/postgresql.nix
services.postgresqlBackup.backupAll
Backup all databases using pg_dumpall.
This option is mutual exclusive to
services.postgresqlBackup.databases.
The resulting backup dump will have the name all.sql.gz.
This option is the default if no databases are specified.
Type: boolean
Default: services.postgresqlBackup.databases == []
Declared by: nixos/modules/services/backup/postgresql-backup.nix
services.postgresqlBackup.compression
The type of compression to use on the generated database dump.
Type: one of "none", "gzip", "zstd"
Default: "gzip"
Declared by: nixos/modules/services/backup/postgresql-backup.nix
services.postgresqlBackup.compressionLevel
The compression level used when compression is enabled. gzip accepts levels 1 to 9. zstd accepts levels 1 to 19.
Type: integer between 1 and 19 (both inclusive)
Default: 6
Declared by: nixos/modules/services/backup/postgresql-backup.nix
services.postgresqlBackup.databases
List of database names to dump.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/backup/postgresql-backup.nix
services.postgresqlBackup.enable
Whether to enable PostgreSQL dumps.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/backup/postgresql-backup.nix
services.postgresqlBackup.location
Path of directory where the PostgreSQL database dumps will be placed.
Type: absolute path
Default: "/var/backup/postgresql"
Declared by: nixos/modules/services/backup/postgresql-backup.nix
services.postgresqlBackup.pgdumpAllOptions
Command line options for pg_dumpall. This options is not used if
config.services.postgresqlBackup.backupAll is disabled.
Type: strings concatenated with " "
Default: ""
Declared by: nixos/modules/services/backup/postgresql-backup.nix
services.postgresqlBackup.pgdumpOptions
Command line options for pg_dump. This options is not used if
config.services.postgresqlBackup.backupAll is enabled. Note that
config.services.postgresqlBackup.backupAll is also active, when no
databases where specified.
Type: strings concatenated with " "
Default: "-C"
Declared by: nixos/modules/services/backup/postgresql-backup.nix
services.postgresqlBackup.startAt
This option defines (see systemd.time for format) when the
databases should be dumped.
The default is to update at 01:15 (at night) every day.
Type: (list of string) or string
Default: "*-*-* 01:15:00"
Declared by: nixos/modules/services/backup/postgresql-backup.nix
services.postgresqlWalReceiver.receivers
PostgreSQL WAL receivers.
Stream write-ahead logs from a PostgreSQL server using pg_receivewal (formerly pg_receivexlog).
See the man page for more information.
Type: attribute set of (submodule)
Default: { }
Example:
{
main = {
postgresqlPackage = pkgs.postgresql_15;
directory = /mnt/pg_wal/main/;
slot = "main_wal_receiver";
connection = "postgresql://user@somehost";
};
}
Declared by: nixos/modules/services/backup/postgresql-wal-receiver.nix
services.postgresqlWalReceiver.receivers.<name>.compress
Enables gzip compression of write-ahead logs, and specifies the compression level
(0 through 9, 0 being no compression and 9 being best compression).
The suffix .gz will automatically be added to all filenames.
This option requires PostgreSQL >= 10.
Type: integer between 0 and 9 (both inclusive)
Default: 0
Declared by: nixos/modules/services/backup/postgresql-wal-receiver.nix
services.postgresqlWalReceiver.receivers.<name>.connection
Specifies parameters used to connect to the server, as a connection string. See Section 34.1.1 of the PostgreSQL manual for more information.
Because pg_receivewal doesn't connect to any particular database in the cluster,
database name in the connection string will be ignored.
Type: string
Example: "postgresql://user@somehost"
Declared by: nixos/modules/services/backup/postgresql-wal-receiver.nix
services.postgresqlWalReceiver.receivers.<name>.directory
Directory to write the output to.
Type: absolute path
Example: /mnt/pg_wal/main/
Declared by: nixos/modules/services/backup/postgresql-wal-receiver.nix
services.postgresqlWalReceiver.receivers.<name>.environment
Environment variables passed to the service. Usable parameters are listed in Section 34.14 of the PostgreSQL manual.
Type: attribute set of string
Default: { }
Example:
{
PGPASSFILE = "/private/passfile";
PGSSLMODE = "require";
}
Declared by: nixos/modules/services/backup/postgresql-wal-receiver.nix
services.postgresqlWalReceiver.receivers.<name>.extraArgs
A list of extra arguments to pass to the pg_receivewal command.
Type: list of string
Default: [ ]
Example:
[
"--no-sync"
]
Declared by: nixos/modules/services/backup/postgresql-wal-receiver.nix
services.postgresqlWalReceiver.receivers.<name>.postgresqlPackage
The postgresql package to use.
Type: package
Default: pkgs.postgresql
Example: postgresql_15
Declared by: nixos/modules/services/backup/postgresql-wal-receiver.nix
services.postgresqlWalReceiver.receivers.<name>.slot
Require pg_receivewal to use an existing replication slot (see
Section 26.2.6 of the PostgreSQL manual).
When this option is used, pg_receivewal will report a flush position to the server,
indicating when each segment has been synchronized to disk so that the server can remove that segment if it is not otherwise needed.
When the replication client of pg_receivewal is configured on the server as a synchronous standby,
then using a replication slot will report the flush position to the server, but only when a WAL file is closed.
Therefore, that configuration will cause transactions on the primary to wait for a long time and effectively not work satisfactorily.
The option synchronous must be specified in addition to make this work correctly.
Type: string
Default: ""
Example: "some_slot_name"
Declared by: nixos/modules/services/backup/postgresql-wal-receiver.nix
services.postgresqlWalReceiver.receivers.<name>.statusInterval
Specifies the number of seconds between status packets sent back to the server. This allows for easier monitoring of the progress from server. A value of zero disables the periodic status updates completely, although an update will still be sent when requested by the server, to avoid timeout disconnect.
Type: signed integer
Default: 10
Declared by: nixos/modules/services/backup/postgresql-wal-receiver.nix
services.postgresqlWalReceiver.receivers.<name>.synchronous
Flush the WAL data to disk immediately after it has been received.
Also send a status packet back to the server immediately after flushing, regardless of statusInterval.
This option should be specified if the replication client of pg_receivewal is configured on the server as a synchronous standby,
to ensure that timely feedback is sent to the server.
Type: boolean
Default: false
Declared by: nixos/modules/services/backup/postgresql-wal-receiver.nix
services.postgrest.enable
Whether to enable PostgREST.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/databases/postgrest.nix
services.postgrest.jwtSecretFile
The secret or JSON Web Key (JWK) (or set) used to decode JWT tokens clients provide for authentication. For security the key must be at least 32 characters long. If this parameter is not specified then PostgREST refuses authentication requests.
https://docs.postgrest.org/en/stable/references/configuration.html#jwt-secret
Type: null or absolute path not in the Nix store
Default: null
Example: "/run/keys/jwt_secret"
Declared by: nixos/modules/services/databases/postgrest.nix
services.postgrest.pgpassFile
The password to authenticate to PostgreSQL with. Not needed for peer or trust based authentication.
The file must be a valid .pgpass file as described in:
https://www.postgresql.org/docs/current/libpq-pgpass.html
In most cases, the following will be enough:
*:*:*:*:<password>
Type: null or absolute path not in the Nix store
Default: null
Example: "/run/keys/db_password"
Declared by: nixos/modules/services/databases/postgrest.nix
services.postgrest.settings
PostgREST configuration as documented in: https://docs.postgrest.org/en/stable/references/configuration.html#list-of-parameters
db-uri is represented as an attribute set, see settings.db-uri
Note
The settings.jwt-secret option is blocked.
Use jwtSecretFile instead.
Type: open submodule of attribute set of (boolean or (unsigned integer, meaning >=0) or string)
Default: { }
Example:
{
db-anon-role = "anon";
db-uri.dbname = "postgres";
"app.settings.custom" = "value";
}
Declared by: nixos/modules/services/databases/postgrest.nix
services.postgrest.settings.admin-server-port
Specifies the port for the admin server, which can be used for healthchecks.
https://docs.postgrest.org/en/stable/references/admin_server.html#admin-server
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Declared by: nixos/modules/services/databases/postgrest.nix
services.postgrest.settings.db-config
Enables the in-database configuration.
https://docs.postgrest.org/en/stable/references/configuration.html#in-database-configuration
Note
This is enabled by default upstream, but disabled by default in this module.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/databases/postgrest.nix
services.postgrest.settings.db-uri
libpq connection parameters as documented in:
https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PARAMKEYWORDS
Note
The settings.db-uri.password and settings.db-uri.passfile options are blocked.
Use pgpassFile instead.
Type: open submodule of attribute set of string
Default: { }
Example:
{
host = "localhost";
dbname = "postgres";
}
Declared by: nixos/modules/services/databases/postgrest.nix
services.postgrest.settings.server-host
Where to bind the PostgREST web server.
Note
The admin server will also bind here, but potentially exposes sensitive information. Make sure you turn off the admin server, when opening this to the public.
Type: null or string
Default: "127.0.0.1"
Declared by: nixos/modules/services/databases/postgrest.nix
services.postgrest.settings.server-port
The TCP port to bind the web server.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Example: 3000
Declared by: nixos/modules/services/databases/postgrest.nix
services.postgrest.settings.server-unix-socket
Unix domain socket where to bind the PostgREST web server.
Type: null or absolute path
Default: "/run/postgrest/postgrest.sock"
Declared by: nixos/modules/services/databases/postgrest.nix
services.postgrey.IPv4CIDR
Strip N bits from IPv4 addresses if lookupBySubnet is true
Type: unsigned integer, meaning >=0
Default: 24
Declared by: nixos/modules/services/mail/postgrey.nix
services.postgrey.IPv6CIDR
Strip N bits from IPv6 addresses if lookupBySubnet is true
Type: unsigned integer, meaning >=0
Default: 64
Declared by: nixos/modules/services/mail/postgrey.nix
services.postgrey.autoWhitelist
Whitelist clients after successful delivery of N messages
Type: null or (positive integer, meaning >0)
Default: 5
Declared by: nixos/modules/services/mail/postgrey.nix
services.postgrey.delay
Greylist for N seconds
Type: unsigned integer, meaning >=0
Default: 300
Declared by: nixos/modules/services/mail/postgrey.nix
services.postgrey.enable
Whether to run the Postgrey daemon
Type: boolean
Default: false
Declared by: nixos/modules/services/mail/postgrey.nix
services.postgrey.greylistAction
Response status for greylisted messages (see access(5))
Type: string
Default: "DEFER_IF_PERMIT"
Declared by: nixos/modules/services/mail/postgrey.nix
services.postgrey.greylistHeader
Prepend header to greylisted mails; use %%t for seconds delayed due to greylisting, %%v for the version of postgrey, %%d for the date, and %%h for the host
Type: string
Default: "X-Greylist: delayed %%t seconds by postgrey-%%v at %%h; %%d"
Declared by: nixos/modules/services/mail/postgrey.nix
services.postgrey.greylistText
Response status text for greylisted messages; use %%s for seconds left until greylisting is over and %%r for mail domain of recipient
Type: string
Default: "Greylisted for %%s seconds"
Declared by: nixos/modules/services/mail/postgrey.nix
services.postgrey.lookupBySubnet
Strip the last N bits from IP addresses, determined by IPv4CIDR and IPv6CIDR
Type: boolean
Default: true
Declared by: nixos/modules/services/mail/postgrey.nix
services.postgrey.maxAge
Delete entries from whitelist if they haven't been seen for N days
Type: unsigned integer, meaning >=0
Default: 35
Declared by: nixos/modules/services/mail/postgrey.nix
services.postgrey.privacy
Store data using one-way hash functions (SHA1)
Type: boolean
Default: true
Declared by: nixos/modules/services/mail/postgrey.nix
services.postgrey.retryWindow
Allow N days for the first retry. Use string with appended 'h' to specify time in hours
Type: string or (unsigned integer, meaning >=0)
Default: 2
Example: "12h"
Declared by: nixos/modules/services/mail/postgrey.nix
services.postgrey.socket
Socket to bind to
Type: (submodule) or (submodule)
Default:
{
mode = "0777";
path = "/run/postgrey.sock";
}
Example:
{
addr = "127.0.0.1";
port = 10030;
}
Declared by: nixos/modules/services/mail/postgrey.nix
services.postgrey.whitelistClients
Client address whitelist files (see postgrey(8))
Type: list of absolute path
Default: [ ]
Declared by: nixos/modules/services/mail/postgrey.nix
services.postgrey.whitelistRecipients
Recipient address whitelist files (see postgrey(8))
Type: list of absolute path
Default: [ ]
Declared by: nixos/modules/services/mail/postgrey.nix
services.postsrsd.configurePostfix
Whether and how to integrate postsrsd into the local Postfix instance.
Caution
Boolean values are deprecated and retained for backwards
compatibility. true is equivalent to socketmap, and false is
equivalent to none.
Type: one of true, false, "none", "socketmap", "milter"
Default: "socketmap"
Example: "milter"
Declared by: nixos/modules/services/mail/postsrsd.nix
services.postsrsd.enable
Whether to enable the postsrsd SRS server for Postfix..
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/mail/postsrsd.nix
services.postsrsd.group
Group for the daemon
Type: string
Default: "postsrsd"
Declared by: nixos/modules/services/mail/postsrsd.nix
services.postsrsd.package
The postsrsd package to use.
Type: package
Default: pkgs.postsrsd
Declared by: nixos/modules/services/mail/postsrsd.nix
services.postsrsd.secretsFile
Secret keys used for signing and verification.
Note
The secret will be generated, if it does not exist at the given path.
Type: absolute path
Default: "/var/lib/postsrsd/postsrsd.secret"
Declared by: nixos/modules/services/mail/postsrsd.nix
services.postsrsd.settings
Configuration options for the postsrsd.conf file.
See the example configuration for possible values.
Type: open submodule of attribute set of (boolean or floating point number or signed integer or absolute path or string or list of string)
Default: { }
Declared by: nixos/modules/services/mail/postsrsd.nix
services.postsrsd.settings.chroot-dir
Path to chroot into at runtime as an additional layer of protection.
Note
We confine the runtime environment through systemd hardening instead, so this option is read-only.
Type: string
Default: ""
Read only
Declared by: nixos/modules/services/mail/postsrsd.nix
services.postsrsd.settings.domains
List of local domains, that do not require rewriting.
Type: list of string
Default: [ ]
Example:
[
"example.com"
]
Declared by: nixos/modules/services/mail/postsrsd.nix
services.postsrsd.settings.milter
Milter listener configuration in unix:/path/to/socket or inet:host:port format.
Type: null or string matching the pattern ^(unix|inet):.+
Default: "unix:/run/postsrsd/milter"
Example: "inet:localhost:9997"
Declared by: nixos/modules/services/mail/postsrsd.nix
services.postsrsd.settings.secrets-file
Path to the file containing the secret keys.
::: {.note}
Secrets are passed using LoadCredential= on the systemd unit,
so this options is read-only.
Configure services.postsrsd.secretsFile instead.
Type: string
Default: "\${CREDENTIALS_DIRECTORY}/secrets-file"
Read only
Declared by: nixos/modules/services/mail/postsrsd.nix
services.postsrsd.settings.separator
SRS tag separator used in generated sender addresses.
Unless you have a very good reason, you should leave this setting at its default.
Type: one of "-", "=", "+"
Default: "="
Declared by: nixos/modules/services/mail/postsrsd.nix
services.postsrsd.settings.socketmap
Socketmap listener configuration in unix:/path/to/socket or inet:host:port format.
Type: null or string matching the pattern ^(unix|inet):.+
Default: "unix:/run/postsrsd/socketmap"
Example: "inet:localhost:10003"
Declared by: nixos/modules/services/mail/postsrsd.nix
services.postsrsd.settings.srs-domain
Dedicated mail domain used for ephemeral SRS envelope addresses.
Recommended to configure, when hosting multiple unrelated mail domains (e.g. for different customers), to prevent privacy issues.
Set to null to not configure any srs-domain.
Type: null or string
Default: null
Example: "srs.example.com"
Declared by: nixos/modules/services/mail/postsrsd.nix
services.postsrsd.settings.unprivileged-user
Unprivileged user to drop privileges to.
Note
Our systemd unit never runs postsrsd as a privileged process, so this option is read-only.
Type: string
Default: ""
Read only
Declared by: nixos/modules/services/mail/postsrsd.nix
services.postsrsd.user
User for the daemon
Type: string
Default: "postsrsd"
Declared by: nixos/modules/services/mail/postsrsd.nix
services.power-profiles-daemon.enable
Whether to enable power-profiles-daemon, a DBus daemon that allows changing system behavior based upon user-selected power profiles.
Type: boolean
Default: false
Declared by: nixos/modules/services/hardware/power-profiles-daemon.nix
services.power-profiles-daemon.package
The power-profiles-daemon package to use.
Type: package
Default: pkgs.power-profiles-daemon
Declared by: nixos/modules/services/hardware/power-profiles-daemon.nix
services.powerdns-admin.config
Configuration python file. See the example configuration for options. Also see Flask Session configuration as the version shipped with NixOS is more recent than the one PowerDNS-Admin expects and it requires explicit configuration.
Type: string
Default: ""
Example:
''
import cachelib
BIND_ADDRESS = '127.0.0.1'
PORT = 8000
SQLALCHEMY_DATABASE_URI = 'postgresql://powerdnsadmin@/powerdnsadmin?host=/run/postgresql'
SESSION_TYPE = 'cachelib'
SESSION_CACHELIB = cachelib.simple.SimpleCache()
''
Declared by: nixos/modules/services/web-apps/powerdns-admin.nix
services.powerdns-admin.enable
Whether to enable the PowerDNS web interface.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/powerdns-admin.nix
services.powerdns-admin.extraArgs
Extra arguments passed to powerdns-admin.
Type: list of string
Default: [ ]
Example:
[ "-b" "127.0.0.1:8000" ]
Declared by: nixos/modules/services/web-apps/powerdns-admin.nix
services.powerdns-admin.saltFile
The salt used for serialization. This should be set, otherwise the default is used. Set this to null to ignore this setting and configure it through another way.
Type: null or absolute path
Default: null
Example: "/etc/powerdns-admin/salt"
Declared by: nixos/modules/services/web-apps/powerdns-admin.nix
services.powerdns-admin.secretKeyFile
The secret used to create cookies. This needs to be set, otherwise the default is used and everyone can forge valid login cookies. Set this to null to ignore this setting and configure it through another way.
Type: null or absolute path
Default: null
Example: "/etc/powerdns-admin/secret"
Declared by: nixos/modules/services/web-apps/powerdns-admin.nix
services.powerdns.enable
Whether to enable PowerDNS domain name server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/powerdns.nix
services.powerdns.extraConfig
PowerDNS configuration. Refer to https://doc.powerdns.com/authoritative/settings.html for details on supported values.
Type: strings concatenated with "\n"
Default: "launch=bind"
Declared by: nixos/modules/services/networking/powerdns.nix
services.powerdns.secretFile
Environment variables from this file will be interpolated into the
final config file using envsubst with this syntax: $ENVIRONMENT
or ${VARIABLE}.
The file should contain lines formatted as SECRET_VAR=SECRET_VALUE.
This is useful to avoid putting secrets into the nix store.
Type: null or absolute path
Default: null
Example: "/run/keys/powerdns.env"
Declared by: nixos/modules/services/networking/powerdns.nix
services.powerstation.enable
Whether to enable PowerStation.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/hardware/powerstation.nix
services.powerstation.package
The powerstation package to use.
Type: package
Default: pkgs.powerstation
Declared by: nixos/modules/services/hardware/powerstation.nix
services.pppd.enable
Whether to enable pppd.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/pppd.nix
services.pppd.package
The ppp package to use.
Type: package
Default: pkgs.ppp
Declared by: nixos/modules/services/networking/pppd.nix
services.pppd.peers
pppd peers.
Type: attribute set of (submodule)
Default: { }
Declared by: nixos/modules/services/networking/pppd.nix
services.pppd.peers.<name>.autostart
Whether the PPP session is automatically started at boot time.
Type: boolean
Default: true
Example: false
Declared by: nixos/modules/services/networking/pppd.nix
services.pppd.peers.<name>.config
pppd configuration for this peer, see the pppd(8) man page.
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/networking/pppd.nix
services.pppd.peers.<name>.enable
Whether to enable this PPP peer.
Type: boolean
Default: true
Example: false
Declared by: nixos/modules/services/networking/pppd.nix
services.pppd.peers.<name>.name
Name of the PPP peer.
Type: string
Default: "‹name›"
Example: "dialup"
Declared by: nixos/modules/services/networking/pppd.nix
services.pptpd.clientIpRange
The range from which client IPs are drawn.
Type: string
Default: "10.124.124.2-11"
Declared by: nixos/modules/services/networking/pptpd.nix
services.pptpd.enable
Whether to enable pptpd, the Point-to-Point Tunneling Protocol daemon.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/pptpd.nix
services.pptpd.extraPppdOptions
Adds extra lines to the pppd options file.
Type: strings concatenated with "\n"
Default: ""
Example:
''
ms-dns 8.8.8.8
ms-dns 8.8.4.4
''
Declared by: nixos/modules/services/networking/pptpd.nix
services.pptpd.extraPptpdOptions
Adds extra lines to the pptpd configuration file.
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/networking/pptpd.nix
services.pptpd.maxClients
The maximum number of simultaneous connections.
Type: signed integer
Default: 10
Declared by: nixos/modules/services/networking/pptpd.nix
services.pptpd.serverIp
The server-side IP address.
Type: string
Default: "10.124.124.1"
Declared by: nixos/modules/services/networking/pptpd.nix
services.prefect.baseUrl
External url the UI is reached at, when served by a reverse proxy. Defaults to the address the server itself binds, which is what you want when there is no proxy in front of it.
Type: string
Default: "http://${host}:${toString port}"
Example: "https://example.com/prefect"
Declared by: nixos/modules/services/scheduling/prefect.nix
services.prefect.dataDir
Working directory for the server. Note that Prefect's own state -
including the SQLite database - lives in the unit's StateDirectory
rather than here, since the service runs as a DynamicUser.
Type: absolute path
Default: "/var/lib/prefect-server"
Declared by: nixos/modules/services/scheduling/prefect.nix
services.prefect.database
which database to use for prefect server: sqlite or postgres
Type: one of "sqlite", "postgres"
Default: "sqlite"
Declared by: nixos/modules/services/scheduling/prefect.nix
services.prefect.databaseHost
database host for postgres only
Type: string
Default: "localhost"
Declared by: nixos/modules/services/scheduling/prefect.nix
services.prefect.databaseName
database name for postgres only
Type: string
Default: "prefect"
Declared by: nixos/modules/services/scheduling/prefect.nix
services.prefect.databasePasswordFile
Path to a file containing the postgres password as an environment variable assignment:
PREFECT_SERVER_DATABASE_PASSWORD=supersecret
Stored outside the nix store, read by systemd as an EnvironmentFile.
Leave null when postgres authenticates the server some other way,
such as peer authentication over a unix socket.
Type: null or string
Default: null
Example: "/run/secrets/prefect-database-password"
Declared by: nixos/modules/services/scheduling/prefect.nix
services.prefect.databasePort
database port for postgres only
Type: string
Default: "5432"
Declared by: nixos/modules/services/scheduling/prefect.nix
services.prefect.databaseUser
database user for postgres only
Type: string
Default: "postgres"
Declared by: nixos/modules/services/scheduling/prefect.nix
services.prefect.enable
enable prefect server and worker services
Type: boolean
Default: false
Declared by: nixos/modules/services/scheduling/prefect.nix
services.prefect.host
Prefect server host
Type: string
Default: "127.0.0.1"
Example: "0.0.0.0"
Declared by: nixos/modules/services/scheduling/prefect.nix
services.prefect.package
The prefect package to use.
Type: package
Default: pkgs.prefect
Declared by: nixos/modules/services/scheduling/prefect.nix
services.prefect.port
Prefect server port
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 4200
Declared by: nixos/modules/services/scheduling/prefect.nix
services.prefect.workerPools
define a set of worker pools with submodule config. example: workerPools.my-pool = { installPolicy = "never"; };
Type: attribute set of (submodule)
Default: { }
Declared by: nixos/modules/services/scheduling/prefect.nix
services.prefect.workerPools.<name>.installPolicy
install policy for the worker (always, if-not-present, never, prompt)
Type: one of "always", "if-not-present", "never", "prompt"
Default: "always"
Declared by: nixos/modules/services/scheduling/prefect.nix
services.pretalx.celery.extraArgs
Extra arguments to pass to celery.
See https://docs.celeryq.dev/en/stable/reference/cli.html#celery-worker for more info.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.database.createLocally
Whether to automatically set up the database on the local DBMS instance.
Currently only supported for PostgreSQL. Not required for sqlite.
Type: boolean
Default: true
Example: false
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.enable
Whether to enable pretalx.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.environmentFiles
Environment files that allow passing secret configuration values.
Each line must follow the PRETALX_SECTION_KEY=value pattern.
Type: list of absolute path
Default: [ ]
Example:
[
"/run/secrets/pretalx/env"
]
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.finalPackage
The effective pretalx package used. This is the base package with the selected plugins applied.
Type: package
Default:
''
config.services.package.override {
inherit (config.services.pretalx) plugins;
}
''
Read only
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.group
Group under which pretalx should run.
Type: string
Default: "pretalx"
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.gunicorn.extraArgs
Extra arguments to pass to gunicorn. See https://docs.pretalx.org/administrator/installation.html#step-6-starting-pretalx-as-a-service for details.
Type: list of string
Default:
[
"--name=pretalx"
]
Example:
[
"--name=pretalx"
"--workers=4"
"--max-requests=1200"
"--max-requests-jitter=50"
"--log-level=info"
]
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.nginx.domain
The domain name under which to set up the virtual host.
Type: string
Example: "talks.example.com"
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.nginx.enable
Whether to set up an nginx virtual host.
Type: boolean
Default: true
Example: false
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.package
The pretalx package to use.
Type: package
Default: pkgs.pretalx
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.plugins
Pretalx plugins to install into the Python environment.
Type: list of package
Default: [ ]
Example:
with config.services.pretalx.package.plugins; [
pages
youtube
];
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.settings
pretalx configuration as a Nix attribute set. All settings can also be passed from the environment.
See https://docs.pretalx.org/administrator/configure.html for possible options.
Type: open submodule of attribute set of section of an INI file (attrs of INI atom (null, bool, int, float or string))
Default: { }
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.settings.celery.backend
URI to the celery backend used for the asynchronous job queue.
Type: null or string
Default: redis+socket://${config.services.redis.servers.pretalx.unixSocket}?virtual_host=1
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.settings.celery.broker
URI to the celery broker used for the asynchronous job queue.
Type: null or string
Default: redis+socket://${config.services.redis.servers.pretalx.unixSocket}?virtual_host=2
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.settings.database.backend
Database backend to use.
Currently only PostgreSQL gets tested, and as such we don't support any other DBMS.
Type: value "postgresql" (singular enum)
Default: "postgresql"
Read only
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.settings.database.host
Database host or socket path.
Type: null or absolute path
Default:
if config.services.pretalx.settings..database.backend == "postgresql" then "/run/postgresql"
else if config.services.pretalx.settings.database.backend == "mysql" then "/run/mysqld/mysqld.sock"
else null
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.settings.database.name
Database name.
Type: string
Default: "pretalx"
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.settings.database.user
Database username.
Type: string
Default: "pretalx"
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.settings.files.upload_limit
Maximum file upload size in MiB.
Type: positive integer, meaning >0
Default: 10
Example: 50
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.settings.filesystem.data
Base path for all other storage paths.
Type: absolute path
Default: "/var/lib/pretalx"
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.settings.filesystem.logs
Path to the log directory, that pretalx logs message to.
Type: absolute path
Default: "/var/log/pretalx"
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.settings.filesystem.static
Path to the directory that contains static files.
Type: absolute path
Default: "\${config.services.pretalx.finalPackage.static}/"
Read only
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.settings.redis.location
URI to the redis server, used to speed up locking, caching and session storage.
Type: null or string
Default:
"unix://${config.services.redis.servers.pretalx.unixSocket}?db=0"
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.settings.redis.session
Whether to use redis as the session storage.
Type: boolean
Default: true
Example: false
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.settings.site.url
The base URI below which your pretalx instance will be reachable.
Type: string
Default: https://${config.services.pretalx.nginx.domain}
Example: "https://talks.example.com"
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretalx.user
User under which pretalx should run.
Type: string
Default: "pretalx"
Declared by: nixos/modules/services/web-apps/pretalx.nix
services.pretix.celery.extraArgs
Extra arguments to pass to celery.
See https://docs.celeryq.dev/en/stable/reference/cli.html#celery-worker for more info.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.database.createLocally
Whether to automatically set up the database on the local DBMS instance.
Only supported for PostgreSQL. Not required for sqlite.
Type: boolean
Default: true
Example: false
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.enable
Whether to enable Pretix, a ticket shop application for conferences, festivals, concerts, etc.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.environmentFile
Environment file to pass secret configuration values.
Each line must follow the PRETIX_SECTION_KEY=value pattern.
Type: null or absolute path
Default: null
Example: "/run/keys/pretix-secrets.env"
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.group
Group under which pretix should run.
Type: string
Default: "pretix"
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.gunicorn.extraArgs
Extra arguments to pass to gunicorn. See https://docs.pretix.eu/en/latest/admin/installation/manual_smallscale.html#start-pretix-as-a-service for details.
Type: list of string
Default:
[
"--name=pretix"
]
Example:
[
"--name=pretix"
"--workers=4"
"--max-requests=1200"
"--max-requests-jitter=50"
"--log-level=info"
]
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.nginx.domain
The domain name under which to set up the virtual host.
Type: string
Example: "talks.example.com"
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.nginx.enable
Whether to set up an nginx virtual host.
Type: boolean
Default: true
Example: false
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.package
The pretix package to use.
Type: package
Default: pkgs.pretix
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.plugins
Pretix plugins to install into the Python environment.
Type: list of package
Default: [ ]
Example:
with config.services.pretix.package.plugins; [
passbook
pages
];
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings
pretix configuration as a Nix attribute set. All settings can also be passed from the environment.
See https://docs.pretix.eu/en/latest/admin/config.html for possible options.
Type: open submodule of attribute set of section of an INI file (attrs of INI atom (null, bool, int, float or string))
Default: { }
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.celery.backend
URI to the celery backend used for the asynchronous job queue.
Type: string
Default:
redis+socket://${config.services.redis.servers.pretix.unixSocket}?virtual_host=1
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.celery.broker
URI to the celery broker used for the asynchronous job queue.
Type: string
Default:
redis+socket://${config.services.redis.servers.pretix.unixSocket}?virtual_host=2
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.database.backend
Database backend to use.
Only postgresql is recommended for production setups.
Type: one of "sqlite3", "postgresql"
Default: "postgresql"
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.database.host
Database host or socket path.
Type: null or string
Default:
if config.services.pretix.settings..database.backend == "postgresql" then "/run/postgresql"
else null
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.database.name
Database name.
Type: string
Default: "pretix"
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.database.user
Database username.
Type: string
Default: "pretix"
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.mail.from
E-Mail address used in the FROM header of outgoing mails.
Type: string
Example: "tickets@example.com"
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.mail.host
Hostname of the SMTP server use for mail delivery.
Type: string
Default: "localhost"
Example: "mail.example.com"
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.mail.port
Port of the SMTP server to use for mail delivery.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 25
Example: 587
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.memcached.location
The host:port combination or the path to the UNIX socket of a memcached instance.
Can be used instead of Redis for caching.
Type: null or string
Default: null
Example: "127.0.0.1:11211"
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.pretix.cachedir
Directory for storing temporary files.
Type: absolute path
Default: "/var/cache/pretix"
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.pretix.currency
Default currency for events in its ISO 4217 three-letter code.
Type: string
Default: "EUR"
Example: "USD"
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.pretix.datadir
Directory for storing user uploads and similar data.
Type: absolute path
Default: "/var/lib/pretix"
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.pretix.instance_name
The name of this installation.
Type: string
Example: "tickets.example.com"
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.pretix.logdir
Directory for storing log files.
Type: absolute path
Default: "/var/log/pretix"
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.pretix.registration
Whether to allow registration of new admin users.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.pretix.url
The installation’s full URL, without a trailing slash.
Type: string
Example: "https://tickets.example.com"
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.redis.location
URI to the redis server, used to speed up locking, caching and session storage.
Type: null or string
Default:
"unix://${config.services.redis.servers.pretix.unixSocket}?db=0"
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.redis.sessions
Whether to use redis as the session storage.
Type: boolean
Default: true
Example: false
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.settings.tools.pdftk
Path to the pdftk executable.
Type: absolute path
Default:
lib.getExe pkgs.pdftk
Declared by: nixos/modules/services/web-apps/pretix.nix
services.pretix.user
User under which pretix should run.
Type: string
Default: "pretix"
Declared by: nixos/modules/services/web-apps/pretix.nix
services.printing.allowFrom
From which hosts to allow unconditional access.
Type: list of string
Default:
[
"localhost"
]
Example:
[
"all"
]
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.browsed.enable
Whether to enable the CUPS Remote Printer Discovery (browsed) daemon.
Type: boolean
Default: config.services.avahi.enable
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.browsed.package
The cups-browsed package to use.
Type: package
Default: pkgs.cups-browsed
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.browsedConf
The contents of the configuration. file of the CUPS Browsed daemon
(cups-browsed.conf)
Type: strings concatenated with "\n"
Default: ""
Example:
''
BrowsePoll cups.example.com
''
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.browsing
Specifies whether shared printers are advertised.
Type: boolean
Default: false
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.clientConf
The contents of the client configuration.
(client.conf)
Type: strings concatenated with "\n"
Default: ""
Example:
''
ServerName server.example.com
Encryption Never
''
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.cups-pdf.enable
Whether to enable the cups-pdf virtual pdf printer backend.
By default, this will install a single printer pdf.
but this can be changed/extended with services.printing.cups-pdf.instances
.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/printing/cups-pdf.nix
services.printing.cups-pdf.instances
Permits to raise one or more cups-pdf instances. Each instance is named by an attribute name, and the attribute's values control the instance' configuration.
Type: attribute set of (submodule)
Default:
{
pdf = { };
}
Example:
{
pdf = {
settings = {
Out = "\${HOME}/cups-pdf";
UserUMask = "0033";
};
};
}
Declared by: nixos/modules/services/printing/cups-pdf.nix
services.printing.cups-pdf.instances.<name>.confFileText
This will contain the contents of cups-pdf.conf for this instance, derived from settings.
You can use this option to append text to the file.
Type: strings concatenated with "\n"
Declared by: nixos/modules/services/printing/cups-pdf.nix
services.printing.cups-pdf.instances.<name>.enable
Whether to enable this cups-pdf instance.
Type: boolean
Default: true
Example: true
Declared by: nixos/modules/services/printing/cups-pdf.nix
services.printing.cups-pdf.instances.<name>.installPrinter
Whether to enable a CUPS printer queue for this instance.
The queue will be named after the instance and will use the CUPS-PDF_opt.ppd ppd file.
If this is disabled, you need to add the queue yourself to use the instance
.
Type: boolean
Default: true
Example: true
Declared by: nixos/modules/services/printing/cups-pdf.nix
services.printing.cups-pdf.instances.<name>.settings
Settings for a cups-pdf instance, see the descriptions in the template config file in the cups-pdf package.
The key value pairs declared here will be translated into proper key value pairs for cups-pdf.conf.
Setting a value to null disables the option and removes it from the file.
Type: open submodule of attribute set of (null or signed integer or string or absolute path or package)
Default: { }
Example:
{
Out = "\${HOME}/cups-pdf";
UserUMask = "0033";
}
Declared by: nixos/modules/services/printing/cups-pdf.nix
services.printing.cups-pdf.instances.<name>.settings.AnonDirName
path for anonymously created PDF files
Type: null or (optionally newline-terminated) single-line string
Default: "/var/spool/cups-pdf-{instance-name}/anonymous"
Example: "/var/lib/cups-pdf"
Declared by: nixos/modules/services/printing/cups-pdf.nix
services.printing.cups-pdf.instances.<name>.settings.Anonuser
User for anonymous PDF creation. An empty string disables this feature.
Type: (optionally newline-terminated) single-line string
Default: "root"
Declared by: nixos/modules/services/printing/cups-pdf.nix
services.printing.cups-pdf.instances.<name>.settings.GhostScript
location of GhostScript binary
Type: null or absolute path
Default: lib.getExe pkgs.ghostscript
Example: ${pkgs.ghostscript}/bin/ps2pdf
Declared by: nixos/modules/services/printing/cups-pdf.nix
services.printing.cups-pdf.instances.<name>.settings.Out
output directory;
${HOME} will be expanded to the user's home directory,
${USER} will be expanded to the user name.
Type: null or (optionally newline-terminated) single-line string
Default: "/var/spool/cups-pdf-{instance-name}/users/\${USER}"
Example: "\${HOME}/cups-pdf"
Declared by: nixos/modules/services/printing/cups-pdf.nix
services.printing.cups-pdf.instances.<name>.settings.Spool
spool directory
Type: null or (optionally newline-terminated) single-line string
Default: "/var/spool/cups-pdf-{instance-name}/spool"
Example: "/var/lib/cups-pdf"
Declared by: nixos/modules/services/printing/cups-pdf.nix
services.printing.defaultShared
Specifies whether local printers are shared by default.
Type: boolean
Default: false
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.drivers
CUPS drivers to use. Drivers provided by CUPS, cups-filters,
Ghostscript and Samba are added unconditionally. If this list contains
Gutenprint (i.e. a derivation with
meta.isGutenprint = true) the PPD files in
/var/lib/cups/ppd will be updated automatically
to avoid errors due to incompatible versions.
Type: list of absolute path
Default: [ ]
Example: with pkgs; [ gutenprint hplip splix ]
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.enable
Whether to enable printing support through the CUPS daemon.
Type: boolean
Default: false
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.extraConf
Extra contents of the configuration file of the CUPS daemon
(cupsd.conf).
Type: strings concatenated with "\n"
Default: ""
Example:
''
BrowsePoll cups.example.com
MaxCopies 42
''
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.extraFilesConf
Extra contents of the configuration file of the CUPS daemon
(cups-files.conf).
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.listenAddresses
A list of addresses and ports on which to listen.
Type: list of string
Default:
[
"localhost:631"
]
Example:
[
"*:631"
]
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.logLevel
Specifies the cupsd logging verbosity.
Type: string
Default: "info"
Example: "debug"
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.openFirewall
Whether to open the firewall for TCP ports specified in listenAddresses option.
Type: boolean
Default: false
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.package
The cups package to use.
Type: package
Default: pkgs.cups
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.snmpConf
The contents of /etc/cups/snmp.conf. See "man
cups-snmp.conf" for a complete description.
Type: strings concatenated with "\n"
Default:
''
Address @LOCAL
''
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.startWhenNeeded
If set, CUPS is socket-activated; that is, instead of having it permanently running as a daemon, systemd will start it on the first incoming connection.
Type: boolean
Default: true
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.stateless
If set, all state directories relating to CUPS will be removed on startup of the service.
Type: boolean
Default: false
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.tempDir
CUPSd temporary directory.
Type: absolute path
Default: "/tmp"
Example: "/tmp/cups"
Declared by: nixos/modules/services/printing/cupsd.nix
services.printing.webInterface
Specifies whether the web interface is enabled.
Type: boolean
Default: true
Declared by: nixos/modules/services/printing/cupsd.nix
services.privatebin.dataDir
The place where privatebin stores its state.
Type: absolute path
Default: "/var/lib/privatebin"
Declared by: nixos/modules/services/web-apps/privatebin.nix
services.privatebin.enable
Whether to enable Privatebin: A minimalist, open source online pastebin where the server has zero knowledge of pasted data..
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/web-apps/privatebin.nix
services.privatebin.enableNginx
Whether to enable nginx or not. If enabled, an nginx virtual host will
be created for access to privatebin. If not enabled, then you may use
${config.services.privatebin.package} as your document root in
whichever webserver you wish to setup.
Type: boolean
Default: false
Declared by: nixos/modules/services/web-apps/privatebin.nix
services.privatebin.group
Group under which privatebin runs. It is best to set this to the group of whatever webserver is being used as the frontend.
Type: string
Default: if config.services.privatebin.enableNginx then "nginx" else "privatebin"
Declared by: nixos/modules/services/web-apps/privatebin.nix
services.privatebin.package
The privatebin package to use.
Type: package
Default: pkgs.privatebin
Declared by: nixos/modules/services/web-apps/privatebin.nix
services.privatebin.poolConfig
Options for the PrivateBin PHP pool. See the documentation on
Type: attribute set of (string or signed integer or boolean)
Default:
{
"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/privatebin.nix
services.privatebin.settings
Options for privatebin configuration. Refer to https://github.com/PrivateBin/PrivateBin/wiki/Configuration for details on supported values.
Type: open submodule of attribute set of anything
Default: { }
Example:
{
main = {
name = "NixOS Based Privatebin";
discussion = false;
defaultformatter = "plalib.types.intext";
qrcode = true
};
model.class = "Filesystem";
model_options.dir = "/var/lib/privatebin/data";
}
Declared by: nixos/modules/services/web-apps/privatebin.nix
services.privatebin.user
User account under which privatebin runs.
Type: string
Default: "privatebin"
Declared by: nixos/modules/services/web-apps/privatebin.nix
services.privatebin.virtualHost
The hostname at which you wish privatebin to be served. If you have
enabled nginx using services.privatebin.enableNginx then this will
be used.
Type: string
Default: "localhost"
Declared by: nixos/modules/services/web-apps/privatebin.nix
services.privoxy.certsLifetime
If inspectHttps is enabled, the time generated HTTPS
certificates will be stored in a temporary directory for reuse. Once
the lifetime has expired the directory will cleared and the certificate
will have to be generated again, on-demand.
Depending on the traffic, you may want to reduce the lifetime to limit the disk usage, since Privoxy itself never deletes the certificates.
Note
The format is that of the tmpfiles.d(5)
Age parameter.
Type: tmpfiles.d(5) age format
Default: "10d"
Example: "12h"
Declared by: nixos/modules/services/networking/privoxy.nix
services.privoxy.enable
Whether to enable Privoxy, non-caching filtering proxy.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/networking/privoxy.nix
services.privoxy.enableTor
Whether to configure Privoxy to use Tor's faster SOCKS port, suitable for HTTP.
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/privoxy.nix
services.privoxy.inspectHttps
Whether to configure Privoxy to inspect HTTPS requests, meaning all encrypted traffic will be filtered as well. This works by decrypting and re-encrypting the requests using a per-domain generated certificate.
To issue per-domain certificates, Privoxy must be provided with a CA
certificate, using the ca-cert-file,
ca-key-file settings.
Warning
The CA certificate must also be added to the system trust roots,
otherwise browsers will reject all Privoxy certificates as invalid.
You can do so by using the option
security.pki.certificateFiles.
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/privoxy.nix
services.privoxy.settings
This option is mapped to the main Privoxy configuration file. Check out the Privoxy user manual at https://www.privoxy.org/user-manual/config.html for available settings and documentation.
Note
Repeated settings can be represented by using a list.
Type: open submodule of privoxy configuration type. The format consists of an attribute set of settings. Each setting can be either a value (integer, string, boolean or path) or a list of such values.
Default: { }
Example:
{ # Listen on IPv6 only
listen-address = "[::]:8118";
# Forward .onion requests to Tor
forward-socks5 = ".onion localhost:9050 .";
# Log redirects and filters
debug = [ 128 64 ];
# This is equivalent to writing these lines
# in the Privoxy configuration file:
# debug 128
# debug 64
}
Declared by: nixos/modules/services/networking/privoxy.nix
services.privoxy.settings.actionsfile
List of paths to Privoxy action files. These paths may either be absolute or relative to the privoxy configuration directory.
Type: list of string
Default:
[
"match-all.action"
"default.action"
]
Declared by: nixos/modules/services/networking/privoxy.nix
services.privoxy.settings.enable-edit-actions
Whether the web-based actions file editor may be used.
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/privoxy.nix
services.privoxy.settings.filterfile
List of paths to Privoxy filter files. These paths may either be absolute or relative to the privoxy configuration directory.
Type: list of string
Default:
[
"default.filter"
]
Declared by: nixos/modules/services/networking/privoxy.nix
services.privoxy.settings.listen-address
Pair of address:port the proxy server is listening to.
Type: string or list of string
Default: "127.0.0.1:8118"
Declared by: nixos/modules/services/networking/privoxy.nix
services.privoxy.userActions
Actions to be included in a user.action file. This
will have a higher priority and can be used to override all other
actions.
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/networking/privoxy.nix
services.privoxy.userFilters
Filters to be included in a user.filter file. This
will have a higher priority and can be used to override all other
filters definitions.
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/networking/privoxy.nix
services.prometheus.alertmanager-ntfy.enable
Whether to enable alertmanager-ntfy.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-ntfy.nix
services.prometheus.alertmanager-ntfy.extraConfigFiles
Config files to merge into the settings defined in services (P). This is useful to avoid putting secrets into the Nix store. See https://github.com/alexbakker/alertmanager-ntfy for more information.
Type: list of absolute path
Default: [ ]
Example:
[
"/run/secrets/alertmanager-ntfy.yml"
]
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-ntfy.nix
services.prometheus.alertmanager-ntfy.package
The alertmanager-ntfy package to use.
Type: package
Default: pkgs.alertmanager-ntfy
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-ntfy.nix
services.prometheus.alertmanager-ntfy.settings
Configuration of alertmanager-ntfy. See https://github.com/alexbakker/alertmanager-ntfy for more information.
Type: open submodule of (YAML 1.1 value)
Default: { }
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-ntfy.nix
services.prometheus.alertmanager-ntfy.settings.http.addr
The address to listen on.
Type: string
Default: "127.0.0.1:8000"
Example: ":8000"
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-ntfy.nix
services.prometheus.alertmanager-ntfy.settings.ntfy.baseurl
The base URL of the ntfy.sh instance.
Type: string
Example: "https://ntfy.sh"
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-ntfy.nix
services.prometheus.alertmanager-ntfy.settings.ntfy.notification.priority
The ntfy.sh message priority (see https://docs.ntfy.sh/publish/#message-priority for more information). Can either be a hardcoded string or a gval expression that evaluates to a string.
Type: string
Default: "status == \"firing\" ? \"high\" : \"default\""
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-ntfy.nix
services.prometheus.alertmanager-ntfy.settings.ntfy.notification.tags
Tags to add to ntfy.sh messages. See https://docs.ntfy.sh/publish/#tags-emojis for more information.
Type: list of (submodule)
Default:
[
{
condition = "status == \"resolved\"";
tag = "green_circle";
}
{
condition = "status == \"firing\"";
tag = "red_circle";
}
]
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-ntfy.nix
services.prometheus.alertmanager-ntfy.settings.ntfy.notification.tags.*.condition
The condition under which this tag should be added. Tags with no condition are always included.
Type: null or string
Default: null
Example: "status == \"firing\""
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-ntfy.nix
services.prometheus.alertmanager-ntfy.settings.ntfy.notification.tags.*.tag
The tag to add. See https://docs.ntfy.sh/emojis for a list of all supported emojis.
Type: string
Example: "rotating_light"
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-ntfy.nix
services.prometheus.alertmanager-ntfy.settings.ntfy.notification.templates.description
The ntfy.sh message description template.
Type: string
Default:
''
{{ index .Annotations "description" }}
''
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-ntfy.nix
services.prometheus.alertmanager-ntfy.settings.ntfy.notification.templates.title
The ntfy.sh message title template.
Type: string
Default:
''
{{ if eq .Status "resolved" }}Resolved: {{ end }}{{ index .Annotations "summary" }}
''
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-ntfy.nix
services.prometheus.alertmanager-ntfy.settings.ntfy.notification.topic
Note: when using ntfy.sh and other public instances
it is recommended to set this option to an empty string and set the actual topic via
services (P) since
the topic in ntfy.sh is essentially a password.
The topic to which alerts should be published. Can either be a hardcoded string or a gval expression that evaluates to a string.
Type: string
Example: "alertmanager"
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-ntfy.nix
services.prometheus.alertmanager.checkConfig
Check configuration with amtool check-config. The call to amtool is
subject to sandboxing by Nix.
If you use credentials stored in external files
(environmentFile, etc),
they will not be visible to amtool
and it will report errors, despite a correct configuration.
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager.nix
services.prometheus.alertmanager.clusterPeers
Initial peers for HA cluster.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager.nix
services.prometheus.alertmanager.configText
Alertmanager configuration as YAML text. If non-null, this option defines the text that is written to alertmanager.yml. If null, the contents of alertmanager.yml is generated from the structured config options.
The contents of the resulting config file are processed using envsubst.
$ needs to be escaped as $$ to be preserved.
Type: null or strings concatenated with "\n"
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager.nix
services.prometheus.alertmanager.configuration
Alertmanager configuration as nix attribute set.
The contents of the resulting config file are processed using envsubst.
$ needs to be escaped as $$ to be preserved.
Type: null or (attribute set)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager.nix
services.prometheus.alertmanager.enable
Whether to enable Prometheus Alertmanager.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager.nix
services.prometheus.alertmanager.environmentFile
File to load as environment file. Environment variables
from this file will be interpolated into the config file
using envsubst with this syntax:
$ENVIRONMENT ${VARIABLE}
Type: null or absolute path
Default: null
Example: "/root/alertmanager.env"
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager.nix
services.prometheus.alertmanager.extraFlags
Extra commandline options when launching the Alertmanager.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager.nix
services.prometheus.alertmanager.listenAddress
Address to listen on for the web interface and API. Empty string will listen on all interfaces. "localhost" will listen on 127.0.0.1 (but not ::1).
Type: string
Default: ""
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager.nix
services.prometheus.alertmanager.logFormat
If set use a syslog logger or JSON logging.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager.nix
services.prometheus.alertmanager.logLevel
Only log messages with the given severity or above.
Type: one of "debug", "info", "warn", "error", "fatal"
Default: "warn"
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager.nix
services.prometheus.alertmanager.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager.nix
services.prometheus.alertmanager.package
The prometheus-alertmanager package to use.
Type: package
Default: pkgs.prometheus-alertmanager
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager.nix
services.prometheus.alertmanager.port
Port to listen on for the web interface and API.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9093
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager.nix
services.prometheus.alertmanager.webExternalUrl
The URL under which Alertmanager is externally reachable (for example, if Alertmanager is served via a reverse proxy). Used for generating relative and absolute links back to Alertmanager itself. If the URL has a path portion, it will be used to prefix all HTTP endoints served by Alertmanager. If omitted, relevant URL components will be derived automatically.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager.nix
services.prometheus.alertmanagerGotify.bindAddress
The address the server will listen on (bind address).
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.debug
Enables extended logs for debugging purposes. Should be disabled in productive mode.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.defaultPriority
The default priority for messages sent to gotify.
Type: signed integer
Default: 5
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.dispatchErrors
When enabled, alerts will be tried to dispatch with an error message regarding faulty templating or missing fields to help debugging.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.enable
Whether to enable alertmagager-gotify.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.environmentFile
File containing additional config environment variables for alertmanager-gotify-bridge. This is especially for secrets like GOTIFY_TOKEN and AUTH_PASSWORD.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.extendedDetails
When enabled, alerts are presented in HTML format and include colorized status (FIR|RES), alert start time, and a link to the generator of the alert.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.gotifyEndpoint.host
The hostname or ip your gotify endpoint is running.
Type: string
Default: "127.0.0.1"
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.gotifyEndpoint.port
The port your gotify endpoint is running.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 443
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.gotifyEndpoint.tls
If your gotify endpoint uses https, leave this option set to default
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.messageAnnotation
Annotation holding the alert message.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.metrics.namespace
The namescape of the metrics.
Type: string
Default: "alertmanager-gotify-bridge"
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.metrics.path
The path under which the metrics will be exposed.
Type: string
Default: "/metrics"
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.metrics.username
The username used to access your metrics.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.openFirewall
Opens the bridge port in the firewall.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.package
The alertmanager-gotify-bridge package to use.
Type: package
Default: pkgs.alertmanager-gotify-bridge
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.port
The local port the bridge is listening on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8080
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.priorityAnnotation
Annotation holding the priority of the alert.
Type: string
Default: "priority"
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.timeout
The time between sending a message and the timeout.
Type: positive integer, meaning >0
Default: 5
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.titleAnnotation
Annotation holding the title of the alert
Type: string
Default: "summary"
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerGotify.webhookPath
The URL path to handle requests on.
Type: string
Default: "/gotify_webhook"
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-gotify-bridge.nix
services.prometheus.alertmanagerIrcRelay.enable
Whether to enable Alertmanager IRC Relay.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-irc-relay.nix
services.prometheus.alertmanagerIrcRelay.extraFlags
Extra command line options to pass to alertmanager-irc-relay.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-irc-relay.nix
services.prometheus.alertmanagerIrcRelay.package
The alertmanager-irc-relay package to use.
Type: package
Default: pkgs.alertmanager-irc-relay
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-irc-relay.nix
services.prometheus.alertmanagerIrcRelay.settings
Configuration for Alertmanager IRC Relay as a Nix attribute set. For a reference, check out the example configuration and the source code.
Note: The webhook's URL MUST point to the IRC channel where the message
should be posted. For #mychannel from the example, this would be
http://localhost:8080/mychannel.
Type: YAML 1.1 value
Default: null
Example:
{
http_host = "localhost";
http_port = 8000;
irc_host = "irc.example.com";
irc_port = 7000;
irc_nickname = "myalertbot";
irc_channels = [
{ name = "#mychannel"; }
];
}
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-irc-relay.nix
services.prometheus.alertmanagerNotificationQueueCapacity
The capacity of the queue for pending alert manager notifications.
Type: signed integer
Default: 10000
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.alertmanagerWebhookLogger.enable
Whether to enable Alertmanager Webhook Logger.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-webhook-logger.nix
services.prometheus.alertmanagerWebhookLogger.extraFlags
Extra command line options to pass to alertmanager-webhook-logger.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-webhook-logger.nix
services.prometheus.alertmanagerWebhookLogger.package
The alertmanager-webhook-logger package to use.
Type: package
Default: pkgs.alertmanager-webhook-logger
Declared by: nixos/modules/services/monitoring/prometheus/alertmanager-webhook-logger.nix
services.prometheus.alertmanagers
A list of alertmanagers to send alerts to. See the official documentation for more information.
Type: list of (attribute set)
Default: [ ]
Example:
[ {
scheme = "https";
path_prefix = "/alertmanager";
static_configs = [ {
targets = [
"prometheus.domain.tld"
];
} ];
} ]
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.checkConfig
Check configuration with promtool check. The call to promtool is
subject to sandboxing by Nix.
If you use credentials stored in external files
(password_file, bearer_token_file, etc),
they will not be visible to promtool
and it will report errors, despite a correct configuration.
To resolve this, you may set this option to "syntax-only"
in order to only syntax check the Prometheus configuration.
Type: boolean or value "syntax-only" (singular enum)
Default: true
Example: "syntax-only"
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.configText
If non-null, this option defines the text that is written to prometheus.yml. If null, the contents of prometheus.yml is generated from the structured config options.
Type: null or strings concatenated with "\n"
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.enable
Whether to enable Prometheus monitoring daemon.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.enableAgentMode
Whether to enable agent mode.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.enableReload
Reload prometheus when configuration file changes (instead of restart).
The following property holds: switching to a configuration
(switch-to-configuration) that changes the prometheus
configuration only finishes successfully when prometheus has finished
loading the new configuration.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.exporters
Prometheus exporter configuration
Type: submodule
Default: { }
Example:
{
node = {
enable = true;
enabledCollectors = [ "systemd" ];
};
varnish.enable = true;
}
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.apcupsd.apcupsdAddress
Address of the apcupsd Network Information Server (NIS).
Type: string
Default: ":3551"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.apcupsd.apcupsdNetwork
Network of the apcupsd Network Information Server (NIS): one of "tcp", "tcp4", or "tcp6".
Type: one of "tcp", "tcp4", "tcp6"
Default: "tcp"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.apcupsd.enable
Whether to enable the prometheus apcupsd exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.apcupsd.extraFlags
Extra commandline options to pass to the apcupsd exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.apcupsd.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.apcupsd.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9162"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.apcupsd.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.apcupsd.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9162 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.apcupsd.group
Group under which the apcupsd exporter shall be run.
Type: string
Default: "apcupsd-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.apcupsd.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.apcupsd.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.apcupsd.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9162
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.apcupsd.user
User name under which the apcupsd exporter shall be run.
Type: string
Default: "apcupsd-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.artifactory.artiAccessToken
Access token for authentication against JFrog Artifactory API. One of the password or access token needs to be set.
Type: string
Default: ""
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.artifactory.artiPassword
Password for authentication against JFrog Artifactory API. One of the password or access token needs to be set.
Type: string
Default: ""
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.artifactory.artiUsername
Username for authentication against JFrog Artifactory API.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.artifactory.enable
Whether to enable the prometheus artifactory exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.artifactory.extraFlags
Extra commandline options to pass to the artifactory exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.artifactory.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.artifactory.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9531"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.artifactory.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.artifactory.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9531 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.artifactory.group
Group under which the artifactory exporter shall be run.
Type: string
Default: "artifactory-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.artifactory.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.artifactory.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.artifactory.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9531
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.artifactory.scrapeUri
URI on which to scrape JFrog Artifactory.
Type: string
Default: "http://localhost:8081/artifactory"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.artifactory.user
User name under which the artifactory exporter shall be run.
Type: string
Default: "artifactory-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bind.bindGroups
List of statistics to collect. Available: [server, view, tasks]
Type: list of (one of "server", "view", "tasks")
Default:
[
"server"
"view"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bind.bindTimeout
Timeout for trying to get stats from Bind.
Type: string
Default: "10s"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bind.bindURI
HTTP API address of a BIND server.
Type: string
Default: "http://localhost:8053/"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bind.bindVersion
BIND statistics version. Defaults to JSON.
Type: one of "json", "xml", "xml.v3", "auto"
Default: "json"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bind.enable
Whether to enable the prometheus bind exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bind.extraFlags
Extra commandline options to pass to the bind exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bind.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.bind.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9119"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bind.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.bind.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9119 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bind.group
Group under which the bind exporter shall be run.
Type: string
Default: "bind-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bind.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bind.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bind.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9119
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bind.user
User name under which the bind exporter shall be run.
Type: string
Default: "bind-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bird.birdSocket
Path to BIRD2 (or BIRD1 v4) socket.
Type: absolute path
Default: "/run/bird/bird.ctl"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bird.birdVersion
Specifies whether BIRD1 or BIRD2 is in use.
Type: one of 1, 2
Default: 2
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bird.enable
Whether to enable the prometheus bird exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bird.extraFlags
Extra commandline options to pass to the bird exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bird.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.bird.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9324"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bird.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.bird.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9324 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bird.group
Group under which the bird exporter shall be run.
Type: string
Default: "bird-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bird.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bird.newMetricFormat
Enable the new more-generic metric format.
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bird.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bird.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9324
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bird.user
User name under which the bird exporter shall be run.
Type: string
Default: "bird-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bitcoin.enable
Whether to enable the prometheus bitcoin exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bitcoin.extraEnv
Extra environment variables for the exporter.
Type: attribute set of string
Default: { }
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bitcoin.extraFlags
Extra commandline options to pass to the bitcoin exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bitcoin.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.bitcoin.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9332"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bitcoin.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.bitcoin.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9332 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bitcoin.group
Group under which the bitcoin exporter shall be run.
Type: string
Default: "bitcoin-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bitcoin.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bitcoin.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bitcoin.package
The prometheus-bitcoin-exporter package to use.
Type: package
Default: pkgs.prometheus-bitcoin-exporter
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bitcoin.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9332
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bitcoin.refreshSeconds
How often to ask bitcoind for metrics.
Type: unsigned integer, meaning >=0
Default: 300
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bitcoin.rpcHost
RPC host.
Type: string
Default: "localhost"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bitcoin.rpcPasswordFile
File containing RPC password.
Type: absolute path
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bitcoin.rpcPort
RPC port number.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8332
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bitcoin.rpcScheme
Whether to connect to bitcoind over http or https.
Type: one of "http", "https"
Default: "http"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bitcoin.rpcUser
RPC user name.
Type: string
Default: "bitcoinrpc"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.bitcoin.user
User name under which the bitcoin exporter shall be run.
Type: string
Default: "bitcoin-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.blackbox.configFile
Path to configuration file.
Type: absolute path
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.blackbox.enable
Whether to enable the prometheus blackbox exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.blackbox.enableConfigCheck
Whether to run a correctness check for the configuration file. This depends on the configuration file residing in the nix-store. Paths passed as string will be copied to the store.
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.blackbox.extraFlags
Extra commandline options to pass to the blackbox exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.blackbox.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.blackbox.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9115"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.blackbox.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.blackbox.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9115 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.blackbox.group
Group under which the blackbox exporter shall be run.
Type: string
Default: "blackbox-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.blackbox.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.blackbox.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.blackbox.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9115
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.blackbox.user
User name under which the blackbox exporter shall be run.
Type: string
Default: "blackbox-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.borgmatic.configFile
The path to the borgmatic config file
Type: absolute path
Default: "/etc/borgmatic/config.yaml"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.borgmatic.enable
Whether to enable the prometheus borgmatic exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.borgmatic.extraFlags
Extra commandline options to pass to the borgmatic exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.borgmatic.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.borgmatic.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9996"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.borgmatic.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.borgmatic.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9996 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.borgmatic.group
Group under which the borgmatic exporter shall be run.
Type: string
Default: "borgmatic-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.borgmatic.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.borgmatic.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.borgmatic.package
The prometheus-borgmatic-exporter package to use.
Type: package
Default: pkgs.prometheus-borgmatic-exporter
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.borgmatic.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9996
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.borgmatic.user
User name under which the borgmatic exporter shall be run.
Type: string
Default: "borgmatic-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.buildkite-agent.enable
Whether to enable the prometheus buildkite-agent exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.buildkite-agent.endpoint
The Buildkite Agent API endpoint.
Type: string
Default: "https://agent.buildkite.com/v3"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.buildkite-agent.extraFlags
Extra commandline options to pass to the buildkite-agent exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.buildkite-agent.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.buildkite-agent.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9876"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.buildkite-agent.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.buildkite-agent.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9876 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.buildkite-agent.group
Group under which the buildkite-agent exporter shall be run.
Type: string
Default: "buildkite-agent-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.buildkite-agent.interval
How often to update metrics.
Type: string
Default: "30s"
Example: "1min"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.buildkite-agent.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.buildkite-agent.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.buildkite-agent.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9876
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.buildkite-agent.queues
Which specific queues to process.
Type: null or (list of string)
Default: null
Example: [ "my-queue1" "my-queue2" ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.buildkite-agent.tokenPath
The token from your Buildkite "Agents" page.
A run-time path to the token file, which is supposed to be provisioned outside of Nix store.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.buildkite-agent.user
User name under which the buildkite-agent exporter shall be run.
Type: string
Default: "buildkite-agent-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.chrony.chronyServerAddress
ChronyServerAddress of the chrony server side command port. (Not enabled by default.) Defaults to the local unix socket.
Type: string
Default: "unix:///run/chrony/chronyd.sock"
Example:
[
"192.82.0.1:323"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.chrony.disabledCollectors
Collectors to disable which are enabled by default. Disable sources.with-ntpdata for network scraper. Option requires unix socket.
Type: list of string
Default: [ ]
Example:
[
"sources.with-ntpdata"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.chrony.enable
Whether to enable the prometheus chrony exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.chrony.enabledCollectors
Collectors to enable. Currently all collectors are enabled by default.
Type: list of string
Default:
[
"tracking"
"sources"
"sources.with-ntpdata"
"serverstats"
"dns-lookups"
]
Example:
[
"dns-lookups"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.chrony.extraFlags
Extra commandline options to pass to the chrony exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.chrony.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.chrony.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9123"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.chrony.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.chrony.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9123 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.chrony.group
Group under which the chrony exporter shall be run. This allows the exporter to talk to chrony using a unix socket, which is owned by chrony group. The service startup with the default group chrony will fail without local chrony instance.
Type: string
Default: "chrony"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.chrony.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.chrony.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.chrony.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9123
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.chrony.user
User name under which the chrony exporter shall be run. This allows the exporter to talk to chrony using a unix socket, which is owned by chrony. The exporter startup with the default user chrony will fail without local chrony instance.
Type: string
Default: "chrony"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.collectd.collectdBinary.authFile
File mapping user names to pre-shared keys (passwords).
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.collectd.collectdBinary.enable
Whether to enable collectd binary protocol receiver.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.collectd.collectdBinary.listenAddress
Address to listen on for binary network packets.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.collectd.collectdBinary.port
Network address on which to accept collectd binary network packets.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 25826
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.collectd.collectdBinary.securityLevel
Minimum required security level for accepted packets.
Type: one of "None", "Sign", "Encrypt"
Default: "None"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.collectd.enable
Whether to enable the prometheus collectd exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.collectd.extraFlags
Extra commandline options to pass to the collectd exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.collectd.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.collectd.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9103"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.collectd.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.collectd.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9103 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.collectd.group
Group under which the collectd exporter shall be run.
Type: string
Default: "collectd-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.collectd.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.collectd.logFormat
Set the log format.
Type: one of "logfmt", "json"
Default: "logfmt"
Example: "json"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.collectd.logLevel
Only log messages with the given severity or above.
Type: one of "debug", "info", "warn", "error", "fatal"
Default: "info"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.collectd.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.collectd.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9103
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.collectd.user
User name under which the collectd exporter shall be run.
Type: string
Default: "collectd-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.deluge.delugeHost
Hostname where deluge server is running.
Type: string
Default: "localhost"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.deluge.delugePassword
Password to connect to deluge server.
This stores the password unencrypted in the nix store and is thus considered unsafe. Prefer using the delugePasswordFile option.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.deluge.delugePasswordFile
File containing the password to connect to deluge server.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.deluge.delugePort
Port where deluge server is listening.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 58846
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.deluge.delugeUser
User to connect to deluge server.
Type: string
Default: "localclient"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.deluge.enable
Whether to enable the prometheus deluge exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.deluge.exportPerTorrentMetrics
Enable per-torrent metrics.
This may significantly increase the number of time series depending on the number of torrents in your Deluge instance.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.deluge.extraFlags
Extra commandline options to pass to the deluge exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.deluge.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.deluge.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9354"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.deluge.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.deluge.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9354 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.deluge.group
Group under which the deluge exporter shall be run.
Type: string
Default: "deluge-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.deluge.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.deluge.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.deluge.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9354
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.deluge.user
User name under which the deluge exporter shall be run.
Type: string
Default: "deluge-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.debug
Whether to declare enable --debug.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.deduplicationMaxSeconds
How long individual report IDs will be remembered to avoid counting double delivered reports twice.
Type: unsigned integer, meaning >=0
Default: "7 days (in seconds)"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.enable
Whether to enable the prometheus dmarc exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.extraFlags
Extra commandline options to pass to the dmarc exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.dmarc.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9797"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.dmarc.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9797 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.folders.done
IMAP mailbox that successfully processed reports are moved to.
Type: string
Default: "Archive"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.folders.error
IMAP mailbox that emails are moved to that could not be processed.
Type: string
Default: "Invalid"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.folders.inbox
IMAP mailbox that is checked for incoming DMARC aggregate reports
Type: string
Default: "INBOX"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.group
Group under which the dmarc exporter shall be run.
Type: string
Default: "dmarc-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.imap.host
Hostname of IMAP server to connect to.
Type: string
Default: "localhost"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.imap.passwordFile
File containing the login password for the IMAP connection.
Type: string
Example: "/run/secrets/dovecot_pw"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.imap.port
Port of the IMAP server to connect to.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 993
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.imap.username
Login username for the IMAP connection.
Type: string
Example: "postmaster@example.org"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.pollIntervalSeconds
How often to poll the IMAP server in seconds.
Type: unsigned integer, meaning >=0
Default: 60
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9797
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dmarc.user
User name under which the dmarc exporter shall be run.
Type: string
Default: "dmarc-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnsmasq.dnsmasqListenAddress
Address on which dnsmasq listens.
Type: string
Default: "localhost:53"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnsmasq.enable
Whether to enable the prometheus dnsmasq exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnsmasq.extraFlags
Extra commandline options to pass to the dnsmasq exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnsmasq.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.dnsmasq.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9153"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnsmasq.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.dnsmasq.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9153 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnsmasq.group
Group under which the dnsmasq exporter shall be run.
Type: string
Default: "dnsmasq-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnsmasq.leasesPath
Path to the dnsmasq.leases file.
Type: absolute path
Default: "/var/lib/dnsmasq/dnsmasq.leases"
Example: "/var/lib/misc/dnsmasq.leases"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnsmasq.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnsmasq.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnsmasq.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9153
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnsmasq.user
User name under which the dnsmasq exporter shall be run.
Type: string
Default: "dnsmasq-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnssec.configuration
dnssec exporter configuration as nix attribute set.
See https://github.com/chrj/prometheus-dnssec-exporter/blob/master/README.md for the description of the configuration file format.
Type: null or (attribute set)
Default: null
Example:
{
records = [
{
zone = "ietf.org";
record = "@";
type = "SOA";
}
{
zone = "verisigninc.com";
record = "@";
type = "SOA";
}
];
}
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnssec.enable
Whether to enable the prometheus dnssec exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnssec.extraFlags
Extra commandline options when launching Prometheus.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnssec.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.dnssec.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9204"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnssec.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.dnssec.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9204 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnssec.group
Group under which the dnssec exporter shall be run.
Type: string
Default: "dnssec-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnssec.listenAddress
Listen address as host IP and port definition.
Type: null or string
Default: null
Example: ":9204"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnssec.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnssec.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9204
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnssec.resolvers
DNSSEC capable resolver to be used for the check.
Type: list of string
Default: [ ]
Example:
[
"0.0.0.0:53"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnssec.timeout
DNS request timeout duration.
Type: null or string
Default: null
Example: "10s"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dnssec.user
User name under which the dnssec exporter shall be run.
Type: string
Default: "dnssec-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.domain.enable
Whether to enable the prometheus domain exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.domain.extraFlags
Extra commandline options to pass to the domain exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.domain.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.domain.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9222"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.domain.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.domain.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9222 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.domain.group
Group under which the domain exporter shall be run.
Type: string
Default: "domain-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.domain.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.domain.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.domain.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9222
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.domain.user
User name under which the domain exporter shall be run.
Type: string
Default: "domain-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dovecot.enable
Whether to enable the prometheus dovecot exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dovecot.extraFlags
Extra commandline options to pass to the dovecot exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dovecot.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.dovecot.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9166"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dovecot.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.dovecot.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9166 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dovecot.group
Group under which the dovecot exporter shall be run.
Type: string
Default: "dovecot-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dovecot.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dovecot.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dovecot.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9166
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dovecot.scopes
Stats scopes to query.
Type: list of string
Default:
[
"user"
]
Example:
[
"user"
"global"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dovecot.socketPath
Path under which the stats socket is placed. The user/group under which the exporter runs, should be able to access the socket in order to scrape the metrics successfully.
Please keep in mind that the stats module has changed in Dovecot 2.3+ which is not compatible with this exporter.
The following extra config has to be passed to Dovecot to ensure that recent versions work with this exporter:
{
services.prometheus.exporters.dovecot.enable = true;
services.prometheus.exporters.dovecot.socketPath = "/var/run/dovecot2/old-stats";
services.dovecot2.mailPlugins.globally.enable = [ "old_stats" ];
services.dovecot2.extraConfig = ''
service old-stats {
unix_listener old-stats {
user = dovecot-exporter
group = dovecot-exporter
mode = 0660
}
fifo_listener old-stats-mail {
mode = 0660
user = dovecot
group = dovecot
}
fifo_listener old-stats-user {
mode = 0660
user = dovecot
group = dovecot
}
}
plugin {
old_stats_refresh = 30 secs
old_stats_track_cmds = yes
}
'';
}
Type: absolute path
Default: "/var/run/dovecot/stats"
Example: "/var/run/dovecot2/old-stats"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dovecot.telemetryPath
Path under which to expose metrics.
Type: string
Default: "/metrics"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.dovecot.user
User name under which the dovecot exporter shall be run.
Type: string
Default: "dovecot-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ebpf.enable
Whether to enable the prometheus ebpf exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ebpf.extraFlags
Extra commandline options to pass to the ebpf exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ebpf.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.ebpf.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9435"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ebpf.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.ebpf.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9435 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ebpf.group
Group under which the ebpf exporter shall be run.
Type: string
Default: "ebpf-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ebpf.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ebpf.names
List of eBPF programs to load
Type: list of string
Default: [ ]
Example:
[
"timers"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ebpf.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ebpf.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9435
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ebpf.user
User name under which the ebpf exporter shall be run.
Type: string
Default: "ebpf-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.debug
Enable debug log messages. Disabled by default. Set to "1" to enable.
Type: string
Default: "0"
Example: "1"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.ecoflowAccessKeyFile
Path to the file with your personal api access string from the Ecoflow development website https://developer-eu.ecoflow.com. Do to share or commit your plaintext scecrets to a public repo use: agenix or soaps.
Type: absolute path
Default: "/etc/ecoflow-access-key"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.ecoflowDevicesFile
File must contain one line, example: R3300000,R3400000,NC430000,.... The list of devices serial numbers separated by comma. For instance: SN1,SN2,SN3. Instead of "devicesFile" you can specify "devicesPrettynamesFile" which will also work. You can specify both. Do to share or commit your plaintext serial numbers to a public repo use: agenix or soaps.
Type: absolute path
Default: "/etc/ecoflow-devices"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.ecoflowDevicesPrettyNamesFile
File must contain one line, example: {"R3300000":"Delta 2","R3400000":"Delta Pro",...} The key/value map of custom names for your devices. Key is a serial number, value is a device name you want to see in Grafana Dashboard. It's helpful to see a meaningful name in Grafana dashboard instead of a serialnumber. Do to share or commit your plaintext serial numbers to a public repo use: agenix or soaps.
Type: absolute path
Default: "/etc/ecoflow-devices-pretty-names"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.ecoflowEmailFile
Path to the file with your personal ecoflow app login email address. Do to share or commit your plaintext scecrets to a public repo use: agenix or soaps.
Type: absolute path
Default: "/etc/ecoflow-email"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.ecoflowPasswordFile
Path to the file with your personal ecoflow app login email password. Do to share or commit your plaintext passwords to a public repo use: agenix or soaps here!
Type: absolute path
Default: "/etc/ecoflow-password"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.ecoflowSecretKeyFile
Path to the file with your personal api secret string from the Ecoflow development website https://developer-eu.ecoflow.com. Do to share or commit your plaintext scecrets to a public repo use: agenix or soaps.
Type: absolute path
Default: "/etc/ecoflow-secret-key"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.enable
Whether to enable the prometheus ecoflow exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.exporterType
The type of exporter you'd like to use. Possible values: "rest" and "mqtt". Default value is "rest". Choose "rest" for the ecoflow online cloud api use "rest" and define: accessKey, secretKey. Choose "mqtt" for the lan realtime integration use "mqtt" and define: email, password, devices.
Type: one of "rest", "mqtt"
Default: "rest"
Example: "mqtt"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.extraFlags
Extra commandline options to pass to the ecoflow exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.ecoflow.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 2112"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.ecoflow.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 2112 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.group
Group under which the ecoflow exporter shall be run.
Type: string
Default: "ecoflow-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.mqttDeviceOfflineThreshold
The threshold in seconds which indicates how long we should wait for a metric message from MQTT broker. Default value: 60 seconds. If we don't receive message within 60 seconds we consider that device is offline. If we don't receive messages within the threshold for all devices, we'll try to reconnect to the MQTT broker. There is a strange behavior that MQTT stop sends messages if you open Ecoflow mobile app and then close it).
Type: positive integer, meaning >0
Default: 60
Example: 120
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 2112
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.prefix
The prefix that will be added to all metrics. Default value is ecoflow. For instance metric bms_bmsStatus.minCellTemp will be exported to prometheus as ecoflow.bms_bmsStatus.minCellTemp. With default value "ecoflow" you can use Grafana Dashboard with ID 17812 without any changes.
Type: string
Default: "ecoflow"
Example: "ecoflow_privateSite"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.scrapingInterval
Scrapping interval in seconds. How often should the exporter execute requests to Ecoflow Rest API in order to get the data. Default value is 30 seconds. Align this value with your prometheus scraper interval settings.
Type: positive integer, meaning >0
Default: 30
Example: 120
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ecoflow.user
User name under which the ecoflow exporter shall be run.
Type: string
Default: "ecoflow-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.elasticsearch.enable
Whether to enable the prometheus elasticsearch exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.elasticsearch.environmentFile
Path to an environment file, as defined in systemd.exec(5),
used to pass credentials to the exporter without exposing them in the
process arguments. It should contain either ES_USERNAME and
ES_PASSWORD, or ES_API_KEY.
Type: null or absolute path
Default: null
Example: "/run/secrets/elasticsearch-exporter.env"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.elasticsearch.extraFlags
Extra commandline options to pass to the elasticsearch exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.elasticsearch.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.elasticsearch.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9114"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.elasticsearch.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.elasticsearch.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9114 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.elasticsearch.group
Group under which the elasticsearch exporter shall be run.
Type: string
Default: "elasticsearch-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.elasticsearch.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.elasticsearch.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.elasticsearch.package
The prometheus-elasticsearch-exporter package to use.
Type: package
Default: pkgs.prometheus-elasticsearch-exporter
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.elasticsearch.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9114
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.elasticsearch.url
URI of the Elasticsearch (or OpenSearch) node to scrape, passed as
--es.uri. Any credentials embedded here are overridden by the
ES_USERNAME/ES_PASSWORD or ES_API_KEY environment variables when
environmentFile is set.
Type: string
Default: "http://localhost:9200"
Example: "https://localhost:9200"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.elasticsearch.user
User name under which the elasticsearch exporter shall be run.
Type: string
Default: "elasticsearch-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-bazarr.apiKeyFile
File containing the api-key.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-bazarr.enable
Whether to enable the prometheus exportarr-bazarr exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-bazarr.environment
See the configuration guide for available options.
Type: attribute set of string
Default: { }
Example:
{
PROWLARR__BACKFILL = true;
}
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-bazarr.extraFlags
Extra commandline options to pass to the exportarr-bazarr exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-bazarr.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.exportarr-bazarr.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9708"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-bazarr.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.exportarr-bazarr.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9708 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-bazarr.group
Group under which the exportarr-bazarr exporter shall be run.
Type: string
Default: "exportarr-bazarr-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-bazarr.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-bazarr.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-bazarr.package
The exportarr package to use.
Type: package
Default: pkgs.exportarr
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-bazarr.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9708
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-bazarr.url
The full URL to Sonarr, Radarr, or Lidarr.
Type: string
Default: "http://127.0.0.1"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-bazarr.user
User name under which the exportarr-bazarr exporter shall be run.
Type: string
Default: "exportarr-bazarr-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-lidarr.apiKeyFile
File containing the api-key.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-lidarr.enable
Whether to enable the prometheus exportarr-lidarr exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-lidarr.environment
See the configuration guide for available options.
Type: attribute set of string
Default: { }
Example:
{
PROWLARR__BACKFILL = true;
}
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-lidarr.extraFlags
Extra commandline options to pass to the exportarr-lidarr exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-lidarr.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.exportarr-lidarr.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9708"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-lidarr.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.exportarr-lidarr.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9708 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-lidarr.group
Group under which the exportarr-lidarr exporter shall be run.
Type: string
Default: "exportarr-lidarr-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-lidarr.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-lidarr.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-lidarr.package
The exportarr package to use.
Type: package
Default: pkgs.exportarr
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-lidarr.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9708
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-lidarr.url
The full URL to Sonarr, Radarr, or Lidarr.
Type: string
Default: "http://127.0.0.1"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-lidarr.user
User name under which the exportarr-lidarr exporter shall be run.
Type: string
Default: "exportarr-lidarr-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-prowlarr.apiKeyFile
File containing the api-key.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-prowlarr.enable
Whether to enable the prometheus exportarr-prowlarr exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-prowlarr.environment
See the configuration guide for available options.
Type: attribute set of string
Default: { }
Example:
{
PROWLARR__BACKFILL = true;
}
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-prowlarr.extraFlags
Extra commandline options to pass to the exportarr-prowlarr exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-prowlarr.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.exportarr-prowlarr.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9708"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-prowlarr.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.exportarr-prowlarr.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9708 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-prowlarr.group
Group under which the exportarr-prowlarr exporter shall be run.
Type: string
Default: "exportarr-prowlarr-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-prowlarr.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-prowlarr.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-prowlarr.package
The exportarr package to use.
Type: package
Default: pkgs.exportarr
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-prowlarr.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9708
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-prowlarr.url
The full URL to Sonarr, Radarr, or Lidarr.
Type: string
Default: "http://127.0.0.1"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-prowlarr.user
User name under which the exportarr-prowlarr exporter shall be run.
Type: string
Default: "exportarr-prowlarr-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-radarr.apiKeyFile
File containing the api-key.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-radarr.enable
Whether to enable the prometheus exportarr-radarr exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-radarr.environment
See the configuration guide for available options.
Type: attribute set of string
Default: { }
Example:
{
PROWLARR__BACKFILL = true;
}
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-radarr.extraFlags
Extra commandline options to pass to the exportarr-radarr exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-radarr.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.exportarr-radarr.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9708"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-radarr.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.exportarr-radarr.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9708 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-radarr.group
Group under which the exportarr-radarr exporter shall be run.
Type: string
Default: "exportarr-radarr-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-radarr.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-radarr.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-radarr.package
The exportarr package to use.
Type: package
Default: pkgs.exportarr
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-radarr.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9708
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-radarr.url
The full URL to Sonarr, Radarr, or Lidarr.
Type: string
Default: "http://127.0.0.1"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-radarr.user
User name under which the exportarr-radarr exporter shall be run.
Type: string
Default: "exportarr-radarr-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-readarr.apiKeyFile
File containing the api-key.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-readarr.enable
Whether to enable the prometheus exportarr-readarr exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-readarr.environment
See the configuration guide for available options.
Type: attribute set of string
Default: { }
Example:
{
PROWLARR__BACKFILL = true;
}
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-readarr.extraFlags
Extra commandline options to pass to the exportarr-readarr exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-readarr.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.exportarr-readarr.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9708"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-readarr.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.exportarr-readarr.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9708 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-readarr.group
Group under which the exportarr-readarr exporter shall be run.
Type: string
Default: "exportarr-readarr-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-readarr.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-readarr.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-readarr.package
The exportarr package to use.
Type: package
Default: pkgs.exportarr
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-readarr.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9708
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-readarr.url
The full URL to Sonarr, Radarr, or Lidarr.
Type: string
Default: "http://127.0.0.1"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-readarr.user
User name under which the exportarr-readarr exporter shall be run.
Type: string
Default: "exportarr-readarr-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sabnzbd.apiKeyFile
File containing the api-key.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sabnzbd.enable
Whether to enable the prometheus exportarr-sabnzbd exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sabnzbd.environment
See the configuration guide for available options.
Type: attribute set of string
Default: { }
Example:
{
PROWLARR__BACKFILL = true;
}
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sabnzbd.extraFlags
Extra commandline options to pass to the exportarr-sabnzbd exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sabnzbd.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.exportarr-sabnzbd.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9708"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sabnzbd.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.exportarr-sabnzbd.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9708 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sabnzbd.group
Group under which the exportarr-sabnzbd exporter shall be run.
Type: string
Default: "exportarr-sabnzbd-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sabnzbd.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sabnzbd.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sabnzbd.package
The exportarr package to use.
Type: package
Default: pkgs.exportarr
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sabnzbd.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9708
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sabnzbd.url
The full URL to Sonarr, Radarr, or Lidarr.
Type: string
Default: "http://127.0.0.1"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sabnzbd.user
User name under which the exportarr-sabnzbd exporter shall be run.
Type: string
Default: "exportarr-sabnzbd-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sonarr.apiKeyFile
File containing the api-key.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sonarr.enable
Whether to enable the prometheus exportarr-sonarr exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sonarr.environment
See the configuration guide for available options.
Type: attribute set of string
Default: { }
Example:
{
PROWLARR__BACKFILL = true;
}
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sonarr.extraFlags
Extra commandline options to pass to the exportarr-sonarr exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sonarr.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.exportarr-sonarr.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9708"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sonarr.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.exportarr-sonarr.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9708 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sonarr.group
Group under which the exportarr-sonarr exporter shall be run.
Type: string
Default: "exportarr-sonarr-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sonarr.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sonarr.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sonarr.package
The exportarr package to use.
Type: package
Default: pkgs.exportarr
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sonarr.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9708
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sonarr.url
The full URL to Sonarr, Radarr, or Lidarr.
Type: string
Default: "http://127.0.0.1"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.exportarr-sonarr.user
User name under which the exportarr-sonarr exporter shall be run.
Type: string
Default: "exportarr-sonarr-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fail2ban.enable
Whether to enable the prometheus fail2ban exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fail2ban.exitOnError
When set to true the exporter will immediately exit on a fail2ban socket connection error
Type: boolean
Default: true
Example: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fail2ban.extraFlags
Extra commandline options to pass to the fail2ban exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fail2ban.fail2banSocket
Path to the fail2ban server socket. Permissions will be set automatically if fail2ban runs on this system.
Type: string
Default: "config.services.fail2ban.daemonSettings.Definition.socket"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fail2ban.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.fail2ban.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9191"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fail2ban.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.fail2ban.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9191 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fail2ban.group
Group under which the fail2ban exporter shall be run.
Type: string
Default: "fail2ban-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fail2ban.host
The host that the fail2ban exporter should listen on
Type: string
Default: "127.0.0.1"
Example: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fail2ban.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fail2ban.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fail2ban.passwordFile
File that contains the password to protect endpoints with HTTP basic authentication
Type: null or absolute path
Default: null
Example: "/run/secrets/prometheus-fail2ban-exporter-password.txt"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fail2ban.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9191
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fail2ban.user
User name under which the fail2ban exporter shall be run.
Type: string
Default: "fail2ban-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fail2ban.username
Username to protect endpoints with HTTP basic authentication
Type: null or string
Default: null
Example: "admin"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fastly.configFile
Path to a fastly-exporter configuration file.
Example one can be generated with fastly-exporter --config-file-example.
Type: null or absolute path
Default: null
Example: "./fastly-exporter-config.txt"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fastly.enable
Whether to enable the prometheus fastly exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fastly.environmentFile
An environment file containg at least the FASTLY_API_TOKEN= environment variable.
Type: absolute path
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fastly.extraFlags
Extra commandline options to pass to the fastly exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fastly.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.fastly.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9118"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fastly.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.fastly.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9118 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fastly.group
Group under which the fastly exporter shall be run.
Type: string
Default: "fastly-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fastly.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fastly.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fastly.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9118
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fastly.user
User name under which the fastly exporter shall be run.
Type: string
Default: "fastly-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.flow.asn
The ASN being monitored.
Type: positive integer, meaning >0
Example: 65542
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.flow.brokers
List of Kafka brokers to connect to.
Type: list of string
Default: [ ]
Example: [ "kafka.example.org:19092" ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.flow.enable
Whether to enable the prometheus flow exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.flow.extraFlags
Extra commandline options to pass to the flow exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.flow.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.flow.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9590"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.flow.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.flow.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9590 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.flow.group
Group under which the flow exporter shall be run.
Type: string
Default: "flow-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.flow.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.flow.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.flow.partitions
The number of the partitions to consume, none means all.
Type: list of signed integer
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.flow.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9590
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.flow.topic
The Kafka topic to consume from.
Type: string
Example: "pmacct.acct"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.flow.user
User name under which the flow exporter shall be run.
Type: string
Default: "flow-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritz.enable
Whether to enable the prometheus fritz exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritz.extraFlags
Extra commandline options to pass to the fritz exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritz.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.fritz.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9787"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritz.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.fritz.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9787 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritz.group
Group under which the fritz exporter shall be run.
Type: string
Default: "fritz-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritz.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritz.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritz.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9787
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritz.settings
Configuration settings for fritz-exporter.
Type: open submodule of (YAML 1.1 value)
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritz.settings.devices
Fritz!-devices to monitor using the exporter.
Type: list of (open submodule of (YAML 1.1 value))
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritz.settings.devices.*.host_info
Enable extended host info for this device. Warning: This will heavily increase scrape time.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritz.settings.devices.*.hostname
Hostname under which the target device is reachable.
Type: string
Default: "fritz.box"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritz.settings.devices.*.name
Name to use for the device.
Type: string
Default: ""
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritz.settings.devices.*.password_file
Path to a file which contains the password to authenticate with the target device. Needs to be readable by the user the exporter runs under.
Type: absolute path
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritz.settings.devices.*.username
Username to authenticate with the target device.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritz.settings.log_level
Log level to use for the exporter.
Type: one of "DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"
Default: "INFO"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritz.user
User name under which the fritz exporter shall be run.
Type: string
Default: "fritz-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritzbox.enable
Whether to enable the prometheus fritzbox exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritzbox.extraFlags
Extra commandline options to pass to the fritzbox exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritzbox.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.fritzbox.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9133"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritzbox.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.fritzbox.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9133 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritzbox.gatewayAddress
The hostname or IP of the FRITZ!Box.
Type: string
Default: "fritz.box"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritzbox.gatewayPort
The port of the FRITZ!Box UPnP service.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 49000
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritzbox.group
Group under which the fritzbox exporter shall be run.
Type: string
Default: "fritzbox-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritzbox.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritzbox.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritzbox.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9133
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.fritzbox.user
User name under which the fritzbox exporter shall be run.
Type: string
Default: "fritzbox-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.frr.disabledCollectors
Collectors to disable which are enabled by default.
Type: list of string
Default: [ ]
Example:
[
"bfd"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.frr.enable
Whether to enable the prometheus frr exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.frr.enabledCollectors
Collectors to enable. The collectors listed here are enabled in addition to the default ones.
Type: list of string
Default: [ ]
Example:
[
"vrrp"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.frr.extraFlags
Extra commandline options to pass to the frr exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.frr.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.frr.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9342"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.frr.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.frr.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9342 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.frr.group
Group under which the frr exporter shall be run. The exporter talks to frr using a unix socket, which is owned by frrvty group.
Type: string
Default: "frrvty"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.frr.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.frr.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.frr.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9342
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.frr.user
User name under which the frr exporter shall be run. The exporter talks to frr using a unix socket, which is owned by frr.
Type: string
Default: "frr"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.graphite.enable
Whether to enable the prometheus graphite exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.graphite.extraFlags
Extra commandline options to pass to the graphite exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.graphite.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.graphite.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9108"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.graphite.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.graphite.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9108 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.graphite.graphitePort
Port to use for the graphite server.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9109
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.graphite.group
Group under which the graphite exporter shall be run.
Type: string
Default: "graphite-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.graphite.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.graphite.mappingSettings
Mapping configuration for the exporter, see https://github.com/prometheus/graphite_exporter#yaml-config for available options.
Type: open submodule of (YAML 1.1 value)
Default: { }
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.graphite.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.graphite.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9108
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.graphite.user
User name under which the graphite exporter shall be run.
Type: string
Default: "graphite-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.idrac.configuration
Configuration for iDRAC exporter, as a nix attribute set.
Configuration reference: https://github.com/mrlhansen/idrac_exporter/#configuration
Mutually exclusive with configurationPath option.
Type: null or (attribute set)
Default: null
Example:
{
hosts = {
default = {
password = "password";
username = "username";
};
};
metrics = {
memory = true;
power = true;
sel = true;
sensors = true;
storage = true;
system = true;
};
retries = 1;
timeout = 10;
}
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.idrac.configurationPath
Path to the service's config file. This path can either be a computed path in /nix/store or a path in the local filesystem.
The config file should NOT be stored in /nix/store as it will contain passwords and/or keys in plain text.
Mutually exclusive with configuration option.
Configuration reference: https://github.com/mrlhansen/idrac_exporter/#configuration
Type: null or absolute path
Default: null
Example: "/etc/prometheus-idrac-exporter/idrac.yml"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.idrac.enable
Whether to enable the prometheus idrac exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.idrac.extraFlags
Extra commandline options to pass to the idrac exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.idrac.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.idrac.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9348"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.idrac.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.idrac.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9348 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.idrac.group
Group under which the idrac exporter shall be run.
Type: string
Default: "idrac-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.idrac.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.idrac.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.idrac.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9348
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.idrac.user
User name under which the idrac exporter shall be run.
Type: string
Default: "idrac-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.accounts
Accounts to monitor
Type: attribute set of (submodule)
Default: { }
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.accounts.<name>.mailaddress
Your email address (at the moment used as login name)
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.accounts.<name>.password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.accounts.<name>.serveraddress
mailserver name or address
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.accounts.<name>.serverport
imap port number (at the moment only tls connection is supported)
Type: null or signed integer
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.accounts.<name>.starttls
set to true for using STARTTLS to start a TLS connection
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.accounts.<name>.username
If empty string mailaddress value is used
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.configurationFile
File containing the configuration
Type: absolute path
Example: "/path/to/config-file"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.enable
Whether to enable the prometheus imap-mailstat exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.extraFlags
Extra commandline options to pass to the imap-mailstat exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.imap-mailstat.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 8081"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.imap-mailstat.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 8081 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.group
Group under which the imap-mailstat exporter shall be run.
Type: string
Default: "imap-mailstat-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.oldestUnseenDate
Enable metric with timestamp of oldest unseen mail
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8081
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.imap-mailstat.user
User name under which the imap-mailstat exporter shall be run.
Type: string
Default: "imap-mailstat-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.influxdb.enable
Whether to enable the prometheus influxdb exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.influxdb.extraFlags
Extra commandline options to pass to the influxdb exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.influxdb.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.influxdb.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9122"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.influxdb.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.influxdb.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9122 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.influxdb.group
Group under which the influxdb exporter shall be run.
Type: string
Default: "influxdb-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.influxdb.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.influxdb.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.influxdb.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9122
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.influxdb.sampleExpiry
How long a sample is valid for
Type: string
Default: "5m"
Example: "10m"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.influxdb.udpBindAddress
Address on which to listen for udp packets
Type: string
Default: ":9122"
Example: "192.0.2.1:9122"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.influxdb.user
User name under which the influxdb exporter shall be run.
Type: string
Default: "influxdb-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ipmi.configFile
Path to configuration file.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ipmi.enable
Whether to enable the prometheus ipmi exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ipmi.extraFlags
Extra commandline options to pass to the ipmi exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ipmi.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.ipmi.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9290"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ipmi.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.ipmi.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9290 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ipmi.group
Group under which the ipmi exporter shall be run.
Type: string
Default: "ipmi-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ipmi.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ipmi.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ipmi.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9290
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ipmi.user
User name under which the ipmi exporter shall be run.
Type: string
Default: "ipmi-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ipmi.webConfigFile
Path to configuration file that can enable TLS or authentication.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.jitsi.enable
Whether to enable the prometheus jitsi exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.jitsi.extraFlags
Extra commandline options to pass to the jitsi exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.jitsi.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.jitsi.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9700"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.jitsi.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.jitsi.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9700 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.jitsi.group
Group under which the jitsi exporter shall be run.
Type: string
Default: "jitsi-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.jitsi.interval
How often to scrape new data
Type: string
Default: "30s"
Example: "1min"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.jitsi.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.jitsi.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.jitsi.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9700
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.jitsi.url
Jitsi Videobridge metrics URL to monitor. This is usually /colibri/stats on port 8080 of the jitsi videobridge host.
Type: string
Default: "http://localhost:8080/colibri/stats"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.jitsi.user
User name under which the jitsi exporter shall be run.
Type: string
Default: "jitsi-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.json.configFile
Path to configuration file.
Type: absolute path
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.json.enable
Whether to enable the prometheus json exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.json.extraFlags
Extra commandline options to pass to the json exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.json.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.json.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 7979"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.json.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.json.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 7979 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.json.group
Group under which the json exporter shall be run.
Type: string
Default: "json-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.json.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.json.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.json.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 7979
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.json.user
User name under which the json exporter shall be run.
Type: string
Default: "json-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.junos-czerwonk.configuration
JunOS exporter configuration as nix attribute set. Mutually exclusive with the configurationFile option.
Type: null or (attribute set)
Default: null
Example:
{
devices = [
{
host = "router1";
key_file = "/path/to/key";
}
];
}
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.junos-czerwonk.configurationFile
Specify the JunOS exporter configuration file to use.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.junos-czerwonk.enable
Whether to enable the prometheus junos-czerwonk exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.junos-czerwonk.environmentFile
File containing env-vars to be substituted into the exporter's config.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.junos-czerwonk.extraFlags
Extra commandline options to pass to the junos-czerwonk exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.junos-czerwonk.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.junos-czerwonk.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9326"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.junos-czerwonk.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.junos-czerwonk.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9326 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.junos-czerwonk.group
Group under which the junos-czerwonk exporter shall be run.
Type: string
Default: "junos-czerwonk-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.junos-czerwonk.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.junos-czerwonk.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.junos-czerwonk.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9326
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.junos-czerwonk.telemetryPath
Path under which to expose metrics.
Type: string
Default: "/metrics"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.junos-czerwonk.user
User name under which the junos-czerwonk exporter shall be run.
Type: string
Default: "junos-czerwonk-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kafka.enable
Whether to enable the prometheus kafka exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kafka.environmentFile
File containing the credentials to access the repository, in the format of an EnvironmentFile as described by systemd.exec(5)
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kafka.extraFlags
Extra commandline options to pass to the kafka exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kafka.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.kafka.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 8080"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kafka.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.kafka.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 8080 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kafka.group
Group under which the kafka exporter shall be run.
Type: string
Default: "kafka-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kafka.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kafka.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kafka.package
The kminion package to use.
Type: package
Default: pkgs.kminion
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kafka.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 8080
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kafka.user
User name under which the kafka exporter shall be run.
Type: string
Default: "kafka-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kea.enable
Whether to enable the prometheus kea exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kea.extraFlags
Extra commandline options to pass to the kea exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kea.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.kea.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9547"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kea.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.kea.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9547 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kea.group
Group under which the kea exporter shall be run.
Type: string
Default: "kea-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kea.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kea.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kea.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9547
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kea.targets
Paths or URLs to the Kea control socket.
Type: list of string
Default: [ ]
Example:
[
"/run/kea/kea-dhcp4.socket"
"/run/kea/kea-dhcp6.socket"
"http://127.0.0.1:8547"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kea.user
User name under which the kea exporter shall be run.
Type: string
Default: "kea-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.keylight.enable
Whether to enable the prometheus keylight exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.keylight.extraFlags
Extra commandline options to pass to the keylight exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.keylight.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.keylight.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9288"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.keylight.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.keylight.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9288 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.keylight.group
Group under which the keylight exporter shall be run.
Type: string
Default: "keylight-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.keylight.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.keylight.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.keylight.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9288
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.keylight.user
User name under which the keylight exporter shall be run.
Type: string
Default: "keylight-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.klipper.enable
Whether to enable the prometheus klipper exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.klipper.extraFlags
Extra commandline options to pass to the klipper exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.klipper.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.klipper.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9101"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.klipper.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.klipper.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9101 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.klipper.group
Group under which the klipper exporter shall be run.
Type: string
Default: "klipper-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.klipper.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.klipper.moonrakerApiKey
API Key to authenticate with the Moonraker APIs. Only needed if the host running the exporter is not a trusted client to Moonraker.
Type: string
Default: ""
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.klipper.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.klipper.package
The prometheus-klipper-exporter package to use.
Type: package
Default: pkgs.prometheus-klipper-exporter
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.klipper.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9101
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.klipper.user
User name under which the klipper exporter shall be run.
Type: string
Default: "klipper-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.knot.enable
Whether to enable the prometheus knot exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.knot.extraFlags
Extra commandline options to pass to the knot exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.knot.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.knot.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9433"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.knot.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.knot.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9433 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.knot.group
Group under which the knot exporter shall be run.
Type: string
Default: "knot-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.knot.knotLibraryPath
Path to the library of knot-dns.
Type: null or string
Default: null
Example: "${pkgs.knot-dns.out}/lib/libknot.so"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.knot.knotSocketPath
Socket path of knotd(8).
Type: string
Default: "/run/knot/knot.sock"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.knot.knotSocketTimeout
Timeout in seconds.
Type: positive integer, meaning >0
Default: 2000
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.knot.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.knot.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.knot.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9433
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.knot.user
User name under which the knot exporter shall be run.
Type: string
Default: "knot-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kvrocks.enable
Whether to enable the prometheus kvrocks exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kvrocks.extraFlags
Extra commandline options to pass to the kvrocks exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kvrocks.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.kvrocks.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9121"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kvrocks.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.kvrocks.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9121 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kvrocks.group
Group under which the kvrocks exporter shall be run.
Type: string
Default: "kvrocks-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kvrocks.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kvrocks.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kvrocks.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9121
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.kvrocks.user
User name under which the kvrocks exporter shall be run.
Type: string
Default: "kvrocks-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.libvirt.enable
Whether to enable the prometheus libvirt exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.libvirt.extraFlags
Extra commandline options to pass to the libvirt exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.libvirt.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.libvirt.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9177"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.libvirt.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.libvirt.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9177 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.libvirt.group
Group under which the libvirt exporter shall be run.
Type: string
Default: "libvirt-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.libvirt.libvirtUri
Libvirt URI from which to extract metrics
Type: string
Default: "qemu:///system"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.libvirt.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.libvirt.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.libvirt.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9177
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.libvirt.user
User name under which the libvirt exporter shall be run.
Type: string
Default: "libvirt-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.lnd.enable
Whether to enable the prometheus lnd exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.lnd.extraFlags
Extra commandline options to pass to the lnd exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.lnd.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.lnd.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9092"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.lnd.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.lnd.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9092 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.lnd.group
Group under which the lnd exporter shall be run.
Type: string
Default: "lnd-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.lnd.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.lnd.lndHost
lnd instance gRPC address:port.
Type: string
Default: "localhost:10009"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.lnd.lndMacaroonDir
Path to lnd macaroons.
Type: absolute path
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.lnd.lndTlsPath
Path to lnd TLS certificate.
Type: absolute path
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.lnd.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.lnd.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9092
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.lnd.user
User name under which the lnd exporter shall be run.
Type: string
Default: "lnd-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.enable
Whether to enable the prometheus mail-tlsa-check exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.extraFlags
Extra commandline options to pass to the mail-tlsa-check exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.mail-tlsa-check.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 19309"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.mail-tlsa-check.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 19309 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.group
Group under which the mail-tlsa-check exporter shall be run.
Type: string
Default: "mail-tlsa-check-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.package
The mail-tlsa-check-exporter package to use.
Type: package
Default: pkgs.mail-tlsa-check-exporter
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 19309
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.settings
Settings for the mail-tlsa-check-exporter
Type: open submodule of (attribute set)
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.settings.check.timeout
Timeout for validation checks to complete before giving up, in milliseconds (e.g. 15000 for 15 seconds)
Type: positive integer, meaning >0
Default: 15000
Example: 10000
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.settings.imap.hostname
The IMAP hostname to monitor
Type: null or string
Default: null
Example: "imap.example.org"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.settings.imap.port
The IMAP port to monitor
Note
The exporter currently only supports explicit TLS (StartTLS), see https://github.com/ietf-tools/mail-tlsa-check-exporter/issues/6
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 143
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.settings.ipv4.enabled
Whether to enable monitoring over IPv4
Type: boolean
Default: true
Example: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.settings.ipv6.enabled
Whether to enable monitoring over IPv6
Type: boolean
Default: true
Example: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.settings.server.port
The port that the exporter listens on.
Note
This is a read-only option that is read from services.prometheus.exporters.mail-tlsa-check.port.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: config.services.prometheus.exporters.mail-tlsa-check.port
Read only
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.settings.smtp.client
The host to send in the SMTP EHLO command (name/domain/IP address)
Type: string
Default: "tlsa-smtp-synthetics-probe"
Example: "tlsa-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.settings.smtp.hostname
The SMTP hostname to monitor
Type: null or string
Default: null
Example: "smtp.example.org"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.settings.smtp.port
The SMTP port to monitor
Note
The exporter currently only supports explicit TLS (StartTLS), see https://github.com/ietf-tools/mail-tlsa-check-exporter/issues/6
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 587
Example: 465
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.settings.tlsa.record
The TLSA record to monitor
Type: string
Example: "_25._tcp.smtp.example.org"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail-tlsa-check.user
User name under which the mail-tlsa-check exporter shall be run.
Type: string
Default: "mail-tlsa-check-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.configFile
Specify the mailexporter configuration file to use.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.configuration
Specify the mailexporter configuration file to use.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.configuration.disableFileDeletion
Disables the exporter's function to delete probing mails.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.configuration.mailCheckTimeout
Timeout until mails are considered "didn't make it".
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.configuration.monitoringInterval
Time interval between two probe attempts.
Type: string
Example: "10s"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.configuration.servers
List of servers that should be probed.
Note: if your mailserver has rspamd(8) configured,
it can happen that emails from this exporter are marked as spam.
It's possible to work around the issue with a config like this:
{
services.rspamd.locals."multimap.conf".text = ''
ALLOWLIST_PROMETHEUS {
filter = "email:domain:tld";
type = "from";
map = "${pkgs.writeText "allowmap" "domain.tld"}";
score = -100.0;
}
'';
}
Type: list of (submodule)
Default: [ ]
Example:
[ {
name = "testserver";
server = "smtp.domain.tld";
port = 587;
from = "exporteruser@domain.tld";
to = "exporteruser@domain.tld";
detectionDir = "/path/to/Maildir/new";
} ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.configuration.servers.*.detectionDir
Directory in which new mails for the exporter user are placed. Note that this needs to exist when the exporter starts.
Type: absolute path
Example: "/var/spool/mail/exporteruser/new"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.configuration.servers.*.from
Content of 'From' Header for probing mails.
Type: string
Example: "exporteruser@domain.tld"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.configuration.servers.*.login
Username to use for SMTP authentication.
Type: null or string
Default: null
Example: "exporteruser@domain.tld"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.configuration.servers.*.name
Value for label 'configname' which will be added to all metrics.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.configuration.servers.*.passphrase
Password to use for SMTP authentication.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.configuration.servers.*.port
Port to use for SMTP.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Example: 587
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.configuration.servers.*.server
Hostname of the server that should be probed.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.configuration.servers.*.to
Content of 'To' Header for probing mails.
Type: string
Example: "exporteruser@domain.tld"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.enable
Whether to enable the prometheus mail exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.environmentFile
File containing env-vars to be substituted into the exporter's config.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.extraFlags
Extra commandline options to pass to the mail exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.mail.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9225"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.mail.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9225 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.group
Group under which the mail exporter shall be run.
Type: string
Default: "mail-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9225
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.telemetryPath
Path under which to expose metrics.
Type: string
Default: "/metrics"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mail.user
User name under which the mail exporter shall be run.
Type: string
Default: "mail-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mailman3.enable
Whether to enable the prometheus mailman3 exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mailman3.extraFlags
Extra commandline options to pass to the mailman3 exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mailman3.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.mailman3.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9934"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mailman3.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.mailman3.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9934 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mailman3.group
Group under which the mailman3 exporter shall be run.
Type: string
Default: "mailman3-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mailman3.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mailman3.logLevel
Detail level to log.
Type: one of "debug", "info", "warning", "error", "critical"
Default: "info"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mailman3.mailman.addr
Mailman3 Core REST API address.
Type: string
Default: "http://127.0.0.1:8001"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mailman3.mailman.passFile
Mailman3 Core REST API password.
Type: string
Default: config.services.mailman.restApiPassFile
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mailman3.mailman.user
Mailman3 Core REST API username.
Type: string
Default: "restadmin"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mailman3.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mailman3.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9934
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mailman3.user
User name under which the mailman3 exporter shall be run.
Type: string
Default: "mailman3-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mikrotik.configFile
Path to a mikrotik exporter configuration file. Mutually exclusive with
configuration option.
Type: null or absolute path
Default: null
Example: ./mikrotik.yml
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mikrotik.configuration
Mikrotik exporter configuration as nix attribute set. Mutually exclusive with
configFile option.
See https://github.com/nshttpd/mikrotik-exporter/blob/master/README.md for the description of the configuration file format.
Type: null or (attribute set)
Default: null
Example:
{
devices = [
{
name = "my_router";
address = "10.10.0.1";
user = "prometheus";
password = "changeme";
}
];
features = {
bgp = true;
dhcp = true;
routes = true;
optics = true;
};
}
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mikrotik.enable
Whether to enable the prometheus mikrotik exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mikrotik.extraFlags
Extra commandline options to pass to the mikrotik exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mikrotik.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.mikrotik.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9436"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mikrotik.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.mikrotik.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9436 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mikrotik.group
Group under which the mikrotik exporter shall be run.
Type: string
Default: "mikrotik-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mikrotik.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mikrotik.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mikrotik.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9436
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mikrotik.user
User name under which the mikrotik exporter shall be run.
Type: string
Default: "mikrotik-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.modemmanager.enable
Whether to enable the prometheus modemmanager exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.modemmanager.extraFlags
Extra commandline options to pass to the modemmanager exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.modemmanager.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.modemmanager.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9539"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.modemmanager.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.modemmanager.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9539 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.modemmanager.group
Group under which the modemmanager exporter shall be run.
Type: string
Default: "modemmanager-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.modemmanager.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.modemmanager.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.modemmanager.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9539
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.modemmanager.refreshRate
How frequently ModemManager will refresh the extended signal quality information for each modem. The duration should be specified in seconds ("5s"), minutes ("1m"), or hours ("1h").
Type: string
Default: "5s"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.modemmanager.user
User name under which the modemmanager exporter shall be run.
Type: string
Default: "modemmanager-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mongodb.collStats
List of comma separared databases.collections to get $collStats
Type: list of string
Default: [ ]
Example:
[
"db1.coll1"
"db2"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mongodb.collectAll
Enable all collectors. Same as specifying all --collector.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mongodb.collector
Enabled collectors
Type: list of string
Default: [ ]
Example:
[
"diagnosticdata"
"replicasetstatus"
"dbstats"
"topmetrics"
"currentopmetrics"
"indexstats"
"dbstats"
"profile"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mongodb.enable
Whether to enable the prometheus mongodb exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mongodb.extraFlags
Extra commandline options to pass to the mongodb exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mongodb.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.mongodb.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9216"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mongodb.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.mongodb.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9216 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mongodb.group
Group under which the mongodb exporter shall be run.
Type: string
Default: "mongodb-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mongodb.indexStats
List of comma separared databases.collections to get $indexStats
Type: list of string
Default: [ ]
Example:
[
"db1.coll1"
"db2"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mongodb.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mongodb.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mongodb.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9216
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mongodb.telemetryPath
Metrics expose path
Type: string
Default: "/metrics"
Example: "/metrics"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mongodb.uri
MongoDB URI to connect to.
Type: string
Default: "mongodb://localhost:27017/test"
Example: "mongodb://localhost:27017/test"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mongodb.user
User name under which the mongodb exporter shall be run.
Type: string
Default: "mongodb-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.enable
Whether to enable the prometheus mqtt exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.environmentFile
File to load as environment file. Useful for e.g. setting MQTT_PASSWORD
without putting any secrets into the Nix store.
Type: null or absolute path
Default: null
Example:
[
"/run/secrets/mqtt-exporter"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.esphomeTopicPrefixes
MQTT topic used for ESPHome messages.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.extraFlags
Extra commandline options to pass to the mqtt exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.mqtt.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9000"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.mqtt.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9000 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.group
Group under which the mqtt exporter shall be run.
Type: string
Default: "mqtt-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.hubitatTopicPrefixes
MQTT topic used for Hubitat messages.
Type: list of string
Default:
[
"hubitat/"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.keepFullTopic
Whether to enable Keep entire topic instead of the first two elements only. Usecase: Shelly 3EM.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.logLevel
Logging level
Type: one of "CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG"
Default: "INFO"
Example: "DEBUG"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.logMqttMessage
Whether to enable Log MQTT original message, only if LOG_LEVEL is set to DEBUG..
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.mqttAddress
IP or hostname of MQTT broker.
Type: string
Default: "127.0.0.1"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.mqttClientId
Set client ID manually for MQTT connection
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.mqttExposeClientId
Whether to enable Expose the client ID as a label in Prometheus metrics..
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.mqttIgnoredTopics
Lists of topics to ignore. Accepts wildcards.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.mqttKeepAlive
Keep alive interval to maintain connection with MQTT broker.
Type: signed integer
Default: 60
Example: 30
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.mqttPort
TCP port of MQTT broker.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 1883
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.mqttTopic
Topic path to subscribe to.
Type: string
Default: "#"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.mqttUsername
Username which should be used to authenticate against the MQTT broker.
Type: null or string
Default: null
Example: "mqttexporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.mqttV5Protocol
Whether to enable Force to use MQTT protocol v5 instead of 3.1.1..
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.package
The mqtt-exporter package to use.
Type: package
Default: pkgs.mqtt-exporter
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9000
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.prometheusPrefix
Prefix added to the metric name.
Type: string
Default: "mqtt_"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.topicLabel
Define the Prometheus label for the topic.
Type: string
Default: "topic"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.user
User name under which the mqtt exporter shall be run.
Type: string
Default: "mqtt-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.zigbee2MqttAvailability
Whether to enable Normalize sensor name for device availability metric added by Zigbee2MQTT..
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mqtt.zwaveTopicPrefix
MQTT topic used for Zwavejs2Mqtt messages.
Type: string
Default: "zwave/"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mysqld.configFile
Path to the services config file.
See https://github.com/prometheus/mysqld_exporter#running for more information about the available options.
Warn
Please do not store this file in the nix store if you choose to include any credentials here, as it would be world-readable.
Type: absolute path
Example: "/var/lib/prometheus-mysqld-exporter.cnf"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mysqld.enable
Whether to enable the prometheus mysqld exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mysqld.extraFlags
Extra commandline options to pass to the mysqld exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mysqld.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.mysqld.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9104"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mysqld.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.mysqld.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9104 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mysqld.group
Group under which the mysqld exporter shall be run.
Type: string
Default: "mysqld-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mysqld.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mysqld.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mysqld.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9104
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mysqld.runAsLocalSuperUser
Whether to run the exporter as services.mysql.user.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mysqld.telemetryPath
Path under which to expose metrics.
Type: string
Default: "/metrics"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.mysqld.user
User name under which the mysqld exporter shall be run.
Type: string
Default: "mysqld-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nats.enable
Whether to enable the prometheus nats exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nats.extraFlags
Extra commandline options to pass to the nats exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nats.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.nats.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 7777"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nats.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.nats.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 7777 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nats.group
Group under which the nats exporter shall be run.
Type: string
Default: "nats-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nats.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nats.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nats.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 7777
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nats.url
NATS monitor endpoint to query.
Type: string
Default: "http://127.0.0.1:8222"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nats.user
User name under which the nats exporter shall be run.
Type: string
Default: "nats-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nextcloud.enable
Whether to enable the prometheus nextcloud exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nextcloud.extraFlags
Extra commandline options to pass to the nextcloud exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nextcloud.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.nextcloud.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9205"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nextcloud.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.nextcloud.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9205 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nextcloud.group
Group under which the nextcloud exporter shall be run.
Type: string
Default: "nextcloud-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nextcloud.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nextcloud.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nextcloud.passwordFile
File containing the password for connecting to Nextcloud. Make sure that this file is readable by the exporter user.
Type: null or absolute path
Default: null
Example: "/path/to/password-file"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nextcloud.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9205
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nextcloud.timeout
Timeout for getting server info document.
Type: string
Default: "5s"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nextcloud.tokenFile
File containing the token for connecting to Nextcloud. Make sure that this file is readable by the exporter user.
Type: null or absolute path
Default: null
Example: "/path/to/token-file"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nextcloud.url
URL to the Nextcloud serverinfo page.
Adding the path to the serverinfo API is optional, it defaults
to /ocs/v2.php/apps/serverinfo/api/v1/info.
Type: string
Example: "https://domain.tld"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nextcloud.user
User name under which the nextcloud exporter shall be run.
Type: string
Default: "nextcloud-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nextcloud.username
Username for connecting to Nextcloud. Note that this account needs to have admin privileges in Nextcloud. Unused when using token authentication.
Type: string
Default: "nextcloud-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginx.constLabels
A list of constant labels that will be used in every metric.
Type: list of string
Default: [ ]
Example:
[
"label1=value1"
"label2=value2"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginx.enable
Whether to enable the prometheus nginx exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginx.extraFlags
Extra commandline options to pass to the nginx exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginx.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.nginx.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9113"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginx.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.nginx.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9113 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginx.group
Group under which the nginx exporter shall be run.
Type: string
Default: "nginx-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginx.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginx.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginx.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9113
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginx.scrapeUri
Address to access the nginx status page. Can be enabled with services.nginx.statusPage = true.
Type: string
Default: "http://localhost/nginx_status"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginx.sslVerify
Whether to perform certificate verification for https.
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginx.telemetryPath
Path under which to expose metrics.
Type: string
Default: "/metrics"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginx.user
User name under which the nginx exporter shall be run.
Type: string
Default: "nginx-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginxlog.enable
Whether to enable the prometheus nginxlog exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginxlog.extraFlags
Extra commandline options to pass to the nginxlog exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginxlog.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.nginxlog.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9117"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginxlog.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.nginxlog.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9117 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginxlog.group
Group under which the nginxlog exporter shall be run.
Type: string
Default: "nginxlog-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginxlog.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginxlog.metricsEndpoint
Path under which to expose metrics.
Type: string
Default: "/metrics"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginxlog.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginxlog.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9117
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginxlog.settings
All settings of nginxlog expressed as an Nix attrset.
Check the official documentation for the corresponding YAML settings that can all be used here: https://github.com/martin-helmich/prometheus-nginxlog-exporter
The listen object is already generated by port, listenAddress and metricsEndpoint and
will be merged with the value of settings before writing it as JSON.
Type: submodule
Default: { }
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginxlog.settings.consul
Consul integration options. For more information see the example config.
This is disabled by default.
Type: null or (attribute set of anything)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginxlog.settings.namespaces
Namespaces to collect the metrics for. For more information see the example config.
Type: list of attribute set of anything
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nginxlog.user
User name under which the nginxlog exporter shall be run.
Type: string
Default: "nginxlog-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node-cert.enable
Whether to enable the prometheus node-cert exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node-cert.excludeGlobs
List files matching a pattern to include. Uses Go blob pattern.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node-cert.excludePaths
List of paths to exclute from searching for SSL certificates.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node-cert.extraFlags
Extra commandline options to pass to the node-cert exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node-cert.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.node-cert.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9141"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node-cert.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.node-cert.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9141 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node-cert.group
Group under which the node-cert exporter shall be run.
Type: string
Default: "node-cert-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node-cert.includeGlobs
List files matching a pattern to include. Uses Go blob pattern.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node-cert.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node-cert.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node-cert.paths
List of paths to search for SSL certificates.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node-cert.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9141
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node-cert.user
User owning the certs.
Type: string
Default: "acme"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node.disabledCollectors
Collectors to disable which are enabled by default.
Type: list of string
Default: [ ]
Example:
[
"timex"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node.enable
Whether to enable the prometheus node exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node.enabledCollectors
Collectors to enable. The collectors listed here are enabled in addition to the default ones.
Type: list of string
Default: [ ]
Example:
[
"systemd"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node.extraFlags
Extra commandline options to pass to the node exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.node.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9100"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.node.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9100 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node.group
Group under which the node exporter shall be run.
Type: string
Default: "node-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9100
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.node.user
User name under which the node exporter shall be run.
Type: string
Default: "node-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nut.enable
Whether to enable the prometheus nut exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nut.extraFlags
Extra commandline options to pass to the nut exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nut.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.nut.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9199"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nut.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.nut.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9199 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nut.group
Group under which the nut exporter shall be run.
Type: string
Default: "nut-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nut.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nut.nutServer
Hostname or address of the NUT server
Type: string
Default: "127.0.0.1"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nut.nutUser
The user to log in into NUT server. If set, passwordPath should also be set.
Default NUT configs usually permit reading variables without authentication.
Type: string
Default: ""
Example: "nut"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nut.nutVariables
List of NUT variable names to monitor.
If no variables are set, all numeric variables will be exported automatically. See the upstream docs for more information.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nut.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nut.passwordPath
A run-time path to the nutUser password file, which should be provisioned outside of Nix store.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nut.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9199
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nut.user
User name under which the nut exporter shall be run.
Type: string
Default: "nut-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nvidia-gpu.enable
Whether to enable the prometheus nvidia-gpu exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nvidia-gpu.extraFlags
Extra commandline options to pass to the nvidia-gpu exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nvidia-gpu.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.nvidia-gpu.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9835"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nvidia-gpu.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.nvidia-gpu.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9835 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nvidia-gpu.group
Group under which the nvidia-gpu exporter shall be run.
Type: string
Default: "nvidia-gpu-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nvidia-gpu.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nvidia-gpu.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nvidia-gpu.package
The prometheus-nvidia-gpu-exporter package to use.
Type: package
Default: pkgs.prometheus-nvidia-gpu-exporter
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nvidia-gpu.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9835
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nvidia-gpu.settings
Command line flags from the --help text of the exporter.
Type: open submodule of attribute set of (boolean or string or list of string)
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nvidia-gpu.settings."collect.backend"
How to collect GPU metrics.
Type: one of "exec", "nvml", "demo"
Default: "exec"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nvidia-gpu.settings."web.listen-address"
Addresses on which to expose metrics and web interface.
Type: string
Default:
"${config.services.prometheus.exporters.nvidia-gpu.listenAddress}:${toString config.services.prometheus.exporters.nvidia-gpu.port}"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nvidia-gpu.settings.nvidia-smi-command
Path or command to be used for the nvidia-smi executable.
Type: string
Default:
"${config.hardware.nvidia.package.bin}/bin/nvidia-smi"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.nvidia-gpu.user
User name under which the nvidia-gpu exporter shall be run.
Type: string
Default: "nvidia-gpu-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.opnsense.apiKeyFile
File containing the api key.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.opnsense.apiSecretFile
File containing the api secret.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.opnsense.disabledExporter
Collectors to enable or disable. All collectors are enabled by default.
Type: list of string
Default: [ ]
Example:
[
"disable-openvpn"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.opnsense.enable
Whether to enable the prometheus opnsense exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.opnsense.enabledExporter
Collectors to enable or disable. All collectors are enabled by default.
Type: list of string
Default: [ ]
Example:
[
"disable-openvpn"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.opnsense.extraFlags
Extra commandline options to pass to the opnsense exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.opnsense.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.opnsense.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9144"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.opnsense.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.opnsense.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9144 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.opnsense.group
Group under which the opnsense exporter shall be run.
Type: string
Default: "opnsense"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.opnsense.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.opnsense.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.opnsense.opnsenseServerAddress
Opnsense IP address of the opnsense appliance. Defaults to 192.168.1.1
Type: string
Default: "192.168.1.1"
Example: "192.168.100.254"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.opnsense.opnsenseServerProtocol
Opnsense metrics scraper protocol to use. Defaults to https.
Type: one of "http", "https"
Default: "https"
Example: "http"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.opnsense.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9144
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.opnsense.user
User name under which the opensense exporter shall be run.
Type: string
Default: "opnsense"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.connectionEnvFile
File that must contain the environment variable
PGBOUNCER_EXPORTER_CONNECTION_STRING which is set to the connection
string used by pgbouncer. I.e. the format is supposed to look like this:
PGBOUNCER_EXPORTER_CONNECTION_STRING="postgres://admin@localhost:6432/pgbouncer?sslmode=require"
NOTE: You MUST keep pgbouncer as database name (special internal db)!
NOTE: services.pgbouncer.settings.pgbouncer.ignore_startup_parameters
MUST contain "extra_float_digits".
Mutually exclusive with services (P).
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.connectionString
Connection string for accessing pgBouncer.
NOTE: You MUST keep pgbouncer as database name (special internal db)!!!
NOTE: ignore_startup_parameters MUST contain "extra_float_digits".
NOTE: Admin user (with password or passwordless) MUST exist in the auth_file if auth_type other than "any" is used.
WARNING: this secret is stored in the world-readable Nix store! Use services (P) if the URL contains a secret.
Type: null or string
Default: null
Example: "postgres://admin:@localhost:6432/pgbouncer?sslmode=require"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.enable
Whether to enable the prometheus pgbouncer exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.extraFlags
Extra commandline options when launching Prometheus.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.pgbouncer.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9127"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.pgbouncer.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9127 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.group
Group under which the pgbouncer exporter shall be run.
Type: string
Default: "pgbouncer-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.logFormat
Output format of log messages. One of: [logfmt, json]
Type: one of "logfmt", "json"
Default: "logfmt"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.logLevel
Only log messages with the given severity or above.
Type: one of "debug", "info", "warn", "error"
Default: "info"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.package
The prometheus-pgbouncer-exporter package to use.
Type: package
Default: pkgs.prometheus-pgbouncer-exporter
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.pidFile
Path to PgBouncer pid file.
If provided, the standard process metrics get exported for the PgBouncer process, prefixed with 'pgbouncer_process_...'. The pgbouncer_process exporter needs to have read access to files owned by the PgBouncer process. Depends on the availability of /proc.
https://prometheus.io/docs/instrumenting/writing_clientlibs/#process-metrics.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9127
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.telemetryPath
Path under which to expose metrics.
Type: string
Default: "/metrics"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.user
User name under which the pgbouncer exporter shall be run.
Type: string
Default: "pgbouncer-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.webConfigFile
Path to configuration file that can enable TLS or authentication.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pgbouncer.webSystemdSocket
Use systemd socket activation listeners instead of port listeners (Linux only).
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.php-fpm.enable
Whether to enable the prometheus php-fpm exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.php-fpm.environmentFile
Environment file as defined in systemd.exec(5).
Secrets may be passed to the service without adding them to the world-readable Nix store, by specifying placeholder variables as the option value in Nix and setting these variables accordingly in the environment file.
Environment variables from this file will be interpolated into the
config file using envsubst with this syntax:
$ENVIRONMENT ${VARIABLE}
For variables to use see options and defaults.
The main use is to set the PHP_FPM_SCRAPE_URI that indicate how to connect to PHP-FPM process.
# Content of the environment file
PHP_FPM_SCRAPE_URI="unix:///tmp/php.sock;/status"
Note that this file needs to be available on the host on which this exporter is running.
Type: null or absolute path
Default: null
Example: "/root/prometheus-php-fpm-exporter.env"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.php-fpm.extraFlags
Extra commandline options to pass to the php-fpm exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.php-fpm.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.php-fpm.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9253"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.php-fpm.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.php-fpm.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9253 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.php-fpm.group
Group under which the php-fpm exporter shall be run.
Type: string
Default: "php-fpm-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.php-fpm.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.php-fpm.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.php-fpm.package
The prometheus-php-fpm-exporter package to use.
Type: package
Default: pkgs.prometheus-php-fpm-exporter
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.php-fpm.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9253
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.php-fpm.telemetryPath
Path under which to expose metrics.
Type: string
Default: "/metrics"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.php-fpm.user
User name under which the php-fpm exporter shall be run.
Type: string
Default: "php-fpm-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pihole.apiToken
Pi-Hole API token which can be used instead of a password
Type: string
Default: ""
Example: "580a770cb40511eb85290242ac130003580a770cb40511eb85290242ac130003"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pihole.enable
Whether to enable the prometheus pihole exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pihole.extraFlags
Extra commandline options to pass to the pihole exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pihole.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.pihole.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9617"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pihole.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.pihole.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9617 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pihole.group
Group under which the pihole exporter shall be run.
Type: string
Default: "pihole-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pihole.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pihole.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pihole.password
The password to login into Pi-Hole. An api token can be used instead.
Type: string
Default: ""
Example: "password"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pihole.piholeHostname
Hostname or address where to find the Pi-Hole webinterface
Type: string
Default: "pihole"
Example: "127.0.0.1"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pihole.piholePort
The port Pi-Hole webinterface is reachable on
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 80
Example: 443
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pihole.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9617
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pihole.protocol
The protocol which is used to connect to Pi-Hole
Type: one of "http", "https"
Default: "http"
Example: "https"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pihole.timeout
Controls the timeout to connect to a Pi-Hole instance
Type: string
Default: "5s"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pihole.user
User name under which the pihole exporter shall be run.
Type: string
Default: "pihole-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ping.enable
Whether to enable the prometheus ping exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ping.extraFlags
Extra commandline options to pass to the ping exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ping.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.ping.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9427"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ping.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.ping.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9427 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ping.group
Group under which the ping exporter shall be run.
Type: string
Default: "ping-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ping.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ping.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ping.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9427
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ping.settings
Configuration for ping_exporter, see https://github.com/czerwonk/ping_exporter for supported values.
Type: YAML 1.1 value
Default: { }
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ping.telemetryPath
Path under which to expose metrics.
Type: string
Default: "/metrics"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.ping.user
User name under which the ping exporter shall be run.
Type: string
Default: "ping-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.collector.cacheDuration
Duration (seconds) to retrieve container, size and refresh the cache
Type: null or (positive integer, meaning >0)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.collector.containerStatsTimeout
Timeout for collecting container statistics in seconds
Type: null or (positive integer, meaning >0)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.collector.enableAll
Enable all collectors by default
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.collector.enhanceMetrics
Enhance all metrics with the same field as their podman_<...>_info metrics
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.collector.image
Enable image collector
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.collector.network
Enable network collector
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.collector.pod
Enable pod collector
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.collector.storeLabels
Convert pod/container/image labels to labels on prometheus metrics
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.collector.system
Enable system collector
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.collector.volume
Enable volume collector
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.collector.whitelistedLabels
Comma separated list of pod/container/image labels to be converted
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.debug
Set log level to debug
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.enable
Whether to enable the prometheus podman exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.extraFlags
Extra commandline options to pass to the podman exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.podman.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9156"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.podman.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9156 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.group
Group under which the podman exporter shall be run.
Type: string
Default: "podman-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.package
The prometheus-podman-exporter package to use.
Type: package
Default: pkgs.prometheus-podman-exporter
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.podmanSocket
path to podman UNIX or network socket for connection
Type: string
Default: "unix:///var/run/podman/podman.sock"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9156
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.user
User name under which the podman exporter shall be run.
Type: string
Default: "podman-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.web.configFile
Path to configuration file that can enable TLS or authentication
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.web.disableExporterMetrics
Exclude metrics about the exporter itself (promhttp_, process_, go_*)
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.web.maxRequests
Maximum number of parallel scrape requests. Use 0 to disable
Type: null or (unsigned integer, meaning >=0)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.podman.web.telemetryPath
Path under which to expose metrics
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postfix.enable
Whether to enable the prometheus postfix exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postfix.extraFlags
Extra commandline options to pass to the postfix exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postfix.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.postfix.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9154"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postfix.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.postfix.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9154 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postfix.group
Group under which the postfix exporter shall be run.
It should match the group that is allowed to access the
showq socket in the queue/public/ directory.
Defaults to services.postfix.setgidGroup when postfix is enabled.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postfix.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postfix.logfilePath
Path where Postfix writes log entries. This file will be truncated by this exporter!
Type: absolute path
Default: "/var/log/postfix_exporter_input.log"
Example: "/var/log/mail.log"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postfix.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postfix.package
The prometheus-postfix-exporter package to use.
Type: package
Default: pkgs.prometheus-postfix-exporter
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postfix.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9154
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postfix.showqPath
Path where Postfix places its showq socket.
Type: absolute path
Default: "/var/lib/postfix/queue/public/showq"
Example: "/var/spool/postfix/public/showq"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postfix.systemd.enable
Whether to enable reading metrics from the systemd journal instead of from a logfile
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postfix.systemd.journalPath
Path to the systemd journal.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postfix.systemd.slice
Name of the postfix systemd slice.
This overrides the systemd.unit.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postfix.systemd.unit
Name of the postfix systemd unit.
Type: string
Default: "postfix.service"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postfix.telemetryPath
Path under which to expose metrics.
Type: string
Default: "/metrics"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postfix.user
User name under which the postfix exporter shall be run.
Type: string
Default: "postfix-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postgres.dataSourceName
Accepts PostgreSQL URI form and key=value form arguments.
Type: string
Default: "user=postgres database=postgres host=/run/postgresql sslmode=disable"
Example: "postgresql://username:password@localhost:5432/postgres?sslmode=disable"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postgres.enable
Whether to enable the prometheus postgres exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postgres.environmentFile
Environment file as defined in systemd.exec(5).
Secrets may be passed to the service without adding them to the world-readable Nix store, by specifying placeholder variables as the option value in Nix and setting these variables accordingly in the environment file.
Environment variables from this file will be interpolated into the
config file using envsubst with this syntax:
$ENVIRONMENT ${VARIABLE}
The main use is to set the DATA_SOURCE_NAME that contains the postgres password
note that contents from this file will override dataSourceName if you have set it from nix.
# Content of the environment file
DATA_SOURCE_NAME=postgresql://username:password@localhost:5432/postgres?sslmode=disable
Note that this file needs to be available on the host on which this exporter is running.
Type: null or absolute path
Default: null
Example: "/root/prometheus-postgres-exporter.env"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postgres.extraFlags
Extra commandline options to pass to the postgres exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postgres.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.postgres.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9187"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postgres.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.postgres.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9187 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postgres.group
Group under which the postgres exporter shall be run.
Type: string
Default: "postgres-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postgres.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postgres.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postgres.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9187
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postgres.runAsLocalSuperUser
Whether to run the exporter as the local 'postgres' super user.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postgres.telemetryPath
Path under which to expose metrics.
Type: string
Default: "/metrics"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.postgres.user
User name under which the postgres exporter shall be run.
Type: string
Default: "postgres-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.process.enable
Whether to enable the prometheus process exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.process.extraFlags
Extra commandline options to pass to the process exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.process.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.process.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9256"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.process.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.process.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9256 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.process.group
Group under which the process exporter shall be run.
Type: string
Default: "process-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.process.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.process.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.process.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9256
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.process.settings.process_names
All settings expressed as an Nix attrset.
Check the official documentation for the corresponding YAML settings that can all be used here: https://github.com/ncabatoff/process-exporter
Type: list of anything
Default: [ ]
Example:
[
# Remove nix store path from process name
{ name = "{{.Matches.Wrapped}} {{ .Matches.Args }}"; cmdline = [ "^/nix/store[^ ]*/(?P<Wrapped>[^ /]*) (?P<Args>.*)" ]; }
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.process.user
User name under which the process exporter shall be run.
Type: string
Default: "process-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.collectors.cluster
Collect PVE cluster info
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.collectors.config
Collect PVE onboot status
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.collectors.node
Collect PVE node info
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.collectors.replication
Collect PVE replication info
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.collectors.resources
Collect PVE resources info
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.collectors.status
Collect Node/VM/CT status
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.collectors.version
Collect PVE version info
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.configFile
Path to the service's config file. This path can either be a computed path in /nix/store or a path in the local filesystem.
The config file should NOT be stored in /nix/store as it will contain passwords and/or keys in plain text.
If both configFile and environmentFile are provided, the configFile option will be ignored.
Configuration reference: https://github.com/prometheus-pve/prometheus-pve-exporter/#authentication
Type: null or absolute path
Default: null
Example: "/etc/prometheus-pve-exporter/pve.yml"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.enable
Whether to enable the prometheus pve exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.environmentFile
Path to the service's environment file. This path can either be a computed path in /nix/store or a path in the local filesystem.
The environment file should NOT be stored in /nix/store as it contains passwords and/or keys in plain text.
Environment reference: https://github.com/prometheus-pve/prometheus-pve-exporter#authentication
Type: null or absolute path
Default: null
Example: "/etc/prometheus-pve-exporter/pve.env"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.extraFlags
Extra commandline options to pass to the pve exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.pve.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9221"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.pve.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9221 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.group
Group under which the pve exporter shall be run.
Type: string
Default: "pve-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.package
The prometheus-pve-exporter package to use.
Type: package
Default: pkgs.prometheus-pve-exporter
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9221
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.server.certFile
Path to a SSL certificate file for the server
Type: null or absolute path
Default: null
Example: "/var/lib/prometheus-pve-exporter/full-chain.pem"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.server.keyFile
Path to a SSL private key file for the server
Type: null or absolute path
Default: null
Example: "/var/lib/prometheus-pve-exporter/privkey.key"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.pve.user
User name under which the pve exporter shall be run.
Type: string
Default: "pve-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.py-air-control.deviceHostname
The hostname of the air purification device from which to scrape the metrics.
Type: string
Example: "192.168.1.123"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.py-air-control.enable
Whether to enable the prometheus py-air-control exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.py-air-control.extraFlags
Extra commandline options to pass to the py-air-control exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.py-air-control.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.py-air-control.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9896"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.py-air-control.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.py-air-control.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9896 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.py-air-control.group
Group under which the py-air-control exporter shall be run.
Type: string
Default: "py-air-control-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.py-air-control.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.py-air-control.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.py-air-control.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9896
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.py-air-control.protocol
The protocol to use when communicating with the air purification device. Available: [http, coap, plain_coap]
Type: string
Default: "http"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.py-air-control.stateDir
Directory below /var/lib to store runtime data.
This directory will be created automatically using systemd's StateDirectory mechanism.
Type: string
Default: "prometheus-py-air-control-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.py-air-control.user
User name under which the py-air-control exporter shall be run.
Type: string
Default: "py-air-control-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rasdaemon.databasePath
Path to the RAS daemon machine check event database.
Type: absolute path
Default: "/var/lib/rasdaemon/ras-mc_event.db"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rasdaemon.enable
Whether to enable the prometheus rasdaemon exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rasdaemon.enabledCollectors
List of error types to collect from the event database.
Type: list of (one of "aer", "mce", "mc", "extlog", "devlink", "disk")
Default:
[
"aer"
"mce"
"mc"
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rasdaemon.extraFlags
Extra commandline options to pass to the rasdaemon exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rasdaemon.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.rasdaemon.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 10029"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rasdaemon.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.rasdaemon.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 10029 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rasdaemon.group
Group under which the rasdaemon exporter shall be run.
Type: string
Default: "rasdaemon-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rasdaemon.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rasdaemon.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rasdaemon.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 10029
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rasdaemon.user
User name under which the rasdaemon exporter shall be run.
Type: string
Default: "rasdaemon-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.redis.enable
Whether to enable the prometheus redis exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.redis.extraFlags
Extra commandline options to pass to the redis exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.redis.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.redis.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9121"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.redis.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.redis.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9121 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.redis.group
Group under which the redis exporter shall be run.
Type: string
Default: "redis-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.redis.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.redis.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.redis.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9121
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.redis.user
User name under which the redis exporter shall be run.
Type: string
Default: "redis-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.restic.enable
Whether to enable the prometheus restic exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.restic.environmentFile
File containing the credentials to access the repository, in the
format of an EnvironmentFile as described by systemd.exec(5)
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.restic.extraFlags
Extra commandline options to pass to the restic exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.restic.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.restic.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9753"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.restic.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.restic.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9753 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.restic.group
Group under which the restic exporter shall be run.
Type: string
Default: "restic-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.restic.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.restic.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.restic.passwordFile
File containing the password to the repository.
Type: absolute path
Example: "/etc/nixos/restic-password"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.restic.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9753
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.restic.rcloneConfig
Configuration for the rclone remote being used for backup.
See the remote's specific options under rclone's docs at
https://rclone.org/docs/. When specifying
option names, use the "config" name specified in the docs.
For example, to set --b2-hard-delete for a B2
remote, use hard_delete = true in the
attribute set.
Warning
Secrets set in here will be world-readable in the Nix
store! Consider using the rcloneConfigFile
option instead to specify secret values separately. Note that
options set here will override those set in the config file.
Type: attribute set of (string or boolean)
Default: { }
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.restic.rcloneConfigFile
Path to the file containing rclone configuration. This file must contain configuration for the remote specified in this backup set and also must be readable by root.
Caution
Options set in rcloneConfig will override those set in this
file.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.restic.rcloneOptions
Options to pass to rclone to control its behavior.
See https://rclone.org/docs/#options for
available options. When specifying option names, strip the
leading --. To set a flag such as
--drive-use-trash, which does not take a value,
set the value to the Boolean true.
Type: attribute set of (string or boolean)
Default: { }
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.restic.refreshInterval
Refresh interval for the metrics in seconds. Computing the metrics is an expensive task, keep this value as high as possible.
Type: unsigned integer, meaning >=0
Default: 60
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.restic.repository
URI pointing to the repository to monitor.
Type: null or string
Default: null
Example: "sftp:backup@192.168.1.100:/backups/example"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.restic.repositoryFile
Path to the file containing the URI for the repository to monitor.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.restic.user
User name under which the restic exporter shall be run.
Type: string
Default: "restic-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.channels
List of channel matchers to export.
Type: list of (submodule)
Default: [ ]
Example:
[
{
channel = 6543;
location = "Kitchen";
name = "Acurite";
}
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.channels.*.channel
Channel to match.
Type: signed integer
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.channels.*.location
Location to match.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.channels.*.name
Name to match.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.enable
Whether to enable the prometheus rtl_433 exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.extraFlags
Extra commandline options to pass to the rtl_433 exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.rtl_433.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9550"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.rtl_433.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9550 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.group
Group under which the rtl_433 exporter shall be run.
Type: string
Default: "rtl_433-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.ids
List of ID matchers to export.
Type: list of (submodule)
Default: [ ]
Example:
[
{
id = 1;
location = "Bedroom";
name = "Nexus";
}
]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.ids.*.id
ID to match.
Type: signed integer
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.ids.*.location
Location to match.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.ids.*.name
Name to match.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9550
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.rtl433Flags
Flags passed verbatim to rtl_433 binary.
Having -C si (the default) is recommended since only Celsius temperatures are parsed.
Type: string
Default: "-C si"
Example: "-C si -R 19"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.rtl_433.user
User name under which the rtl_433 exporter shall be run.
Type: string
Default: "rtl_433-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sabnzbd.enable
Whether to enable the prometheus sabnzbd exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sabnzbd.extraFlags
Extra commandline options to pass to the sabnzbd exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sabnzbd.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.sabnzbd.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9387"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sabnzbd.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.sabnzbd.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9387 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sabnzbd.group
Group under which the sabnzbd exporter shall be run.
Type: string
Default: "sabnzbd-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sabnzbd.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sabnzbd.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sabnzbd.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9387
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sabnzbd.servers
List of sabnzbd servers to connect to.
Type: list of (submodule)
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sabnzbd.servers.*.apiKeyFile
The path to a file containing the API key. The file is securely passed to the service by leveraging systemd credentials. No special permissions need to be set on this file.
Type: string
Example: "/run/secrets/sabnzbd_apikey"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sabnzbd.servers.*.baseUrl
Base URL of the sabnzbd server.
Type: string
Example: "http://localhost:8080/sabnzbd"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sabnzbd.user
User name under which the sabnzbd exporter shall be run.
Type: string
Default: "sabnzbd-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.script.enable
Whether to enable the prometheus script exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.script.extraFlags
Extra commandline options to pass to the script exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.script.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.script.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9172"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.script.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.script.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9172 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.script.group
Group under which the script exporter shall be run.
Type: string
Default: "script-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.script.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.script.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.script.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9172
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.script.settings
Free-form configuration for script_exporter, expressed as a Nix attrset and rendered to YAML.
Migration note:
The previous format using script = "sleep 5" is no longer supported. You must use command (list) and args (list), e.g. { command = [ "sleep" ]; args = [ "5" ]; }.
See the official documentation for all available options: https://github.com/ricoberger/script_exporter#configuration-file
Type: YAML 1.1 value
Default: { }
Example:
{
scripts = [
{ name = "sleep"; command = [ "sleep" ]; args = [ "5" ]; }
];
}
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.script.user
User name under which the script exporter shall be run.
Type: string
Default: "script-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.shelly.enable
Whether to enable the prometheus shelly exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.shelly.extraFlags
Extra commandline options to pass to the shelly exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.shelly.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.shelly.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9784"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.shelly.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.shelly.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9784 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.shelly.group
Group under which the shelly exporter shall be run.
Type: string
Default: "shelly-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.shelly.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.shelly.metrics-file
Path to the JSON file with the metric definitions
Type: absolute path
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.shelly.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.shelly.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9784
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.shelly.user
User name under which the shelly exporter shall be run.
Type: string
Default: "shelly-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smartctl.devices
Paths to the disks that will be monitored. Will autodiscover all disks if none given.
Type: list of string
Default: [ ]
Example:
[ "/dev/sda", "/dev/nvme0n1" ];
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smartctl.enable
Whether to enable the prometheus smartctl exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smartctl.extraFlags
Extra commandline options to pass to the smartctl exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smartctl.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.smartctl.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9633"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smartctl.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.smartctl.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9633 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smartctl.group
Group under which the smartctl exporter shall be run.
Type: string
Default: "smartctl-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smartctl.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smartctl.maxInterval
Interval that limits how often a disk can be queried.
Type: string
Default: "60s"
Example: "2m"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smartctl.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smartctl.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9633
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smartctl.user
User name under which the smartctl exporter shall be run.
Type: string
Default: "smartctl-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smokeping.buckets
List of buckets to use for the response duration histogram.
Type: strings concatenated with ","
Default: "5e-05,0.0001,0.0002,0.0004,0.0008,0.0016,0.0032,0.0064,0.0128,0.0256,0.0512,0.1024,0.2048,0.4096,0.8192,1.6384,3.2768,6.5536,13.1072,26.2144"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smokeping.enable
Whether to enable the prometheus smokeping exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smokeping.extraFlags
Extra commandline options to pass to the smokeping exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smokeping.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.smokeping.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9374"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smokeping.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.smokeping.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9374 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smokeping.group
Group under which the smokeping exporter shall be run.
Type: string
Default: "smokeping-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smokeping.hosts
List of endpoints to probe.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smokeping.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smokeping.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smokeping.pingInterval
Interval between pings.
Type: Go duration (https://golang.org/pkg/time/#ParseDuration)
Default: "1s"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smokeping.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9374
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smokeping.telemetryPath
Path under which to expose metrics.
Type: string
Default: "/metrics"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.smokeping.user
User name under which the smokeping exporter shall be run.
Type: string
Default: "smokeping-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snmp.configuration
Snmp exporter configuration as nix attribute set. Mutually exclusive with 'configurationPath' option.
Type: null or (attribute set)
Default: null
Example:
{
auths = {
public_v2 = {
community = "public";
version = 2;
};
};
}
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snmp.configurationPath
Path to a snmp exporter configuration file. Mutually exclusive with 'configuration' option.
Type: null or absolute path
Default: null
Example: ./snmp.yml
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snmp.enable
Whether to enable the prometheus snmp exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snmp.enableConfigCheck
Whether to run a correctness check for the configuration file. This depends on the configuration file residing in the nix-store. Paths passed as string will be copied to the store.
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snmp.environmentFile
EnvironmentFile as defined in systemd.exec(5).
Secrets may be passed to the service without adding them to the world-readable Nix store, by specifying placeholder variables as the option value in Nix and setting these variables accordingly in the environment file.
Environment variables from this file will be interpolated into the
config file using envsubst with this syntax:
$ENVIRONMENT ${VARIABLE}
For variables to use see Prometheus Configuration.
If the file path is set to this option, the parameter
--config.expand-environment-variables is implicitly added to
ExecStart.
Note that this file needs to be available on the host on which this exporter is running.
Type: null or absolute path
Default: null
Example: "/root/prometheus-snmp-exporter.env"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snmp.extraFlags
Extra commandline options to pass to the snmp exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snmp.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.snmp.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9116"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snmp.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.snmp.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9116 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snmp.group
Group under which the snmp exporter shall be run.
Type: string
Default: "snmp-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snmp.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snmp.logFormat
Output format of log messages.
Type: one of "logfmt", "json"
Default: "logfmt"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snmp.logLevel
Only log messages with the given severity or above.
Type: one of "debug", "info", "warn", "error"
Default: "info"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snmp.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snmp.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9116
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snmp.user
User name under which the snmp exporter shall be run.
Type: string
Default: "snmp-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snowflake.account
Snowflake account to collect metrics for (--account).
Type: string
Example: "xy12345.us-east-1"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snowflake.enable
Whether to enable the prometheus snowflake exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snowflake.environmentFile
Path to an environment file, as defined in systemd.exec(5),
used to pass secrets without exposing them in the world-readable Nix
store or the process's command line. For password authentication set
SNOWFLAKE_EXPORTER_PASSWORD; for an encrypted key (see
privateKeyFile) set SNOWFLAKE_EXPORTER_PRIVATE_KEY_PASSWORD.
Type: null or absolute path
Default: null
Example: "/run/secrets/snowflake-exporter.env"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snowflake.extraFlags
Extra commandline options to pass to the snowflake exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snowflake.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.snowflake.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9975"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snowflake.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.snowflake.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9975 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snowflake.group
Group under which the snowflake exporter shall be run.
Type: string
Default: "snowflake-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snowflake.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snowflake.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snowflake.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9975
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snowflake.privateKeyFile
Path to the user's RSA private key for key-pair authentication. The file
is passed to the service via systemd.exec(5) credentials, so
it is read only by the exporter and never copied into the world-readable
Nix store. If the key is encrypted, supply its password via
environmentFile (SNOWFLAKE_EXPORTER_PRIVATE_KEY_PASSWORD).
Mutually exclusive with password authentication; when set, do not also
provide SNOWFLAKE_EXPORTER_PASSWORD.
Type: null or absolute path
Default: null
Example: "/run/secrets/snowflake-exporter.p8"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snowflake.role
Role used when querying metrics (--role).
Type: string
Default: "ACCOUNTADMIN"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snowflake.user
User name under which the snowflake exporter shall be run.
Type: string
Default: "snowflake-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snowflake.username
Username used when querying metrics (--username).
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.snowflake.warehouse
Warehouse used when querying metrics (--warehouse).
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.speedtest.enable
Whether to enable the prometheus speedtest exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.speedtest.extraFlags
Extra commandline options to pass to the speedtest exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.speedtest.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.speedtest.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9798"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.speedtest.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.speedtest.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9798 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.speedtest.group
Group under which the speedtest exporter shall be run.
Type: string
Default: "speedtest-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.speedtest.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.speedtest.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.speedtest.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9798
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.speedtest.serverFallback
If the configured serverID is unavailable, fall back to the closest available server.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.speedtest.serverID
Speedtest.net server ID to run tests against. -1 picks the closest server to your location.
Type: signed integer
Default: -1
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.speedtest.user
User name under which the speedtest exporter shall be run.
Type: string
Default: "speedtest-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.configFile
Path to configuration file.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.configuration
Exporter configuration as nix attribute set. Mutually exclusive with 'configFile' option.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.configuration.jobs
An attrset of metrics scraping jobs to run.
Type: attribute set of (submodule)
Default: { }
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.configuration.jobs.<name>.connections
A list of connection strings of the SQL servers to scrape metrics from
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.configuration.jobs.<name>.interval
How often to run this job, specified in Go duration format.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.configuration.jobs.<name>.queries
SQL queries to run.
Type: attribute set of (submodule)
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.configuration.jobs.<name>.queries.<name>.help
A human-readable description of this metric.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.configuration.jobs.<name>.queries.<name>.labels
A set of columns that will be used as Prometheus labels.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.configuration.jobs.<name>.queries.<name>.query
The SQL query to run.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.configuration.jobs.<name>.queries.<name>.values
A set of columns that will be used as values of this metric.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.configuration.jobs.<name>.startupSql
A list of SQL statements to execute once after making a connection.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.enable
Whether to enable the prometheus sql exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.extraFlags
Extra commandline options to pass to the sql exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.sql.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9237"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.sql.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9237 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.group
Group under which the sql exporter shall be run.
Type: string
Default: "sql-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9237
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.sql.user
User name under which the sql exporter shall be run.
Type: string
Default: "sql-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.statsd.enable
Whether to enable the prometheus statsd exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.statsd.extraFlags
Extra commandline options to pass to the statsd exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.statsd.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.statsd.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9102"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.statsd.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.statsd.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9102 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.statsd.group
Group under which the statsd exporter shall be run.
Type: string
Default: "statsd-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.statsd.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.statsd.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.statsd.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9102
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.statsd.user
User name under which the statsd exporter shall be run.
Type: string
Default: "statsd-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.storagebox.enable
Whether to enable the prometheus storagebox exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.storagebox.extraFlags
Extra commandline options to pass to the storagebox exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.storagebox.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.storagebox.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9509"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.storagebox.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.storagebox.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9509 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.storagebox.group
Group under which the storagebox exporter shall be run.
Type: string
Default: "storagebox-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.storagebox.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.storagebox.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.storagebox.package
The prometheus-storagebox-exporter package to use.
Type: package
Default: pkgs.prometheus-storagebox-exporter
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.storagebox.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9509
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.storagebox.tokenFile
File that contains the Hetzner API token to use.
Type: absolute path not in the Nix store
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.storagebox.user
User name under which the storagebox exporter shall be run.
Type: string
Default: "storagebox-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.surfboard.enable
Whether to enable the prometheus surfboard exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.surfboard.extraFlags
Extra commandline options to pass to the surfboard exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.surfboard.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.surfboard.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9239"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.surfboard.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.surfboard.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9239 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.surfboard.group
Group under which the surfboard exporter shall be run.
Type: string
Default: "surfboard-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.surfboard.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.surfboard.modemAddress
The hostname or IP of the cable modem.
Type: string
Default: "192.168.100.1"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.surfboard.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.surfboard.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9239
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.surfboard.user
User name under which the surfboard exporter shall be run.
Type: string
Default: "surfboard-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.systemd.enable
Whether to enable the prometheus systemd exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.systemd.extraFlags
Extra commandline options to pass to the systemd exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.systemd.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.systemd.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9558"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.systemd.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.systemd.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9558 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.systemd.group
Group under which the systemd exporter shall be run.
Type: string
Default: "systemd-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.systemd.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.systemd.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.systemd.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9558
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.systemd.user
User name under which the systemd exporter shall be run.
Type: string
Default: "systemd-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tailscale.enable
Whether to enable the prometheus tailscale exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tailscale.environmentFile
Environment file containg at least the TAILSCALE_TAILNET, TAILSCALE_OAUTH_CLIENT_ID, and TAILSCALE_OAUTH_CLIENT_SECRET environment variables.
Type: absolute path
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tailscale.extraFlags
Extra commandline options to pass to the tailscale exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tailscale.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.tailscale.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9250"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tailscale.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.tailscale.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9250 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tailscale.group
Group under which the tailscale exporter shall be run.
Type: string
Default: "tailscale-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tailscale.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tailscale.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tailscale.package
The prometheus-tailscale-exporter package to use.
Type: package
Default: pkgs.prometheus-tailscale-exporter
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tailscale.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9250
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tailscale.user
User name under which the tailscale exporter shall be run.
Type: string
Default: "tailscale-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tibber.apiTokenPath
Add here the path to your personal Tibber API Token ('Bearer Token') File. Get your personal Tibber API Token here: https://developer.tibber.com Do not share your personal plaintext Tibber API Token via github. (see: ryantm/agenix, mic92/sops)
Type: absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tibber.enable
Whether to enable the prometheus tibber exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tibber.extraFlags
Extra commandline options to pass to the tibber exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tibber.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.tibber.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9489"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tibber.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.tibber.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9489 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tibber.group
Group under which the tibber exporter shall be run.
Type: string
Default: "tibber-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tibber.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tibber.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tibber.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9489
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.tibber.user
User name under which the tibber exporter shall be run.
Type: string
Default: "tibber-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unbound.enable
Whether to enable the prometheus unbound exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unbound.extraFlags
Extra commandline options to pass to the unbound exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unbound.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.unbound.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9167"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unbound.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.unbound.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9167 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unbound.group
Group under which the unbound exporter shall be run.
Type: string
Default: "unbound-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unbound.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unbound.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unbound.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9167
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unbound.telemetryPath
Path under which to expose metrics.
Type: string
Default: "/metrics"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unbound.unbound.ca
Path to the Unbound server certificate authority
Type: null or absolute path
Default: "/var/lib/unbound/unbound_server.pem"
Example: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unbound.unbound.certificate
Path to the Unbound control socket certificate
Type: null or absolute path
Default: "/var/lib/unbound/unbound_control.pem"
Example: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unbound.unbound.host
Path to the unbound control socket. Supports unix domain sockets, as well as the TCP interface.
Type: string
Default: "tcp://127.0.0.1:8953"
Example: "unix:///run/unbound/unbound.socket"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unbound.unbound.key
Path to the Unbound control socket key.
Type: null or absolute path
Default: "/var/lib/unbound/unbound_control.key"
Example: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unbound.user
User name under which the unbound exporter shall be run.
Type: string
Default: "unbound-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.controllers
List of Unifi controllers to poll. Use defaults if empty.
Type: list of (submodule)
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.controllers.*.hash_pii
Hash, with md5, client names and MAC addresses. This attempts to protect personally identifiable information.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/unpoller.nix
services.prometheus.exporters.unpoller.controllers.*.pass
Path of a file containing the password for the unifi service user. This file needs to be readable by the unifi-poller user.
Type: absolute path
Default: unpoller-unifi-default.password
Declared by: nixos/modules/services/monitoring/unpoller.nix
services.prometheus.exporters.unpoller.controllers.*.save_alarms
Collect and save data from UniFi alarms to influxdb and Loki.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/unpoller.nix
services.prometheus.exporters.unpoller.controllers.*.save_anomalies
Collect and save data from UniFi anomalies to influxdb and Loki.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/unpoller.nix
services.prometheus.exporters.unpoller.controllers.*.save_dpi
Collect and save data from deep packet inspection. Adds around 150 data points and impacts performance.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/unpoller.nix
services.prometheus.exporters.unpoller.controllers.*.save_events
Collect and save data from UniFi events to influxdb and Loki.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/unpoller.nix
services.prometheus.exporters.unpoller.controllers.*.save_ids
Collect and save data from the intrusion detection system to influxdb and Loki.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/unpoller.nix
services.prometheus.exporters.unpoller.controllers.*.save_sites
Collect and save site data.
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/unpoller.nix
services.prometheus.exporters.unpoller.controllers.*.sites
List of site names for which statistics should be exported. Or the string "default" for the default site or the string "all" for all sites.
Type: one of "default", "all" or list of string
Default: "all"
Declared by: nixos/modules/services/monitoring/unpoller.nix
services.prometheus.exporters.unpoller.controllers.*.url
URL of the Unifi controller.
Type: string
Default: "https://unifi:8443"
Declared by: nixos/modules/services/monitoring/unpoller.nix
services.prometheus.exporters.unpoller.controllers.*.user
Unifi service user name.
Type: string
Default: "unifi"
Declared by: nixos/modules/services/monitoring/unpoller.nix
services.prometheus.exporters.unpoller.controllers.*.verify_ssl
Verify the Unifi controller's certificate.
Type: boolean
Default: true
Declared by: nixos/modules/services/monitoring/unpoller.nix
services.prometheus.exporters.unpoller.enable
Whether to enable the prometheus unpoller exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.extraFlags
Extra commandline options to pass to the unpoller exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.unpoller.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9130"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.unpoller.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9130 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.group
Group under which the unpoller exporter shall be run.
Type: string
Default: "unpoller-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.log.debug
Whether to enable debug logging including line numbers, high resolution timestamps, per-device logs.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.log.prometheusErrors
Whether to enable emitting errors to prometheus.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.log.quiet
Whether to enable startup and error logs only.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.loki.interval
How often the events are polled and pushed to Loki.
Type: string
Default: "2m"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.loki.pass
Path of a file containing the password for Loki. This file needs to be readable by the unifi-poller user.
Type: absolute path
Default: "unpoller-influxdb-default.password"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.loki.tenant_id
Tenant ID to use in Loki.
Type: string
Default: ""
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.loki.timeout
Should be increased in case of timeout errors.
Type: string
Default: "10s"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.loki.url
URL of the Loki host.
Type: string
Default: ""
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.loki.user
Username for Loki.
Type: string
Default: ""
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.loki.verify_ssl
Verify Loki's certificate.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9130
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.unpoller.user
User name under which the unpoller exporter shall be run.
Type: string
Default: "unpoller-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.v2ray.enable
Whether to enable the prometheus v2ray exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.v2ray.extraFlags
Extra commandline options to pass to the v2ray exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.v2ray.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.v2ray.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9299"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.v2ray.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.v2ray.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9299 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.v2ray.group
Group under which the v2ray exporter shall be run.
Type: string
Default: "v2ray-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.v2ray.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.v2ray.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.v2ray.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9299
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.v2ray.user
User name under which the v2ray exporter shall be run.
Type: string
Default: "v2ray-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.v2ray.v2rayEndpoint
v2ray grpc api endpoint
Type: string
Default: "127.0.0.1:54321"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.varnish.enable
Whether to enable the prometheus varnish exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.varnish.extraFlags
Extra commandline options to pass to the varnish exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.varnish.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.varnish.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9131"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.varnish.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.varnish.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9131 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.varnish.group
Group under which the varnish exporter shall be run.
Type: string
Default: "varnish-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.varnish.healthPath
Path under which to expose healthcheck. Disabled unless configured.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.varnish.instance
varnishstat -n value.
Type: null or string
Default: config.services.varnish.stateDir
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.varnish.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.varnish.noExit
Do not exit server on Varnish scrape errors.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.varnish.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.varnish.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9131
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.varnish.raw
Enable raw stdout logging without timestamps.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.varnish.telemetryPath
Path under which to expose metrics.
Type: string
Default: "/metrics"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.varnish.user
User name under which the varnish exporter shall be run.
Type: string
Default: "varnish-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.varnish.varnishStatPath
Path to varnishstat.
Type: string
Default: "varnishstat"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.varnish.verbose
Enable verbose logging.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.varnish.withGoMetrics
Export go runtime and http handler metrics.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.wireguard.enable
Whether to enable the prometheus wireguard exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.wireguard.extraFlags
Extra commandline options to pass to the wireguard exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.wireguard.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.wireguard.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9586"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.wireguard.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.wireguard.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9586 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.wireguard.group
Group under which the wireguard exporter shall be run.
Type: string
Default: "wireguard-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.wireguard.interfaces
Specifies the interface(s) passed to the wg show
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.wireguard.latestHandshakeDelay
Adds the wireguard_latest_handshake_delay_seconds metric that automatically calculates the seconds passed since the last handshake.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.wireguard.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.wireguard.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.wireguard.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9586
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.wireguard.prependSudo
Whether or no to prepend sudo to wg commands.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.wireguard.singleSubnetPerField
By default, all allowed IPs and subnets are comma-separated in the
allowed_ips field. With this option enabled,
a single IP and subnet will be listed in fields like allowed_ip_0,
allowed_ip_1 and so on.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.wireguard.user
User name under which the wireguard exporter shall be run.
Type: string
Default: "wireguard-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.wireguard.verbose
Whether to enable verbose logging mode for prometheus-wireguard-exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.wireguard.wireguardConfig
Path to the Wireguard Config to add the peer's name to the stats of a peer.
Please note that networking.wg-quick is required for this feature
as networking.wireguard uses
wg(8)
to set the peers up.
Type: null or absolute path or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.wireguard.withRemoteIp
Whether or not the remote IP of a WireGuard peer should be exposed via prometheus.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.xray.enable
Whether to enable the prometheus xray exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.xray.extraFlags
Extra commandline options to pass to the xray exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.xray.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.xray.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9550"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.xray.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.xray.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9550 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.xray.group
Group under which the xray exporter shall be run.
Type: string
Default: "xray-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.xray.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.xray.logPath
Path to Xray access log file. Set to empty string to disable user metrics.
Type: string
Default: "/var/log/xray/access.log"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.xray.logTimeWindow
Time window in minutes for user metrics.
Type: signed integer
Default: 5
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.xray.metricsPath
Path under which to expose metrics.
Type: string
Default: "/scrape"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.xray.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.xray.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9550
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.xray.scrapeTimeout
Timeout in seconds for every individual scrape.
Type: signed integer
Default: 5
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.xray.user
User name under which the xray exporter shall be run.
Type: string
Default: "xray-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.xray.withUserMetrics
Collect user metrics from the Xray access log.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.xray.xrayEndpoint
Xray gRPC API endpoint.
Type: string
Default: "127.0.0.1:8080"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.yace.configFile
Path to the YACE configuration file, defining which CloudWatch
metrics to scrape. See
https://github.com/prometheus-community/yet-another-cloudwatch-exporter#configuration
for the format. AWS credentials are supplied separately via the
environment (see environmentFile, an IMDS instance role,
or the usual AWS_* variables).
Type: absolute path
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.yace.enable
Whether to enable the prometheus yace exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.yace.environmentFile
Path to an environment file, as defined in systemd.exec(5),
used to pass AWS credentials (e.g. AWS_ACCESS_KEY_ID,
AWS_SECRET_ACCESS_KEY, AWS_REGION) to the exporter without exposing
them in the world-readable Nix store. Not needed on EC2 with an IMDS
instance role.
Type: null or absolute path
Default: null
Example: "/run/secrets/yace.env"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.yace.extraFlags
Extra commandline options to pass to the yace exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.yace.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.yace.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 5000"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.yace.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.yace.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 5000 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.yace.group
Group under which the yace exporter shall be run.
Type: string
Default: "yace-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.yace.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.yace.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.yace.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 5000
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.yace.user
User name under which the yace exporter shall be run.
Type: string
Default: "yace-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs-siebenmann.depth
Depth of the vdev tree to report on. 0 is the pool, 1 is top level vdevs, 2 is devices too.
Type: signed integer
Default: 1
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs-siebenmann.enable
Whether to enable the prometheus zfs-siebenmann exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs-siebenmann.extraFlags
Extra commandline options to pass to the zfs-siebenmann exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs-siebenmann.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.zfs-siebenmann.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9700"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs-siebenmann.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.zfs-siebenmann.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9700 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs-siebenmann.fullPath
Report the full path of disks.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs-siebenmann.group
Group under which the zfs-siebenmann exporter shall be run.
Type: string
Default: "zfs-siebenmann-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs-siebenmann.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs-siebenmann.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs-siebenmann.pools
Name of the pool(s) to collect, repeat for multiple pools (default: all pools).
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs-siebenmann.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9700
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs-siebenmann.user
User name under which the zfs-siebenmann exporter shall be run.
Type: string
Default: "zfs-siebenmann-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs.enable
Whether to enable the prometheus zfs exporter.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs.extraFlags
Extra commandline options to pass to the zfs exporter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs.firewallFilter
Specify a filter for iptables to use when
services.prometheus.exporters.zfs.openFirewall
is true. It is used as ip46tables -I nixos-fw firewallFilter -j nixos-fw-accept.
Type: null or string
Default: null
Example:
"-i eth0 -p tcp -m tcp --dport 9134"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs.firewallRules
Specify rules for nftables to add to the input chain
when services.prometheus.exporters.zfs.openFirewall is true.
Type: null or strings concatenated with "\n"
Default: null
Example:
iifname "eth0" tcp dport 9134 counter accept
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs.group
Group under which the zfs exporter shall be run.
Type: string
Default: "zfs-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs.listenAddress
Address to listen on.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs.openFirewall
Open port in firewall for incoming connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs.pools
Name of the pool(s) to collect, repeat for multiple pools (default: all pools).
Type: null or (list of string)
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9134
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs.telemetryPath
Path under which to expose metrics.
Type: string
Default: "/metrics"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.exporters.zfs.user
User name under which the zfs exporter shall be run.
Type: string
Default: "zfs-exporter"
Declared by: nixos/modules/services/monitoring/prometheus/exporters.nix
services.prometheus.extraFlags
Extra commandline options when launching Prometheus.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.globalConfig
Parameters that are valid in all configuration contexts. They also serve as defaults for other configuration sections
Type: submodule
Default: { }
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.globalConfig.evaluation_interval
How frequently to evaluate rules by default.
Defaults to 1m in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.globalConfig.external_labels
The labels to add to any time series or alerts when communicating with external systems (federation, remote storage, Alertmanager).
Type: null or (attribute set of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.globalConfig.query_log_file
Path to the file prometheus should write its query log to.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.globalConfig.scrape_interval
How frequently to scrape targets by default.
Defaults to 1m in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.globalConfig.scrape_timeout
How long until a scrape request times out.
Defaults to 10s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.listenAddress
Address to listen on for the web interface, API, and telemetry.
Type: string
Default: "0.0.0.0"
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.package
The prometheus package to use.
Type: package
Default: pkgs.prometheus
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.port
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9090
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.pushgateway.enable
Whether to enable Prometheus Pushgateway.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/pushgateway.nix
services.prometheus.pushgateway.extraFlags
Extra commandline options when launching the Pushgateway.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/pushgateway.nix
services.prometheus.pushgateway.log.format
Set the log target and format.
null will default to logger:stderr.
Type: null or string
Default: null
Example: "logger:syslog?appname=bob&local=7"
Declared by: nixos/modules/services/monitoring/prometheus/pushgateway.nix
services.prometheus.pushgateway.log.level
Only log messages with the given severity or above.
null will default to info.
Type: null or one of "debug", "info", "warn", "error", "fatal"
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/pushgateway.nix
services.prometheus.pushgateway.package
The prometheus-pushgateway package to use.
Type: package
Default: pkgs.prometheus-pushgateway
Declared by: nixos/modules/services/monitoring/prometheus/pushgateway.nix
services.prometheus.pushgateway.persistMetrics
Whether to persist metrics to a file.
When enabled metrics will be saved to a file called
metrics in the directory
/var/lib/pushgateway. The directory below
/var/lib can be set using
services.prometheus.pushgateway.stateDir.
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/prometheus/pushgateway.nix
services.prometheus.pushgateway.persistence.interval
The minimum interval at which to write out the persistence file.
null will default to 5m.
Type: null or string
Default: null
Example: "10m"
Declared by: nixos/modules/services/monitoring/prometheus/pushgateway.nix
services.prometheus.pushgateway.stateDir
Directory below /var/lib to store metrics.
This directory will be created automatically using systemd's
StateDirectory mechanism when
services.prometheus.pushgateway.persistMetrics
is enabled.
Type: string
Default: "pushgateway"
Declared by: nixos/modules/services/monitoring/prometheus/pushgateway.nix
services.prometheus.pushgateway.web.external-url
The URL under which Pushgateway is externally reachable.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/pushgateway.nix
services.prometheus.pushgateway.web.listen-address
Address to listen on for the web interface, API and telemetry.
null will default to :9091.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/pushgateway.nix
services.prometheus.pushgateway.web.route-prefix
Prefix for the internal routes of web endpoints.
Defaults to the path of
services.prometheus.pushgateway.web.external-url.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/pushgateway.nix
services.prometheus.pushgateway.web.telemetry-path
Path under which to expose metrics.
null will default to /metrics.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/pushgateway.nix
services.prometheus.remoteRead
Parameters of the endpoints to query from. See the official documentation for more information.
Type: list of (submodule)
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.basic_auth
Sets the Authorization header on every remote read request with the
configured username and password.
password and password_file are mutually exclusive.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.basic_auth.password
HTTP password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.basic_auth.password_file
HTTP password file
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.basic_auth.username
HTTP username
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.bearer_token
Sets the Authorization header on every remote read request with
the configured bearer token. It is mutually exclusive with bearer_token_file.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.bearer_token_file
Sets the Authorization header on every remote read request with the bearer token
read from the configured file. It is mutually exclusive with bearer_token.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.headers
Custom HTTP headers to be sent along with each remote read request. Be aware that headers that are set by Prometheus itself can't be overwritten.
Type: null or (attribute set of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.name
Name of the remote read config, which if specified must be unique among remote read configs. The name will be used in metrics and logging in place of a generated value to help users distinguish between remote read configs.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.proxy_url
Optional Proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.read_recent
Whether reads should be made for queries for time ranges that the local storage should have complete data for.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.remote_timeout
Timeout for requests to the remote read endpoint.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.required_matchers
An optional list of equality matchers which have to be present in a selector to query the remote read endpoint.
Type: null or (attribute set of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.tls_config
Configures the remote read request's TLS settings.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteRead.*.url
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite
Parameters of the endpoints to send samples to. See the official documentation for more information.
Type: list of (submodule)
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.basic_auth
Sets the Authorization header on every remote write request with the
configured username and password.
password and password_file are mutually exclusive.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.basic_auth.password
HTTP password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.basic_auth.password_file
HTTP password file
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.basic_auth.username
HTTP username
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.bearer_token
Sets the Authorization header on every remote write request with
the configured bearer token. It is mutually exclusive with bearer_token_file.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.bearer_token_file
Sets the Authorization header on every remote write request with the bearer token
read from the configured file. It is mutually exclusive with bearer_token.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.headers
Custom HTTP headers to be sent along with each remote write request. Be aware that headers that are set by Prometheus itself can't be overwritten.
Type: null or (attribute set of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.metadata_config
Configures the sending of series metadata to remote storage. Metadata configuration is subject to change at any point or be removed in future releases.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.metadata_config.send
Whether metric metadata is sent to remote storage or not.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.metadata_config.send_interval
How frequently metric metadata is sent to remote storage.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.name
Name of the remote write config, which if specified must be unique among remote write configs. The name will be used in metrics and logging in place of a generated value to help users distinguish between remote write configs.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.proxy_url
Optional Proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.queue_config
Configures the queue used to write to remote storage.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.queue_config.batch_send_deadline
Maximum time a sample will wait in buffer.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.queue_config.capacity
Number of samples to buffer per shard before we block reading of more samples from the WAL. It is recommended to have enough capacity in each shard to buffer several requests to keep throughput up while processing occasional slow remote requests.
Type: null or signed integer
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.queue_config.max_backoff
Maximum retry delay.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.queue_config.max_samples_per_send
Maximum number of samples per send.
Type: null or signed integer
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.queue_config.max_shards
Maximum number of shards, i.e. amount of concurrency.
Type: null or signed integer
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.queue_config.min_backoff
Initial retry delay. Gets doubled for every retry.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.queue_config.min_shards
Minimum number of shards, i.e. amount of concurrency.
Type: null or signed integer
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.remote_timeout
Timeout for requests to the remote write endpoint.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.sigv4
Configures AWS Signature Version 4 settings.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.sigv4.access_key
The Access Key ID.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.sigv4.profile
The named AWS profile used to authenticate.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.sigv4.region
The AWS region.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.sigv4.role_arn
The AWS role ARN.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.sigv4.secret_key
The Secret Access Key.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.tls_config
Configures the remote write request's TLS settings.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.url
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.write_relabel_configs
List of remote write relabel configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.write_relabel_configs.*.action
Action to perform based on regex matching.
Defaults to replace in prometheus
when set to null.
Type: null or one of "replace", "lowercase", "uppercase", "keep", "drop", "hashmod", "labelmap", "labeldrop", "labelkeep"
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.write_relabel_configs.*.modulus
Modulus to take of the hash of the source label values.
Type: null or signed integer
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.write_relabel_configs.*.regex
Regular expression against which the extracted value is matched.
Defaults to (.*) in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.write_relabel_configs.*.replacement
Replacement value against which a regex replace is performed if the regular expression matches.
Defaults to $1 in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.write_relabel_configs.*.separator
Separator placed between concatenated source label values.
Defaults to ; in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.write_relabel_configs.*.source_labels
The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.remoteWrite.*.write_relabel_configs.*.target_label
Label to which the resulting value is written in a replace action. It is mandatory for replace actions.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.retentionTime
How long to retain samples in storage.
Type: null or string
Default: null
Example: "15d"
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.ruleFiles
Any additional rules files to include in this configuration.
Type: list of absolute path
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.rules
Alerting and/or Recording rules to evaluate at runtime.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.sachet.address
The address Sachet will listen to.
Type: string
Default: "localhost"
Declared by: nixos/modules/services/monitoring/prometheus/sachet.nix
services.prometheus.sachet.configuration
Sachet's configuration as a nix attribute set.
Type: null or (attribute set)
Default: null
Example:
{
providers = {
twilio = {
# environment variables gets expanded at runtime
account_sid = "$TWILIO_ACCOUNT";
auth_token = "$TWILIO_TOKEN";
};
};
templates = [ ./some-template.tmpl ];
receivers = [{
name = "pager";
provider = "twilio";
to = [ "+33123456789" ];
text = "{{ template \"message\" . }}";
}];
}
Declared by: nixos/modules/services/monitoring/prometheus/sachet.nix
services.prometheus.sachet.enable
Whether to enable Sachet, an SMS alerting tool for the Prometheus Alertmanager.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/sachet.nix
services.prometheus.sachet.port
The port Sachet will listen to.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9876
Declared by: nixos/modules/services/monitoring/prometheus/sachet.nix
services.prometheus.scrapeConfigs
A list of scrape configurations.
Type: list of (submodule)
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.authorization
Sets the Authorization header on every scrape request with the configured credentials.
Type: null or (attribute set)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.azure_sd_configs
List of Azure service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.azure_sd_configs.*.authentication_method
The authentication method, either OAuth or ManagedIdentity. See https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview
Defaults to OAuth in prometheus
when set to null.
Type: null or one of "OAuth", "ManagedIdentity"
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.azure_sd_configs.*.client_id
Optional client ID. Only required with authentication_method OAuth.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.azure_sd_configs.*.client_secret
Optional client secret. Only required with authentication_method OAuth.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.azure_sd_configs.*.environment
The Azure environment.
Defaults to AzurePublicCloud in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.azure_sd_configs.*.follow_redirects
Configure whether HTTP requests follow HTTP 3xx redirects.
Defaults to true in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.azure_sd_configs.*.port
The port to scrape metrics from. If using the public IP address, this must instead be specified in the relabeling rule.
Defaults to 80 in prometheus
when set to null.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.azure_sd_configs.*.proxy_url
Optional proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.azure_sd_configs.*.refresh_interval
Refresh interval to re-read the instance list.
Defaults to 300s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.azure_sd_configs.*.subscription_id
The subscription ID.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.azure_sd_configs.*.tenant_id
Optional tenant ID. Only required with authentication_method OAuth.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.azure_sd_configs.*.tls_config
TLS configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.azure_sd_configs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.azure_sd_configs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.azure_sd_configs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.azure_sd_configs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.azure_sd_configs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.basic_auth
Sets the Authorization header on every scrape request with the
configured username and password.
password and password_file are mutually exclusive.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.basic_auth.password
HTTP password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.basic_auth.password_file
HTTP password file
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.basic_auth.username
HTTP username
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.bearer_token
Sets the Authorization header on every scrape request with
the configured bearer token. It is mutually exclusive with
bearer_token_file.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.bearer_token_file
Sets the Authorization header on every scrape request with
the bearer token read from the configured file. It is mutually
exclusive with bearer_token.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.body_size_limit
An uncompressed response body larger than this many bytes will cause the scrape to fail. 0 means no limit. Example: 100MB. This is an experimental feature, this behaviour could change or be removed in the future.
Defaults to 0 in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs
List of Consul service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.allow_stale
Allow stale Consul results (see https://www.consul.io/api/index.html#consistency-modes).
Will reduce load on Consul.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.authorization
Optional Authorization header configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.authorization.credentials
Sets the credentials. It is mutually exclusive with credentials_file.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.authorization.credentials_file
Sets the credentials to the credentials read from the configured file.
It is mutually exclusive with credentials.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.authorization.type
Sets the authentication type.
Defaults to Bearer in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.basic_auth
Optional HTTP basic authentication information.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.basic_auth.password
HTTP password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.basic_auth.password_file
HTTP password file
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.basic_auth.username
HTTP username
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.datacenter
Consul datacenter
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.follow_redirects
Configure whether HTTP requests follow HTTP 3xx redirects.
Defaults to true in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.node_meta
Node metadata used to filter nodes for a given service.
Type: null or (attribute set of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.oauth2
Optional OAuth 2.0 configuration. Cannot be used at the same time as basic_auth or authorization.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.oauth2.client_id
OAuth client ID.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.oauth2.client_secret
OAuth client secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.oauth2.client_secret_file
Read the client secret from a file. It is mutually exclusive with client_secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.oauth2.endpoint_params
Optional parameters to append to the token URL.
Type: null or (attribute set of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.oauth2.scopes
Scopes for the token request.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.oauth2.token_url
The URL to fetch the token from.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.password
Consul password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.proxy_url
Optional proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.refresh_interval
The time after which the provided names are refreshed.
On large setup it might be a good idea to increase this value because the catalog will change all the time.
Defaults to 30s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.scheme
Consul scheme
Defaults to http in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.server
Consul server to query.
Defaults to localhost:8500 in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.services
A list of services for which targets are retrieved.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.tag_separator
The string by which Consul tags are joined into the tag label.
Defaults to , in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.tags
An optional list of tags used to filter nodes for a given service. Services must contain all tags in the list.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.tls_config
Configures the Consul request's TLS settings.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.token
Consul token
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.consul_sd_configs.*.username
Consul username
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs
List of DigitalOcean service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.authorization
Optional Authorization header configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.authorization.credentials
Sets the credentials. It is mutually exclusive with credentials_file.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.authorization.credentials_file
Sets the credentials to the credentials read from the configured file.
It is mutually exclusive with credentials.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.authorization.type
Sets the authentication type.
Defaults to Bearer in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.basic_auth
Optional HTTP basic authentication information.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.basic_auth.password
HTTP password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.basic_auth.password_file
HTTP password file
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.basic_auth.username
HTTP username
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.follow_redirects
Configure whether HTTP requests follow HTTP 3xx redirects.
Defaults to true in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.oauth2
Optional OAuth 2.0 configuration. Cannot be used at the same time as basic_auth or authorization.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.oauth2.client_id
OAuth client ID.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.oauth2.client_secret
OAuth client secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.oauth2.client_secret_file
Read the client secret from a file. It is mutually exclusive with client_secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.oauth2.endpoint_params
Optional parameters to append to the token URL.
Type: null or (attribute set of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.oauth2.scopes
Scopes for the token request.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.oauth2.token_url
The URL to fetch the token from.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.port
The port to scrape metrics from.
Defaults to 80 in prometheus
when set to null.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.proxy_url
Optional proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.refresh_interval
The time after which the droplets are refreshed.
Defaults to 60s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.tls_config
TLS configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.digitalocean_sd_configs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dns_sd_configs
List of DNS service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dns_sd_configs.*.names
A list of DNS SRV record names to be queried.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dns_sd_configs.*.port
The port number used if the query type is not SRV.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dns_sd_configs.*.refresh_interval
The time after which the provided names are refreshed.
Defaults to 30s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dns_sd_configs.*.type
The type of DNS query to perform.
Defaults to SRV in prometheus
when set to null.
Type: null or one of "SRV", "A", "AAAA", "MX", "NS"
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs
List of Docker service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.authorization
Optional Authorization header configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.authorization.credentials
Sets the credentials. It is mutually exclusive with credentials_file.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.authorization.credentials_file
Sets the credentials to the credentials read from the configured file.
It is mutually exclusive with credentials.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.authorization.type
Sets the authentication type.
Defaults to Bearer in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.basic_auth
Optional HTTP basic authentication information.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.basic_auth.password
HTTP password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.basic_auth.password_file
HTTP password file
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.basic_auth.username
HTTP username
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.filters
Optional filters to limit the discovery process to a subset of available resources.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.filters.*.name
Name of the filter. The available filters are listed in the upstream documentation: Services: https://docs.docker.com/engine/api/v1.40/#operation/ServiceList Tasks: https://docs.docker.com/engine/api/v1.40/#operation/TaskList Nodes: https://docs.docker.com/engine/api/v1.40/#operation/NodeList
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.filters.*.values
Value for the filter.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.follow_redirects
Configure whether HTTP requests follow HTTP 3xx redirects.
Defaults to true in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.host
Address of the Docker daemon.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.host_networking_host
The host to use if the container is in host networking mode.
Defaults to localhost in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.oauth2
Optional OAuth 2.0 configuration. Cannot be used at the same time as basic_auth or authorization.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.oauth2.client_id
OAuth client ID.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.oauth2.client_secret
OAuth client secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.oauth2.client_secret_file
Read the client secret from a file. It is mutually exclusive with client_secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.oauth2.endpoint_params
Optional parameters to append to the token URL.
Type: null or (attribute set of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.oauth2.scopes
Scopes for the token request.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.oauth2.token_url
The URL to fetch the token from.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.port
The port to scrape metrics from, when role is nodes, and for discovered
tasks and services that don't have published ports.
Defaults to 80 in prometheus
when set to null.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.proxy_url
Optional proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.refresh_interval
The time after which the containers are refreshed.
Defaults to 60s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.tls_config
TLS configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.docker_sd_configs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs
List of Docker Swarm service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.authorization
Optional Authorization header configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.authorization.credentials
Sets the credentials. It is mutually exclusive with credentials_file.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.authorization.credentials_file
Sets the credentials to the credentials read from the configured file.
It is mutually exclusive with credentials.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.authorization.type
Sets the authentication type.
Defaults to Bearer in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.basic_auth
Optional HTTP basic authentication information.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.basic_auth.password
HTTP password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.basic_auth.password_file
HTTP password file
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.basic_auth.username
HTTP username
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.filters
Optional filters to limit the discovery process to a subset of available resources.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.filters.*.name
Name of the filter. The available filters are listed in the upstream documentation: Services: https://docs.docker.com/engine/api/v1.40/#operation/ServiceList Tasks: https://docs.docker.com/engine/api/v1.40/#operation/TaskList Nodes: https://docs.docker.com/engine/api/v1.40/#operation/NodeList
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.filters.*.values
Value for the filter.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.follow_redirects
Configure whether HTTP requests follow HTTP 3xx redirects.
Defaults to true in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.host
Address of the Docker daemon.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.oauth2
Optional OAuth 2.0 configuration. Cannot be used at the same time as basic_auth or authorization.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.oauth2.client_id
OAuth client ID.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.oauth2.client_secret
OAuth client secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.oauth2.client_secret_file
Read the client secret from a file. It is mutually exclusive with client_secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.oauth2.endpoint_params
Optional parameters to append to the token URL.
Type: null or (attribute set of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.oauth2.scopes
Scopes for the token request.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.oauth2.token_url
The URL to fetch the token from.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.port
The port to scrape metrics from, when role is nodes, and for discovered
tasks and services that don't have published ports.
Defaults to 80 in prometheus
when set to null.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.proxy_url
Optional proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.refresh_interval
The time after which the containers are refreshed.
Defaults to 60s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.role
Role of the targets to retrieve. Must be services, tasks, or nodes.
Type: one of "services", "tasks", "nodes"
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.tls_config
TLS configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.ec2_sd_configs
List of EC2 service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.ec2_sd_configs.*.access_key
The AWS API key id. If blank, the environment variable
AWS_ACCESS_KEY_ID is used.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.ec2_sd_configs.*.endpoint
Custom endpoint to be used.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.ec2_sd_configs.*.filters
Filters can be used optionally to filter the instance list by other criteria.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.ec2_sd_configs.*.filters.*.name
See this list for the available filters.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.ec2_sd_configs.*.filters.*.values
Value of the filter.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.ec2_sd_configs.*.port
The port to scrape metrics from. If using the public IP address, this must instead be specified in the relabeling rule.
Defaults to 80 in prometheus
when set to null.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.ec2_sd_configs.*.profile
Named AWS profile used to connect to the API.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.ec2_sd_configs.*.refresh_interval
Refresh interval to re-read the instance list.
Defaults to 60s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.ec2_sd_configs.*.region
The AWS Region. If blank, the region from the instance metadata is used.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.ec2_sd_configs.*.role_arn
AWS Role ARN, an alternative to using AWS API keys.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.ec2_sd_configs.*.secret_key
The AWS API key secret. If blank, the environment variable
AWS_SECRET_ACCESS_KEY is used.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs
List of Eureka service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.authorization
Optional Authorization header configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.authorization.credentials
Sets the credentials. It is mutually exclusive with credentials_file.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.authorization.credentials_file
Sets the credentials to the credentials read from the configured file.
It is mutually exclusive with credentials.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.authorization.type
Sets the authentication type.
Defaults to Bearer in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.basic_auth
Optional HTTP basic authentication information.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.basic_auth.password
HTTP password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.basic_auth.password_file
HTTP password file
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.basic_auth.username
HTTP username
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.follow_redirects
Configure whether HTTP requests follow HTTP 3xx redirects.
Defaults to true in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.oauth2
Optional OAuth 2.0 configuration. Cannot be used at the same time as basic_auth or authorization.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.oauth2.client_id
OAuth client ID.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.oauth2.client_secret
OAuth client secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.oauth2.client_secret_file
Read the client secret from a file. It is mutually exclusive with client_secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.oauth2.endpoint_params
Optional parameters to append to the token URL.
Type: null or (attribute set of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.oauth2.scopes
Scopes for the token request.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.oauth2.token_url
The URL to fetch the token from.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.proxy_url
Optional proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.server
The URL to connect to the Eureka server.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.tls_config
TLS configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.eureka_sd_configs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.fallback_scrape_protocol
Fallback protocol to use if a scrape returns blank, unparseable, or otherwise invalid Content-Type.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.file_sd_configs
List of file service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.file_sd_configs.*.files
Patterns for files from which target groups are extracted. Refer to the Prometheus documentation for permitted filename patterns and formats.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.file_sd_configs.*.refresh_interval
Refresh interval to re-read the files.
Defaults to 5m in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.gce_sd_configs
List of Google Compute Engine service discovery configurations.
See the relevant Prometheus configuration docs for more detail.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.gce_sd_configs.*.filter
Filter can be used optionally to filter the instance list by other criteria Syntax of this filter string is described here in the filter query parameter section: https://cloud.google.com/compute/docs/reference/latest/instances/list.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.gce_sd_configs.*.port
The port to scrape metrics from. If using the public IP address, this must instead be specified in the relabeling rule.
Defaults to 80 in prometheus
when set to null.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.gce_sd_configs.*.project
The GCP Project.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.gce_sd_configs.*.refresh_interval
Refresh interval to re-read the cloud instance list.
Defaults to 60s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.gce_sd_configs.*.tag_separator
The tag separator used to separate concatenated GCE instance network tags.
See the GCP documentation on network tags for more information: https://cloud.google.com/vpc/docs/add-remove-network-tags
Defaults to , in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.gce_sd_configs.*.zone
The zone of the scrape targets. If you need multiple zones use multiple gce_sd_configs.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs
List of Hetzner service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.authorization
Optional Authorization header configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.authorization.credentials
Sets the credentials. It is mutually exclusive with credentials_file.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.authorization.credentials_file
Sets the credentials to the credentials read from the configured file.
It is mutually exclusive with credentials.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.authorization.type
Sets the authentication type.
Defaults to Bearer in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.basic_auth
Optional HTTP basic authentication information.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.basic_auth.password
HTTP password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.basic_auth.password_file
HTTP password file
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.basic_auth.username
HTTP username
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.follow_redirects
Configure whether HTTP requests follow HTTP 3xx redirects.
Defaults to true in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.oauth2
Optional OAuth 2.0 configuration. Cannot be used at the same time as basic_auth or authorization.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.oauth2.client_id
OAuth client ID.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.oauth2.client_secret
OAuth client secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.oauth2.client_secret_file
Read the client secret from a file. It is mutually exclusive with client_secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.oauth2.endpoint_params
Optional parameters to append to the token URL.
Type: null or (attribute set of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.oauth2.scopes
Scopes for the token request.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.oauth2.token_url
The URL to fetch the token from.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.port
The port to scrape metrics from.
Defaults to 80 in prometheus
when set to null.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.proxy_url
Optional proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.refresh_interval
The time after which the servers are refreshed.
Defaults to 60s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.role
The Hetzner role of entities that should be discovered.
One of robot or hcloud.
Type: one of "robot", "hcloud"
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.tls_config
TLS configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.hetzner_sd_configs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.honor_labels
Controls how Prometheus handles conflicts between labels that are already present in scraped data and labels that Prometheus would attach server-side ("job" and "instance" labels, manually configured target labels, and labels generated by service discovery implementations).
If honor_labels is set to "true", label conflicts are resolved by keeping label values from the scraped data and ignoring the conflicting server-side labels.
If honor_labels is set to "false", label conflicts are resolved by renaming conflicting labels in the scraped data to "exported_<original-label>" (for example "exported_instance", "exported_job") and then attaching server-side labels. This is useful for use cases such as federation, where all labels specified in the target should be preserved.
Defaults to false in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.honor_timestamps
honor_timestamps controls whether Prometheus respects the timestamps present in scraped data.
If honor_timestamps is set to true, the timestamps of the metrics exposed
by the target will be used.
If honor_timestamps is set to false, the timestamps of the metrics exposed
by the target will be ignored.
Defaults to true in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.http_sd_configs
List of HTTP service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.http_sd_configs.*.basic_auth
Authentication information used to authenticate to the API server. password and password_file are mutually exclusive.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.http_sd_configs.*.basic_auth.password
HTTP password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.http_sd_configs.*.basic_auth.password_file
HTTP password file
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.http_sd_configs.*.basic_auth.username
HTTP username
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.http_sd_configs.*.follow_redirects
Configure whether HTTP requests follow HTTP 3xx redirects.
Defaults to true in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.http_sd_configs.*.proxy_url
Optional proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.http_sd_configs.*.refresh_interval
Refresh interval to re-query the endpoint.
Defaults to 60s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.http_sd_configs.*.tls_config
Configures the scrape request's TLS settings.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.http_sd_configs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.http_sd_configs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.http_sd_configs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.http_sd_configs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.http_sd_configs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.http_sd_configs.*.url
URL from which the targets are fetched.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.job_name
The job name assigned to scraped metrics by default.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs
List of Kubernetes service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.api_server
The API server addresses. If left empty, Prometheus is assumed to run inside of the cluster and will discover API servers automatically and use the pod's CA certificate and bearer token file at /var/run/secrets/kubernetes.io/serviceaccount/.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.authorization
Optional Authorization header configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.authorization.credentials
Sets the credentials. It is mutually exclusive with credentials_file.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.authorization.credentials_file
Sets the credentials to the credentials read from the configured file.
It is mutually exclusive with credentials.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.authorization.type
Sets the authentication type.
Defaults to Bearer in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.basic_auth
Optional HTTP basic authentication information.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.basic_auth.password
HTTP password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.basic_auth.password_file
HTTP password file
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.basic_auth.username
HTTP username
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.follow_redirects
Configure whether HTTP requests follow HTTP 3xx redirects.
Defaults to true in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.kubeconfig_file
Optional path to a kubeconfig file. Note that api_server and kube_config are mutually exclusive.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.namespaces
Optional namespace discovery. If omitted, all namespaces are used.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.namespaces.names
Namespace name.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.oauth2
Optional OAuth 2.0 configuration. Cannot be used at the same time as basic_auth or authorization.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.oauth2.client_id
OAuth client ID.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.oauth2.client_secret
OAuth client secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.oauth2.client_secret_file
Read the client secret from a file. It is mutually exclusive with client_secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.oauth2.endpoint_params
Optional parameters to append to the token URL.
Type: null or (attribute set of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.oauth2.scopes
Scopes for the token request.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.oauth2.token_url
The URL to fetch the token from.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.proxy_url
Optional proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.role
The Kubernetes role of entities that should be discovered. One of endpoints, service, pod, node, or ingress.
Type: one of "endpoints", "service", "pod", "node", "ingress"
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.selectors
Optional label and field selectors to limit the discovery process to a subset of available resources. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/ and https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ to learn more about the possible filters that can be used. Endpoints role supports pod, service and endpoints selectors, other roles only support selectors matching the role itself (e.g. node role can only contain node selectors).
Note: When making decision about using field/label selector make sure that this is the best approach - it will prevent Prometheus from reusing single list/watch for all scrape configs. This might result in a bigger load on the Kubernetes API, because per each selector combination there will be additional LIST/WATCH. On the other hand, if you just want to monitor small subset of pods in large cluster it's recommended to use selectors. Decision, if selectors should be used or not depends on the particular situation.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.selectors.*.field
Selector field
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.selectors.*.label
Selector label
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.selectors.*.role
Selector role
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.tls_config
TLS configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs
List of Kuma service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.authorization
Optional Authorization header configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.authorization.credentials
Sets the credentials. It is mutually exclusive with credentials_file.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.authorization.credentials_file
Sets the credentials to the credentials read from the configured file.
It is mutually exclusive with credentials.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.authorization.type
Sets the authentication type.
Defaults to Bearer in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.basic_auth
Optional HTTP basic authentication information.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.basic_auth.password
HTTP password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.basic_auth.password_file
HTTP password file
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.basic_auth.username
HTTP username
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.fetch_timeout
The time after which the monitoring assignments are refreshed.
Defaults to 2m in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.follow_redirects
Configure whether HTTP requests follow HTTP 3xx redirects.
Defaults to true in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.oauth2
Optional OAuth 2.0 configuration. Cannot be used at the same time as basic_auth or authorization.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.oauth2.client_id
OAuth client ID.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.oauth2.client_secret
OAuth client secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.oauth2.client_secret_file
Read the client secret from a file. It is mutually exclusive with client_secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.oauth2.endpoint_params
Optional parameters to append to the token URL.
Type: null or (attribute set of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.oauth2.scopes
Scopes for the token request.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.oauth2.token_url
The URL to fetch the token from.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.proxy_url
Optional proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.refresh_interval
The time to wait between polling update requests.
Defaults to 30s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.server
Address of the Kuma Control Plane's MADS xDS server.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.tls_config
TLS configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.kuma_sd_configs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.label_limit
Per-scrape limit on number of labels that will be accepted for a sample. If more than this number of labels are present post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit.
Defaults to 0 in prometheus
when set to null.
Type: null or signed integer
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.label_name_length_limit
Per-scrape limit on length of labels name that will be accepted for a sample. If a label name is longer than this number post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit.
Defaults to 0 in prometheus
when set to null.
Type: null or signed integer
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.label_value_length_limit
Per-scrape limit on length of labels value that will be accepted for a sample. If a label value is longer than this number post metric-relabeling, the entire scrape will be treated as failed. 0 means no limit.
Defaults to 0 in prometheus
when set to null.
Type: null or signed integer
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.lightsail_sd_configs
List of Lightsail service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.lightsail_sd_configs.*.access_key
The AWS API keys. If blank, the environment variable AWS_ACCESS_KEY_ID is used.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.lightsail_sd_configs.*.endpoint
Custom endpoint to be used.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.lightsail_sd_configs.*.port
The port to scrape metrics from. If using the public IP address, this must instead be specified in the relabeling rule.
Defaults to 80 in prometheus
when set to null.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.lightsail_sd_configs.*.profile
Named AWS profile used to connect to the API.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.lightsail_sd_configs.*.refresh_interval
Refresh interval to re-read the instance list.
Defaults to 60s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.lightsail_sd_configs.*.region
The AWS region. If blank, the region from the instance metadata is used.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.lightsail_sd_configs.*.role_arn
AWS Role ARN, an alternative to using AWS API keys.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.lightsail_sd_configs.*.secret_key
The AWS API keys. If blank, the environment variable AWS_SECRET_ACCESS_KEY is used.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs
List of Linode service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.authorization
Optional Authorization header configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.authorization.credentials
Sets the credentials. It is mutually exclusive with credentials_file.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.authorization.credentials_file
Sets the credentials to the credentials read from the configured file.
It is mutually exclusive with credentials.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.authorization.type
Sets the authentication type.
Defaults to Bearer in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.basic_auth
Optional HTTP basic authentication information.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.basic_auth.password
HTTP password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.basic_auth.password_file
HTTP password file
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.basic_auth.username
HTTP username
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.follow_redirects
Configure whether HTTP requests follow HTTP 3xx redirects.
Defaults to true in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.oauth2
Optional OAuth 2.0 configuration. Cannot be used at the same time as basic_auth or authorization.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.oauth2.client_id
OAuth client ID.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.oauth2.client_secret
OAuth client secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.oauth2.client_secret_file
Read the client secret from a file. It is mutually exclusive with client_secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.oauth2.endpoint_params
Optional parameters to append to the token URL.
Type: null or (attribute set of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.oauth2.scopes
Scopes for the token request.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.oauth2.token_url
The URL to fetch the token from.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.port
The port to scrape metrics from.
Defaults to 80 in prometheus
when set to null.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.proxy_url
Optional proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.refresh_interval
The time after which the linode instances are refreshed.
Defaults to 60s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.tag_separator
The string by which Linode Instance tags are joined into the tag label.
Defaults to , in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.tls_config
TLS configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.linode_sd_configs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs
List of Marathon service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.auth_token
Optional authentication information for token-based authentication:
https://docs.mesosphere.com/1.11/security/ent/iam-api/#passing-an-authentication-token
It is mutually exclusive with auth_token_file and other authentication mechanisms.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.auth_token_file
Optional authentication information for token-based authentication:
https://docs.mesosphere.com/1.11/security/ent/iam-api/#passing-an-authentication-token
It is mutually exclusive with auth_token and other authentication mechanisms.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.authorization
Optional Authorization header configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.authorization.credentials
Sets the credentials. It is mutually exclusive with credentials_file.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.authorization.credentials_file
Sets the credentials to the credentials read from the configured file.
It is mutually exclusive with credentials.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.authorization.type
Sets the authentication type.
Defaults to Bearer in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.basic_auth
Optional HTTP basic authentication information.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.basic_auth.password
HTTP password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.basic_auth.password_file
HTTP password file
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.basic_auth.username
HTTP username
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.follow_redirects
Configure whether HTTP requests follow HTTP 3xx redirects.
Defaults to true in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.oauth2
Optional OAuth 2.0 configuration. Cannot be used at the same time as basic_auth or authorization.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.oauth2.client_id
OAuth client ID.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.oauth2.client_secret
OAuth client secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.oauth2.client_secret_file
Read the client secret from a file. It is mutually exclusive with client_secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.oauth2.endpoint_params
Optional parameters to append to the token URL.
Type: null or (attribute set of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.oauth2.scopes
Scopes for the token request.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.oauth2.token_url
The URL to fetch the token from.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.proxy_url
Optional proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.refresh_interval
Polling interval.
Defaults to 30s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.servers
List of URLs to be used to contact Marathon servers. You need to provide at least one server URL.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.tls_config
TLS configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.marathon_sd_configs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.metric_relabel_configs
List of metric relabel configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.metric_relabel_configs.*.action
Action to perform based on regex matching.
Defaults to replace in prometheus
when set to null.
Type: null or one of "replace", "lowercase", "uppercase", "keep", "drop", "hashmod", "labelmap", "labeldrop", "labelkeep"
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.metric_relabel_configs.*.modulus
Modulus to take of the hash of the source label values.
Type: null or signed integer
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.metric_relabel_configs.*.regex
Regular expression against which the extracted value is matched.
Defaults to (.*) in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.metric_relabel_configs.*.replacement
Replacement value against which a regex replace is performed if the regular expression matches.
Defaults to $1 in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.metric_relabel_configs.*.separator
Separator placed between concatenated source label values.
Defaults to ; in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.metric_relabel_configs.*.source_labels
The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.metric_relabel_configs.*.target_label
Label to which the resulting value is written in a replace action. It is mandatory for replace actions.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.metrics_path
The HTTP resource path on which to fetch metrics from targets.
Defaults to /metrics in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.nerve_sd_configs
List of AirBnB's Nerve service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.nerve_sd_configs.*.paths
Paths can point to a single service, or the root of a tree of services.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.nerve_sd_configs.*.servers
The Zookeeper servers.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.nerve_sd_configs.*.timeout
Timeout value.
Defaults to 10s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs
List of OpenStack service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.all_tenants
Whether the service discovery should list all instances for all projects. It is only relevant for the 'instance' role and usually requires admin permissions.
Defaults to false in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.application_credential_id
The application_credential_id or application_credential_name fields are required if using an application credential to authenticate. Some providers allow you to create an application credential to authenticate rather than a password.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.application_credential_name
The application_credential_id or application_credential_name fields are required if using an application credential to authenticate. Some providers allow you to create an application credential to authenticate rather than a password.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.application_credential_secret
The application_credential_secret field is required if using an application credential to authenticate.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.availability
The availability of the endpoint to connect to. Must be one of public, admin or internal.
Defaults to public in prometheus
when set to null.
Type: null or one of "public", "admin", "internal"
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.domain_id
At most one of domain_id and domain_name must be provided if using username with Identity V3. Otherwise, either are optional.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.domain_name
At most one of domain_id and domain_name must be provided if using username with Identity V3. Otherwise, either are optional.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.identity_endpoint
identity_endpoint specifies the HTTP endpoint that is required to work with the Identity API of the appropriate version. While it's ultimately needed by all of the identity services, it will often be populated by a provider-level function.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.password
password for the Identity V2 and V3 APIs. Consult with your provider's control panel to discover your account's preferred method of authentication.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.port
The port to scrape metrics from. If using the public IP address, this must instead be specified in the relabeling rule.
Defaults to 80 in prometheus
when set to null.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.project_id
The project_id and project_name fields are optional for the Identity V2 API. Some providers allow you to specify a project_name instead of the project_id. Some require both. Your provider's authentication policies will determine how these fields influence authentication.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.project_name
The project_id and project_name fields are optional for the Identity V2 API. Some providers allow you to specify a project_name instead of the project_id. Some require both. Your provider's authentication policies will determine how these fields influence authentication.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.refresh_interval
Refresh interval to re-read the instance list.
Defaults to 60s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.region
The OpenStack Region.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.role
The OpenStack role of entities that should be discovered.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.tls_config
TLS configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.userid
username is required if using Identity V2 API. Consult with your provider's control panel to discover your account's username. In Identity V3, either userid or a combination of username and domain_id or domain_name are needed.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.openstack_sd_configs.*.username
username is required if using Identity V2 API. Consult with your provider's control panel to discover your account's username. In Identity V3, either userid or a combination of username and domain_id or domain_name are needed.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.params
Optional HTTP URL parameters.
Type: null or (attribute set of list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.proxy_url
Optional proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs
List of PuppetDB service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.authorization
Optional Authorization header configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.authorization.credentials
Sets the credentials. It is mutually exclusive with credentials_file.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.authorization.credentials_file
Sets the credentials to the credentials read from the configured file.
It is mutually exclusive with credentials.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.authorization.type
Sets the authentication type.
Defaults to Bearer in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.basic_auth
Optional HTTP basic authentication information.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.basic_auth.password
HTTP password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.basic_auth.password_file
HTTP password file
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.basic_auth.username
HTTP username
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.follow_redirects
Configure whether HTTP requests follow HTTP 3xx redirects.
Defaults to true in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.include_parameters
Whether to include the parameters as meta labels. Due to the differences between parameter types and Prometheus labels, some parameters might not be rendered. The format of the parameters might also change in future releases.
Note: Enabling this exposes parameters in the Prometheus UI and API. Make sure that you don't have secrets exposed as parameters if you enable this.
Defaults to false in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.oauth2
Optional OAuth 2.0 configuration. Cannot be used at the same time as basic_auth or authorization.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.oauth2.client_id
OAuth client ID.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.oauth2.client_secret
OAuth client secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.oauth2.client_secret_file
Read the client secret from a file. It is mutually exclusive with client_secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.oauth2.endpoint_params
Optional parameters to append to the token URL.
Type: null or (attribute set of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.oauth2.scopes
Scopes for the token request.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.oauth2.token_url
The URL to fetch the token from.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.port
The port to scrape metrics from.
Defaults to 80 in prometheus
when set to null.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.proxy_url
Optional proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.query
Puppet Query Language (PQL) query. Only resources are supported. https://puppet.com/docs/puppetdb/latest/api/query/v4/pql.html
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.refresh_interval
Refresh interval to re-read the resources list.
Defaults to 60s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.tls_config
TLS configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.puppetdb_sd_configs.*.url
The URL of the PuppetDB root query endpoint.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.relabel_configs
List of relabel configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.relabel_configs.*.action
Action to perform based on regex matching.
Defaults to replace in prometheus
when set to null.
Type: null or one of "replace", "lowercase", "uppercase", "keep", "drop", "hashmod", "labelmap", "labeldrop", "labelkeep"
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.relabel_configs.*.modulus
Modulus to take of the hash of the source label values.
Type: null or signed integer
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.relabel_configs.*.regex
Regular expression against which the extracted value is matched.
Defaults to (.*) in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.relabel_configs.*.replacement
Replacement value against which a regex replace is performed if the regular expression matches.
Defaults to $1 in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.relabel_configs.*.separator
Separator placed between concatenated source label values.
Defaults to ; in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.relabel_configs.*.source_labels
The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.relabel_configs.*.target_label
Label to which the resulting value is written in a replace action. It is mandatory for replace actions.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.sample_limit
Per-scrape limit on number of scraped samples that will be accepted. If more than this number of samples are present after metric relabelling the entire scrape will be treated as failed. 0 means no limit.
Defaults to 0 in prometheus
when set to null.
Type: null or signed integer
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs
List of Scaleway service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.access_key
Access key to use. https://console.scaleway.com/project/credentials
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.api_url
API URL to use when doing the server listing requests.
Defaults to https://api.scaleway.com in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.follow_redirects
Configure whether HTTP requests follow HTTP 3xx redirects.
Defaults to true in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.name_filter
Specify a name filter (works as a LIKE) to apply on the server listing request.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.port
The port to scrape metrics from.
Defaults to 80 in prometheus
when set to null.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.project_id
Project ID of the targets.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.proxy_url
Optional proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.refresh_interval
Refresh interval to re-read the managed targets list.
Defaults to 60s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.role
Role of the targets to retrieve. Must be instance or baremetal.
Type: one of "instance", "baremetal"
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.secret_key
Secret key to use when listing targets. https://console.scaleway.com/project/credentials
It is mutually exclusive with secret_key_file.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.secret_key_file
Sets the secret key with the credentials read from the configured file.
It is mutually exclusive with secret_key.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.tags_filter
Specify a tag filter (a server needs to have all defined tags to be listed) to apply on the server listing request.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.tls_config
TLS configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scaleway_sd_configs.*.zone
Zone is the availability zone of your targets (e.g. fr-par-1).
Defaults to fr-par-1 in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scheme
The URL scheme with which to fetch metrics from targets.
Defaults to http in prometheus
when set to null.
Type: null or one of "http", "https"
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scrape_interval
How frequently to scrape targets from this job. Defaults to the globally configured default.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scrape_protocols
The protocols to negotiate during a scrape with the client.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.scrape_timeout
Per-target timeout when scraping this job. Defaults to the globally configured default.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.serverset_sd_configs
List of Zookeeper Serverset service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.serverset_sd_configs.*.paths
Paths can point to a single service, or the root of a tree of services.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.serverset_sd_configs.*.servers
The Zookeeper servers.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.serverset_sd_configs.*.timeout
Timeout value.
Defaults to 10s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.static_configs
List of labeled target groups for this job.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.static_configs.*.labels
Labels assigned to all metrics scraped from the targets.
Type: attribute set of string
Default: { }
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.static_configs.*.targets
The targets specified by the target group.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.target_limit
Per-scrape config limit on number of unique targets that will be accepted. If more than this number of targets are present after target relabeling, Prometheus will mark the targets as failed without scraping them. 0 means no limit. This is an experimental feature, this behaviour could change in the future.
Defaults to 0 in prometheus
when set to null.
Type: null or signed integer
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.tls_config
Configures the scrape request's TLS settings.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.triton_sd_configs
List of Triton Serverset service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.triton_sd_configs.*.account
The account to use for discovering new targets.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.triton_sd_configs.*.dns_suffix
The DNS suffix which should be applied to target.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.triton_sd_configs.*.endpoint
The Triton discovery endpoint (e.g. cmon.us-east-3b.triton.zone). This is
often the same value as dns_suffix.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.triton_sd_configs.*.groups
A list of groups for which targets are retrieved, only supported when targeting the container role.
If omitted all containers owned by the requesting account are scraped.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.triton_sd_configs.*.port
The port to use for discovery and metric scraping.
Defaults to 9163 in prometheus
when set to null.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.triton_sd_configs.*.refresh_interval
The interval which should be used for refreshing targets.
Defaults to 60s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.triton_sd_configs.*.role
The type of targets to discover, can be set to:
- "container" to discover virtual machines (SmartOS zones, lx/KVM/bhyve branded zones) running on Triton
- "cn" to discover compute nodes (servers/global zones) making up the Triton infrastructure
Defaults to container in prometheus
when set to null.
Type: null or one of "container", "cn"
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.triton_sd_configs.*.tls_config
TLS configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.triton_sd_configs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.triton_sd_configs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.triton_sd_configs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.triton_sd_configs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.triton_sd_configs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.triton_sd_configs.*.version
The Triton discovery API version.
Defaults to 1 in prometheus
when set to null.
Type: null or signed integer
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs
List of Uyuni Serverset service discovery configurations.
Type: null or (list of (submodule))
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.authorization
Optional Authorization header configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.authorization.credentials
Sets the credentials. It is mutually exclusive with credentials_file.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.authorization.credentials_file
Sets the credentials to the credentials read from the configured file.
It is mutually exclusive with credentials.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.authorization.type
Sets the authentication type.
Defaults to Bearer in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.basic_auth
Optional HTTP basic authentication information.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.basic_auth.password
HTTP password
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.basic_auth.password_file
HTTP password file
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.basic_auth.username
HTTP username
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.entitlement
The entitlement string to filter eligible systems.
Defaults to monitoring_entitled in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.follow_redirects
Configure whether HTTP requests follow HTTP 3xx redirects.
Defaults to true in prometheus
when set to null.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.oauth2
Optional OAuth 2.0 configuration. Cannot be used at the same time as basic_auth or authorization.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.oauth2.client_id
OAuth client ID.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.oauth2.client_secret
OAuth client secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.oauth2.client_secret_file
Read the client secret from a file. It is mutually exclusive with client_secret.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.oauth2.endpoint_params
Optional parameters to append to the token URL.
Type: null or (attribute set of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.oauth2.scopes
Scopes for the token request.
Type: null or (list of string)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.oauth2.token_url
The URL to fetch the token from.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.password
Credentials are used to authenticate the requests to Uyuni API.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.proxy_url
Optional proxy URL.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.refresh_interval
Refresh interval to re-read the managed targets list.
Defaults to 60s in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.separator
The string by which Uyuni group names are joined into the groups label
Defaults to , in prometheus
when set to null.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.server
The URL to connect to the Uyuni server.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.tls_config
TLS configuration.
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.tls_config.ca_file
CA certificate to validate API server certificate with.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.tls_config.cert_file
Certificate file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.tls_config.insecure_skip_verify
Disable validation of the server certificate.
Type: null or boolean
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.tls_config.key_file
Key file for client cert authentication to the server.
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.tls_config.server_name
ServerName extension to indicate the name of the server. http://tools.ietf.org/html/rfc4366#section-3.1
Type: null or string
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.scrapeConfigs.*.uyuni_sd_configs.*.username
Credentials are used to authenticate the requests to Uyuni API.
Type: string
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.stateDir
Directory below /var/lib to store Prometheus metrics data.
This directory will be created automatically using systemd's StateDirectory mechanism.
Type: string
Default: "prometheus2"
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.webConfigFile
Specifies which file should be used as web.config.file and be passed on startup. See https://prometheus.io/docs/prometheus/latest/configuration/https/ for valid options.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.webExternalUrl
The URL under which Prometheus is externally reachable (for example, if Prometheus is served via a reverse proxy).
Type: null or string
Default: null
Example: "https://example.com/"
Declared by: nixos/modules/services/monitoring/prometheus/default.nix
services.prometheus.xmpp-alerts.enable
Whether to enable XMPP Web hook service for Alertmanager.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/prometheus/xmpp-alerts.nix
services.prometheus.xmpp-alerts.settings
Configuration for prometheus xmpp-alerts, see https://github.com/jelmer/prometheus-xmpp-alerts/blob/master/xmpp-alerts.yml.example for supported values.
Type: YAML 1.1 value
Default: { }
Declared by: nixos/modules/services/monitoring/prometheus/xmpp-alerts.nix
services.prosody.admins
List of administrators of the current host
Type: list of string
Default: [ ]
Example:
[
"admin1@example.com"
"admin2@example.com"
]
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.allowRegistration
Allow account creation
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.authentication
Authentication mechanism used for logins.
Type: one of "internal_plain", "internal_hashed", "cyrus", "anonymous", "ldap"
Default: "internal_hashed"
Example: "internal_plain"
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.c2sRequireEncryption
Force clients to use encrypted connections? This option will prevent clients from authenticating unless they are using encryption.
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.checkConfig
Check the configuration file with prosodyctl check config
Type: boolean
Default: true
Example: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.dataDir
The prosody home directory used to store all data. If left as the default value this directory will automatically be created before the prosody server starts, otherwise you are responsible for ensuring the directory exists with appropriate ownership and permissions.
Type: absolute path
Default: "/var/lib/prosody"
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.disco_items
List of discoverable items you want to advertise.
Type: list of (submodule)
Default: [ ]
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.disco_items.*.description
A short description of the endpoint you want to advertise
Type: string
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.disco_items.*.url
URL of the endpoint you want to make discoverable
Type: string
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.enable
Whether to enable the prosody server
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.extraConfig
Additional prosody configuration
The generated file is processed by envsubst to allow secrets to be passed securely via environment variables.
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.extraModules
Enable custom modules
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.extraPluginPaths
Additional path in which to look find plugins/modules
Type: list of absolute path
Default: [ ]
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.group
Group account under which prosody runs.
Note
If left as the default value this group will automatically be created on system activation, otherwise you are responsible for ensuring the group exists before the prosody service starts.
Type: string
Default: "prosody"
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.httpFileShare
Configures the http_file_share module to handle user uploads.
See https://prosody.im/doc/modules/mod_http_file_share for a full list of options.
Type: null or (open submodule of int, bool, string or list of them)
Default: null
Example:
{
domain = "uploads.my-xmpp-example-host.org";
}
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.httpFileShare.daily_quota
Maximum size of daily uploaded files per user, in bytes.
Type: null or signed integer
Default: 10 * services.prosody.httpFileShare.size_limit
Example: "100*1024*1024"
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.httpFileShare.domain
Domain name for a http_file_share service.
Type: null or string
Default: null
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.httpFileShare.expires_after
Max age of a file before it gets deleted.
Type: string
Default: "1 week"
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.httpFileShare.http_external_url
External URL in case Prosody sits behind a reverse proxy.
Type: null or string
Default: null
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.httpFileShare.http_host
To avoid an additional DNS record and certificate, you may set this option to your primary domain (e.g. "example.com") or use a reverse proxy to handle the HTTP for that domain.
Type: null or string
Default: null
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.httpFileShare.size_limit
Maximum file size, in bytes.
Type: signed integer
Default: "10 * 1024 * 1024"
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.httpInterfaces
Interfaces on which the HTTP server will listen on.
Type: list of string
Default:
[
"*"
"::"
]
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.httpPorts
Listening HTTP ports list for this service.
Type: list of 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
[
5280
]
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.httpsInterfaces
Interfaces on which the HTTPS server will listen on.
Type: list of string
Default:
[
"*"
"::"
]
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.httpsPorts
Listening HTTPS ports list for this service.
Type: list of 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
[
5281
]
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.log
Logging configuration. See for more details
Type: strings concatenated with "\n"
Default: "\"*syslog\""
Example:
''
{
{ min = "warn"; to = "*syslog"; };
}
''
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.admin_adhoc
Allows administration via an XMPP client that supports ad-hoc commands
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.admin_telnet
Opens telnet console interface on localhost port 5582
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.announce
Send announcement to all online users
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.blocklist
Allow users to block communications with other users
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.bookmarks
Allows interop between older clients that use XEP-0048: Bookmarks in its 1.0 version and recent clients which use it in PEP
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.bosh
Enable BOSH clients, aka 'Jabber over HTTP'
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.carbons
Keep multiple clients in sync
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.cloud_notify
Push notifications to inform users of new messages or other pertinent information even when they have no XMPP clients online
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.csi
Implements the CSI protocol that allows clients to report their active/inactive state to the server
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.dialback
s2s dialback support
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.disco
Service discovery
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.groups
Shared roster support
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.http_files
Serve static files from a directory over HTTP
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.legacyauth
Legacy authentication. Only used by some old clients and bots
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.limits
Enable bandwidth limiting for XMPP connections
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.mam
Store messages in an archive and allow users to access it
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.motd
Send a message to users when they log in
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.pep
Enables users to publish their mood, activity, playing music and more
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.ping
Replies to XMPP pings with pongs
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.private
Private XML storage (for room bookmarks, etc.)
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.proxy65
Enables a file transfer proxy service which clients behind NAT can use
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.register
Allow users to register on this server using a client and change passwords
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.roster
Allow users to have a roster
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.saslauth
Authentication for clients and servers. Recommended if you want to log in.
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.server_contact_info
Publish contact information for this service
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.smacks
Allow a client to resume a disconnected session, and prevent message loss
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.time
Let others know the time here on this server
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.tls
Add support for secure TLS on c2s/s2s connections
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.uptime
Report how long server has been running
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.vcard
Allow users to set vCards
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.vcard_legacy
Converts users profiles and Avatars between old and new formats
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.version
Replies to server version requests
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.watchregistrations
Alert admins of registrations
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.websocket
Enable WebSocket support
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.modules.welcome
Welcome users who register accounts
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc
Multi User Chat (MUC) configuration
Type: list of (submodule)
Default: [ ]
Example:
[
{
domain = "conference.my-xmpp-example-host.org";
}
]
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.allowners_muc
Add module allowners, any user in chat is able to kick other. Useful in jitsi-meet to kick ghosts.
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.domain
Domain name of the MUC
Type: string
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.extraConfig
Additional MUC specific configuration
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.extraModules
Additional modules to load on this MUC component.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.maxHistoryMessages
Specifies a limit on what each room can be configured to keep
Type: signed integer
Default: 20
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.moderation
Allow rooms to be moderated
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.name
The name to return in service discovery responses for the MUC service itself
Type: string
Default: "Prosody Chatrooms"
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.restrictRoomCreation
Restrict room creation to server admins
Type: one of true, false, "admin", "local"
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.roomDefaultChangeSubject
If set, the rooms will display the public JIDs by default.
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.roomDefaultHistoryLength
Number of history message sent to participants by default.
Type: signed integer
Default: 20
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.roomDefaultLanguage
Default room language.
Type: string
Default: "en"
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.roomDefaultMembersOnly
If set, the MUC rooms will only be accessible to the members by default.
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.roomDefaultModerated
If set, the MUC rooms will be moderated by default.
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.roomDefaultPublic
If set, the MUC rooms will be public by default.
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.roomDefaultPublicJids
If set, the MUC rooms will display the public JIDs by default.
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.roomLockTimeout
Timeout after which the room is destroyed or unlocked if not configured, in seconds
Type: signed integer
Default: 300
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.roomLocking
Enables room locking, which means that a room must be configured before it can be used. Locked rooms are invisible and cannot be entered by anyone but the creator
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.tombstoneExpiry
This settings controls how long a tombstone is considered valid. It defaults to 31 days. After this time, the room in question can be created again.
Type: signed integer
Default: 2678400
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.muc.*.tombstones
When a room is destroyed, it leaves behind a tombstone which prevents the room being entered or recreated. It also allows anyone who was not in the room at the time it was destroyed to learn about it, and to update their bookmarks. Tombstones prevents the case where someone could recreate a previously semi-anonymous room in order to learn the real JIDs of those who often join there.
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.package
The prosody package to use.
Type: package
Default: pkgs.prosody
Example:
pkgs.prosody.override {
withExtraLibs = [ pkgs.luaPackages.lpty ];
withCommunityModules = [ "auth_external" ];
};
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.s2sInsecureDomains
Some servers have invalid or self-signed certificates. You can list remote domains here that will not be required to authenticate using certificates. They will be authenticated using DNS instead, even when s2s_secure_auth is enabled.
Type: list of string
Default: [ ]
Example:
[
"insecure.example.com"
]
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.s2sRequireEncryption
Force servers to use encrypted connections? This option will prevent servers from authenticating unless they are using encryption. Note that this is different from authentication.
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.s2sSecureAuth
Force certificate authentication for server-to-server connections? This provides ideal security, but requires servers you communicate with to support encryption AND present valid, trusted certificates. For more information see https://prosody.im/doc/s2s#security
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.s2sSecureDomains
Even if you leave s2s_secure_auth disabled, you can still require valid certificates for some domains by specifying a list here.
Type: list of string
Default: [ ]
Example:
[
"jabber.org"
]
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.ssl
Paths to SSL files
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.ssl.cert
Path to the certificate file.
Type: absolute path
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.ssl.extraOptions
Extra SSL configuration options.
Type: attribute set
Default: { }
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.ssl.key
Path to the key file.
Type: absolute path
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.user
User account under which prosody runs.
Note
If left as the default value this user will automatically be created on system activation, otherwise you are responsible for ensuring the user exists before the prosody service starts.
Type: string
Default: "prosody"
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.virtualHosts
Define the virtual hosts
Type: attribute set of (submodule)
Default:
{
localhost = {
domain = "localhost";
enabled = true;
};
}
Example:
{
myhost = {
domain = "my-xmpp-example-host.org";
enabled = true;
};
}
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.virtualHosts.<name>.domain
Domain name
Type: string
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.virtualHosts.<name>.enabled
Whether to enable the virtual host
Type: boolean
Default: false
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.virtualHosts.<name>.extraConfig
Additional virtual host specific configuration
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.virtualHosts.<name>.ssl
Paths to SSL files
Type: null or (submodule)
Default: null
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.virtualHosts.<name>.ssl.cert
Path to the certificate file.
Type: absolute path
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.virtualHosts.<name>.ssl.extraOptions
Extra SSL configuration options.
Type: attribute set
Default: { }
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.virtualHosts.<name>.ssl.key
Path to the key file.
Type: absolute path
Declared by: nixos/modules/services/networking/prosody.nix
services.prosody.xmppComplianceSuite
The XEP-0423 defines a set of recommended XEPs to implement for a server. It's generally a good idea to implement this set of extensions if you want to provide your users with a good XMPP experience.
This NixOS module aims to provide a "advanced server" experience as per defined in the XEP-0423[1] specification.
Setting this option to true will prevent you from building a NixOS configuration which won't comply with this standard. You can explicitly decide to ignore this standard if you know what you are doing by setting this option to false.
[1] https://xmpp.org/extensions/xep-0423.html
Type: boolean
Default: true
Declared by: nixos/modules/services/networking/prosody.nix
services.protonmail-bridge.enable
Whether to enable protonmail bridge.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/mail/protonmail-bridge.nix
services.protonmail-bridge.logLevel
Log level of the Proton Mail Bridge service. If set to null then the service uses it's default log level.
Type: null or one of "panic", "fatal", "error", "warn", "info", "debug"
Default: null
Declared by: nixos/modules/services/mail/protonmail-bridge.nix
services.protonmail-bridge.package
The protonmail-bridge package to use.
Type: package
Default: pkgs.protonmail-bridge
Declared by: nixos/modules/services/mail/protonmail-bridge.nix
services.protonmail-bridge.path
List of derivations to put in protonmail-bridge's path.
Type: list of absolute path
Default: [ ]
Example: with pkgs; [ pass gnome-keyring ]
Declared by: nixos/modules/services/mail/protonmail-bridge.nix
services.prowlarr.dataDir
The directory where Prowlarr stores its data files.
Note: A bind mount will be used to mount the directory at the expected location
if a different value than /var/lib/prowlarr is used.
Type: string
Default: "/var/lib/prowlarr"
Declared by: nixos/modules/services/misc/servarr/prowlarr.nix
services.prowlarr.enable
Whether to enable Prowlarr, an indexer manager/proxy for Torrent trackers and Usenet indexers.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/misc/servarr/prowlarr.nix
services.prowlarr.environmentFiles
Environment file to pass secret configuration values.
Each line must follow the PROWLARR__SECTION__KEY=value pattern.
Please consult the documentation at the wiki.
Type: list of absolute path
Default: [ ]
Declared by: nixos/modules/services/misc/servarr/prowlarr.nix
services.prowlarr.openFirewall
Open ports in the firewall for the Prowlarr web interface.
Type: boolean
Default: false
Declared by: nixos/modules/services/misc/servarr/prowlarr.nix
services.prowlarr.package
The prowlarr package to use.
Type: package
Default: pkgs.prowlarr
Declared by: nixos/modules/services/misc/servarr/prowlarr.nix
services.prowlarr.settings
Attribute set of arbitrary config options. Please consult the documentation at the wiki.
WARNING: this configuration is stored in the world-readable Nix store! For secrets use services (P).
Type: open submodule of attribute set of section of an INI file (attrs of INI atom (null, bool, int, float or string))
Default: { }
Example:
{
update.mechanism = "internal";
server = {
urlbase = "localhost";
port = 9696;
bindaddress = "*";
};
}
Declared by: nixos/modules/services/misc/servarr/prowlarr.nix
services.prowlarr.settings.log.analyticsEnabled
Send Anonymous Usage Data
Type: boolean
Default: false
Declared by: nixos/modules/services/misc/servarr/prowlarr.nix
services.prowlarr.settings.server.port
Port Number
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 9696
Declared by: nixos/modules/services/misc/servarr/prowlarr.nix
services.prowlarr.settings.update.automatically
Automatically download and install updates.
Type: boolean
Default: false
Declared by: nixos/modules/services/misc/servarr/prowlarr.nix
services.prowlarr.settings.update.mechanism
which update mechanism to use
Type: null or one of "external", "builtIn", "script"
Default: "external"
Declared by: nixos/modules/services/misc/servarr/prowlarr.nix
services.psd.enable
Whether to enable the Profile Sync daemon.
Type: boolean
Default: false
Declared by: nixos/modules/services/desktops/profile-sync-daemon.nix
services.psd.resyncTimer
The amount of time to wait before syncing browser profiles back to the disk.
Takes a systemd.unit time span. The time unit defaults to seconds if omitted.
Type: string
Default: "1h"
Example: "1h 30min"
Declared by: nixos/modules/services/desktops/profile-sync-daemon.nix
services.public-inbox.enable
Whether to enable the public-inbox mail archiver.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.http.args
Command-line arguments to pass to public-inbox-httpd(1).
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.http.enable
Whether to enable the public-inbox HTTP server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.http.mounts
Root paths or URLs that public-inbox will be served on. If domain parts are present, only requests to those domains will be accepted.
Type: list of string
Default:
[
"/"
]
Example:
[
"/lists/archives"
]
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.http.port
Listening port or systemd's ListenStream= entry
to be used as a reverse proxy, eg. in nginx:
locations."/inbox".proxyPass = "http://unix:${config.services.public-inbox.http.port}:/inbox";
Set to null and use systemd.sockets.public-inbox-httpd.listenStreams
if you need a more advanced listening.
Type: null or string or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 80
Example: "/run/public-inbox-httpd.sock"
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.imap.args
Command-line arguments to pass to public-inbox-imapd(1).
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.imap.cert
Path to TLS certificate to use for connections to public-inbox-imapd(1).
Type: null or string
Default: null
Example: "/path/to/fullchain.pem"
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.imap.enable
Whether to enable the public-inbox IMAP server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.imap.key
Path to TLS key to use for connections to public-inbox-imapd(1).
Type: null or string
Default: null
Example: "/path/to/key.pem"
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.imap.port
Listening port.
Beware that public-inbox uses well-known ports number to decide whether to enable TLS or not.
Set to null and use systemd.sockets.public-inbox-imapd.listenStreams
if you need a more advanced listening.
Type: null or string or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 993
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.inboxes
Inboxes to configure, where attribute names are inbox names.
Type: attribute set of (open submodule of attribute set of (INI atom (null, bool, int, float or string) or a list of them for duplicate keys))
Default: { }
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.inboxes.<name>.address
The email addresses of the public-inbox.
Type: list of string
Default: [ ]
Example: "example-discuss@example.org"
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.inboxes.<name>.coderepo
Nicknames of a 'coderepo' section associated with the inbox.
Type: list of coderepo names
Default: [ ]
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.inboxes.<name>.description
User-visible description for the repository.
Type: string
Example: "user/dev discussion of public-inbox itself"
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.inboxes.<name>.inboxdir
The absolute path to the directory which hosts the public-inbox.
Type: string
Default: "/var/lib/public-inbox/inboxes/‹name›"
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.inboxes.<name>.newsgroup
NNTP group name for the inbox.
Type: null or string
Default: null
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.inboxes.<name>.url
URL where this inbox can be accessed over HTTP.
Type: non-empty string
Example: "https://example.org/lists/example-discuss"
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.inboxes.<name>.watch
Paths for public-inbox-watch(1) to monitor for new mail.
Type: list of string
Default: [ ]
Example:
[
"maildir:/path/to/test.example.com.git"
]
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.inboxes.<name>.watchheader
If specified, public-inbox-watch(1) will only process
mail containing a matching header.
Type: null or string
Default: null
Example: "List-Id:<test@example.com>"
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.mda.args
Command-line arguments to pass to public-inbox-mda(1).
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.mda.enable
Whether to enable the public-inbox Mail Delivery Agent.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.nntp.args
Command-line arguments to pass to public-inbox-nntpd(1).
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.nntp.cert
Path to TLS certificate to use for connections to public-inbox-nntpd(1).
Type: null or string
Default: null
Example: "/path/to/fullchain.pem"
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.nntp.enable
Whether to enable the public-inbox NNTP server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.nntp.key
Path to TLS key to use for connections to public-inbox-nntpd(1).
Type: null or string
Default: null
Example: "/path/to/key.pem"
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.nntp.port
Listening port.
Beware that public-inbox uses well-known ports number to decide whether to enable TLS or not.
Set to null and use systemd.sockets.public-inbox-nntpd.listenStreams
if you need a more advanced listening.
Type: null or string or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 563
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.openFirewall
Whether to enable opening the firewall when using a port option.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.package
The public-inbox package to use.
Type: package
Default: pkgs.public-inbox
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.path
Additional packages to place in the path of public-inbox-mda, public-inbox-watch, etc.
Type: list of package
Default: [ ]
Example: with pkgs; [ spamassassin ]
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.postfix.enable
Whether to enable the integration into Postfix.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.settings
Settings for the public-inbox config file.
Type: open submodule of attribute set of attribute set of (INI atom (null, bool, int, float or string) or a list of them for duplicate keys or attribute set of (INI atom (null, bool, int, float or string) or a list of them for duplicate keys))
Default: { }
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.settings.coderepo
code repositories
Type: attribute set of (open submodule of attribute set of (INI atom (null, bool, int, float or string) or a list of them for duplicate keys))
Default: { }
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.settings.coderepo.<name>.cgitUrl
URL of a cgit instance
Type: string
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.settings.coderepo.<name>.dir
Path to a git repository
Type: string
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.settings.publicinbox
public inboxes
Type: open submodule of attribute set of (INI atom (null, bool, int, float or string) or a list of them for duplicate keys or attribute set of (INI atom (null, bool, int, float or string) or a list of them for duplicate keys))
Default: { }
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.settings.publicinbox.css
The local path name of a CSS file for the PSGI web interface.
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.settings.publicinbox.imapserver
IMAP URLs to this public-inbox instance
Type: list of string
Default: [ ]
Example:
[
"imap.public-inbox.org"
]
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.settings.publicinbox.nntpserver
NNTP URLs to this public-inbox instance
Type: list of string
Default: [ ]
Example:
[
"nntp://news.public-inbox.org"
"nntps://news.public-inbox.org"
]
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.settings.publicinbox.pop3server
POP3 URLs to this public-inbox instance
Type: list of string
Default: [ ]
Example:
[
"pop.public-inbox.org"
]
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.settings.publicinbox.wwwlisting
Controls which lists (if any) are listed for when the root public-inbox URL is accessed over HTTP.
Type: one of "all", "404", "match=domain"
Default: "404"
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.settings.publicinboxmda.spamcheck
If set to spamc, public-inbox-watch(1) will filter spam
using SpamAssassin.
Type: one of "spamc", "none"
Default: "none"
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.settings.publicinboxwatch.spamcheck
If set to spamc, public-inbox-watch(1) will filter spam
using SpamAssassin.
Type: one of "spamc", "none"
Default: "none"
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.settings.publicinboxwatch.watchspam
If set, mail in this maildir will be trained as spam and deleted from all watched inboxes
Type: null or string
Default: null
Example: "maildir:/path/to/spam"
Declared by: nixos/modules/services/mail/public-inbox.nix
services.public-inbox.spamAssassinRules
SpamAssassin configuration specific to public-inbox.
Type: null or absolute path
Default: ${cfg.package.sa_config}/user/.spamassassin/user_prefs
Declared by: nixos/modules/services/mail/public-inbox.nix
services.pufferpanel.enable
Whether to enable PufferPanel game management server.
Note that PufferPanel templates and binaries downloaded by PufferPanel
expect FHS environment. It is possible to set package option
to use PufferPanel wrapper with FHS environment. For example, to use
Download Game from Steam and Download Java template operations:
{ lib, pkgs, ... }: {
services.pufferpanel = {
enable = true;
extraPackages = with pkgs; [ bash curl gawk gnutar gzip ];
package = pkgs.buildFHSEnv {
name = "pufferpanel-fhs";
runScript = lib.getExe pkgs.pufferpanel;
targetPkgs = pkgs': with pkgs'; [ icu openssl zlib ];
};
};
}
Type: boolean
Default: false
Declared by: nixos/modules/services/misc/pufferpanel.nix
services.pufferpanel.environment
Environment variables to set for the service. Secrets should be
specified using environmentFile.
Refer to the PufferPanel source code for the list of available
configuration options. Variable name is an upper-cased configuration
entry name with underscores instead of dots, prefixed with PUFFER_.
For example, panel.settings.companyName entry can be set using
PUFFER_PANEL_SETTINGS_COMPANYNAME.
When running with panel enabled (configured with PUFFER_PANEL_ENABLE
environment variable), it is recommended disable registration using
PUFFER_PANEL_REGISTRATIONENABLED environment variable (registration is
enabled by default). To create the initial administrator user, run
pufferpanel --workDir /var/lib/pufferpanel user add --admin.
Some options override corresponding settings set via web interface (e.g.
PUFFER_PANEL_REGISTRATIONENABLED). Those options can be temporarily
toggled or set in settings but do not persist between restarts.
Type: attribute set of string
Default: { }
Example:
{
PUFFER_WEB_HOST = ":8080";
PUFFER_DAEMON_SFTP_HOST = ":5657";
PUFFER_DAEMON_CONSOLE_BUFFER = "1000";
PUFFER_DAEMON_CONSOLE_FORWARD = "true";
PUFFER_PANEL_REGISTRATIONENABLED = "false";
}
Declared by: nixos/modules/services/misc/pufferpanel.nix
services.pufferpanel.environmentFile
File to load environment variables from. Loaded variables override
values set in environment.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/misc/pufferpanel.nix
services.pufferpanel.extraGroups
Additional groups for the systemd service.
Type: list of string
Default: [ ]
Example:
[
"podman"
]
Declared by: nixos/modules/services/misc/pufferpanel.nix
services.pufferpanel.extraPackages
Packages to add to the PATH environment variable. Both the bin
and sbin subdirectories of each package are added.
Type: list of package
Default: [ ]
Example: [ pkgs.jre ]
Declared by: nixos/modules/services/misc/pufferpanel.nix
services.pufferpanel.package
The pufferpanel package to use.
Type: package
Default: pkgs.pufferpanel
Declared by: nixos/modules/services/misc/pufferpanel.nix
services.pulseaudio.configFile
The path to the default configuration options the PulseAudio server should use. By default, the "default.pa" configuration from the PulseAudio distribution is used.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/audio/pulseaudio.nix
services.pulseaudio.daemon.config
Config of the pulse daemon. See man pulse-daemon.conf.
Type: attribute set of unspecified value
Default: { }
Example: { realtime-scheduling = "yes"; }
Declared by: nixos/modules/services/audio/pulseaudio.nix
services.pulseaudio.daemon.logLevel
The log level that the system-wide pulseaudio daemon should use, if activated.
Type: string
Default: "notice"
Declared by: nixos/modules/services/audio/pulseaudio.nix
services.pulseaudio.enable
Whether to enable the PulseAudio sound server.
Type: boolean
Default: false
Declared by: nixos/modules/services/audio/pulseaudio.nix
services.pulseaudio.extraClientConf
Extra configuration appended to pulse/client.conf file.
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/audio/pulseaudio.nix
services.pulseaudio.extraConfig
Literal string to append to configFile
and the config file generated by the pulseaudio module.
Type: strings concatenated with "\n"
Default: ""
Declared by: nixos/modules/services/audio/pulseaudio.nix
services.pulseaudio.extraModules
Extra pulseaudio modules to use. This is intended for out-of-tree pulseaudio modules like extra bluetooth codecs.
Extra modules take precedence over built-in pulseaudio modules.
Type: list of package
Default: [ ]
Example: [ pkgs.pulseaudio-modules-bt ]
Declared by: nixos/modules/services/audio/pulseaudio.nix
services.pulseaudio.package
The PulseAudio derivation to use. This can be used to enable
features (such as JACK support, Bluetooth) via the
pulseaudioFull package.
Type: package
Default: pkgs.pulseaudio
Example: pkgs.pulseaudioFull
Declared by: nixos/modules/services/audio/pulseaudio.nix
services.pulseaudio.support32Bit
Whether to include the 32-bit pulseaudio libraries in the system or not. This is only useful on 64-bit systems and currently limited to x86_64-linux.
Type: boolean
Default: false
Declared by: nixos/modules/services/audio/pulseaudio.nix
services.pulseaudio.systemWide
If false, a PulseAudio server is launched automatically for each user that tries to use the sound system. The server runs with user privileges. If true, one system-wide PulseAudio server is launched on boot, running as the user "pulse", and only users in the "pulse-access" group will have access to the server. Please read the PulseAudio documentation for more details.
Don't enable this option unless you know what you are doing.
Type: boolean
Default: false
Declared by: nixos/modules/services/audio/pulseaudio.nix
services.pulseaudio.tcp.anonymousClients.allowAll
Whether to enable all anonymous clients to stream to the server.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/audio/pulseaudio.nix
services.pulseaudio.tcp.anonymousClients.allowedIpRanges
A list of IP subnets that are allowed to stream to the server.
Type: list of string
Default: [ ]
Example: [ "127.0.0.1" "192.168.1.0/24" ]
Declared by: nixos/modules/services/audio/pulseaudio.nix
services.pulseaudio.tcp.enable
Whether to enable tcp streaming support.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/audio/pulseaudio.nix
services.pulseaudio.tcp.openFirewall
Whether to enable Open firewall for the specified port.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/audio/pulseaudio.nix
services.pulseaudio.tcp.port
TCP connection port. The default null value, means
pulseaudio will try to use the default 4713 port, but if it is
occupied, it will fallback to a random port.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Example: 4713
Declared by: nixos/modules/services/audio/pulseaudio.nix
services.pulseaudio.zeroconf.discovery.enable
Whether to enable discovery of pulseaudio sinks in the local network.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/audio/pulseaudio.nix
services.pulseaudio.zeroconf.publish.enable
Whether to enable publishing the pulseaudio sink in the local network.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/audio/pulseaudio.nix
services.pumpkin.dataDir
Directory holding Pumpkin's state (config, worlds, logs, etc.).
If this is a subdirectory of /var/lib, it is managed automatically
via systemd's StateDirectory; otherwise you are responsible for
ensuring the directory exists with the correct permissions.
Type: absolute path
Default: "/var/lib/pumpkin"
Example: "/srv/pumpkin"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.enable
Whether to enable Pumpkin, a Minecraft server written in Rust.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.openFirewall
Whether to open the firewall for the ports enabled under
services.pumpkin.settings.networking.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.package
The pumpkin package to use.
Type: package
Default: pkgs.pumpkin
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings
Structured configuration written to pumpkin.toml, following
RFC 42.
Any field not covered by a typed option below can still be set via
this freeform settings attrset. See upstream's default generated
pumpkin.toml and the pumpkin-config crate source for the full
field list.
Warning
Do not set networking.rcon.password or
networking.proxy.velocity.secret here — they would end up
world-readable in the Nix store. Use
services.pumpkin.settings.networking.rcon.passwordFile and
services.pumpkin.settings.networking.proxy.velocity.secretFile
instead; setting either password/secret directly is rejected at
eval time.
Type: open submodule of (TOML value)
Default: { }
Example:
{
seed = "1785537519969227430";
server_links.custom.discord = "https://discord.gg/example";
}
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.advancement.save_advancements
Whether to persist player advancement progress.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.allow_chat_reports
Whether players can send signed chat reports.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.allow_end
Whether the End dimension is enabled.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.allow_nether
Whether the Nether dimension is enabled.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.chat.format
Chat message format template.
Type: string
Default: "<{DISPLAYNAME}> {MESSAGE}"
Example: "[{DISPLAYNAME}]: {MESSAGE}"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.commands.broadcast_console_to_ops
Whether to broadcast console commands to operators.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.commands.default_op_level
Default operator permission level assigned via the console.
Type: integer between 0 and 4 (both inclusive)
Default: 0
Example: 4
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.commands.log_console
Whether to log console command usage.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.commands.use_console
Whether the server console accepts commands.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.commands.use_tty
Whether to use a TTY for the console.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.default_difficulty
Default game difficulty.
Type: one of "Peaceful", "Easy", "Normal", "Hard"
Default: "Normal"
Example: "Hard"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.default_gamemode
Default gamemode assigned to new players.
Type: one of "Survival", "Creative", "Adventure", "Spectator"
Default: "Survival"
Example: "Creative"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.default_level_name
Name of the default level/world folder.
Type: string
Default: "world"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.enforce_whitelist
Whether to kick already-connected players who aren't whitelisted.
Type: boolean
Default: false
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.favicon_path
Path to an optional server favicon.
Type: null or string
Default: null
Example: "favicon.png"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.force_gamemode
Whether to force the default gamemode on every join.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.fun.april_fools
Whether to enable April Fools' Day easter eggs.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.hardcore
Whether the server runs in hardcore mode.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.logging.color
Whether to colorize log output.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.logging.enabled
Whether Pumpkin's internal logging is enabled.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.logging.file
Log file name, relative to the state directory.
Type: string
Default: "latest.log"
Example: "pumpkin.log"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.logging.threads
Whether to include thread names in log output.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.logging.timestamp
Whether to include timestamps in log output.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.bedrock.address
Address:port to bind the Bedrock listener to.
Type: string
Default: "0.0.0.0:19132"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.bedrock.authentication.connect_timeout
Timeout (ms) for connecting to the authentication server.
Type: unsigned integer, meaning >=0
Default: 5000
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.bedrock.authentication.enabled
Whether to require Xbox Live authentication for Bedrock clients.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.bedrock.authentication.read_timeout
Timeout (ms) for reading from the authentication server.
Type: unsigned integer, meaning >=0
Default: 5000
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.bedrock.compression.enabled
Whether to compress packets.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.bedrock.compression.level
Compression level.
Type: unsigned integer, meaning >=0
Default: 4
Example: 5
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.bedrock.compression.threshold
Minimum packet size (in bytes) before compression is applied.
Type: unsigned integer, meaning >=0
Default: 256
Example: 512
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.bedrock.enabled
Whether to accept Bedrock Edition connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.java.address
Address:port to bind the Java listener to.
Type: string
Default: "0.0.0.0:25565"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.java.authentication.connect_timeout
Timeout (ms) for connecting to the authentication server.
Type: unsigned integer, meaning >=0
Default: 5000
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.java.authentication.enabled
Whether to require Mojang authentication for Java clients.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.java.authentication.player_profile.allow_banned_players
Whether to allow players Mojang has banned.
Type: boolean
Default: false
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.java.authentication.player_profile.allowed_actions
Which flagged-profile actions are still permitted to join.
Type: list of (one of "FORCED_NAME_CHANGE", "USING_BANNED_SKIN")
Default:
[
"FORCED_NAME_CHANGE"
"USING_BANNED_SKIN"
]
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.java.authentication.prevent_proxy_connections
Whether to reject connections proxied through another server.
Type: boolean
Default: false
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.java.authentication.read_timeout
Timeout (ms) for reading from the authentication server.
Type: unsigned integer, meaning >=0
Default: 5000
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.java.authentication.textures.allowed_url_domains
Domains allowed to serve textures.
Type: list of string
Default:
[
".minecraft.net"
".mojang.com"
]
Example:
[
".mydomain.example"
]
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.java.authentication.textures.allowed_url_schemes
URL schemes allowed for texture URLs.
Type: list of (one of "http", "https")
Default:
[
"http"
"https"
]
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.java.authentication.textures.enabled
Whether to fetch player skins/capes/elytras.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.java.authentication.textures.types.cape
Whether to load cape textures.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.java.authentication.textures.types.elytra
Whether to load elytra textures.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.java.authentication.textures.types.skin
Whether to load skin textures.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.java.compression.enabled
Whether to compress packets.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.java.compression.level
Compression level.
Type: unsigned integer, meaning >=0
Default: 4
Example: 5
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.java.compression.threshold
Minimum packet size (in bytes) before compression is applied.
Type: unsigned integer, meaning >=0
Default: 256
Example: 512
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.java.enabled
Whether to accept Java Edition connections.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.lan_broadcast.enabled
Whether to broadcast the server on the local network.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.proxy.bungeecord.enabled
Whether to enable BungeeCord IP forwarding.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.proxy.enabled
Whether to enable proxy (Velocity/BungeeCord) support.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.proxy.velocity.enabled
Whether to enable the Velocity modern forwarding protocol.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.proxy.velocity.secretFile
Path to a file containing the Velocity forwarding secret. Loaded
securely at service start via systemd's LoadCredential and
substituted into the generated pumpkin.toml in place of a
placeholder string, using replace-secret; never placed in the
Nix store.
Type: null or absolute path
Default: null
Example: "/run/secrets/pumpkin-velocity-secret"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.query.address
Address:port to bind the query listener to.
Type: string
Default: "0.0.0.0:25565"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.query.enabled
Whether to accept GameSpy4 query connections.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.rcon.address
Address:port to bind the RCON listener to.
Type: string
Default: "0.0.0.0:25575"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.rcon.enabled
Whether to accept RCON connections.
Type: boolean
Default: false
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.rcon.logging.commands
Whether to log commands run over RCON.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.rcon.logging.logged_successfully
Whether to log successful RCON logins.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.rcon.logging.quit
Whether to log RCON client disconnects.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.rcon.logging.wrong_password
Whether to log failed RCON login attempts.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.rcon.max_connections
Maximum number of simultaneous RCON connections.
Type: unsigned integer, meaning >=0
Default: 10
Example: 20
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.networking.rcon.passwordFile
Path to a file containing the RCON password. Loaded securely
at service start via systemd's LoadCredential and substituted
into the generated pumpkin.toml in place of a placeholder
string, using replace-secret; never placed in the Nix store.
Compatible with sops-nix and agenix. Does not enable RCON on
its own — set
services.pumpkin.settings.networking.rcon.enabled
as well.
Type: null or absolute path
Default: null
Example: "/run/secrets/pumpkin-rcon-password"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.op_permission_level
Permission level assigned to players by the /op command. Note:
upstream's deserializer currently rejects the value 1 due to a
missing match arm — only 0, 2, 3, and 4 are accepted.
Type: one of 0, 2, 3, 4
Default: 4
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.player_data.save_player_cron_interval
Interval, in seconds, between player data saves.
Type: unsigned integer, meaning >=0
Default: 300
Example: 600
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.player_data.save_player_data
Whether to persist player data.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.plugins.blocked_permissions
Permissions plugins are blocked from granting.
Type: list of string
Default: [ ]
Example:
[
"pumpkin.admin"
]
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.pvp.enabled
Whether player-vs-player combat is allowed.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.pvp.hurt_animation
Whether to show the hurt animation on PvP damage.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.pvp.knockback
Whether PvP hits apply knockback.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.pvp.protect_creative
Whether creative-mode players are protected from PvP damage.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.pvp.swing
Whether to show the attack swing animation.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.recipe.send_recipes
Whether to send the recipe book to clients.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.resource_pack.bedrock.enabled
Whether to require a Bedrock Edition resource pack.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.resource_pack.bedrock.force
Whether to disconnect players who decline the pack.
Type: boolean
Default: false
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.resource_pack.bedrock.packs
Array of Bedrock resource pack definitions. Entries may be bare strings (e.g. a UUID or path) or tables (e.g. attrsets with name/uuid/version keys), since upstream does not document the entry shape in more detail.
Type: list of (string or attribute set of (TOML value))
Default: [ ]
Example:
[
"016d3a32-11f0-4a3f-8b52-8f1c3f1e5b0a"
]
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.resource_pack.java.enabled
Whether to require a Java Edition resource pack.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.resource_pack.java.force
Whether to disconnect players who decline the pack.
Type: boolean
Default: false
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.resource_pack.java.prompt_message
Message shown to players when prompted to accept the pack.
Type: string
Default: ""
Example: "Please accept the resource pack to join."
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.resource_pack.java.sha1
SHA-1 hash of the resource pack.
Type: string
Default: ""
Example: "da39a3ee5e6b4b0d3255bfef95601890afd80709"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.resource_pack.java.url
URL of the resource pack.
Type: string
Default: ""
Example: "https://example.com/resourcepack.zip"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.scrub_ips
Whether to remove IP addresses from logs.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.seed
Seed string for world generation.
Type: null or string
Default: null
Example: "11238910"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.server_links.announcements
Announcements link.
Type: string
Default: ""
Example: "https://example.com/announcements"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.server_links.bug_report
Bug report link.
Type: string
Default: "https://github.com/Pumpkin-MC/Pumpkin/issues"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.server_links.community
Community link.
Type: string
Default: ""
Example: "https://discord.gg/example"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.server_links.enabled
Whether to advertise server links to clients.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.server_links.feedback
Feedback link.
Type: string
Default: ""
Example: "https://example.com/feedback"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.server_links.forums
Forums link.
Type: string
Default: ""
Example: "https://forums.example.com"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.server_links.news
News link.
Type: string
Default: ""
Example: "https://example.com/news"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.server_links.status
Status page link.
Type: string
Default: ""
Example: "https://status.example.com"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.server_links.support
Support link.
Type: string
Default: ""
Example: "https://example.com/support"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.server_links.website
Website link.
Type: string
Default: ""
Example: "https://example.com"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.tps
Server ticks per second.
Type: floating point number
Default: 20.0
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.use_favicon
Whether to serve a favicon to clients.
Type: boolean
Default: true
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.white_list
Whether the whitelist is active.
Type: boolean
Default: false
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.world.autosave_ticks
Ticks between automatic world saves (0 disables autosave).
Type: unsigned integer, meaning >=0
Default: 6000
Example: 12000
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.world.chunk.compression.algorithm
Chunk compression algorithm (anvil only).
Type: one of "GZip", "ZLib", "LZ4", "Custom"
Default: "LZ4"
Example: "ZLib"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.world.chunk.compression.level
Chunk compression level (anvil only).
Type: unsigned integer, meaning >=0
Default: 6
Example: 9
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.world.chunk.type
Chunk/world storage format. anvil is the modern Vanilla format;
linear is the more compact third-party format; pump is
Pumpkin's own optimized format. Only anvil uses
write_in_place/compression — they're ignored for the other two.
Type: one of "anvil", "linear", "pump"
Default: "anvil"
Example: "linear"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.world.chunk.write_in_place
Whether to write chunk data in place (anvil only).
Type: boolean
Default: false
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.settings.world.lighting
Lighting engine mode.
Type: one of "default", "full", "dark"
Default: "default"
Example: "full"
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.whitelist.entries
Initial whitelist entries. Written to whitelist.json only if
that file doesn't already exist, since it's normally managed at
runtime via in-game/console /whitelist commands; changes made
this way are not overwritten by later rebuilds.
Type: list of (submodule)
Default: [ ]
Example:
[
{
name = "Notch";
uuid = "069a79f4-44e9-4726-a5be-fca90e38aaf5";
}
]
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.whitelist.entries.*.name
The player's username.
Type: string
Declared by: nixos/modules/services/games/pumpkin.nix
services.pumpkin.whitelist.entries.*.uuid
The player's UUID, in dashed form.
Type: string
Declared by: nixos/modules/services/games/pumpkin.nix
services.pykms.enable
Whether to enable the PyKMS service.
Type: boolean
Default: false
Declared by: nixos/modules/services/misc/pykms.nix
services.pykms.extraArgs
Additional arguments
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/misc/pykms.nix
services.pykms.listenAddress
The IP address on which to listen.
Type: string
Default: "0.0.0.0"
Example: "::"
Declared by: nixos/modules/services/misc/pykms.nix
services.pykms.logLevel
How much to log
Type: one of "CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG", "MININFO"
Default: "INFO"
Declared by: nixos/modules/services/misc/pykms.nix
services.pykms.memoryLimit
How much memory to use at most.
Type: string
Default: "64M"
Declared by: nixos/modules/services/misc/pykms.nix
services.pykms.openFirewallPort
Whether the listening port should be opened automatically.
Type: boolean
Default: false
Declared by: nixos/modules/services/misc/pykms.nix
services.pykms.package
The pykms package to use.
Type: package
Default: pkgs.pykms
Declared by: nixos/modules/services/misc/pykms.nix
services.pykms.port
The port on which to listen.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 1688
Declared by: nixos/modules/services/misc/pykms.nix
services.pyroscope.configFile
Specify a path to a configuration file that Pyroscope should use.
Type: null or absolute path
Default: null
Declared by: nixos/modules/services/monitoring/pyroscope.nix
services.pyroscope.enable
Whether to enable Pyroscope.
Type: boolean
Default: false
Example: true
Declared by: nixos/modules/services/monitoring/pyroscope.nix
services.pyroscope.extraFlags
Additional arguments to pass to pyroscope
Type: list of string
Default: [ ]
Declared by: nixos/modules/services/monitoring/pyroscope.nix
services.pyroscope.openFirewall
Whether or not to open the firewall for this service
Type: boolean
Default: false
Declared by: nixos/modules/services/monitoring/pyroscope.nix
services.pyroscope.package
The pyroscope package to use.
Type: package
Default: pkgs.pyroscope
Declared by: nixos/modules/services/monitoring/pyroscope.nix
services.pyroscope.settings
Specify the configuration for Pyroscope in Nix.
See https://grafana.com/docs/pyroscope/latest/configure-server/reference-configuration-parameters/ for available options.
Type: open submodule of (YAML 1.1 value)
Default: { }
Declared by: nixos/modules/services/monitoring/pyroscope.nix
services.pyroscope.settings.server.http_listen_address
The server listen address
Type: string
Default: "127.0.0.1"
Declared by: nixos/modules/services/monitoring/pyroscope.nix
services.pyroscope.settings.server.http_listen_port
The port that Pyroscope should run on
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 4040
Declared by: nixos/modules/services/monitoring/pyroscope.nix