services (D)

services.dae.assets

Assets required to run dae.

Type: list of absolute path

Default: with pkgs; [ v2ray-geoip v2ray-domain-list-community ]

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

services.dae.assetsPath

The path which contains geolocation database. This option will override assets.

Type: string

Default:

(symlinkJoin {
    name = "dae-assets";
    paths = assets;
})/share/v2ray

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

services.dae.config

WARNING: This option will expose store your config unencrypted world-readable in the nix store. Config text for dae.

See https://github.com/daeuniverse/dae/blob/main/example.dae.

Type: null or string

Default: null

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

services.dae.configFile

The path of dae config file, end with .dae.

Type: null or absolute path

Default: null

Example: "/path/to/your/config.dae"

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

services.dae.disableTxChecksumIpGeneric

See https://github.com/daeuniverse/dae/issues/43

Type: boolean

Default: false

Example: true

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

services.dae.enable

Whether to enable dae, a Linux high-performance transparent proxy solution based on eBPF.

Type: boolean

Default: false

Example: true

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

services.dae.openFirewall

Open the firewall port.

Type: submodule

Default:

{
  enable = true;
  port = 12345;
}

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

services.dae.openFirewall.enable

Whether to enable opening port in the firewall.

Type: boolean

Default: false

Example: true

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

services.dae.openFirewall.port

Port to be opened. Consist with field tproxy_port in config file.

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

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

services.dae.package

The dae package to use.

Type: package

Default: pkgs.dae

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

services.dante.config

Contents of Dante's configuration file. NOTE: user.privileged, user.unprivileged and logoutput are set by the service.

Type: strings concatenated with "\n"

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

services.dante.enable

Whether to enable Dante SOCKS proxy.

Type: boolean

Default: false

Example: true

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

services.darkhttpd.address

Address to listen on. Pass all to listen on all interfaces.

Type: string

Default: "127.0.0.1"

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

services.darkhttpd.enable

Whether to enable DarkHTTPd web server.

Type: boolean

Default: false

Example: true

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

services.darkhttpd.extraArgs

Additional configuration passed to the executable.

Type: list of string

Default: [ ]

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

services.darkhttpd.hideServerId

Don't identify the server type in headers or directory listings.

Type: boolean

Default: true

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

services.darkhttpd.port

Port to listen on. Pass 0 to let the system choose any free port for you.

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

Default: 80

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

services.darkhttpd.rootDir

Path from which to serve files.

Type: absolute path

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

services.das_watchdog.enable

Whether to enable realtime watchdog.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/monitoring/das_watchdog.nix

services.dashy.enable

Whether to enable Dashy, a highly customizable, easy to use, privacy-respecting dashboard app.

Note that this builds a static web app as opposed to running a full node server, unlike the default docker image.

Writing config changes to disk through the UI, triggering a rebuild through the UI and application status checks are unavailable without the node server; Everything else will work fine.

See the deployment docs for building from source, hosting with a CDN and CDN cloud deploy for more information. .

Type: boolean

Default: false

Example: true

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

services.dashy.finalDrv

Final derivation containing the fully built static files

Type: package

Default:

''
  if cfg.settings != {}
  then cfg.package.override {inherit (cfg) settings;}
  else cfg.package;
''

Read only

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

services.dashy.package

The dashy-ui package to use.

Type: package

Default: pkgs.dashy-ui

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

services.dashy.settings

Settings serialized into user-data/conf.yml before build. If left empty, the default configuration shipped with the package will be used instead.

Note that the full configuration will be written to the nix store as world readable, which may include secrets such as password hashes.

To add files such as icons or backgrounds, you can reference them in line such as

icon = "$\{./icon.png}";

This will add the file to the nix store upon build, referencing it by file path as expected by Dashy.

Type: JSON value

Default: { }

Example:

''
  {
    appConfig = {
      cssThemes = [
        "example-theme-1"
        "example-theme-2"
      ];
      enableFontAwesome = true;
      fontAwesomeKey = "e9076c7025";
      theme = "thebe";
    };
    pageInfo = {
      description = "My Awesome Dashboard";
      navLinks = [
        {
          path = "/";
          title = "Home";
        }
        {
          path = "https://example.com";
          title = "Example 1";
        }
        {
          path = "https://example.com";
          title = "Example 2";
        }
      ];
      title = "Dashy";
    };
    sections = [
      {
        displayData = {
          collapsed = true;
          cols = 2;
          customStyles = "border: 2px dashed red;";
          itemSize = "large";
        };
        items = [
          {
            backgroundColor = "#0079ff";
            color = "#00ffc9";
            description = "Source code and documentation on GitHub";
            icon = "fab fa-github";
            target = "sametab";
            title = "Source";
            url = "https://github.com/Lissy93/dashy";
          }
          {
            description = "View currently open issues, or raise a new one";
            icon = "fas fa-bug";
            title = "Issues";
            url = "https://github.com/Lissy93/dashy/issues";
          }
          {
            description = "Live Demo #1";
            icon = "fas fa-rocket";
            target = "iframe";
            title = "Demo 1";
            url = "https://dashy-demo-1.as93.net";
          }
          {
            description = "Live Demo #2";
            icon = "favicon";
            target = "newtab";
            title = "Demo 2";
            url = "https://dashy-demo-2.as93.net";
          }
        ];
        name = "Getting Started";
      }
    ];
  }
''

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

services.dashy.virtualHost.domain

Domain to use for the virtual host.

This can be used to change nginx options like

services.nginx.virtualHosts."$\{config.services.dashy.virtualHost.domain}".listen = [ ... ]

or

services.nginx.virtualHosts."example.com".listen = [ ... ]

Type: string

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

services.dashy.virtualHost.enableNginx

Whether to enable a virtualhost to serve dashy through nginx.

Type: boolean

Default: false

Example: true

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

services.datadog-agent.apiKeyFile

Path to a file containing the Datadog API key to associate the agent with your account.

Type: absolute path

Example: "/run/keys/datadog_api_key"

Declared by: nixos/modules/services/monitoring/datadog-agent.nix

services.datadog-agent.checks

Configuration for all Datadog checks. Keys of this attribute set will be used as the name of the check to create the appropriate configuration in conf.d/$check.d/conf.yaml.

The configuration is converted into JSON from the plain Nix language configuration, meaning that you should write configuration adhering to Datadog's documentation - but in Nix language.

Refer to the implementation of this module (specifically the definition of defaultChecks) for an example.

Note: The 'disk' and 'network' check are configured in separate options because they exist by default. Attempting to override their configuration here will have no effect.

Type: attribute set of (attribute set)

Default: { }

Example:

{
  http_check = {
    init_config = null;
    instances = [
      {
        name = "some-service";
        tags = [
          "some-service"
        ];
        url = "http://localhost:1337/healthz";
      }
    ];
  };
}

Declared by: nixos/modules/services/monitoring/datadog-agent.nix

services.datadog-agent.ddUrl

Custom dd_url to configure the agent with. Useful if traffic to datadog needs to go through a proxy. Don't use this to point to another datadog site (EU) - use site instead.

Type: null or string

Default: null

Example: "http://haproxy.example.com:3834"

Declared by: nixos/modules/services/monitoring/datadog-agent.nix

services.datadog-agent.diskCheck

Disk check config

Type: attribute set

Default:

{
  init_config = { };
  instances = [
    {
      use_mount = "false";
    }
  ];
}

Declared by: nixos/modules/services/monitoring/datadog-agent.nix

services.datadog-agent.enable

Whether to enable Datadog-agent v7 monitoring service.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/monitoring/datadog-agent.nix

services.datadog-agent.enableLiveProcessCollection

Whether to enable the live process collection agent.

Type: boolean

Default: false

Declared by: nixos/modules/services/monitoring/datadog-agent.nix

services.datadog-agent.enableTraceAgent

Whether to enable the trace agent.

Type: boolean

Default: false

Declared by: nixos/modules/services/monitoring/datadog-agent.nix

services.datadog-agent.extraConfig

Extra configuration options that will be merged into the main config file datadog.yaml.

Type: attribute set

Default: { }

Declared by: nixos/modules/services/monitoring/datadog-agent.nix

services.datadog-agent.extraIntegrations

Extra integrations from the Datadog core-integrations repository that should be built and included.

By default the included integrations are disk, mongo, network, nginx and postgres.

To include additional integrations the name of the derivation and a function to filter its dependencies from the Python package set must be provided.

Type: attribute set

Default: { }

Example:

{
  ntp = pythonPackages: [ pythonPackages.ntplib ];
}

Declared by: nixos/modules/services/monitoring/datadog-agent.nix

services.datadog-agent.hostname

The hostname to show in the Datadog dashboard (optional)

Type: null or string

Default: null

Example: "mymachine.mydomain"

Declared by: nixos/modules/services/monitoring/datadog-agent.nix

services.datadog-agent.logLevel

Logging verbosity.

Type: null or one of "DEBUG", "INFO", "WARN", "ERROR"

Default: null

Declared by: nixos/modules/services/monitoring/datadog-agent.nix

services.datadog-agent.networkCheck

Network check config

Type: attribute set

Default:

{
  init_config = { };
  instances = [
    {
      collect_connection_state = false;
      excluded_interfaces = [
        "lo"
        "lo0"
      ];
    }
  ];
}

Declared by: nixos/modules/services/monitoring/datadog-agent.nix

services.datadog-agent.package

The datadog-agent package to use. ::: {.note} The provided package is expected to have an overridable pythonPackages-attribute which configures the Python environment with the Datadog checks. :::

Type: package

Default: pkgs.datadog-agent

Declared by: nixos/modules/services/monitoring/datadog-agent.nix

services.datadog-agent.processAgentPackage

Which DataDog v7 agent package to use. Note that the provided package is expected to have an overridable pythonPackages-attribute which configures the Python environment with the Datadog checks.

Type: package

Default: pkgs.datadog-process-agent

Declared by: nixos/modules/services/monitoring/datadog-agent.nix

services.datadog-agent.site

The datadog site to point the agent towards. Set to datadoghq.eu to point it to their EU site.

Type: null or string

Default: null

Example: "datadoghq.eu"

Declared by: nixos/modules/services/monitoring/datadog-agent.nix

services.datadog-agent.tags

The tags to mark this Datadog agent

Type: null or (list of string)

Default: null

Example:

[
  "test"
  "service"
]

Declared by: nixos/modules/services/monitoring/datadog-agent.nix

services.davfs2.davGroup

The group of the running mount.davfs daemon. Ordinary users must be member of this group in order to mount a davfs2 file system. Value must be given as name, not as numerical id.

Type: string

Default: "davfs2"

Declared by: nixos/modules/services/network-filesystems/davfs2.nix

services.davfs2.davUser

When invoked by root the mount.davfs daemon will run as this user. Value must be given as name, not as numerical id.

Type: string

Default: "davfs2"

Declared by: nixos/modules/services/network-filesystems/davfs2.nix

services.davfs2.enable

Whether to enable davfs2.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/network-filesystems/davfs2.nix

services.davfs2.settings

Extra settings appended to the configuration of davfs2. See davfs2.conf(5) for available settings.

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

Default: { }

Example:

{
  globalSection = {
    proxy = "foo.bar:8080";
    use_locks = false;
  };
  sections = {
    "/media/dav" = {
      use_locks = true;
    };
    "/home/otto/mywebspace" = {
      gui_optimize = true;
    };
  };
}

Declared by: nixos/modules/services/network-filesystems/davfs2.nix

services.davis.adminLogin

Username for the admin account.

Type: string

Default: "root"

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

services.davis.adminPasswordFile

The full path to a file that contains the admin's password. Must be readable by the user.

Type: absolute path

Example: "/run/secrets/davis-admin-pass"

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

services.davis.appSecretFile

A file containing the Symfony APP_SECRET - Its value should be a series of characters, numbers and symbols chosen randomly and the recommended length is around 32 characters. Can be generated with cat /dev/urandom | tr -dc a-zA-Z0-9 | fold -w 48 | head -n 1.

Type: absolute path

Example: "/run/secrets/davis-appsecret"

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

services.davis.config

Type: attribute set of (null or boolean or signed integer or 16 bit unsigned integer; between 0 and 65535 (both inclusive) or absolute path or string or (submodule))

Default: { }

Example: ""

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

services.davis.dataDir

Davis data directory.

Type: absolute path

Default: "/var/lib/davis"

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

services.davis.database.createLocally

Create the database and database user locally.

Type: boolean

Default: true

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

services.davis.database.driver

Database type, required in all circumstances.

Type: one of "sqlite", "postgresql", "mysql"

Default: "sqlite"

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

services.davis.database.name

Database name, only used when the database is created locally.

Type: null or string

Default: "davis"

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

services.davis.database.urlFile

A file containing the database connection url. If set then it overrides all other database settings (except driver). This is mandatory if you want to use an external database, that is when services.davis.database.createLocally is false.

Type: null or absolute path

Default: null

Example: "/run/secrets/davis-db-url"

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

services.davis.enable

Whether to enable Davis is a caldav and carddav server.

Type: boolean

Default: false

Example: true

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

services.davis.group

Group davis runs as.

Type: string

Default: "davis"

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

services.davis.hostname

Domain of the host to serve davis under. You may want to change it if you run Davis on a different URL than davis.yourdomain.

Type: string

Example: "davis.yourdomain.org"

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

services.davis.mail.dsn

Mail DSN for sending emails. Mutually exclusive with services.davis.mail.dsnFile.

Type: null or string

Default: null

Example: "smtp://username:password@example.com:25"

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

services.davis.mail.dsnFile

A file containing the mail DSN for sending emails. Mutually exclusive with servies.davis.mail.dsn.

Type: null or string

Default: null

Example: "/run/secrets/davis-mail-dsn"

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

services.davis.mail.inviteFromAddress

Email address to send invitations from.

Type: null or string

Default: null

Example: "no-reply@dav.example.com"

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

services.davis.nginx

Use this option to customize an nginx virtual host. To disable the nginx set this to null.

Type: null or (submodule)

Default: { }

Example:

''
  {
    serverAliases = [
      "dav.''${config.networking.domain}"
    ];
    # To enable encryption and let let's encrypt take care of certificate
    forceSSL = true;
    enableACME = true;
  }
''

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

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.nginx.default

Makes this vhost the default.

Type: boolean

Default: false

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

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.nginx.listen.*.addr

Listen address.

Type: string

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

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.nginx.listen.*.proxyProtocol

Enable PROXY protocol.

Type: boolean

Default: false

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

services.davis.nginx.listen.*.ssl

Enable SSL.

Type: boolean

Default: false

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

services.davis.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/davis.nix

services.davis.nginx.locations

Declarative location config

Type: attribute set of (submodule)

Default: { }

Example:

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

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

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

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

Enable recommended proxy settings.

Type: boolean

Default: config.services.nginx.recommendedProxySettings

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

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

Enable recommended uwsgi settings.

Type: boolean

Default: config.services.nginx.recommendedUwsgiSettings

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

services.davis.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/davis.nix

services.davis.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/davis.nix

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

Adds try_files directive.

Type: null or string

Default: null

Example: "$uri =404"

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

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.nginx.sslCertificate

Path to server SSL certificate.

Type: absolute path

Example: "/var/host.cert"

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

services.davis.nginx.sslCertificateKey

Path to server SSL certificate key.

Type: absolute path

Example: "/var/host.key"

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

services.davis.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/davis.nix

services.davis.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/davis.nix

services.davis.package

The davis package to use.

Type: package

Default: pkgs.davis

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

services.davis.poolConfig

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

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

Default:

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

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

services.davis.user

User davis runs as.

Type: string

Default: "davis"

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

services.davmail.config

Davmail configuration. Refer to http://davmail.sourceforge.net/serversetup.html and http://davmail.sourceforge.net/advanced.html for details on supported values.

Type: davmail config type (str, int, bool or attribute set thereof)

Default: { }

Example:

{
  davmail.allowRemote = true;
  davmail.imapPort = 55555;
  davmail.bindAddress = "10.0.1.2";
  davmail.smtpSaveInSent = true;
  davmail.folderSizeLimit = 10;
  davmail.caldavAutoSchedule = false;
  log4j.logger.rootLogger = "DEBUG";
}

Declared by: nixos/modules/services/mail/davmail.nix

services.davmail.enable

Whether to enable davmail, an MS Exchange gateway.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/mail/davmail.nix

services.davmail.url

Outlook Web Access URL to access the exchange server, i.e. the base webmail URL.

Type: string

Example: "https://outlook.office365.com/EWS/Exchange.asmx"

Declared by: nixos/modules/services/mail/davmail.nix

services.dawarich.archiveEncryptionKeyFile

Path to file containing the archive encryption key. A new encryption key can be generated by running:

nix build -f '<nixpkgs>' dawarich; cd result; bin/bundle exec rails secret

This file is loaded using systemd credentials, and therefore does not need to be owned by the dawarich user.

If this option is null, it will be created at /var/lib/dawarich/secrets/archive-encryption-key:

  • for system.stateVersion < 27.05: it will copy secret key base, to be able to decrypt old archives;
  • for system.stateVersion >= 27.05: a new encryption key is generated.

Type: null or string

Default: null

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

services.dawarich.automaticMigrations

Whether to perform database migrations automatically

Type: boolean

Default: true

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

services.dawarich.configureNginx

Configure nginx as a reverse proxy for dawarich. Alternatively you can configure a reverse-proxy of your choice to serve these paths:

/ -> ${pkgs.dawarich}/public

/ -> 127.0.0.1:{{ webPort }} or / -> unix:{{ unixSocket }} (If there was no file in the directory above.)

Make sure that websockets are forwarded properly. You might want to set up caching of some requests. Take a look at dawarich's provided reverse proxy configurations at https://dawarich.app/docs/tutorials/reverse-proxy.

Type: boolean

Default: true

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

services.dawarich.database.createLocally

Whether to configure a local PostgreSQL server and database for Dawarich. The connection is performed via Unix sockets.

Type: boolean

Default: true

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

services.dawarich.database.host

Hostname or address of the postgresql server. If an absolute path is given here, it will be interpreted as a unix socket path.

Type: string

Default: "/run/postgresql"

Example: "127.0.0.1"

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

services.dawarich.database.name

The name of the dawarich database.

Type: string

Default: "dawarich"

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

services.dawarich.database.passwordFile

A file containing the password corresponding to services.dawarich.database.user.

Type: null or absolute path

Default: null

Example: "/run/keys/dawarich-db-password"

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

services.dawarich.database.port

Port of the postgresql server.

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

Default: 5432

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

services.dawarich.database.user

The database user for dawarich.

Type: string

Default: "dawarich"

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

services.dawarich.enable

Whether to enable Dawarich, a self-hostable alternative to Google Location History.

Type: boolean

Default: false

Example: true

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

services.dawarich.environment

Extra environment variables to pass to all dawarich services.

Type: attribute set of (null or string or absolute path or package)

Default: { }

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

services.dawarich.extraEnvFiles

Extra environment files to pass to all Dawarich services. Useful for passing down environment secrets.

Type: list of absolute path

Default: [ ]

Example:

[
  "/etc/dawarich/secret.env"
]

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

services.dawarich.group

Group under which dawarich runs.

Type: string

Default: "dawarich"

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

services.dawarich.localDomain

The domain serving your Dawarich instance.

Type: string

Example: "dawarich.example.org"

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

services.dawarich.package

The dawarich package to use.

Type: package

Default: pkgs.dawarich

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

services.dawarich.redis.createLocally

Whether to configure a local Redis server for Dawarich. The connection is performed via Unix sockets by default, but that can be changed by configuring services.dawarich.redis.host and services.dawarich.redis.port.

Type: boolean

Default: true

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

services.dawarich.redis.host

The redis host Dawarich will connect to.

Type: string

Default: config.services.redis.servers.dawarich.unixSocket

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

services.dawarich.redis.port

The port of the redis server Dawarich will connect to. Set to zero to disable TCP and use Unix sockets instead.

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

Default: 0

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

services.dawarich.secretKeyBaseFile

Path to file containing the secret key base. A new secret key base can be generated by running:

nix build -f '<nixpkgs>' dawarich; cd result; bin/bundle exec rails secret

This file is loaded using systemd credentials, and therefore does not need to be owned by the dawarich user.

If this option is null, it will be created at /var/lib/dawarich/secrets/secret-key-base with a new secret key base.

Type: null or string

Default: null

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

services.dawarich.sidekiqProcesses

How many Sidekiq processes should be used to handle background jobs, and which job classes they handle. Can be used to speed up the import process.

Type: attribute set of (submodule)

Default:

{
  all = {
    jobClasses = [ ];
    threads = null;
  };
}

Example:

{
  all = {
    jobClasses = [ ];
    threads = null;
  };
  geocoding = {
    jobClasses = [
      "reverse_geocoding"
    ];
    threads = 10;
  };
}

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

services.dawarich.sidekiqProcesses.<name>.jobClasses

If not empty, which job classes should be executed by this process. If left empty, all job classes will be executed by this process.

Type: list of (one of "achievements", "app_version_checking", "archival", "cache", "data_migrations", "default", "digests", "exports", "extractions", "families", "highest_priority", "imports", "low_priority", "mailers", "places", "points", "posters", "reverse_geocoding", "route_videos", "stats", "tracks", "trips", "visit_suggesting", "webhooks")

Default: [ ]

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

services.dawarich.sidekiqProcesses.<name>.threads

Number of threads this process should use for executing jobs. If null, the configured sidekiqThreads are used.

Type: null or signed integer

Default: null

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

services.dawarich.sidekiqThreads

Worker threads used by the dawarich-sidekiq-all service. If sidekiqProcesses is configured and any processes specify null threads, this value is used.

Type: signed integer

Default: 3

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

services.dawarich.smtp.fromAddress

"From" address used when sending emails to users.

Type: null or string

Default: null

Example: "dawarich@example.com"

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

services.dawarich.smtp.host

SMTP host used when sending emails to users.

Type: null or string

Default: null

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

services.dawarich.smtp.passwordFile

Path to file containing the SMTP password.

Type: null or absolute path

Default: null

Example: "/run/keys/dawarich-smtp-password"

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

services.dawarich.smtp.port

SMTP port used when sending emails to users.

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

Default: 25

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

services.dawarich.smtp.user

SMTP login name.

Type: null or string

Default: null

Example: "dawarich@example.com"

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

services.dawarich.unixSocket

Unix socket the dawarich web service listens on. Set to null to not listen on a Unix socket. It can be used together with services.dawarich.webPort, nginx prefers the Unix socket.

The socket is owned by services.dawarich.user and, if services.dawarich.configureNginx is enabled, the nginx group. Set SocketUser, SocketGroup and SocketMode in systemd.sockets.dawarich-web.socketConfig to change its ownership and mode.

Type: null or absolute path

Default: if config.services.dawarich.configureNginx then "/run/dawarich/web.sock" else null

Example: "/run/dawarich/web.sock"

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

services.dawarich.user

User under which dawarich runs. If it is set to "dawarich", that user will be created, otherwise it should be set to the name of a user created elsewhere.

Type: string

Default: "dawarich"

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

services.dawarich.webPort

TCP port the dawarich web service listens on, on all IPv4 addresses. Set to null to not listen on TCP.

Additional addresses can be added to systemd.sockets.dawarich-web.listenStreams.

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

Default: if config.services.dawarich.unixSocket == null then 3000 else null

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

services.db-rest.enable

Whether to enable db-rest service.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/misc/db-rest.nix

services.db-rest.group

Group under which db-rest runs.

Type: string

Default: "db-rest"

Declared by: nixos/modules/services/misc/db-rest.nix

services.db-rest.host

The host address the db-rest server should listen on.

Type: string

Default: "127.0.0.1"

Declared by: nixos/modules/services/misc/db-rest.nix

services.db-rest.package

The db-rest package to use.

Type: package

Default: pkgs.db-rest

Declared by: nixos/modules/services/misc/db-rest.nix

services.db-rest.port

The port the db-rest server should listen on.

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

Default: 3000

Declared by: nixos/modules/services/misc/db-rest.nix

services.db-rest.redis.createLocally

Configure a local redis server for db-rest.

Type: boolean

Default: true

Declared by: nixos/modules/services/misc/db-rest.nix

services.db-rest.redis.enable

Enable caching with redis for db-rest.

Type: boolean

Default: false

Declared by: nixos/modules/services/misc/db-rest.nix

services.db-rest.redis.host

Redis host.

Type: null or string

Default: null

Declared by: nixos/modules/services/misc/db-rest.nix

services.db-rest.redis.passwordFile

Path to a file containing the redis password.

Type: null or absolute path

Default: null

Example: "/run/keys/db-rest/pasword-redis-db"

Declared by: nixos/modules/services/misc/db-rest.nix

services.db-rest.redis.port

Redis port.

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

Default: null

Declared by: nixos/modules/services/misc/db-rest.nix

services.db-rest.redis.useSSL

Use SSL if using a redis network connection.

Type: boolean

Default: true

Declared by: nixos/modules/services/misc/db-rest.nix

services.db-rest.redis.user

Optional username used for authentication with redis.

Type: null or string

Default: null

Declared by: nixos/modules/services/misc/db-rest.nix

services.db-rest.user

User account under which db-rest runs.

Type: string

Default: "db-rest"

Declared by: nixos/modules/services/misc/db-rest.nix

services.dbus.apparmor

AppArmor mode for dbus.

enabled enables mediation when it's supported in the kernel, disabled always disables AppArmor even with kernel support, and required fails when AppArmor was not found in the kernel.

Type: one of "enabled", "disabled", "required"

Default: "disabled"

Declared by: nixos/modules/services/system/dbus.nix

services.dbus.brokerPackage

The dbus-broker package to use.

Type: package

Default: pkgs.dbus-broker

Declared by: nixos/modules/services/system/dbus.nix

services.dbus.dbusPackage

The dbus package to use.

Type: package

Default: pkgs.dbus

Declared by: nixos/modules/services/system/dbus.nix

services.dbus.implementation

The implementation to use for the message bus defined by the D-Bus specification. Can be either the classic dbus daemon or dbus-broker, which aims to provide high performance and reliability, while keeping compatibility to the D-Bus reference implementation.

Type: one of "dbus", "broker"

Default: "broker"

Declared by: nixos/modules/services/system/dbus.nix

services.dbus.packages

Packages whose D-Bus configuration files should be included in the configuration of the D-Bus system-wide or session-wide message bus. Specifically, files in the following directories will be included into their respective DBus configuration paths: «pkg»/etc/dbus-1/system.d «pkg»/share/dbus-1/system.d «pkg»/share/dbus-1/system-services «pkg»/etc/dbus-1/session.d «pkg»/share/dbus-1/session.d «pkg»/share/dbus-1/services

Type: list of absolute path

Default: [ ]

Declared by: nixos/modules/services/system/dbus.nix

services.ddccontrol.enable

Whether to enable ddccontrol for controlling displays.

This enables hardware.i2c, so note to add yourself to hardware.i2c.group. .

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/hardware/ddccontrol.nix

services.ddccontrol.package

The package with which to control brightness; added also to services.dbus.packages. package to use.

Type: package

Default: pkgs.ddccontrol

Example: pkgs.ddcutil-service

Declared by: nixos/modules/services/hardware/ddccontrol.nix

services.ddclient.configFile

Path to configuration file. When set this overrides the generated configuration from module options.

Type: null or absolute path

Default: null

Example: "/root/nixos/secrets/ddclient.conf"

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

services.ddclient.domains

Domain name(s) to synchronize.

Type: list of string

Default:

[
  ""
]

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

services.ddclient.enable

Whether to synchronise your machine's IP address with a dynamic DNS provider (e.g. dyndns.org).

Type: boolean

Default: false

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

services.ddclient.extraConfig

Extra configuration. Contents will be added verbatim to the configuration file.

Note

daemon should not be added here because it does not work great with the systemd-timer approach the service uses.

Type: strings concatenated with "\n"

Default: ""

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

services.ddclient.interval

The interval at which to run the check and update. See man 7 systemd.time for the format.

Type: string

Default: "10min"

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

services.ddclient.package

The ddclient executable package run by the service.

Type: package

Default: pkgs.ddclient

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

services.ddclient.passwordFile

A file containing the password or a TSIG key in named format when using the nsupdate protocol.

Type: null or string

Default: null

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

services.ddclient.protocol

Protocol to use with dynamic DNS provider (see https://ddclient.net/protocols.html ).

Type: string

Default: "dyndns2"

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

services.ddclient.quiet

Print no messages for unnecessary updates.

Type: boolean

Default: false

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

services.ddclient.script

script as required by some providers.

Type: string

Default: ""

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

services.ddclient.secretsFile

A file containing the secrets for the dynamic DNS provider. This file should contain lines of valid secrets in the format specified by the ddclient documentation. If this option is set, it overrides the passwordFile option.

Type: null or string

Default: null

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

services.ddclient.server

Server address.

Type: string

Default: ""

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

services.ddclient.ssl

Whether to use SSL/TLS to connect to dynamic DNS provider.

Type: boolean

Default: true

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

services.ddclient.use

Method to determine the IP address to send to the dynamic DNS provider.

Type: string

Default: ""

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

services.ddclient.username

User name.

Type: string

Default: ""

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

services.ddclient.usev4

Method to determine the IPv4 address to send to the dynamic DNS provider. Only used if use is not set.

Type: string

Default: "webv4, webv4=ipify-ipv4"

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

services.ddclient.usev6

Method to determine the IPv6 address to send to the dynamic DNS provider. Only used if use is not set.

Type: string

Default: "webv6, webv6=ipify-ipv6"

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

services.ddclient.verbose

Print verbose information.

Type: boolean

Default: false

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

services.ddclient.zone

zone as required by some providers.

Type: string

Default: ""

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

services.ddns-updater.enable

Whether to enable Container to update DNS records periodically with WebUI for many DNS providers.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/ddns-updater.nix

services.ddns-updater.environment

Environment variables to be set for the ddns-updater service. DATADIR is ignored to enable using systemd DynamicUser. For full list see https://github.com/qdm12/ddns-updater

Type: attribute set of string

Default: { }

Declared by: nixos/modules/services/networking/ddns-updater.nix

services.ddns-updater.package

The ddns-updater package to use.

Type: package

Default: pkgs.ddns-updater

Declared by: nixos/modules/services/networking/ddns-updater.nix

services.deconz.allowRebootSystem

Whether to enable rebooting the system.

Type: boolean

Default: false

Example: true

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

services.deconz.allowRestartService

Whether to enable killing/restarting processes.

Type: boolean

Default: false

Example: true

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

services.deconz.allowSetSystemTime

Whether to enable setting the system time.

Type: boolean

Default: false

Example: true

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

services.deconz.device

Force deCONZ to use a specific USB device (e.g. /dev/ttyACM0). By default it does a search.

Type: null or string

Default: null

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

services.deconz.enable

Whether to enable deCONZ, a Zigbee gateway for use with ConBee/RaspBee hardware (https://phoscon.de/).

Type: boolean

Default: false

Example: true

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

services.deconz.extraArgs

Extra command line arguments for deCONZ, see https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/deCONZ-command-line-parameters.

Type: list of string

Default: [ ]

Example:

[
  "--dbg-info=1"
  "--dbg-err=2"
]

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

services.deconz.httpPort

TCP port for the web server.

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

Default: 80

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

services.deconz.listenAddress

Pin deCONZ to the network interface specified through the provided IP address. This applies for the webserver as well as the websocket notifications.

Type: string

Default: "127.0.0.1"

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

services.deconz.openFirewall

Whether to enable opening up the service ports in the firewall.

Type: boolean

Default: false

Example: true

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

services.deconz.package

The deconz package to use.

Type: package

Default: pkgs.deconz

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

services.deconz.wsPort

TCP port for the WebSocket.

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

Default: 443

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

services.deluge.authFile

The file managing the authentication for deluge, the format of this file is straightforward, each line contains a username:password:level tuple in plaintext. It only has an effect when services.deluge.declarative is set to true. See https://dev.deluge-torrent.org/wiki/UserGuide/Authentication for more information.

Type: absolute path

Example: "/run/keys/deluge-auth"

Declared by: nixos/modules/services/torrent/deluge.nix

services.deluge.config

Deluge core configuration for the core.conf file. Only has an effect when services.deluge.declarative is set to true. String values must be quoted, integer and boolean values must not. See https://git.deluge-torrent.org/deluge/tree/deluge/core/preferencesmanager.py#n41 for the available options.

Type: attribute set

Default: { }

Example:

{
  download_location = "/srv/torrents/";
  max_upload_speed = "1000.0";
  share_ratio_limit = "2.0";
  allow_remote = true;
  daemon_port = 58846;
  listen_ports = [ 6881 6889 ];
}

Declared by: nixos/modules/services/torrent/deluge.nix

services.deluge.dataDir

The directory where deluge will create files.

Type: absolute path

Default: "/var/lib/deluge"

Declared by: nixos/modules/services/torrent/deluge.nix

services.deluge.declarative

Whether to use a declarative deluge configuration. Only if set to true, the options services.deluge.config, services.deluge.openFirewall and services.deluge.authFile will be applied.

Type: boolean

Default: false

Declared by: nixos/modules/services/torrent/deluge.nix

services.deluge.enable

Whether to enable Deluge daemon.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/torrent/deluge.nix

services.deluge.extraPackages

Extra packages available at runtime to enable Deluge's plugins. For example, extraction utilities are required for the built-in "Extractor" plugin. This always contains unzip, gnutar, xz and bzip2.

Type: list of package

Default: [ ]

Declared by: nixos/modules/services/torrent/deluge.nix

services.deluge.group

Group under which deluge runs.

Type: string

Default: "deluge"

Declared by: nixos/modules/services/torrent/deluge.nix

services.deluge.openFilesLimit

Number of files to allow deluged to open.

Type: signed integer or string

Default: 4096

Declared by: nixos/modules/services/torrent/deluge.nix

services.deluge.openFirewall

Whether to open the firewall for the ports in services.deluge.config.listen_ports. It only takes effet if services.deluge.declarative is set to true.

It does NOT apply to the daemon port nor the web UI port. To access those ports securely check the documentation https://dev.deluge-torrent.org/wiki/UserGuide/ThinClient#CreateSSHTunnel or use a VPN or configure certificates for deluge.

Type: boolean

Default: false

Declared by: nixos/modules/services/torrent/deluge.nix

services.deluge.package

The deluge-2_x package to use.

Type: package

Default: pkgs.deluge-2_x

Declared by: nixos/modules/services/torrent/deluge.nix

services.deluge.user

User account under which deluge runs.

Type: string

Default: "deluge"

Declared by: nixos/modules/services/torrent/deluge.nix

services.deluge.web.enable

Whether to enable Deluge Web daemon.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/torrent/deluge.nix

services.deluge.web.openFirewall

Open ports in the firewall for deluge web daemon

Type: boolean

Default: false

Declared by: nixos/modules/services/torrent/deluge.nix

services.deluge.web.port

Deluge web UI port.

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

Default: 8112

Declared by: nixos/modules/services/torrent/deluge.nix

services.dendrite.enable

Whether to enable matrix.org dendrite.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.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. Currently only used for the registration secret to allow secure registration when client_api.registration_disabled is true.

  # snippet of dendrite-related config
  services.dendrite.settings.client_api.registration_shared_secret = "$REGISTRATION_SHARED_SECRET";
  # content of the environment file
  REGISTRATION_SHARED_SECRET=verysecretpassword

Note that this file needs to be available on the host on which dendrite is running.

Type: null or absolute path

Default: null

Example: "/var/lib/dendrite/registration_secret"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.httpPort

The port to listen for HTTP requests on.

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

Default: 8008

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.httpsPort

The port to listen for HTTPS requests on.

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

Default: null

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.loadCredential

This can be used to pass secrets to the systemd service without adding them to the nix store. To use the example setting, see the example of services.dendrite.settings.global.private_key. See the LoadCredential section of systemd.exec manual for more information.

Type: list of string

Default: [ ]

Example:

[
  "private_key:/path/to/my_private_key"
]

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.openRegistration

Allow open registration without secondary verification (reCAPTCHA).

Type: boolean

Default: false

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.package

The dendrite package to use.

Type: package

Default: pkgs.dendrite

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings

Configuration for dendrite, see: https://github.com/matrix-org/dendrite/blob/main/dendrite-sample.yaml for available options with which to populate settings.

Type: open submodule of (YAML 1.1 value)

Default: { }

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.app_service_api.database.connection_string

Database for the Appservice API.

Type: string

Default: "file:federationapi.db"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.client_api.registration_disabled

Whether to disable user registration to the server without the shared secret.

Type: boolean

Default: true

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.federation_api.database.connection_string

Database for the Federation API.

Type: string

Default: "file:federationapi.db"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.global.private_key

The path to the signing private key file, used to sign requests and events.

  nix-shell -p dendrite --command "generate-keys --private-key matrix_key.pem"

Type: absolute path or string matching the pattern ^$CREDENTIALS_DIRECTORY/.+

Example: "$CREDENTIALS_DIRECTORY/private_key"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.global.server_name

The domain name of the server, with optional explicit port. This is used by remote servers to connect to this server. This is also the last part of your UserID.

Type: string

Example: "example.com"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.global.trusted_third_party_id_servers

Lists of domains that the server will trust as identity servers to verify third party identifiers such as phone numbers and email addresses

Type: list of string

Default:

[
  "matrix.org"
  "vector.im"
]

Example:

[
  "matrix.org"
]

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.key_server.database.connection_string

Database for the Key Server (for end-to-end encryption).

Type: string

Default: "file:keyserver.db"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.media_api.base_path

Storage path for uploaded media.

Type: string

Default: "/var/lib/dendrite/media_store"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.media_api.database.connection_string

Database for the Media API.

Type: string

Default: "file:mediaapi.db"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.mscs.database.connection_string

Database for exerimental MSC's.

Type: string

Default: "file:mscs.db"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.relay_api.database.connection_string

Database for the Relay Server.

Type: string

Default: "file:relayapi.db"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.room_server.database.connection_string

Database for the Room Server.

Type: string

Default: "file:roomserver.db"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.sync_api.database.connection_string

Database for the Sync API.

Type: string

Default: "file:syncserver.db"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.sync_api.search.enabled

Whether to enable Dendrite's full-text search engine.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.sync_api.search.index_path

The path the search index will be created in.

Type: string

Default: "/var/lib/dendrite/searchindex"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.sync_api.search.language

The language most likely to be used on the server - used when indexing, to ensure the returned results match expectations. A full list of possible languages can be found at https://github.com/blevesearch/bleve/tree/master/analysis/lang

Type: string

Default: "en"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.user_api.account_database.connection_string

Database for the User API, accounts.

Type: string

Default: "file:userapi_accounts.db"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.settings.user_api.device_database.connection_string

Database for the User API, devices.

Type: string

Default: "file:userapi_devices.db"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.tlsCert

The path to the TLS certificate.

  nix-shell -p dendrite --command "generate-keys --tls-cert server.crt --tls-key server.key"

Type: null or absolute path

Default: null

Example: "/var/lib/dendrite/server.cert"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dendrite.tlsKey

The path to the TLS key.

  nix-shell -p dendrite --command "generate-keys --tls-cert server.crt --tls-key server.key"

Type: null or absolute path

Default: null

Example: "/var/lib/dendrite/server.key"

Declared by: nixos/modules/services/matrix/dendrite.nix

services.dependency-track.database.createLocally

Whether a database should be automatically created on the local host. Set this to false if you plan on provisioning a local database yourself.

Type: boolean

Default: true

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

services.dependency-track.database.databaseName

Database name to use when connecting to an external or manually provisioned database; has no effect when a local database is automatically provisioned.

To use this with a local database, set services.dependency-track.database.createLocally to false and create the database and user.

Type: string

Default: "dependency-track"

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

services.dependency-track.database.passwordFile

The path to a file containing the database password.

Type: absolute path

Example: "/run/keys/db_password"

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

services.dependency-track.database.type

h2 database is not recommended for a production setup. postgresql this settings it recommended for production setups. manual the module doesn't handle database settings.

Type: one of "h2", "postgresql", "manual"

Default: "postgresql"

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

services.dependency-track.database.username

Username to use when connecting to an external or manually provisioned database; has no effect when a local database is automatically provisioned.

To use this with a local database, set services.dependency-track.database.createLocally to false and create the database and user.

Type: string

Default: "dependency-track"

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

services.dependency-track.enable

Whether to enable dependency-track.

Type: boolean

Default: false

Example: true

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

services.dependency-track.frontend.baseUrl

The base URL of the API server.

NOTE:

  • This URL must be reachable by the browsers of your users.
  • The frontend container itself does NOT communicate with the API server directly, it just serves static files.
  • When deploying to dedicated servers, please use the external IP or domain of the API server.

Type: string

Default:

lib.optionalString config.services.dependency-track.nginx.enable "${
  if sslEnabled then "https" else "http"
}://${config.services.dependency-track.nginx.domain}";

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

services.dependency-track.javaArgs

Java options passed to JVM. Configuring this is usually not necessary, but for small systems it can be useful to tweak the JVM heap size.

Type: list of string

Default: [ ]

Example: [ "-Xmx16G" ]

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

services.dependency-track.ldap.bindPasswordFile

The path to a file containing the LDAP bind password.

Type: absolute path

Example: "/run/keys/ldap_bind_password"

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

services.dependency-track.logLevel

Log level for dependency-track

Type: one of "INFO", "WARN", "ERROR", "DEBUG", "TRACE"

Default: "INFO"

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

services.dependency-track.nginx.domain

The domain name under which to set up the virtual host.

Type: string

Example: "dtrack.example.com"

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

services.dependency-track.nginx.enable

Whether to set up an nginx virtual host.

Type: boolean

Default: true

Example: false

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

services.dependency-track.oidc.clientId

Defines the client ID for OpenID Connect.

Type: string

Default: ""

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

services.dependency-track.oidc.enable

Whether to enable oidc support.

Type: boolean

Default: false

Example: true

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

services.dependency-track.oidc.flow

Specifies the OpenID Connect flow to use. Values other than "implicit" will result in the Code+PKCE flow to be used. Usage of the implicit flow is strongly discouraged, but may be necessary when the IdP of choice does not support the Code+PKCE flow. See also:

Type: one of "code", "implicit"

Default: "code"

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

services.dependency-track.oidc.issuer

Defines the issuer URL to be used for OpenID Connect. See alpine.oidc.issuer property of the API server.

Type: string

Default: ""

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

services.dependency-track.oidc.loginButtonText

Defines the scopes to request for OpenID Connect. See also: https://openid.net/specs/openid-connect-basic-1_0.html#Scopes

Type: string

Default: "Login with OpenID Connect"

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

services.dependency-track.oidc.scope

Defines the scopes to request for OpenID Connect. See also: https://openid.net/specs/openid-connect-basic-1_0.html#Scopes

Type: string

Default: "openid profile email"

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

services.dependency-track.oidc.teamSynchronization

This option will ensure that team memberships for OpenID Connect users are dynamic and synchronized with membership of OpenID Connect groups or assigned roles. When a team is mapped to an OpenID Connect group, all local OpenID Connect users will automatically be assigned to the team if they are a member of the group the team is mapped to. If the user is later removed from the OpenID Connect group, they will also be removed from the team. This option provides the ability to dynamically control user permissions via the identity provider. Note that team synchronization is only performed during user provisioning and after successful authentication.

Type: boolean

Default: false

Example: true

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

services.dependency-track.oidc.teams.claim

Defines the name of the claim that contains group memberships or role assignments in the provider's userinfo endpoint. The claim must be an array of strings. Most public identity providers do not support group or role management. When using a customizable / on-demand hosted identity provider, name, content, and inclusion in the userinfo endpoint will most likely need to be configured.

Type: string

Default: "groups"

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

services.dependency-track.oidc.teams.default

Defines one or more team names that auto-provisioned OIDC users shall be added to. Multiple team names may be provided as comma-separated list.

Has no effect when services.dependency-track.oidc.userProvisioning=false, or services.dependency-track.oidc.teamSynchronization=true.

Type: null or strings concatenated with ","

Default: null

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

services.dependency-track.oidc.userProvisioning

Specifies if mapped OpenID Connect accounts are automatically created upon successful authentication. When a user logs in with a valid access token but an account has not been previously provisioned, an authentication failure will be returned. This allows admins to control specifically which OpenID Connect users can access the system and which users cannot. When this value is set to true, a local OpenID Connect user will be created and mapped to the OpenID Connect account automatically. This automatic provisioning only affects authentication, not authorization.

Type: boolean

Default: false

Example: true

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

services.dependency-track.oidc.usernameClaim

Defines the name of the claim that contains the username in the provider's userinfo endpoint. Common claims are "name", "username", "preferred_username" or "nickname". See also: https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse

Type: string

Default: "name"

Example: "preferred_username"

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

services.dependency-track.package

The dependency-track package to use.

Type: package

Default: pkgs.dependency-track

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

services.dependency-track.port

On which port dependency-track should listen for new HTTP connections.

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

Default: 8080

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

services.dependency-track.settings

See https://docs.dependencytrack.org/getting-started/configuration/#default-configuration for possible options

Type: open submodule of attribute set of (string, package, bool, int or float)

Default: { }

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

services.dependency-track.settings."alpine.data.directory"

Defines the path to the data directory. This directory will hold logs, keys, and any database or index files along with application-specific files or directories.

Type: absolute path

Default: "/var/lib/dependency-track"

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

services.dependency-track.settings."alpine.database.driver"

Specifies the JDBC driver class to use.

Type: one of "org.h2.Driver", "org.postgresql.Driver", "com.microsoft.sqlserver.jdbc.SQLServerDriver", "com.mysql.cj.jdbc.Driver"

Default:

if config.services.dependency-track.database.type == "h2" then "org.h2.Driver"
else if config.services.dependency-track.database.type == "postgresql" then "org.postgresql.Driver"
else null;

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

services.dependency-track.settings."alpine.database.mode"

Defines the database mode of operation. Valid choices are: 'server', 'embedded', and 'external'. In server mode, the database will listen for connections from remote hosts. In embedded mode, the system will be more secure and slightly faster. External mode should be used when utilizing an external database server (i.e. mysql, postgresql, etc).

Type: one of "server", "embedded", "external"

Default:

if config.services.dependency-track.database.type == "h2" then "embedded"
else if config.services.dependency-track.database.type == "postgresql" then "external"
else null

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

services.dependency-track.settings."alpine.database.url"

Specifies the JDBC URL to use when connecting to the database.

Type: string

Default:

if config.services.dependency-track.database.type == "h2" then "jdbc:h2:/var/lib/dependency-track/db"
  else if config.services.dependency-track.database.type == "postgresql" then "jdbc:postgresql:${config.services.dependency-track.database.name}?socketFactory=org.newsclub.net.unix.AFUNIXSocketFactory$FactoryArg&socketFactoryArg=/run/postgresql/.s.PGSQL.5432"
  else null

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

services.dependency-track.settings."alpine.database.username"

Specifies the username to use when authenticating to the database.

Type: string

Default:

if config.services.dependency-track.database.createLocally then "dependency-track"
else config.services.dependency-track.database.username

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

services.dependency-track.settings."alpine.ldap.enabled"

Defines if LDAP will be used for user authentication. If enabled, alpine.ldap.* properties should be set accordingly.

Type: boolean

Default: false

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

services.dependency-track.settings."alpine.oidc.client.id"

Defines the client ID to be used for OpenID Connect. The client ID should be the same as the one configured for the frontend, and will only be used to validate ID tokens.

Type: string

Default: config.services.dependency-track.oidc.clientId

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

services.dependency-track.settings."alpine.oidc.enabled"

Defines if OpenID Connect will be used for user authentication. If enabled, alpine.oidc.* properties should be set accordingly.

Type: boolean

Default: config.services.dependency-track.oidc.enable

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

services.dependency-track.settings."alpine.oidc.issuer"

Defines the issuer URL to be used for OpenID Connect. This issuer MUST support provider configuration via the /.well-known/openid-configuration endpoint. See also:

Type: string

Default: config.services.dependency-track.oidc.issuer

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

services.dependency-track.settings."alpine.oidc.team.synchronization"

This option will ensure that team memberships for OpenID Connect users are dynamic and synchronized with membership of OpenID Connect groups or assigned roles. When a team is mapped to an OpenID Connect group, all local OpenID Connect users will automatically be assigned to the team if they are a member of the group the team is mapped to. If the user is later removed from the OpenID Connect group, they will also be removed from the team. This option provides the ability to dynamically control user permissions via the identity provider. Note that team synchronization is only performed during user provisioning and after successful authentication.

Type: boolean

Default: config.services.dependency-track.oidc.teamSynchronization

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

services.dependency-track.settings."alpine.oidc.teams.claim"

Defines the name of the claim that contains group memberships or role assignments in the provider's userinfo endpoint. The claim must be an array of strings. Most public identity providers do not support group or role management. When using a customizable / on-demand hosted identity provider, name, content, and inclusion in the userinfo endpoint will most likely need to be configured.

Type: string

Default: config.services.dependency-track.oidc.teams.claim

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

services.dependency-track.settings."alpine.oidc.teams.default"

Defines one or more team names that auto-provisioned OIDC users shall be added to. Multiple team names may be provided as comma-separated list.

Has no effect when services.dependency-track.oidc.userProvisioning=false, or services.dependency-track.oidc.teamSynchronization=true.

Type: null or strings concatenated with ","

Default: config.services.dependency-track.oidc.teams.default

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

services.dependency-track.settings."alpine.oidc.user.provisioning"

Specifies if mapped OpenID Connect accounts are automatically created upon successful authentication. When a user logs in with a valid access token but an account has not been previously provisioned, an authentication failure will be returned. This allows admins to control specifically which OpenID Connect users can access the system and which users cannot. When this value is set to true, a local OpenID Connect user will be created and mapped to the OpenID Connect account automatically. This automatic provisioning only affects authentication, not authorization.

Type: boolean

Default: config.services.dependency-track.oidc.userProvisioning

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

services.dependency-track.settings."alpine.oidc.username.claim"

Defines the name of the claim that contains the username in the provider's userinfo endpoint. Common claims are "name", "username", "preferred_username" or "nickname". See also: https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse

Type: string

Default: config.services.dependency-track.oidc.usernameClaim

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

services.desktopManager.budgie.enable

Whether to enable the Budgie desktop.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/desktop-managers/budgie.nix

services.desktopManager.budgie.extraGSettingsOverridePackages

List of packages for which GSettings are overridden.

Type: list of absolute path

Default: [ ]

Declared by: nixos/modules/services/desktop-managers/budgie.nix

services.desktopManager.budgie.extraGSettingsOverrides

Additional GSettings overrides.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/desktop-managers/budgie.nix

services.desktopManager.budgie.extraPlugins

Extra plugins for the Budgie desktop

Type: list of package

Default: [ ]

Example: [ pkgs.budgie-analogue-clock-applet ]

Declared by: nixos/modules/services/desktop-managers/budgie.nix

services.desktopManager.budgie.sessionPath

Additional list of packages to be added to the session search path. Useful for GSettings-conditional autostart.

Note that this should be a last resort; patching the package is preferred (see GPaste).

Type: list of package

Default: [ ]

Example: [ pkgs.gpaste ]

Declared by: nixos/modules/services/desktop-managers/budgie.nix

services.desktopManager.cosmic.enable

Whether to enable COSMIC desktop environment.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/desktop-managers/cosmic.nix

services.desktopManager.cosmic.showExcludedPkgsWarning

Whether to enable the warning for excluding core packages.

Type: boolean

Default: true

Example: true

Declared by: nixos/modules/services/desktop-managers/cosmic.nix

services.desktopManager.cosmic.xwayland.enable

Whether to enable Xwayland support for the COSMIC compositor.

Type: boolean

Default: true

Example: true

Declared by: nixos/modules/services/desktop-managers/cosmic.nix

services.desktopManager.gnome.debug

Whether to enable pkgs.gnome-session debug messages.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/desktop-managers/gnome.nix

services.desktopManager.gnome.enable

Enable GNOME desktop manager.

Type: boolean

Default: false

Declared by: nixos/modules/services/desktop-managers/gnome.nix

services.desktopManager.gnome.extraGSettingsOverridePackages

List of packages for which gsettings are overridden.

Type: list of absolute path

Default: [ ]

Declared by: nixos/modules/services/desktop-managers/gnome.nix

services.desktopManager.gnome.extraGSettingsOverrides

Additional gsettings overrides.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/desktop-managers/gnome.nix

services.desktopManager.gnome.flashback.customSessions

Other GNOME Flashback sessions to enable.

Type: list of (submodule)

Default: [ ]

Declared by: nixos/modules/services/desktop-managers/gnome.nix

services.desktopManager.gnome.flashback.customSessions.*.enableGnomePanel

Whether to enable the GNOME panel in this session.

Type: boolean

Default: true

Example: false

Declared by: nixos/modules/services/desktop-managers/gnome.nix

services.desktopManager.gnome.flashback.customSessions.*.wmCommand

The executable of the window manager to use.

Type: string

Example: "${pkgs.haskellPackages.xmonad}/bin/xmonad"

Declared by: nixos/modules/services/desktop-managers/gnome.nix

services.desktopManager.gnome.flashback.customSessions.*.wmLabel

The name of the window manager to show in the session chooser.

Type: string

Example: "XMonad"

Declared by: nixos/modules/services/desktop-managers/gnome.nix

services.desktopManager.gnome.flashback.customSessions.*.wmName

A unique identifier for the window manager.

Type: string matching the pattern [a-zA-Z0-9_-]+

Example: "xmonad"

Declared by: nixos/modules/services/desktop-managers/gnome.nix

services.desktopManager.gnome.flashback.enableMetacity

Whether to enable the standard GNOME Flashback session with Metacity.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/desktop-managers/gnome.nix

services.desktopManager.gnome.flashback.panelModulePackages

Packages containing modules that should be made available to pkgs.gnome-panel (usually for applets).

If you're packaging something to use here, please install the modules in $out/lib/gnome-panel/modules.

Type: list of package

Default: [ pkgs.gnome-applets ]

Declared by: nixos/modules/services/desktop-managers/gnome.nix

services.desktopManager.gnome.sessionPath

Additional list of packages to be added to the session search path. Useful for GNOME Shell extensions or GSettings-conditional autostart.

Note that this should be a last resort; patching the package is preferred (see GPaste).

Type: list of package

Default: [ ]

Example: [ pkgs.gpaste ]

Declared by: nixos/modules/services/desktop-managers/gnome.nix

services.desktopManager.lomiri.enable

Whether to enable the Lomiri graphical shell (formerly known as Unity8) .

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/desktop-managers/lomiri.nix

services.desktopManager.pantheon.debug

Whether to enable gnome-session debug messages.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/desktop-managers/pantheon.nix

services.desktopManager.pantheon.enable

Enable the pantheon desktop manager

Type: boolean

Default: false

Declared by: nixos/modules/services/desktop-managers/pantheon.nix

services.desktopManager.pantheon.extraGSettingsOverridePackages

List of packages for which gsettings are overridden.

Type: list of absolute path

Default: [ ]

Declared by: nixos/modules/services/desktop-managers/pantheon.nix

services.desktopManager.pantheon.extraGSettingsOverrides

Additional gsettings overrides.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/desktop-managers/pantheon.nix

services.desktopManager.pantheon.extraSwitchboardPlugs

Plugs to add to Switchboard.

Type: null or (list of package)

Default: null

Declared by: nixos/modules/services/desktop-managers/pantheon.nix

services.desktopManager.pantheon.extraWingpanelIndicators

Indicators to add to Wingpanel.

Type: null or (list of package)

Default: null

Declared by: nixos/modules/services/desktop-managers/pantheon.nix

services.desktopManager.pantheon.sessionPath

Additional list of packages to be added to the session search path. Useful for GSettings-conditional autostart.

Note that this should be a last resort; patching the package is preferred (see GPaste).

Type: list of package

Default: [ ]

Example: [ pkgs.gpaste ]

Declared by: nixos/modules/services/desktop-managers/pantheon.nix

services.desktopManager.phosh.enable

Enable the Phone Shell.

Type: boolean

Default: false

Declared by: nixos/modules/services/desktop-managers/phosh.nix

services.desktopManager.phosh.group

The group to run the Phosh service.

Type: string

Example: "users"

Declared by: nixos/modules/services/desktop-managers/phosh.nix

services.desktopManager.phosh.package

The phosh package to use.

Type: package

Default: pkgs.phosh

Declared by: nixos/modules/services/desktop-managers/phosh.nix

services.desktopManager.phosh.phocConfig

Configurations for the Phoc compositor.

Type: strings concatenated with "\n" or absolute path or (submodule)

Default: { }

Declared by: nixos/modules/services/desktop-managers/phosh.nix

services.desktopManager.phosh.user

The user to run the Phosh service.

Type: string

Example: "alice"

Declared by: nixos/modules/services/desktop-managers/phosh.nix

services.desktopManager.plasma6.enable

Enable the Plasma 6 (KDE 6) desktop environment.

Type: boolean

Default: false

Declared by: nixos/modules/services/desktop-managers/plasma6.nix

services.desktopManager.plasma6.enableQt5Integration

Enable Qt 5 integration (theming, etc). Disable for a pure Qt 6 system.

Type: boolean

Default: true

Declared by: nixos/modules/services/desktop-managers/plasma6.nix

services.desktopManager.plasma6.notoPackage

The Noto fonts - used for UI by default package to use.

Type: package

Default: pkgs.noto-fonts

Example: noto-fonts-lgc-plus

Declared by: nixos/modules/services/desktop-managers/plasma6.nix

services.devmon.enable

Whether to enable devmon, an automatic device mounting daemon.

Type: boolean

Default: false

Example: true

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

services.devpi-server.enable

Whether to enable Devpi Server.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/misc/devpi-server.nix

services.devpi-server.extraPackages

Plugins and extra Python packages to be available to devpi-server.

Type: (function that evaluates to a(n) list of package) or (list of package) convertible to it

Default: ps: [ ]

Example:

ps: with ps; [ devpi-web devpi-ldap ]

Declared by: nixos/modules/services/misc/devpi-server.nix

services.devpi-server.host

domain/ip address to listen on

Type: string

Default: "localhost"

Declared by: nixos/modules/services/misc/devpi-server.nix

services.devpi-server.openFirewall

Whether to enable opening the default ports in the firewall for Devpi Server.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/misc/devpi-server.nix

services.devpi-server.package

The devpi-server package to use.

Type: package

Default: pkgs.devpi-server

Declared by: nixos/modules/services/misc/devpi-server.nix

services.devpi-server.port

The port on which Devpi Server will listen.

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

Default: 3141

Declared by: nixos/modules/services/misc/devpi-server.nix

services.devpi-server.primaryUrl

Url for the primary node. Required option for replica nodes.

Type: string

Declared by: nixos/modules/services/misc/devpi-server.nix

services.devpi-server.replica

Run node as a replica. Requires the secretFile option and the primaryUrl to be enabled.

Type: boolean

Default: false

Declared by: nixos/modules/services/misc/devpi-server.nix

services.devpi-server.secretFile

Path to a shared secret file used for synchronization, Required for all nodes in a replica/primary setup.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/misc/devpi-server.nix

services.dex.enable

Whether to enable the OpenID Connect and OAuth2 identity provider.

Type: boolean

Default: false

Example: true

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

services.dex.environmentFile

Environment file (see systemd.exec(5) "EnvironmentFile=" section for the syntax) to define variables for dex. This option can be used to safely include secret keys into the dex configuration.

Type: null or absolute path

Default: null

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

services.dex.package

The dex-oidc package to use.

Type: package

Default: pkgs.dex-oidc

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

services.dex.settings

The available options can be found in the example configuration.

It's also possible to refer to environment variables (defined in services.dex.environmentFile) using the syntax $VARIABLE_NAME.

Type: YAML 1.1 value

Default: { }

Example:

{
  # External url
  issuer = "http://127.0.0.1:5556/dex";
  storage = {
    type = "postgres";
    config.host = "/var/run/postgres";
  };
  web = {
    http = "127.0.0.1:5556";
  };
  enablePasswordDB = true;
  staticClients = [
    {
      id = "oidcclient";
      name = "Client";
      redirectURIs = [ "https://example.com/callback" ];
      secretFile = "/etc/dex/oidcclient"; # The content of `secretFile` will be written into to the config as `secret`.
    }
  ];
}

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

services.deye-dummycloud.enable

Whether to enable the deye-dummycloud service.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/home-automation/deye-dummycloud.nix

services.deye-dummycloud.mqttBrokerUrl

MQTT broker URL

Type: string

Default: "mqtt://localhost"

Declared by: nixos/modules/services/home-automation/deye-dummycloud.nix

services.deye-dummycloud.mqttPassword

MQTT password

Type: string

Default: ""

Declared by: nixos/modules/services/home-automation/deye-dummycloud.nix

services.deye-dummycloud.mqttUsername

MQTT username

Type: string

Default: ""

Declared by: nixos/modules/services/home-automation/deye-dummycloud.nix

services.dgraph.alpha.host

The host which dgraph alpha will be run on.

Type: string

Default: "localhost"

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

services.dgraph.alpha.port

The port which to run dgraph alpha on.

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

Default: 7080

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

services.dgraph.enable

Whether to enable Dgraph native GraphQL database with a graph backend.

Type: boolean

Default: false

Example: true

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

services.dgraph.package

The dgraph package to use.

Type: package

Default: pkgs.dgraph

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

services.dgraph.settings

Contents of the dgraph config. For more details see https://dgraph.io/docs/deploy/config

Type: JSON value

Default: { }

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

services.dgraph.zero.host

The host which dgraph zero will be run on.

Type: string

Default: "localhost"

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

services.dgraph.zero.port

The port which to run dgraph zero on.

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

Default: 5080

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

services.dictd.DBs

List of databases to make available.

Type: list of package

Default: with pkgs.dictdDBs; [ wiktionary wordnet ]

Example: [ pkgs.dictdDBs.nld2eng ]

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

services.dictd.enable

Whether to enable the DICT.org dictionary server.

Type: boolean

Default: false

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

services.diod.allsquash

Remap all users to "nobody". The attaching user need not be present in the password file.

Type: boolean

Default: true

Declared by: nixos/modules/services/network-filesystems/diod.nix

services.diod.authRequired

Allow clients to connect without authentication, i.e. without a valid MUNGE credential.

Type: boolean

Default: false

Declared by: nixos/modules/services/network-filesystems/diod.nix

services.diod.enable

Whether to enable the diod 9P file server.

Type: boolean

Default: false

Declared by: nixos/modules/services/network-filesystems/diod.nix

services.diod.exportall

Export all file systems listed in /proc/mounts. If new file systems are mounted after diod has started, they will become immediately mountable. If there is a duplicate entry for a file system in the exports list, any options listed in the exports entry will apply.

Type: boolean

Default: true

Declared by: nixos/modules/services/network-filesystems/diod.nix

services.diod.exportopts

Establish a default set of export options. These are overridden, not appended to, by opts attributes in an "exports" entry.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/network-filesystems/diod.nix

services.diod.exports

List the file systems that clients will be allowed to mount. All paths should be fully qualified. The exports table can include two types of element: a string element (as above), or an alternate table element form { path="/path", opts="ro" }. In the alternate form, the (optional) opts attribute is a comma-separated list of export options. The two table element forms can be mixed in the exports table. Note that although diod will not traverse file system boundaries for a given mount due to inode uniqueness constraints, subdirectories of a file system can be separately exported.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/network-filesystems/diod.nix

services.diod.extraConfig

Extra configuration options for diod.conf.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/network-filesystems/diod.nix

services.diod.listen

[ "IP:PORT" [,"IP:PORT",...] ] List the interfaces and ports that diod should listen on.

Type: list of string

Default:

[
  "0.0.0.0:564"
]

Declared by: nixos/modules/services/network-filesystems/diod.nix

services.diod.logdest

Set the destination for logging. The value has the form of "syslog:facility:level" or "filename".

Type: string

Default: "syslog:daemon:err"

Declared by: nixos/modules/services/network-filesystems/diod.nix

services.diod.nwthreads

Sets the (fixed) number of worker threads created to handle 9P requests for a unique aname.

Type: signed integer

Default: 16

Declared by: nixos/modules/services/network-filesystems/diod.nix

services.diod.squashuser

Change the squash user. The squash user must be present in the password file.

Type: string

Default: "nobody"

Declared by: nixos/modules/services/network-filesystems/diod.nix

services.diod.statfsPassthru

This option configures statfs to return the host file system's type rather than V9FS_MAGIC.

Type: boolean

Default: false

Declared by: nixos/modules/services/network-filesystems/diod.nix

services.diod.userdb

This option disables password/group lookups. It allows any uid to attach and assumes gid=uid, and supplementary groups contain only the primary gid.

Type: boolean

Default: false

Declared by: nixos/modules/services/network-filesystems/diod.nix

services.discourse.admin.email

The admin user email address.

Type: string

Example: "admin@example.com"

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

services.discourse.admin.fullName

The admin user's full name.

Type: string

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

services.discourse.admin.passwordFile

A path to a file containing the admin user's password.

This should be a string, not a nix path, since nix paths are copied into the world-readable nix store.

Type: absolute path

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

services.discourse.admin.skipCreate

Do not create the admin account, instead rely on other existing admin accounts.

Type: boolean

Default: false

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

services.discourse.admin.username

The admin user username.

Type: string

Example: "admin"

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

services.discourse.backendSettings

Additional settings to put in the discourse.conf file.

Look in the discourse_defaults.conf file in the upstream distribution to find available options.

Setting an option to null means “define variable, but leave right-hand side empty”.

Type: attribute set of (null or string or signed integer or boolean or floating point number)

Default: { }

Example:

{
  max_reqs_per_ip_per_minute = 300;
  max_reqs_per_ip_per_10_seconds = 60;
  max_asset_reqs_per_ip_per_10_seconds = 250;
  max_reqs_per_ip_mode = "warn+block";
};

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

services.discourse.database.createLocally

Whether a database should be automatically created on the local host. Set this to false if you plan on provisioning a local database yourself. This has no effect if services.discourse.database.host is customized.

Type: boolean

Default: true

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

services.discourse.database.host

Discourse database hostname. null means “prefer local unix socket connection”.

Type: null or string

Default: null

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

services.discourse.database.ignorePostgresqlVersion

Whether to allow other versions of PostgreSQL than the recommended one. Only effective when services.discourse.database.createLocally is enabled.

Type: boolean

Default: false

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

services.discourse.database.name

Discourse database name.

Type: string

Default: "discourse"

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

services.discourse.database.passwordFile

File containing the Discourse database user password.

This should be a string, not a nix path, since nix paths are copied into the world-readable nix store.

Type: null or absolute path

Default: null

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

services.discourse.database.pool

Database connection pool size.

Type: signed integer

Default: 8

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

services.discourse.database.username

Discourse database user.

Type: string

Default: "discourse"

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

services.discourse.enable

Whether to enable Discourse, an open source discussion platform.

Type: boolean

Default: false

Example: true

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

services.discourse.enableACME

Whether an ACME certificate should be used to secure connections to the server.

Type: boolean

Default: true, unless services.discourse.sslCertificate and services.discourse.sslCertificateKey are set.

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

services.discourse.hostname

The hostname to serve Discourse on.

Type: string

Default: config.networking.fqdnOrHostName

Example: "discourse.example.com"

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

services.discourse.mail.contactEmailAddress

Email address of key contact responsible for this site. Used for critical notifications, as well as on the /about contact form for urgent matters.

Type: string

Default: ""

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

services.discourse.mail.incoming.apiKeyFile

A file containing the Discourse API key used to add posts and messages from mail. If left at its default value null, one will be automatically generated.

This should be a string, not a nix path, since nix paths are copied into the world-readable nix store.

Type: null or absolute path

Default: null

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

services.discourse.mail.incoming.enable

Whether to set up Postfix to receive incoming mail.

Type: boolean

Default: false

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

services.discourse.mail.incoming.mailReceiverPackage

The discourse-mail-receiver package to use.

Type: package

Default: pkgs.discourse-mail-receiver

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

services.discourse.mail.incoming.replyEmailAddress

Template for reply by email incoming email address, for example: %{reply_key}@reply.example.com or replies+%{reply_key}@example.com

Type: string

Default: "%{reply_key}@${config.services.discourse.hostname}"

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

services.discourse.mail.notificationEmailAddress

The from: email address used when sending all essential system emails. The domain specified here must have SPF, DKIM and reverse PTR records set correctly for email to arrive.

Type: string

Default:

"${if config.services.discourse.mail.incoming.enable then "notifications" else "noreply"}@${config.services.discourse.hostname}"

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

services.discourse.mail.outgoing.authentication

Authentication type to use, see https://api.rubyonrails.org/classes/ActionMailer/Base.html

Type: null or one of "plain", "login", "cram_md5"

Default: null

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

services.discourse.mail.outgoing.domain

HELO domain to use for outgoing mail.

Type: string

Default: config.services.discourse.hostname

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

services.discourse.mail.outgoing.enableStartTLSAuto

Whether to try to use StartTLS.

Type: boolean

Default: true

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

services.discourse.mail.outgoing.forceTLS

Force implicit TLS as per RFC 8314 3.3.

Type: boolean

Default: false

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

services.discourse.mail.outgoing.opensslVerifyMode

How OpenSSL checks the certificate, see https://api.rubyonrails.org/classes/ActionMailer/Base.html

Type: string

Default: "peer"

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

services.discourse.mail.outgoing.passwordFile

A file containing the password of the SMTP server account.

This should be a string, not a nix path, since nix paths are copied into the world-readable nix store.

Type: null or absolute path

Default: null

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

services.discourse.mail.outgoing.port

The port of the SMTP server Discourse should use to send email.

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

Default: 25

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

services.discourse.mail.outgoing.serverAddress

The address of the SMTP server Discourse should use to send email.

Type: string

Default: "localhost"

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

services.discourse.mail.outgoing.username

The username of the SMTP server.

Type: null or string

Default: null

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

services.discourse.nginx.enable

Whether an nginx virtual host should be set up to serve Discourse. Only disable if you're planning to use a different web server, which is not recommended.

Type: boolean

Default: true

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

services.discourse.package

The discourse package to use.

Type: package

Default: pkgs.discourse

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

services.discourse.plugins

Plugins to install as part of Discourse, expressed as a list of derivations.

Type: list of package

Default: [ ]

Example:

with config.services.discourse.package.plugins; [
  discourse-canned-replies
  discourse-github
];

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

services.discourse.redis.dbNumber

Redis database number.

Type: signed integer

Default: 0

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

services.discourse.redis.host

Redis server hostname.

Type: string

Default: "localhost"

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

services.discourse.redis.passwordFile

File containing the Redis password.

This should be a string, not a nix path, since nix paths are copied into the world-readable nix store.

Type: null or absolute path

Default: null

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

services.discourse.redis.useSSL

Connect to Redis with SSL.

Type: boolean

Default: config.services.discourse.redis.host != "localhost"

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

services.discourse.secretKeyBaseFile

The path to a file containing the secret_key_base secret.

Discourse uses secret_key_base to encrypt the cookie store, which contains session data, and to digest user auth tokens.

Needs to be a 64 byte long string of hexadecimal characters. You can generate one by running

openssl rand -hex 64 >/path/to/secret_key_base_file

This should be a string, not a nix path, since nix paths are copied into the world-readable nix store.

Type: null or absolute path

Default: null

Example: "/run/keys/secret_key_base"

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

services.discourse.sidekiqProcesses

How many Sidekiq processes should be spawned.

Type: signed integer

Default: 1

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

services.discourse.siteSettings

Discourse site settings. These are the settings that can be changed from the UI. This only defines their default values: they can still be overridden from the UI.

Available settings can be found by looking in the site_settings.yml file of the upstream distribution. To find a setting's path, you only need to care about the first two levels; i.e. its category and name. See the example.

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 config/nixos_site_settings.json file, the login.github_client_secret key will be set to the contents of the /run/keys/discourse_github_client_secret file.

Type: JSON value

Default: { }

Example:

{
  required = {
    title = "My Cats";
    site_description = "Discuss My Cats (and be nice plz)";
  };
  login = {
    enable_github_logins = true;
    github_client_id = "a2f6dfe838cb3206ce20";
    github_client_secret._secret = /run/keys/discourse_github_client_secret;
  };
};

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

services.discourse.sslCertificate

The path to the server SSL certificate. Set this to enable SSL.

Type: null or absolute path

Default: null

Example: "/run/keys/ssl.cert"

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

services.discourse.sslCertificateKey

The path to the server SSL certificate key. Set this to enable SSL.

Type: null or absolute path

Default: null

Example: "/run/keys/ssl.key"

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

services.discourse.unicornTimeout

Time in seconds before a request to Unicorn times out.

This can be raised if the system Discourse is running on is too slow to handle many requests within 30 seconds.

Type: signed integer

Default: 30

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

services.disnix.enable

Whether to enable Disnix.

Type: boolean

Default: false

Example: true

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

services.disnix.enableMultiUser

Whether to support multi-user mode by enabling the Disnix D-Bus service

Type: boolean

Default: true

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

services.disnix.enableProfilePath

Whether to enable exposing the Disnix profiles in the system's PATH.

Type: boolean

Default: false

Example: true

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

services.disnix.package

The disnix package to use.

Type: package

Default: pkgs.disnix

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

services.disnix.profiles

Names of the Disnix profiles to expose in the system's PATH

Type: list of string

Default:

[
  "default"
]

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

services.disnix.useWebServiceInterface

Whether to enable the DisnixWebService interface running on Apache Tomcat.

Type: boolean

Default: false

Example: true

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

services.displayManager.airlock.compositor.extraArgs

Arguments to pass to the compositor (defaults to cage).

Type: list of string

Default:

[
  "-s"
]

Example:

[
  "-s"
  "-m"
  "last"
]

Declared by: nixos/modules/services/display-managers/airlock.nix

services.displayManager.airlock.compositor.package

The cage package to use.

Type: package

Default: pkgs.cage

Declared by: nixos/modules/services/display-managers/airlock.nix

services.displayManager.airlock.enable

Whether to enable Airlock, a clean and modern Material Design 3 Quickshell greeter for greetd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/display-managers/airlock.nix

services.displayManager.airlock.extraArgs

Extra command-line arguments to pass to astra-airlock (e.g. display output options).

Type: list of string

Default: [ ]

Example:

[
  "--only"
  "DP-1"
]

Declared by: nixos/modules/services/display-managers/airlock.nix

services.displayManager.airlock.package

The airlock package to use.

Type: package

Default: pkgs.airlock

Declared by: nixos/modules/services/display-managers/airlock.nix

services.displayManager.airlock.syncDynamicScheme.enable

Whether to enable sudoers permissions for wheel users to sync active desktop themes to the greeter non-interactively.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/display-managers/airlock.nix

services.displayManager.autoLogin

Auto login configuration attrset.

Type: submodule

Default: { }

Declared by: nixos/modules/services/display-managers/default.nix

services.displayManager.autoLogin.enable

Automatically log in as services.displayManager.autoLogin.user.

Type: boolean

Default: config.services.displayManager.autoLogin.user != null

Declared by: nixos/modules/services/display-managers/default.nix

services.displayManager.autoLogin.user

User to be used for the automatic login.

Type: null or string

Default: null

Declared by: nixos/modules/services/display-managers/default.nix

services.displayManager.cosmic-greeter.enable

Whether to enable COSMIC greeter.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/display-managers/cosmic-greeter.nix

services.displayManager.cosmic-greeter.package

The cosmic-greeter package to use.

Type: package

Default: pkgs.cosmic-greeter

Declared by: nixos/modules/services/display-managers/cosmic-greeter.nix

services.displayManager.defaultSession

Graphical session to pre-select in the session chooser (only effective for GDM, LightDM and SDDM).

On GDM, LightDM and SDDM, it will also be used as a session for auto-login.

Set this option to empty string to get an error with a list of currently available sessions.

Type: null or session name

Default: null

Example: "gnome"

Declared by: nixos/modules/services/display-managers/default.nix

services.displayManager.dux-greeter.compositor.customConfig

Custom compositor configuration to use for the greeter session.

This configuration is written to a file and passed to the compositor when launching the greeter. The format and available options depend on the selected compositor.

Leave empty to use the system's default compositor configuration.

Type: strings concatenated with "\n"

Default: ""

Example:

''
  # Niri example
  input {
      keyboard {
          xkb {
              layout "us"
          }
      }
  }
''

Declared by: nixos/modules/services/display-managers/dux-greeter.nix

services.displayManager.dux-greeter.compositor.name

The Wayland compositor to run the greeter in.

The specified compositor must be enabled via its corresponding programs.<compositor>.enable option.

Supported compositors:

  • niri: A scrollable-tiling Wayland compositor
  • hyprland: A dynamic tiling Wayland compositor
  • sway: An i3-compatible Wayland compositor
  • mango: A dwm-inspired Wayland compositor with modern config options and multiple layouts
  • miracle-wm: A keyboard-driven Wayland compositor with smooth animations and extensibility
  • labwc: Lightweight stacking Wayland compositor inspired by Openbox

Type: one of "niri", "hyprland", "sway", "mangowc", "miracle-wm", "labwc"

Example: "niri"

Declared by: nixos/modules/services/display-managers/dux-greeter.nix

services.displayManager.dux-greeter.configFiles

List of Dux Shell configuration files to copy into the greeter data directory at /var/lib/dms-greeter.

This is useful for preserving user preferences like wallpapers, themes, and other settings in the greeter screen.

Tip

Use configHome instead if your configuration files are in standard XDG locations.

Type: list of absolute path

Default: [ ]

Example:

[
  "/home/user/.config/dms/settings.json"
  "/home/user/.local/state/dms/session.json"
]

Declared by: nixos/modules/services/display-managers/dux-greeter.nix

services.displayManager.dux-greeter.configHome

Path to a user's home directory from which to copy Dux Shell configuration files.

When set, the following files will be automatically copied to the greeter:

  • ~/.config/dms/settings.json
  • ~/.local/state/dms/session.json
  • ~/.cache/dms/dms-colors.json

Legacy files from the deprecated DankMaterialShell directories are also copied, with files from the current dms directories taking precedence.

If your configuration files are in non-standard locations, use the configFiles option instead.

Type: null or string

Default: null

Example: "/home/alice"

Declared by: nixos/modules/services/display-managers/dux-greeter.nix

services.displayManager.dux-greeter.enable

Whether to enable Dux Greeter.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/display-managers/dux-greeter.nix

services.displayManager.dux-greeter.logs.path

File path where Dux Greeter logs will be saved.

This is useful for debugging greeter issues. Logs will include output from both the greeter and the compositor.

Type: absolute path

Default: "/tmp/dms-greeter.log"

Example: "/var/log/dms-greeter.log"

Declared by: nixos/modules/services/display-managers/dux-greeter.nix

services.displayManager.dux-greeter.logs.save

Whether to enable saving logs from Dux Greeter to a file.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/display-managers/dux-greeter.nix

services.displayManager.dux-greeter.package

The dux-greeter package to use.

Type: package

Default: pkgs.dux-greeter

Declared by: nixos/modules/services/display-managers/dux-greeter.nix

services.displayManager.dux-greeter.quickshell.package

The Quickshell package to use for the greeter.

Defaults to the quickshell package from programs.dux-shell if it is enabled, otherwise defaults to pkgs.quickshell.

Type: package

Default:

if config.programs.dux-shell.enable
then config.programs.dux-shell.quickshell.package
else pkgs.quickshell;

Declared by: nixos/modules/services/display-managers/dux-greeter.nix

services.displayManager.enable

Whether to enable shared display manager integration.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/display-managers/default.nix

services.displayManager.gdm.autoLogin.delay

Seconds of inactivity after which the autologin will be performed.

Type: signed integer

Default: 0

Declared by: nixos/modules/services/display-managers/gdm.nix

services.displayManager.gdm.autoSuspend

On the GNOME Display Manager login screen, suspend the machine after inactivity. (Does not affect automatic suspend while logged in, or at lock screen.)

Type: boolean

Default: true

Declared by: nixos/modules/services/display-managers/gdm.nix

services.displayManager.gdm.banner

Optional message to display on the login screen.

Type: null or strings concatenated with "\n"

Default: null

Example:

''
  foo
  bar
  baz
''

Declared by: nixos/modules/services/display-managers/gdm.nix

services.displayManager.gdm.debug

Whether to enable debugging messages in GDM.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/display-managers/gdm.nix

services.displayManager.gdm.enable

Whether to enable GDM, the GNOME Display Manager.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/display-managers/gdm.nix

services.displayManager.gdm.extraPackages

Additional packages to add to XDG_DATA_DIRS for GDM. The /share directory of each package will be added to the data path.

Type: list of package

Default: [ ]

Example: [ pkgs.gnome-themes-extra ]

Declared by: nixos/modules/services/display-managers/gdm.nix

services.displayManager.gdm.settings

Options passed to the gdm daemon. See here for supported options.

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

Default: { }

Example:

{
  debug = {
    enable = true;
  };
}

Declared by: nixos/modules/services/display-managers/gdm.nix

services.displayManager.generic.enable

Whether to enable generic display manager integration - deprecated.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/display-managers/generic.nix

services.displayManager.generic.environment

Additional environment variables needed by the display manager.

Type: attribute set of unspecified value

Default: { }

Declared by: nixos/modules/services/display-managers/generic.nix

services.displayManager.generic.execCmd

Command to start the display manager.

Type: null or string

Default: null

Example: "${pkgs.lightdm}/bin/lightdm"

Declared by: nixos/modules/services/display-managers/generic.nix

services.displayManager.generic.preStart

Script executed before the display manager is started.

Type: strings concatenated with "\n"

Default: ""

Example: "rm -f /var/log/my-display-manager.log"

Declared by: nixos/modules/services/display-managers/generic.nix

services.displayManager.hiddenUsers

A list of users which will not be shown in the display manager.

Type: list of string

Default:

[
  "nobody"
]

Declared by: nixos/modules/services/display-managers/default.nix

services.displayManager.lemurs.enable

Whether to enable lemurs, a customizable TUI display/login manager.

Note

For Wayland compositors, your user must be in the "seat" group.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/display-managers/lemurs.nix

services.displayManager.lemurs.package

The lemurs package to use.

Type: package

Default: pkgs.lemurs

Declared by: nixos/modules/services/display-managers/lemurs.nix

services.displayManager.lemurs.settings

Configuration for lemurs, provided as a Nix attribute set and automatically serialized to TOML. See lemurs configuration documentation for available options.

Type: TOML value

Default: { }

Example:

{
  do_log = true;
}

Declared by: nixos/modules/services/display-managers/lemurs.nix

services.displayManager.logToFile

Whether the display manager redirects the output of the session script to ~/.xsession-errors.

Type: boolean

Default: false

Declared by: nixos/modules/services/display-managers/default.nix

services.displayManager.logToJournal

Whether the display manager redirects the output of the session script to the systemd journal.

Type: boolean

Default: true

Declared by: nixos/modules/services/display-managers/default.nix

services.displayManager.ly.enable

Whether to enable ly as the display manager.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/display-managers/ly.nix

services.displayManager.ly.package

The ly package to use.

Type: package

Default: pkgs.ly

Declared by: nixos/modules/services/display-managers/ly.nix

services.displayManager.ly.settings

Extra settings merged in and overwriting defaults in config.ini.

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

Default: { }

Example:

{
  load = false;
  save = false;
}

Declared by: nixos/modules/services/display-managers/ly.nix

services.displayManager.ly.x11Support

Whether to enable support for X11

Type: boolean

Default: true

Declared by: nixos/modules/services/display-managers/ly.nix

services.displayManager.noctalia-greeter.cursorTheme.name

Name of the cursor theme to use for noctalia-greeter.

Type: string

Default: "Adwaita"

Declared by: nixos/modules/services/display-managers/noctalia-greeter.nix

services.displayManager.noctalia-greeter.cursorTheme.package

The cursor theme package to use.

Type: null or package

Default: null

Declared by: nixos/modules/services/display-managers/noctalia-greeter.nix

services.displayManager.noctalia-greeter.enable

Whether to enable Noctalia Greeter, a minimal login greeter for greetd.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/display-managers/noctalia-greeter.nix

services.displayManager.noctalia-greeter.extraArgs

Arguments to add to the noctalia-greeter-session invocation.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/display-managers/noctalia-greeter.nix

services.displayManager.noctalia-greeter.package

The noctalia-greeter package to use.

Type: package

Default: pkgs.noctalia-greeter

Declared by: nixos/modules/services/display-managers/noctalia-greeter.nix

services.displayManager.noctalia-greeter.passwordlessSyncUsers

Local users allowed to apply the constrained appearance-only sync through Polkit without authentication. The constrained sync operation never accepts session command configuration. Leave empty to require administrator authentication for every sync.

Type: list of string

Default: [ ]

Example:

[
  "alice"
]

Declared by: nixos/modules/services/display-managers/noctalia-greeter.nix

services.displayManager.noctalia-greeter.settings

Settings for noctalia-greeter written to greeter.toml.

Note that it also can contain some state, like the most recently used session, which will be clobbered on every activation and boot. This is due to an upstream limitation; the state is due to be moved to another file.

Type: TOML value

Default: { }

Example:

{
  cursor = {
    size = 24;
    theme = "Adwaita";
  };
  keyboard = {
    layout = "us";
  };
}

Declared by: nixos/modules/services/display-managers/noctalia-greeter.nix

services.displayManager.phrog.enable

Whether to enable phrog, a touch-friendly greetd greeter built on Phosh. Configures greetd to run it under phoc, replacing the display manager .

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/display-managers/phrog.nix

services.displayManager.phrog.home

Home directory for greetd's greeter user. phrog persists its last-user and last-session settings through dconf, which needs a writable home; the default greeter account has none.

Type: absolute path

Default: "/run/phrog"

Declared by: nixos/modules/services/display-managers/phrog.nix

services.displayManager.phrog.osk.enable

Whether to enable Start an on-screen keyboard next to the greeter. Without it there is no way to type a password on a device with no hardware keyboard. .

Type: boolean

Default: true

Example: true

Declared by: nixos/modules/services/display-managers/phrog.nix

services.displayManager.phrog.osk.package

Package providing the OSK binary.

Type: package

Default: pkgs.squeekboard

Example: "pkgs.stevia"

Declared by: nixos/modules/services/display-managers/phrog.nix

services.displayManager.phrog.package

The phrog package to use.

Type: package

Default: pkgs.phrog

Declared by: nixos/modules/services/display-managers/phrog.nix

services.displayManager.phrog.phocConfig

Config rendered to the phoc.ini the greeter's compositor is started with. The default sets suitable scale for a phone and assumes output is DSI-1

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

Default:

{
  core = {
    xwayland = false;
  };
  "output:DSI-1" = {
    scale = 2;
  };
}

Declared by: nixos/modules/services/display-managers/phrog.nix

services.displayManager.phrog.phocPackage

The phoc compositor the greeter runs under.

Type: package

Default: pkgs.phoc

Declared by: nixos/modules/services/display-managers/phrog.nix

services.displayManager.plasma-login-manager.enable

Whether to enable Plasma Login Manager.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/display-managers/plasma-login-manager.nix

services.displayManager.plasma-login-manager.package

The plasma-login-manager package to use.

Type: package

Default: pkgs.kdePackages.plasma-login-manager

Declared by: nixos/modules/services/display-managers/plasma-login-manager.nix

services.displayManager.plasma-login-manager.settings

Additional settings for Plasma Login Manager (see man plasmalogin.conf)

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

Default: { }

Example:

{
  Users = {
    ReuseSession = false;
  };
}

Declared by: nixos/modules/services/display-managers/plasma-login-manager.nix

services.displayManager.regreet.cageArgs

Arguments to be passed to cage when using it as the default compositor.

Type: list of string

Default:

[
  "-s"
  "-d"
]

Example:

[ "-s" "-d" "-m" "last" ]

Declared by: nixos/modules/services/display-managers/regreet.nix

services.displayManager.regreet.cursorTheme.name

Name of the cursor theme to use for regreet.

Type: string

Default: "Adwaita"

Declared by: nixos/modules/services/display-managers/regreet.nix

services.displayManager.regreet.cursorTheme.package

The package that provides the cursor theme given in the name option.

Type: package

Default: pkgs.adwaita-icon-theme

Declared by: nixos/modules/services/display-managers/regreet.nix

services.displayManager.regreet.enable

Enable ReGreet, a clean and customizable greeter for greetd.

By default enables services.greetd and configures a default_session to launch ReGreet using the cage compositor.

See the ReGreet Readme for other examples.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/display-managers/regreet.nix

services.displayManager.regreet.extraCss

Extra CSS rules to apply on top of the GTK theme. Refer to GTK CSS Properties for modifiable properties.

Type: absolute path or strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/display-managers/regreet.nix

services.displayManager.regreet.font.name

Name of the font to use for regreet.

Type: string

Default: "Cantarell"

Declared by: nixos/modules/services/display-managers/regreet.nix

services.displayManager.regreet.font.package

The package that provides the font given in the name option.

Type: package

Default: pkgs.cantarell-fonts

Declared by: nixos/modules/services/display-managers/regreet.nix

services.displayManager.regreet.font.size

Size of the font to use for regreet.

Type: positive integer, meaning >0

Default: 16

Declared by: nixos/modules/services/display-managers/regreet.nix

services.displayManager.regreet.iconTheme.name

Name of the icon theme to use for regreet.

Type: string

Default: "Adwaita"

Declared by: nixos/modules/services/display-managers/regreet.nix

services.displayManager.regreet.iconTheme.package

The package that provides the icon theme given in the name option.

Type: package

Default: pkgs.adwaita-icon-theme

Declared by: nixos/modules/services/display-managers/regreet.nix

services.displayManager.regreet.package

The regreet package to use.

Type: package

Default: pkgs.regreet

Declared by: nixos/modules/services/display-managers/regreet.nix

services.displayManager.regreet.settings

ReGreet configuration file. Refer https://github.com/rharish101/ReGreet/blob/main/regreet.sample.toml for options.

Type: TOML value

Default: { }

Declared by: nixos/modules/services/display-managers/regreet.nix

services.displayManager.regreet.theme.name

Name of the theme to use for regreet.

Type: string

Default: "Adwaita"

Declared by: nixos/modules/services/display-managers/regreet.nix

services.displayManager.regreet.theme.package

The package that provides the theme given in the name option. Not needed for Adwaita, Adwaita-dark, HighContrast and HighContrastInverse, which GTK4 provides itself.

Type: null or package

Default: null

Declared by: nixos/modules/services/display-managers/regreet.nix

services.displayManager.sddm.autoLogin.minimumUid

Minimum user ID for auto-login user.

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

Default: 1000

Declared by: nixos/modules/services/display-managers/sddm.nix

services.displayManager.sddm.autoLogin.relogin

If true automatic login will kick in again on session exit (logout), otherwise it will only log in automatically when the display-manager is started.

Type: boolean

Default: false

Declared by: nixos/modules/services/display-managers/sddm.nix

services.displayManager.sddm.autoNumlock

Enable numlock at login.

Type: boolean

Default: false

Declared by: nixos/modules/services/display-managers/sddm.nix

services.displayManager.sddm.enable

Whether to enable sddm as the display manager.

Type: boolean

Default: false

Declared by: nixos/modules/services/display-managers/sddm.nix

services.displayManager.sddm.enableHidpi

Whether to enable automatic HiDPI mode.

Type: boolean

Default: true

Declared by: nixos/modules/services/display-managers/sddm.nix

services.displayManager.sddm.extraPackages

Extra Qt plugins / QML libraries to add to the environment.

Type: list of package

Default: "[]"

Declared by: nixos/modules/services/display-managers/sddm.nix

services.displayManager.sddm.package

The sddm package to use.

Type: package

Default: pkgs.kdePackages.sddm

Declared by: nixos/modules/services/display-managers/sddm.nix

services.displayManager.sddm.settings

Extra settings merged in and overwriting defaults in sddm.conf.

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

Default: { }

Example:

{
  Autologin = {
    Session = "plasma.desktop";
    User = "john";
  };
}

Declared by: nixos/modules/services/display-managers/sddm.nix

services.displayManager.sddm.setupScript

A script to execute when starting the display server. DEPRECATED, please use services.xserver.displayManager.setupCommands.

Type: string

Default: ""

Example:

''
  # workaround for using NVIDIA Optimus without Bumblebee
  xrandr --setprovideroutputsource modesetting NVIDIA-0
  xrandr --auto
''

Declared by: nixos/modules/services/display-managers/sddm.nix

services.displayManager.sddm.stopScript

A script to execute when stopping the display server.

Type: string

Default: ""

Declared by: nixos/modules/services/display-managers/sddm.nix

services.displayManager.sddm.theme

Greeter theme to use.

Type: string

Default: ""

Example: "${pkgs.where-is-my-sddm-theme.override { variants = [ "qt5" ]; }}/share/sddm/themes/where_is_my_sddm_theme_qt5"

Declared by: nixos/modules/services/display-managers/sddm.nix

services.displayManager.sddm.wayland.compositor

The compositor to use: kwin, weston

Type: one of "kwin", "weston"

Default: "weston"

Declared by: nixos/modules/services/display-managers/sddm.nix

services.displayManager.sddm.wayland.enable

Whether to enable experimental Wayland support.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/display-managers/sddm.nix

services.displayManager.sessionPackages

A list of packages containing x11 or wayland session files to be passed to the display manager.

Type: list of package with provided sessions

Default: [ ]

Declared by: nixos/modules/services/display-managers/default.nix

services.distccd.allowedClients

Client IPs which are allowed to connect to distccd in CIDR notation.

Anyone who can connect to the distccd server can run arbitrary commands on that system as the distcc user, therefore you should use this judiciously.

Type: list of string

Default:

[
  "127.0.0.1"
]

Example:

[
  "127.0.0.1"
  "192.168.0.0/24"
  "10.0.0.0/24"
]

Declared by: nixos/modules/services/development/distccd.nix

services.distccd.enable

Whether to enable distccd, a distributed C/C++ compiler.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/development/distccd.nix

services.distccd.jobTimeout

Maximum duration, in seconds, of a single compilation request.

Type: null or signed integer

Default: null

Declared by: nixos/modules/services/development/distccd.nix

services.distccd.logLevel

Set the minimum severity of error that will be included in the log file. Useful if you only want to see error messages rather than an entry for each connection.

Type: null or one of "critical", "error", "warning", "notice", "info", "debug"

Default: "warning"

Declared by: nixos/modules/services/development/distccd.nix

services.distccd.maxJobs

Maximum number of tasks distccd should execute at lib.any time.

Type: null or signed integer

Default: null

Declared by: nixos/modules/services/development/distccd.nix

services.distccd.nice

Niceness of the compilation tasks.

Type: null or integer between -20 and 19 (both inclusive)

Default: null

Declared by: nixos/modules/services/development/distccd.nix

services.distccd.openFirewall

Opens the specified TCP port for distcc.

Type: boolean

Default: false

Declared by: nixos/modules/services/development/distccd.nix

services.distccd.package

The distcc package to use.

Type: package

Default: pkgs.distcc

Declared by: nixos/modules/services/development/distccd.nix

services.distccd.port

The TCP port which distccd will listen on.

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

Default: 3632

Declared by: nixos/modules/services/development/distccd.nix

services.distccd.stats.enable

Whether to enable statistics reporting via HTTP server.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/development/distccd.nix

services.distccd.stats.port

The TCP port which the distccd statistics HTTP server will listen on.

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

Default: 3633

Declared by: nixos/modules/services/development/distccd.nix

services.distccd.zeroconf

Whether to register via mDNS/DNS-SD

Type: boolean

Default: false

Declared by: nixos/modules/services/development/distccd.nix

services.dkimproxy-out.domains

List of domains DKIMproxy can sign for.

Type: list of string

Default: [ ]

Example:

[
  "example.org"
  "example.com"
]

Declared by: nixos/modules/services/mail/dkimproxy-out.nix

services.dkimproxy-out.enable

Whether to enable dkimproxy_out.

Note that a key will be auto-generated, and can be found in /var/lib/dkimproxy-out.

Type: boolean

Default: false

Declared by: nixos/modules/services/mail/dkimproxy-out.nix

services.dkimproxy-out.keySize

Size of the RSA key to use to sign outgoing emails. Note that the maximum mandatorily verified as per RFC6376 is 2048.

Type: signed integer

Default: 2048

Declared by: nixos/modules/services/mail/dkimproxy-out.nix

services.dkimproxy-out.listen

Address:port DKIMproxy should listen on.

Type: string

Example: "127.0.0.1:10027"

Declared by: nixos/modules/services/mail/dkimproxy-out.nix

services.dkimproxy-out.relay

Address:port DKIMproxy should forward mail to.

Type: string

Example: "127.0.0.1:10028"

Declared by: nixos/modules/services/mail/dkimproxy-out.nix

services.dkimproxy-out.selector

The selector to use for DKIM key identification.

For example, if 'selector1' is used here, then for each domain 'example.org' given in domain, 'selector1._domainkey.example.org' should contain the TXT record indicating the public key is the one in /var/lib/dkimproxy-out/public.key: "v=DKIM1; t=s; p=[THE PUBLIC KEY]".

Type: string

Example: "selector1"

Declared by: nixos/modules/services/mail/dkimproxy-out.nix

services.dleyna.enable

Whether to enable dleyna-renderer and dleyna-server service, a DBus service for handling DLNA servers and renderers.

Type: boolean

Default: false

Declared by: nixos/modules/services/desktops/dleyna.nix

services.dnscache.clientIps

Client IP addresses (or prefixes) from which to accept connections.

Type: list of string

Default:

[
  "127.0.0.1"
]

Example:

[
  "192.168"
  "172.23.75.82"
]

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

services.dnscache.domainServers

Table of {hostname: server} pairs to use as authoritative servers for hosts (and subhosts). If entry for @ is not specified predefined list of root servers is used.

Type: attribute set of list of string

Default: { }

Example:

{
  "@" = ["8.8.8.8" "8.8.4.4"];
  "example.com" = ["192.168.100.100"];
}

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

services.dnscache.enable

Whether to run the dnscache caching dns server.

Type: boolean

Default: false

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

services.dnscache.forwardOnly

Whether to treat root servers (for @) as caching servers, requesting addresses the same way a client does. This is needed if you want to use e.g. Google DNS as your upstream DNS.

Type: boolean

Default: false

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

services.dnscache.ip

IP address on which to listen for connections.

Type: string

Default: "0.0.0.0"

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

services.dnscache.package

The djbdns package to use.

Type: package

Default: pkgs.djbdns

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

services.dnscrypt-proxy.configFile

Path to TOML config file. See: https://github.com/DNSCrypt/dnscrypt-proxy/blob/master/dnscrypt-proxy/example-dnscrypt-proxy.toml If this option is set, it will override any configuration done in options.services.dnscrypt-proxy.settings.

Type: absolute path

Default: TOML file generated from services.dnscrypt-proxy.settings

Example: "/etc/dnscrypt-proxy/dnscrypt-proxy.toml"

Declared by: nixos/modules/services/networking/dnscrypt-proxy.nix

services.dnscrypt-proxy.enable

Whether to enable dnscrypt-proxy.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/dnscrypt-proxy.nix

services.dnscrypt-proxy.package

The dnscrypt-proxy package to use.

Type: package

Default: pkgs.dnscrypt-proxy

Declared by: nixos/modules/services/networking/dnscrypt-proxy.nix

services.dnscrypt-proxy.settings

Attrset that is converted and passed as TOML config file. For available params, see: https://github.com/DNSCrypt/dnscrypt-proxy/blob/2.1.20/dnscrypt-proxy/example-dnscrypt-proxy.toml

Type: TOML value

Default: { }

Example:

{
  sources.public-resolvers = {
    urls = [ "https://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md" ];
    cache_file = "public-resolvers.md";
    minisign_key = "RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3";
    refresh_delay = 72;
  };
}

Declared by: nixos/modules/services/networking/dnscrypt-proxy.nix

services.dnscrypt-proxy.upstreamDefaults

Whether to base the config declared in services.dnscrypt-proxy.settings on the upstream example config (https://github.com/DNSCrypt/dnscrypt-proxy/blob/master/dnscrypt-proxy/example-dnscrypt-proxy.toml)

Disable this if you want to declare your dnscrypt config from scratch.

Type: boolean

Default: true

Declared by: nixos/modules/services/networking/dnscrypt-proxy.nix

services.dnsdist.dnscrypt.certLifetime

The lifetime (in minutes) of the resolver certificate. This will be automatically rotated before expiration.

Type: positive integer, meaning >0

Default: 15

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

services.dnsdist.dnscrypt.enable

Whether to enable a DNSCrypt endpoint to dnsdist.

Type: boolean

Default: false

Example: true

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

services.dnsdist.dnscrypt.listenAddress

Listen IP address of the endpoint

Type: string

Default: "0.0.0.0"

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

services.dnsdist.dnscrypt.listenPort

Listen port of the endpoint

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

Default: 443

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

services.dnsdist.dnscrypt.providerKey

The filepath to the provider secret key. If not given a new provider key pair will be generated in /var/lib/dnsdist on the first run.

Note

The file must be readable by the dnsdist user/group.

Type: null or absolute path

Default: null

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

services.dnsdist.dnscrypt.providerName

The name that will be given to this DNSCrypt resolver.

Note

The provider name must start with 2.dnscrypt-cert..

Type: string

Default: 2.dnscrypt-cert.${config.networking.hostName}

Example: "2.dnscrypt-cert.myresolver"

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

services.dnsdist.enable

Whether to enable dnsdist domain name server.

Type: boolean

Default: false

Example: true

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

services.dnsdist.extraConfig

Extra lines to be added verbatim to dnsdist.conf.

Type: strings concatenated with "\n"

Default: ""

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

services.dnsdist.listenAddress

Listen IP address

Type: string

Default: "0.0.0.0"

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

services.dnsdist.listenPort

Listen port

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

Default: 53

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

services.dnsmasq.alwaysKeepRunning

If enabled, systemd will always respawn dnsmasq even if shut down manually. The default, disabled, will only restart it on error.

Type: boolean

Default: false

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

services.dnsmasq.configFile

Path to the configuration file of dnsmasq.

Type: package

Default: Path of dnsmasq config file

Read only

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

services.dnsmasq.enable

Whether to run dnsmasq.

Type: boolean

Default: false

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

services.dnsmasq.package

The dnsmasq package to use.

Type: package

Default: pkgs.dnsmasq

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

services.dnsmasq.resolveLocalQueries

Whether dnsmasq should resolve local queries (i.e. add 127.0.0.1 to /etc/resolv.conf).

Type: boolean

Default: true

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

services.dnsmasq.settings

Configuration of dnsmasq. Lists get added one value per line (empty lists and false values don't get added, though false values get turned to comments). Gets merged with

{
  dhcp-leasefile = "/var/lib/dnsmasq/dnsmasq.leases";
  conf-file = optional cfg.resolveLocalQueries "/etc/dnsmasq-conf.conf";
  resolv-file = optional cfg.resolveLocalQueries "/etc/dnsmasq-resolv.conf";
}

Type: open submodule of attribute set of (atom (null, bool, int, float or string) or a list of them for duplicate keys)

Default: { }

Example:

{
  domain-needed = true;
  dhcp-range = [ "192.168.0.2,192.168.0.254" ];
}

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

services.dnsmasq.settings.server

The DNS servers which dnsmasq should query.

Type: list of string

Default: [ ]

Example:

[
  "8.8.8.8"
  "8.8.4.4"
]

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

services.dnsproxy.enable

Whether to enable dnsproxy.

Type: boolean

Default: false

Example: true

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

services.dnsproxy.flags

A list of extra command-line flags to pass to dnsproxy. For details on the available options, see https://github.com/AdguardTeam/dnsproxy#usage. Keep in mind that options passed through command-line flags override config options.

Type: list of string

Default: [ ]

Example:

[
  "--upstream=1.1.1.1:53"
]

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

services.dnsproxy.package

The dnsproxy package to use.

Type: package

Default: pkgs.dnsproxy

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

services.dnsproxy.settings

Contents of the config.yaml config file. The --config-path argument will only be passed if this set is not empty.

See https://github.com/AdguardTeam/dnsproxy/blob/master/config.yaml.dist.

Type: YAML 1.1 value

Default: { }

Example:

{
  bootstrap = [
    "8.8.8.8:53"
  ];
  listen-addrs = [
    "0.0.0.0"
  ];
  listen-ports = [
    53
  ];
  upstream = [
    "1.1.1.1:53"
  ];
}

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

services.do-agent.enable

Whether to enable do-agent, the DigitalOcean droplet metrics agent.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/monitoring/do-agent.nix

services.dockerRegistry.configFile

Path to CNCF distribution config file.

Setting this option will override any configuration applied by the extraConfig option.

Type: absolute path

Default: pkgs.writeText "docker-registry-config.yml" "# my custom docker-registry-config.yml ..."

Declared by: nixos/modules/services/misc/docker-registry.nix

services.dockerRegistry.enable

Whether to enable Docker Registry.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/misc/docker-registry.nix

services.dockerRegistry.enableDelete

Enable delete for manifests and blobs.

Type: boolean

Default: false

Declared by: nixos/modules/services/misc/docker-registry.nix

services.dockerRegistry.enableGarbageCollect

Whether to enable garbage collect.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/misc/docker-registry.nix

services.dockerRegistry.enableRedisCache

Whether to enable redis as blob cache.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/misc/docker-registry.nix

services.dockerRegistry.extraConfig

Docker extra registry configuration.

Type: attribute set

Default: { }

Example:

{
  log.level = "debug";
}

Declared by: nixos/modules/services/misc/docker-registry.nix

services.dockerRegistry.garbageCollectDates

Specification (in the format described by systemd.time(7)) of the time at which the garbage collect will occur.

Type: string

Default: "daily"

Declared by: nixos/modules/services/misc/docker-registry.nix

services.dockerRegistry.listenAddress

Docker registry host or ip to bind to.

Type: string

Default: "127.0.0.1"

Declared by: nixos/modules/services/misc/docker-registry.nix

services.dockerRegistry.openFirewall

Opens the port used by the firewall.

Type: boolean

Default: false

Declared by: nixos/modules/services/misc/docker-registry.nix

services.dockerRegistry.package

The distribution package to use.

Type: package

Default: pkgs.distribution

Example: gitlab-container-registry

Declared by: nixos/modules/services/misc/docker-registry.nix

services.dockerRegistry.port

Docker registry port to bind to.

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

Default: 5000

Declared by: nixos/modules/services/misc/docker-registry.nix

services.dockerRegistry.redisPassword

Set redis password.

Type: string

Default: ""

Declared by: nixos/modules/services/misc/docker-registry.nix

services.dockerRegistry.redisUrl

Set redis host and port.

Type: string

Default: "localhost:6379"

Declared by: nixos/modules/services/misc/docker-registry.nix

services.dockerRegistry.storagePath

Docker registry storage path for the filesystem storage backend. Set to null to configure another backend via extraConfig.

Type: null or absolute path

Default: "/var/lib/docker-registry"

Declared by: nixos/modules/services/misc/docker-registry.nix

services.docling-serve.enable

Whether to enable Docling Serve server.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/misc/docling-serve.nix

services.docling-serve.environment

Extra environment variables for Docling Serve. For more details see https://github.com/docling-project/docling-serve/blob/main/docs/configuration.md

Type: attribute set of string

Default:

{
  DOCLING_SERVE_ENABLE_UI = "False";
}

Example:

''
  {
    DOCLING_SERVE_ENABLE_UI = "True";
  }
''

Declared by: nixos/modules/services/misc/docling-serve.nix

services.docling-serve.environmentFile

Environment file to be passed to the systemd service. Useful for passing secrets to the service to prevent them from being world-readable in the Nix store.

Type: null or absolute path

Default: null

Example: "/var/lib/secrets/doclingServeSecrets"

Declared by: nixos/modules/services/misc/docling-serve.nix

services.docling-serve.host

The host address which the Docling Serve server HTTP interface listens to.

Type: string

Default: "127.0.0.1"

Example: "0.0.0.0"

Declared by: nixos/modules/services/misc/docling-serve.nix

services.docling-serve.openFirewall

Whether to open the firewall for Docling Serve. This adds services.Docling Serve.port to networking.firewall.allowedTCPPorts.

Type: boolean

Default: false

Declared by: nixos/modules/services/misc/docling-serve.nix

services.docling-serve.package

The docling-serve package to use.

Type: package

Default: pkgs.docling-serve

Declared by: nixos/modules/services/misc/docling-serve.nix

services.docling-serve.port

Which port the Docling Serve server listens to.

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

Default: 5001

Example: 11111

Declared by: nixos/modules/services/misc/docling-serve.nix

services.docling-serve.stateDir

State directory of Docling Serve.

Type: absolute path

Default: "/var/lib/docling-serve"

Example: "/home/foo"

Declared by: nixos/modules/services/misc/docling-serve.nix

services.documize.cert

The cert.pem file used for https.

Type: null or string

Default: null

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

services.documize.db

Database specific connection string for example:

  • MySQL/Percona/MariaDB: user:password@tcp(host:3306)/documize
  • MySQLv8+: user:password@tcp(host:3306)/documize?allowNativePasswords=true
  • PostgreSQL: host=localhost port=5432 dbname=documize user=admin password=secret sslmode=disable
  • MSSQL: sqlserver://username:password@localhost:1433?database=Documize or sqlserver://sa@localhost/SQLExpress?database=Documize

Type: string

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

services.documize.dbtype

Specify the database provider: mysql, percona, mariadb, postgresql, sqlserver

Type: one of "mysql", "percona", "mariadb", "postgresql", "sqlserver"

Default: "postgresql"

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

services.documize.enable

Whether to enable Documize Wiki.

Type: boolean

Default: false

Example: true

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

services.documize.forcesslport

Redirect given http port number to TLS.

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

Default: null

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

services.documize.key

The key.pem file used for https.

Type: null or string

Default: null

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

services.documize.location

reserved

Type: null or string

Default: null

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

services.documize.offline

Set true for offline mode.

Type: boolean

Default: false

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

services.documize.package

The documize-community package to use.

Type: package

Default: pkgs.documize-community

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

services.documize.port

The http/https port number.

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

Default: 5001

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

services.documize.salt

The salt string used to encode JWT tokens, if not set a random value will be generated.

Type: null or string

Default: null

Example: "3edIYV6c8B28b19fh"

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

services.documize.stateDirectoryName

The name of the directory below /var/lib/private where documize runs in and stores, for example, backups.

Type: string

Default: "documize"

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

services.docuseal.enable

Whether to enable DocuSeal, open source document signing.

Type: boolean

Default: false

Example: true

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

services.docuseal.extraConfig

Extra environment variables to pass to DocuSeal services.

Refer to https://www.docuseal.com/docs/configuring-docuseal-via-environment-variables.

Type: attribute set

Default: { }

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

services.docuseal.extraEnvFiles

Extra environment files to pass to DocuSeal services. Useful for passing down environmental secrets. e.g. DATABASE_URL

Type: list of absolute path

Default: [ ]

Example:

[
  "/etc/docuseal/s3config.env"
]

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

services.docuseal.host

DocuSeal host.

Type: string

Default: "127.0.0.1"

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

services.docuseal.package

The docuseal package to use.

Type: package

Default: pkgs.docuseal

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

services.docuseal.port

DocuSeal port.

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

Default: 3000

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

services.docuseal.redis.createLocally

Whether to create a local redis automatically.

Type: boolean

Default: true

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

services.docuseal.redis.host

Redis server address.

Type: string

Default: "localhost"

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

services.docuseal.redis.name

Name of the redis server. Only used if createLocally is set to true.

Type: string

Default: "docuseal"

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

services.docuseal.redis.port

Port of the redis server.

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

Default: 6379

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

services.docuseal.secretKeyBaseFile

Path to file containing the secret key base. A new secret key base can be generated by running:

openssl rand -hex 64

If this file does not exist, it will be created with a new secret key base.

Type: absolute path

Default: "/var/lib/docuseal/secrets/secret-key-base"

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

services.docuum.deletionChunkSize

Removes specified quantity of images at a time.

Type: signed integer

Default: 1

Example: 10

Declared by: nixos/modules/services/admin/docuum.nix

services.docuum.enable

Whether to enable docuum daemon.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/admin/docuum.nix

services.docuum.keep

Prevents deletion of images for which repository:tag matches the specified regex.

Type: list of string

Default: [ ]

Example:

[
  "^my-image"
]

Declared by: nixos/modules/services/admin/docuum.nix

services.docuum.minAge

Sets the minimum age of images to be considered for deletion.

Type: null or string

Default: null

Example: "1d"

Declared by: nixos/modules/services/admin/docuum.nix

services.docuum.threshold

Threshold for deletion in bytes, like 10 GB, 10 GiB, 10GB or percentage-based thresholds like 50%

Type: string

Default: "10 GB"

Example: "50%"

Declared by: nixos/modules/services/admin/docuum.nix

services.doh-proxy-rust.enable

Whether to enable doh-proxy-rust.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/doh-proxy-rust.nix

services.doh-proxy-rust.flags

A list of command-line flags to pass to doh-proxy. For details on the available options, see https://github.com/jedisct1/doh-server#usage.

Type: list of string

Default: [ ]

Example:

[
  "--server-address=9.9.9.9:53"
]

Declared by: nixos/modules/services/networking/doh-proxy-rust.nix

services.doh-server.configFile

The config file for the doh-server. Setting this option will override any configuration applied by the settings option.

Type: absolute path

Example: "/path/to/doh-server.conf"

Declared by: nixos/modules/services/networking/doh-server.nix

services.doh-server.enable

Whether to enable DNS-over-HTTPS server.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/doh-server.nix

services.doh-server.package

The dns-over-https package to use.

Type: package

Default: pkgs.dns-over-https

Declared by: nixos/modules/services/networking/doh-server.nix

services.doh-server.settings

Configuration of doh-server in toml. See example in https://github.com/m13253/dns-over-https/blob/master/doh-server/doh-server.conf

Type: open submodule of (TOML value)

Default: { }

Example:

{
  listen = [
    ":8153"
  ];
  upstream = [
    "udp:127.0.0.1:53"
  ];
}

Declared by: nixos/modules/services/networking/doh-server.nix

services.doh-server.settings.ecs_allow_non_global_ip

By default, non global IP addresses are never forwarded to upstream servers. This is to prevent two things from happening:

  1. the upstream server knowing your private LAN addresses;
  2. the upstream server unable to provide geographically near results, or even fail to provide any result. However, if you are deploying a split tunnel corporation network environment, or for any other reason you want to inhibit this behavior and allow local (eg RFC1918) address to be forwarded, change the following option to "true".

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/doh-server.nix

services.doh-server.settings.ecs_use_precise_ip

If ECS is added to the request, let the full IP address or cap it to 24 or 128 mask. This option is to be used only on private networks where knowledge of the terminal endpoint may be required for security purposes (eg. DNS Firewalling). Not a good option on the internet where IP address may be used to identify the user and not only the approximate location.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/doh-server.nix

services.doh-server.settings.listen

HTTP listen address and port

Type: list of string

Default:

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

Example:

[
  ":443"
]

Declared by: nixos/modules/services/networking/doh-server.nix

services.doh-server.settings.log_guessed_client_ip

Enable log IP from HTTPS-reverse proxy header: X-Forwarded-For or X-Real-IP Note: http uri/useragent log cannot be controlled by this config

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/doh-server.nix

services.doh-server.settings.path

HTTP path for resolve application

Type: string

Default: "/dns-query"

Example: "/dns-query"

Declared by: nixos/modules/services/networking/doh-server.nix

services.doh-server.settings.timeout

Upstream timeout

Type: signed integer

Default: 10

Example: 15

Declared by: nixos/modules/services/networking/doh-server.nix

services.doh-server.settings.tries

Number of tries if upstream DNS fails

Type: signed integer

Default: 3

Example: 5

Declared by: nixos/modules/services/networking/doh-server.nix

services.doh-server.settings.upstream

Upstream DNS resolver. If multiple servers are specified, a random one will be chosen each time. You can use "udp", "tcp" or "tcp-tls" for the type prefix. For "udp", UDP will first be used, and switch to TCP when the server asks to or the response is too large. For "tcp", only TCP will be used. For "tcp-tls", DNS-over-TLS (RFC 7858) will be used to secure the upstream connection.

Type: list of string

Default:

[
  "udp:1.1.1.1:53"
  "udp:1.0.0.1:53"
  "udp:8.8.8.8:53"
  "udp:8.8.4.4:53"
]

Example:

[
  "udp:127.0.0.1:53"
]

Declared by: nixos/modules/services/networking/doh-server.nix

services.doh-server.settings.verbose

Enable logging

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/networking/doh-server.nix

services.doh-server.useACMEHost

A host of an existing Let's Encrypt certificate to use. 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

Example: "doh.example.com"

Declared by: nixos/modules/services/networking/doh-server.nix

services.dokuwiki.sites

Specification of one or more DokuWiki sites to serve

Type: attribute set of (submodule)

Default: { }

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

services.dokuwiki.sites.<name>.acl

Access Control Lists: see https://www.dokuwiki.org/acl Mutually exclusive with services.dokuwiki.aclFile Set this to a value other than null to take precedence over aclFile option.

Warning: Consider using aclFile instead if you do not want to store the ACL in the world-readable Nix store.

Type: null or (list of (submodule))

Default: null

Example:

[
  {
    page = "start";
    actor = "@external";
    level = "read";
  }
  {
    page = "*";
    actor = "@users";
    level = "upload";
  }
]

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

services.dokuwiki.sites.<name>.acl.*.actor

User or group to restrict

Type: string

Example: "@external"

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

services.dokuwiki.sites.<name>.acl.*.level

Permission level to restrict the actor(s) to. See https://www.dokuwiki.org/acl#background_info for explanation

Type: one of 4, 16, 2, 0, 1, 8, "create", "delete", "edit", "none", "read", "upload"

Example: "read"

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

services.dokuwiki.sites.<name>.acl.*.page

Page or namespace to restrict

Type: string

Example: "start"

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

services.dokuwiki.sites.<name>.aclFile

Location of the dokuwiki acl rules. Mutually exclusive with services.dokuwiki.acl which is preferred. Consult documentation https://www.dokuwiki.org/acl for further instructions. Example: https://github.com/splitbrain/dokuwiki/blob/master/conf/acl.auth.php.dist

Type: null or string

Default: "/var/lib/dokuwiki/‹name›/acl.auth.php"

Example: "/var/lib/dokuwiki/‹name›/acl.auth.php"

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

services.dokuwiki.sites.<name>.extraConfigs

Path(s) to additional configuration files that are then linked to the 'conf' directory.

Type: attribute set of absolute path

Default: { }

Example:

{
  "acronyms.local.conf" = pkgs.writeText "acronyms.local.conf" ''
    r13y  reproducibility
  '';
  "entities.local.conf" = ./dokuwiki-entities;
}

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

services.dokuwiki.sites.<name>.mergedConfig

Read only representation of the final configuration.

Type: unspecified value

Default:

{
  useacl = true;
}

Read only

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

services.dokuwiki.sites.<name>.package

The dokuwiki package to use.

Type: package

Default: pkgs.dokuwiki

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

services.dokuwiki.sites.<name>.phpOptions

Options for PHP's php.ini file for this dokuwiki site.

Type: attribute set of string

Default: { }

Example:

{
  "opcache.interned_strings_buffer" = "8";
  "opcache.max_accelerated_files" = "10000";
  "opcache.memory_consumption" = "128";
  "opcache.revalidate_freq" = "15";
  "opcache.fast_shutdown" = "1";
}

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

services.dokuwiki.sites.<name>.phpPackage

The php package to use.

Type: package

Default: pkgs.php84

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

services.dokuwiki.sites.<name>.plugins

List of path(s) to respective plugin(s) which are copied into the 'plugin' directory.

Note

These plugins need to be packaged before use, see example.

Type: list of absolute path

Default: [ ]

Example:

let
  plugin-icalevents = pkgs.stdenv.mkDerivation rec {
    name = "icalevents";
    version = "2017-06-16";
    src = pkgs.fetchzip {
      stripRoot = false;
      url = "https://github.com/real-or-random/dokuwiki-plugin-icalevents/releases/download/${version}/dokuwiki-plugin-icalevents-${version}.zip";
      hash = "sha256-IPs4+qgEfe8AAWevbcCM9PnyI0uoyamtWeg4rEb+9Wc=";
    };
    installPhase = "mkdir -p $out; cp -R * $out/";
  };
# And then pass this plugin to the plugin list like this:
in [ plugin-icalevents ]

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

services.dokuwiki.sites.<name>.pluginsConfig

List of the dokuwiki (un)loaded plugins.

Type: attribute set of boolean

Default:

{
  authad = false;
  authldap = false;
  authmysql = false;
  authpgsql = false;
}

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

services.dokuwiki.sites.<name>.poolConfig

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

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

Default:

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

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

services.dokuwiki.sites.<name>.settings

Structural DokuWiki configuration. Refer to https://www.dokuwiki.org/config for details and supported values. Settings can either be directly set from nix, loaded from a file using ._file or obtained from any PHP function calls using ._raw.

Type: attribute set of anything

Default:

{
  superuser = "admin";
  useacl = true;
}

Example:

{
  title = "My Wiki";
  userewrite = 1;
  disableactions = [ "register" ]; # Will be concatenated with commas
  plugin.smtp = {
    smtp_pass._file = "/var/run/secrets/dokuwiki/smtp_pass";
    smtp_user._raw = "getenv('DOKUWIKI_SMTP_USER')";
  };
}

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

services.dokuwiki.sites.<name>.stateDir

Location of the DokuWiki state directory.

Type: absolute path

Default: "/var/lib/dokuwiki/‹name›/data"

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

services.dokuwiki.sites.<name>.templates

List of path(s) to respective template(s) which are copied into the 'tpl' directory.

Note

These templates need to be packaged before use, see example.

Type: list of absolute path

Default: [ ]

Example:

let
  template-bootstrap3 = pkgs.stdenv.mkDerivation rec {
  name = "bootstrap3";
  version = "2022-07-27";
  src = pkgs.fetchFromGitHub {
    owner = "giterlizzi";
    repo = "dokuwiki-template-bootstrap3";
    rev = "v${version}";
    hash = "sha256-B3Yd4lxdwqfCnfmZdp+i/Mzwn/aEuZ0ovagDxuR6lxo=";
  };
  installPhase = "mkdir -p $out; cp -R * $out/";
};
# And then pass this theme to the template list like this:
in [ template-bootstrap3 ]

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

services.dokuwiki.sites.<name>.usersFile

Location of the dokuwiki users file. List of users. Format:

login:passwordhash:Real Name:email:groups,comma,separated

Create passwordHash easily by using:

mkpasswd -5 password `pwgen 8 1`

Example: https://github.com/splitbrain/dokuwiki/blob/master/conf/users.auth.php.dist

Type: null or string

Default: "/var/lib/dokuwiki/‹name›/users.auth.php"

Example: "/var/lib/dokuwiki/‹name›/users.auth.php"

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

services.dokuwiki.webserver

Whether to use nginx or caddy for virtual host management.

Further nginx configuration can be done by adapting services.nginx.virtualHosts.<name>. See services (N) for further information.

Further caddy configuration can be done by adapting services.caddy.virtualHosts.<name>. See services (C) for further information.

Type: one of "nginx", "caddy"

Default: "nginx"

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

services.dolibarr.database.createLocally

Create the database and database user locally.

Type: boolean

Default: true

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

services.dolibarr.database.host

Database host address.

Type: string

Default: "localhost"

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

services.dolibarr.database.name

Database name.

Type: string

Default: "dolibarr"

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

services.dolibarr.database.passwordFile

Database password file.

Type: null or absolute path

Default: null

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

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

services.dolibarr.database.port

Database host port.

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

Default: 3306

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

services.dolibarr.database.type

Database engine to use.

Type: one of "mysql", "postgresql"

Default: "mysql"

Example: "postgresql"

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

services.dolibarr.database.user

Database username.

Type: string

Default: "dolibarr"

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

services.dolibarr.domain

Domain name of your server.

Type: string

Default: "localhost"

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

services.dolibarr.enable

Whether to enable dolibarr.

Type: boolean

Default: false

Example: true

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

services.dolibarr.group

Group account under which dolibarr 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 dolibarr application starts.

Type: string

Default: "dolibarr"

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

services.dolibarr.h2o

With this option, you can customize an H2O virtual host which already has sensible defaults for Dolibarr. Set to { } if you do not need any customization to the virtual host. If enabled, then by default, the serverName is $, If this is set tonull (the default), no H2O hosts will be configured.

Type: null or (submodule)

Default: null

Example:

{
  acme.enable = true;
  tls.policy = "force";
  compress = "ON";
}

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

services.dolibarr.h2o.acme

ACME options for virtual host.

Type: null or (submodule)

Default: null

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

services.dolibarr.h2o.acme.enable

Whether to ask Let’s Encrypt to sign a certificate for this virtual host. Alternatively, an existing host can be used thru acme.useHost.

Type: boolean

Default: false

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

services.dolibarr.h2o.acme.root

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 absolute path

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

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

services.dolibarr.h2o.acme.useHost

An existing Let’s Encrypt certificate to use for this virtual host. This is useful if you have many subdomains and want to avoid hitting the rate limit. Alternately, you can generate a certificate through acme.enable. Note that this option neither creates any certificates nor does it add subdomains to existing ones — you will need to create them manually using security.

Type: null or non-empty string

Default: null

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

services.dolibarr.h2o.host

Set the host address for this virtual host. If unset, the default is to listen on all network interfaces.

Type: null or non-empty string

Default: null

Example: "127.0.0.1"

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

services.dolibarr.h2o.http

HTTP options for virtual host

Type: null or (submodule)

Default: null

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

services.dolibarr.h2o.http.port

Override the default HTTP port for this virtual host.

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

Default:

config.services.h2o.defaultHTTPListenPort

Example: 8080

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

services.dolibarr.h2o.serverAliases

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

Type: list of non-empty string

Default: [ ]

Example:

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

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

services.dolibarr.h2o.serverName

Server name to be used for this virtual host. Defaults to attribute name in hosts.

Type: null or non-empty string

Default: null

Example: "example.org"

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

services.dolibarr.h2o.settings

Attrset to be transformed into YAML for host config. Note that the HTTP / TLS configurations will override these config values. See https://h2o.examp1e.net/configure/base_directives.html#hosts.

Type: attribute set

Default: { }

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

services.dolibarr.h2o.tls

TLS options for virtual host

Type: null or (submodule)

Default: null

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

services.dolibarr.h2o.tls.extraSettings

Additional TLS/SSL-related configuration options. See https://h2o.examp1e.net/configure/base_directives.html#listen-ssl.

Type: attribute set

Default: { }

Example:

{
  minimum-version = "TLSv1.3";
}

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

services.dolibarr.h2o.tls.identity

Key / certificate pairs for the virtual host.

Type: list of (submodule)

Default: [ ]

Example:

[
  {
    key-file = "/path/to/rsa.key";
    certificate-file = "/path/to/rsa.crt";
  }
  {
    key-file = "/path/to/ecdsa.key";
    certificate-file = "/path/to/ecdsa.crt";
  }
]

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

services.dolibarr.h2o.tls.identity.*.certificate-file

Path to certificate file. See https://h2o.examp1e.net/configure/base_directives.html#certificate-file.

Type: absolute path

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

services.dolibarr.h2o.tls.identity.*.key-file

Path to key file. See https://h2o.examp1e.net/configure/base_directives.html#key-file.

Type: absolute path

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

services.dolibarr.h2o.tls.policy

add will additionally listen for TLS connections. only will disable TLS connections. force will redirect non-TLS traffic to the TLS connection.

Type: one of "add", "only", "force"

Example: "force"

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

services.dolibarr.h2o.tls.port

Override the default TLS port for this virtual host.

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

Default:

config.services.h2o.defaultTLSListenPort

Example: 8443

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

services.dolibarr.h2o.tls.quic

Enables HTTP/3 over QUIC on the UDP port for TLS. The attrset provides fine-turning for QUIC behavior, but can be empty. See https://h2o.examp1e.net/configure/http3_directives.html#quic-attributes.

Type: null or (attribute set)

Default: null

Example:

{
  amp-limit = 2;
  handshake-timeout-rtt-multiplier = 300;
  retry = "ON";
}

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

services.dolibarr.h2o.tls.recommendations

By default, H2O, without prejudice, will use as many TLS versions & cipher suites as it & the TLS library (OpenSSL) can support. The user is expected to hone settings for the security of their server. Setting some constraints is recommended, & if unsure about what TLS settings to use, this option gives curated TLS settings recommendations from Mozilla’s ‘SSL Configuration Generator’ project (see https://ssl-config.mozilla.org) or read more at Mozilla’s Wiki (see https://wiki.mozilla.org/Security/Server_Side_TLS).

modern

Services with clients that support TLS 1.3 & don’t need backward compatibility

intermediate

General-purpose servers with a variety of clients, recommended for almost all systems

The default for all virtual hosts can be set with services.h2o.defaultTLSRecommendations, but this value can be overridden on a per-host basis using services.h2o.hosts..tls.recommmendations. The settings will also be overidden by manual values set with services.settings.h2o.hosts..tls.extraSettings.

NOTE: older/weaker ciphers might require overriding the OpenSSL version of H2O (such as openssl_legacy). This can be done with sevices.settings.h2o.package.

Type: null or one of "modern", "intermediate"

Default: null

Example: "intermediate"

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

services.dolibarr.h2o.tls.redirectCode

HTTP status used by globalRedirect & forceSSL. Possible usecases include temporary (302, 307) redirects, keeping the request method & 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/dolibarr.nix

services.dolibarr.nginx

With this option, you can customize an nginx virtual host which already has sensible defaults for Dolibarr. Set to {} if you do not need any customization to the virtual host. If enabled, then by default, the serverName is ${domain}, SSL is active, and certificates are acquired via ACME. If this is set to null (the default), no nginx virtualHost will be configured.

Type: null or (submodule)

Default: null

Example:

{
  serverAliases = [
    "dolibarr.${config.networking.domain}"
    "erp.${config.networking.domain}"
  ];
  enableACME = false;
}

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

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.nginx.default

Makes this vhost the default.

Type: boolean

Default: false

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

services.dolibarr.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: true

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

services.dolibarr.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/dolibarr.nix

services.dolibarr.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: true

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

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.nginx.listen.*.addr

Listen address.

Type: string

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

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.nginx.listen.*.proxyProtocol

Enable PROXY protocol.

Type: boolean

Default: false

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

services.dolibarr.nginx.listen.*.ssl

Enable SSL.

Type: boolean

Default: false

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

services.dolibarr.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/dolibarr.nix

services.dolibarr.nginx.locations

Declarative location config

Type: attribute set of (submodule)

Default: { }

Example:

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

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

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

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

Enable recommended proxy settings.

Type: boolean

Default: config.services.nginx.recommendedProxySettings

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

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

Enable recommended uwsgi settings.

Type: boolean

Default: config.services.nginx.recommendedUwsgiSettings

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

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

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

Adds try_files directive.

Type: null or string

Default: null

Example: "$uri =404"

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

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.nginx.sslCertificate

Path to server SSL certificate.

Type: absolute path

Example: "/var/host.cert"

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

services.dolibarr.nginx.sslCertificateKey

Path to server SSL certificate key.

Type: absolute path

Example: "/var/host.key"

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

services.dolibarr.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/dolibarr.nix

services.dolibarr.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/dolibarr.nix

services.dolibarr.package

The dolibarr package to use.

Type: package

Default: pkgs.dolibarr

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

services.dolibarr.poolConfig

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

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

Default:

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

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

services.dolibarr.settings

Dolibarr settings, see https://github.com/Dolibarr/dolibarr/blob/develop/htdocs/conf/conf.php.example for details.

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

Default: { }

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

services.dolibarr.stateDir

State and configuration directory dolibarr will use.

Type: string

Default: "/var/lib/dolibarr"

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

services.dolibarr.user

User account under which dolibarr 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 dolibarr application starts.

Type: string

Default: "dolibarr"

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

services.domoticz.bind

IP address to bind to.

Type: string

Default: "0.0.0.0"

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

services.domoticz.enable

Whether to enable Domoticz home automation.

Type: boolean

Default: false

Example: true

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

services.domoticz.port

Port to bind to for HTTP, set to 0 to disable HTTP.

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

Default: 8080

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

services.dovecot2.configFile

Config file used for the whole dovecot configuration.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.createMailUser

Whether to enable automatically creating the user given in services.dovecot2.settings.mail_uid and the group given in services.dovecot2.settings.mail_gid.

Type: boolean

Default: true

Example: true

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.enable

Whether to enable the dovecot 2.x POP3/IMAP server.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.enablePAM

Whether to enable creating a own Dovecot PAM service and configure PAM user logins.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.imapsieve.mailbox

Configure Sieve filtering rules on IMAP actions

Note

This option is no longer used starting from Dovecot version 2.4.

Type: list of (submodule)

Default: [ ]

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.imapsieve.mailbox.*.after

When an IMAP event of interest occurs, this sieve script is executed after any user script respectively.

This setting each specify the location of a single sieve script. The semantics of this setting is similar to sieve_after: the specified scripts form a sequence together with the user script in which the next script is only executed when an (implicit) keep action is executed.

Type: null or absolute path

Default: null

Example: ./report-spam.sieve

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.imapsieve.mailbox.*.before

When an IMAP event of interest occurs, this sieve script is executed before any user script respectively.

This setting each specify the location of a single sieve script. The semantics of this setting is similar to sieve_before: the specified scripts form a sequence together with the user script in which the next script is only executed when an (implicit) keep action is executed.

Type: null or absolute path

Default: null

Example: ./report-spam.sieve

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.imapsieve.mailbox.*.causes

Only execute the administrator Sieve scripts for the mailbox configured with services.dovecot2.imapsieve.mailbox..name when one of the listed IMAPSIEVE causes apply.

This has no effect on the user script, which is always executed no matter the cause.

Type: list of (one of "APPEND", "COPY", "FLAG")

Default: [ ]

Example:

[
  "COPY"
  "APPEND"
]

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.imapsieve.mailbox.*.from

Only execute the administrator Sieve scripts for the mailbox configured with services.dovecot2.imapsieve.mailbox..name when the message originates from the indicated mailbox.

This setting supports wildcards with a syntax compatible with the IMAP LIST command, meaning that this setting can apply to multiple or even all ("*") mailboxes.

Type: null or string

Default: null

Example: "*"

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.imapsieve.mailbox.*.name

This setting configures the name of a mailbox for which administrator scripts are configured.

The settings defined hereafter with matching sequence numbers apply to the mailbox named by this setting.

This setting supports wildcards with a syntax compatible with the IMAP LIST command, meaning that this setting can apply to multiple or even all ("*") mailboxes.

Type: string

Example: "Junk"

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.includeFiles

Files to include in the Dovecot config file using !include directives.

Type: list of absolute path

Default: [ ]

Example:

[
  "/foo/bar/extraDovecotConfig.conf"
]

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.mailPlugins

Additional entries to add to the mail_plugins variable, globally and per protocol

Type: submodule

Default:

{
  globally = {
    enable = [ ];
  };
  perProtocol = { };
}

Example:

{
  globally = {
    enable = [
      "acl"
    ];
  };
  perProtocol = {
    imap = {
      enable = [
        "imap_acl"
      ];
    };
  };
}

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.mailPlugins.globally

Additional entries to add to the mail_plugins variable for all protocols

Type: submodule

Default:

{
  enable = [ ];
}

Example:

{
  enable = [
    "virtual"
  ];
}

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.mailPlugins.globally.enable

mail plugins to enable as a list of strings to append to the top-level $mail_plugins configuration variable

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.mailPlugins.perProtocol

Additional entries to add to the mail_plugins variable, per protocol

Type: attribute set of (submodule)

Default: { }

Example:

{
  imap = [
    "imap_acl"
  ];
}

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.mailPlugins.perProtocol.<name>.enable

mail plugins to enable as a list of strings to append to the corresponding per-protocol $mail_plugins configuration variable

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.package

The dovecot package to use.

Type: package

Default: if versionAtLeast config.system.stateVersion "26.05" then pkgs.dovecot else pkgs.dovecot_2_3

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings

Dovecot configuration, see https://doc.dovecot.org/latest/core/summaries/settings.html#all-dovecot-settings for all available options.

For information on the configuration structure, see https://doc.dovecot.org/latest/core/settings/syntax.html.

Warning

Explicit settings in [services.dovecot2.settings](#opt-services.dovecot2.settings) can silently override values set by other services.dovecot2.* options.

Type: open submodule of attribute set of (Dovecot config value)

Default: { }

Example:

{
  mail_attribute = {
    "dict file" = {
      path = "%{home}/dovecot-attributes";
    };
  };
  mail_driver = "maildir";
  mail_home = "/var/vmail/%{user | domain}/%{user | username}";
  mail_path = "~/mail";
  "namespace inbox" = {
    inbox = true;
    separator = "/";
  };
  "protocol imap" = {
    mail_plugins = {
      imap_filter_sieve = true;
      imap_sieve = true;
    };
  };
  protocols = {
    imap = true;
    lmtp = true;
    submission = true;
  };
  service = [
    {
      _section = {
        name = "imap";
      };
      client_limit = 100;
      "inet_listener imap" = {
        port = 31143;
      };
      "inet_listener imaps" = {
        port = 31993;
      };
      process_min_avail = 1;
    }
    {
      _section = {
        name = "lmtp";
      };
      "unix_listener lmtp" = {
        mode = "0660";
        user = "postfix";
      };
      user = "dovemail";
    }
  ];
}

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings."passdb pam"

Configuration for the PAM password database.

See https://doc.dovecot.org/latest/core/config/auth/databases/pam.html.

Type: null or (open submodule of attribute set of (Dovecot config value))

Default: null

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings."passdb pam".args

Arguments for the passdb backend.

This option is exclusive to Dovecot 2.3.

See https://doc.dovecot.org/2.3/configuration_manual/authentication/password_databases_passdb/#passdb-setting.

Type: null or (list of string)

Default: "if isPre24 then [ \"dovecot2\" ] else null"

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings."passdb pam".driver

The driver used for this password database.

See https://doc.dovecot.org/latest/core/summaries/settings.html#passdb_driver.

Type: null or string

Default: if isPre24 then "pam" else null

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings."passdb pam".failure_show_msg

Replace the default "Authentication failed" reply with PAM's failure.

This option is exclusive to Dovecot 2.4.

See https://doc.dovecot.org/latest/core/summaries/settings.html#passdb_pam_failure_show_msg.

Type: null or boolean

Default: if isPre24 then null else config.services.dovecot2.showPAMFailure

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings."passdb pam".service_name

The PAM service name to be used with the pam passdb.

This option is exclusive to Dovecot 2.4.

See https://doc.dovecot.org/latest/core/summaries/settings.html#passdb_pam_service_name.

Type: null or string

Default: if isPre24 then null else "dovecot2"

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings."userdb passwd"

Configuration for the Passwd user database.

See https://doc.dovecot.org/latest/core/config/auth/databases/passwd.html.

Type: null or (open submodule of attribute set of (Dovecot config value))

Default: null

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings."userdb passwd".driver

The driver used for this user database.

See https://doc.dovecot.org/latest/core/summaries/settings.html#userdb_driver.

Type: null or string

Default: if isPre24 then "passwd" else null

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings.auth_mechanisms

Here you can supply a space-separated list of the authentication mechanisms you wish to use.

See https://doc.dovecot.org/latest/core/summaries/settings.html#auth_mechanisms.

Type: (attribute set of boolean) or list of string

Default:

[
  "plain"
  "login"
]

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings.base_dir

The base directory in which Dovecot should store runtime data.

See https://doc.dovecot.org/latest/core/summaries/settings.html#base_dir.

Type: absolute path

Default: "/run/dovecot2"

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings.default_internal_group

Define the default internal group.

See https://doc.dovecot.org/latest/core/summaries/settings.html#default_internal_group.

Type: string

Default: "dovecot2"

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings.default_internal_user

Define the default internal user.

See https://doc.dovecot.org/latest/core/summaries/settings.html#default_internal_user.

Type: string

Default: "dovecot2"

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings.dovecot_config_version

Dovecot configuration version. It uses the same versioning as Dovecot in general, e.g. 3.0.5. It specifies the configuration syntax, the used setting names and the expected default values.

See https://doc.dovecot.org/latest/core/summaries/settings.html#dovecot_config_version.

Type: null or string

Default: null

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings.dovecot_storage_version

Dovecot storage file format version. It uses the same versioning as Dovecot in general, e.g. 3.0.5. It specifies the oldest Dovecot version that must be able to read files written by this Dovecot instance.

See https://doc.dovecot.org/latest/core/summaries/settings.html#dovecot_storage_version.

Type: null or string

Default: null

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings.mail_plugin_dir

The directory in which to search for Dovecot mail plugins.

See https://doc.dovecot.org/latest/core/summaries/settings.html#mail_plugin_dir.

Type: absolute path

Default: "/run/current-system/sw/lib/dovecot/modules"

Declared by: nixos/modules/services/mail/dovecot.nix

If enabled, copying of a message is done with hard links whenever possible.

See https://doc.dovecot.org/latest/core/summaries/settings.html#maildir_copy_with_hardlinks.

Type: boolean

Default: true

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings.plugin

Plugin settings. This option is exclusive to Dovecot 2.3.

Type: null or (open submodule of attribute set of (Dovecot config value))

Default: null

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings.plugin.sieve_extensions

The Sieve language extensions available to users.

This option is exclusive to Dovecot 2.3.

See https://doc.dovecot.org/2.3/settings/pigeonhole/#pigeonhole_setting-sieve_extensions.

Type: null or (list of string)

Default: null

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings.plugin.sieve_global_extensions

Which Sieve language extensions are only available in global scripts.

This option is exclusive to Dovecot 2.3.

See https://doc.dovecot.org/2.3/settings/pigeonhole/#pigeonhole_setting-sieve_global_extensions.

Type: null or (list of string)

Default: null

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings.plugin.sieve_pipe_bin_dir

Points to a directory where the plugin looks for programs (shell scripts) to execute directly and pipe messages to for the vnd.dovecot.pipe extension.

This option is exclusive to Dovecot 2.3.

See https://doc.dovecot.org/2.3/configuration_manual/sieve/plugins/extprograms/#configuration.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings.plugin.sieve_plugins

List of Sieve plugins to load.

This option is exclusive to Dovecot 2.3.

See https://doc.dovecot.org/2.3/settings/pigeonhole/#pigeonhole_setting-sieve_plugins.

Type: null or (list of string)

Default: null

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings.sendmail_path

The binary to use for sending email.

See https://doc.dovecot.org/latest/core/summaries/settings.html#sendmail_path.

Type: absolute path

Default: "/run/wrappers/bin/sendmail"

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings.sieve_global_extensions

Which Sieve language extensions are only available in global scripts.

This option is exclusive to Dovecot 2.4.

See https://doc.dovecot.org/latest/core/summaries/settings.html#sieve_global_extensions.

Type: null or (attribute set of boolean) or list of string

Default: null

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings.sieve_pipe_bin_dir

Points to a directory where the plugin looks for programs (shell scripts) to execute directly and pipe messages to for the vnd.dovecot.pipe extension.

This option is exclusive to Dovecot 2.4.

See https://doc.dovecot.org/latest/core/summaries/settings.html#sieve_plugins.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings.sieve_plugins

List of Sieve plugins to load.

This option is exclusive to Dovecot 2.4.

See https://doc.dovecot.org/latest/core/summaries/settings.html#sieve_plugins.

Type: null or (attribute set of boolean) or list of string

Default: null

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.settings.sieve_script_bin_path

Points to the directory where the compiled binaries for this script location are stored. This directory is created automatically if possible.

This option is exclusive to Dovecot 2.4.

See https://doc.dovecot.org/latest/core/summaries/settings.html#sieve_script_bin_path.

Type: null or string

Default:

if isPre24 || !hasPigeonhole
then null
else "/tmp/dovecot-%{user|username|lower}"

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.showPAMFailure

Whether to enable showing the PAM failure message on authentication error (useful for OTPW).

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.sieve.extensions

Sieve extensions for use in user scripts

Type: list of string

Default: [ ]

Example:

[
  "notify"
  "imapflags"
  "vnd.dovecot.filter"
]

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.sieve.globalExtensions

Sieve extensions for use in global scripts

Type: list of string

Default: [ ]

Example:

[
  "vnd.dovecot.environment"
]

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.sieve.pipeBins

Programs available for use by the vnd.dovecot.pipe extension

Type: list of absolute path

Default: [ ]

Example:

map lib.getExe [
  (pkgs.writeShellScriptBin "learn-ham.sh" "exec ${pkgs.rspamd}/bin/rspamc learn_ham")
  (pkgs.writeShellScriptBin "learn-spam.sh" "exec ${pkgs.rspamd}/bin/rspamc learn_spam")
]

Declared by: nixos/modules/services/mail/dovecot.nix

services.dovecot2.sieve.scripts

Sieve scripts to be executed. Key is a sequence, e.g. 'before2', 'after' etc.

Type: attribute set of absolute path

Default: { }

Declared by: nixos/modules/services/mail/dovecot.nix

services.dragonflydb.bind

The IP interface to bind to. null means "all interfaces".

Type: null or string

Default: "127.0.0.1"

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

services.dragonflydb.cacheMode

Once this mode is on, Dragonfly will evict items least likely to be stumbled upon in the future but only when it is near maxmemory limit.

Type: null or boolean

Default: null

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

services.dragonflydb.dbNum

Maximum number of supported databases for select

Type: null or (unsigned integer, meaning >=0)

Default: null

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

services.dragonflydb.enable

Whether to enable DragonflyDB.

Type: boolean

Default: false

Example: true

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

services.dragonflydb.keysOutputLimit

Maximum number of returned keys in keys command. keys is a dangerous command. We truncate its result to avoid blowup in memory when fetching too many keys.

Type: unsigned integer, meaning >=0

Default: 8192

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

services.dragonflydb.maxMemory

The maximum amount of memory to use for storage (in bytes). null means this will be automatically set.

Type: null or (unsigned integer, meaning >=0)

Default: null

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

services.dragonflydb.memcachePort

To enable memcached compatible API on this port. null means disabled.

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

Default: null

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

services.dragonflydb.port

The TCP port to accept connections.

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

Default: 6379

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

services.dragonflydb.requirePass

Password for database

Type: null or string

Default: null

Example: "letmein!"

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

services.dragonflydb.user

The user to run DragonflyDB as

Type: string

Default: "dragonfly"

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

services.drasl.enable

Whether to enable Drasl.

Type: boolean

Default: false

Example: true

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

services.drasl.enableDebug

Whether to enable debugging.

Type: boolean

Default: false

Example: true

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

services.drasl.package

The drasl package to use.

Type: package

Default: pkgs.drasl

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

services.drasl.settings

Configuration for Drasl. See the Drasl documentation for possible options.

Type: open submodule of (TOML value)

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

services.drasl.settings.RegistrationOIDC

List of OpenID connect providers.

Type: list of (open submodule of (TOML value))

Default: [ ]

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

services.drasl.settings.RegistrationOIDC.*.ClientSecretFile

Path to a file containing the OIDC client secret.

Note

The NixOS module will automatically load this file using systemd's LoadCredential. Make sure this file is only readable by the root user.

Type: null or absolute path

Default: null

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

services.draupnir.enable

Whether to enable Draupnir, a moderations bot for Matrix.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/matrix/draupnir.nix

services.draupnir.package

The draupnir package to use.

Type: package

Default: pkgs.draupnir

Declared by: nixos/modules/services/matrix/draupnir.nix

services.draupnir.secrets.accessToken

File containing the access token for Draupnir's Matrix account to be used in place of services.draupnir.settings.accessToken.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/matrix/draupnir.nix

services.draupnir.secrets.pantalaimon.password

File containing the password for Draupnir's Matrix account when used in conjunction with Pantalaimon to be used in place of services.draupnir.settings.pantalaimon.password.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/matrix/draupnir.nix

services.draupnir.secrets.web.synapseHTTPAntispam.authorization

File containing the secret token when using the Synapse HTTP Antispam module to be used in place of services.draupnir.settings.web.synapseHTTPAntispam.authorization.

See https://the-draupnir-project.github.io/draupnir-documentation/bot/synapse-http-antispam for details.

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/matrix/draupnir.nix

services.draupnir.settings

Free-form settings written to Draupnir's configuration file. See Draupnir's default configuration for available settings.

Type: open submodule of (YAML 1.1 value)

Default: { }

Example:

{
  homeserverUrl = "https://matrix.org";
  managementRoom = "#moderators:example.org";

  autojoinOnlyIfManager = true;
  automaticallyRedactForReasons = [ "spam" "advertising" ];
}

Declared by: nixos/modules/services/matrix/draupnir.nix

services.draupnir.settings.dataPath

The path Draupnir will store its state/data in.

Warning

This option is read-only.

Note

If you want to customize where this data is stored, use a bind mount.

Type: absolute path

Default: "/var/lib/draupnir"

Read only

Declared by: nixos/modules/services/matrix/draupnir.nix

services.draupnir.settings.homeserverUrl

Base URL of the Matrix homeserver that provides the Client-Server API.

Note

When using Pantalaimon, set this to the Pantalaimon URL and services.draupnir.settings.rawHomeserverUrl to the public URL.

Type: string

Example: "https://matrix.org"

Declared by: nixos/modules/services/matrix/draupnir.nix

services.draupnir.settings.managementRoom

The room ID or alias where moderators can use the bot's functionality.

The bot has no access controls, so anyone in this room can use the bot - secure this room! Do not enable end-to-end encryption for this room, unless set up with Pantalaimon.

Warning

When using a room alias, make sure the alias used is on the local homeserver! This prevents an issue where the control room becomes undefined when the alias can't be resolved.

Type: string

Example: "#moderators:example.org"

Declared by: nixos/modules/services/matrix/draupnir.nix

services.draupnir.settings.rawHomeserverUrl

Public base URL of the Matrix homeserver that provides the Client-Server API when using the Draupnir's Report forwarding feature.

Warning

When using Pantalaimon, do not set this to the Pantalaimon URL!

Type: string

Default: config.services.draupnir.settings.homeserverUrl

Example: "https://matrix.org"

Declared by: nixos/modules/services/matrix/draupnir.nix

services.drbd.config

Contents of the drbd.conf configuration file.

Type: strings concatenated with "\n"

Default: ""

Declared by: nixos/modules/services/network-filesystems/drbd.nix

services.drbd.enable

Whether to enable support for DRBD, the Distributed Replicated Block Device.

Type: boolean

Default: false

Declared by: nixos/modules/services/network-filesystems/drbd.nix

services.druid.broker.config

(key=value) Configuration to be written to runtime.properties of the druid Druid Broker https://druid.apache.org/docs/latest/configuration/index.html

Type: attribute set of anything

Default: { }

Example:

{
  "druid.plainTextPort" = "8082";
  "druid.service" = "servicename";
}

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.broker.enable

Whether to enable Druid Broker.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.broker.jdk

The JDK package to use.

Type: package

Default: pkgs.jdk17_headless

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.broker.jvmArgs

Arguments to pass to the JVM

Type: string

Default: ""

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.broker.openFirewall

Open firewall ports for Druid Broker.

Type: boolean

Default: false

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.broker.restartIfChanged

Automatically restart the service on config change. This can be set to false to defer restarts on clusters running critical applications. Please consider the security implications of inadvertently running an older version, and the possibility of unexpected behavior caused by inconsistent versions across a cluster when disabling this option.

Type: boolean

Default: false

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.commonConfig

(key=value) Configuration to be written to common.runtime.properties

Type: attribute set of anything

Default: { }

Example:

{
  "druid.extensions.loadList" = "[ \"mysql-metadata-storage\" ]";
  "druid.metadata.storage.connector.connectURI" = "jdbc:mysql://localhost:3306/druid";
  "druid.metadata.storage.type" = "mysql";
  "druid.zk.service.host" = "localhost:2181";
}

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.commonTmpDirs

Common List of directories used by druid processes

Type: list of string

Default:

[
  "/var/log/druid/requests"
]

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.coordinator.config

(key=value) Configuration to be written to runtime.properties of the druid Druid Coordinator https://druid.apache.org/docs/latest/configuration/index.html

Type: attribute set of anything

Default: { }

Example:

{
  "druid.plainTextPort" = "8082";
  "druid.service" = "servicename";
}

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.coordinator.enable

Whether to enable Druid Coordinator.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.coordinator.jdk

The JDK package to use.

Type: package

Default: pkgs.jdk17_headless

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.coordinator.jvmArgs

Arguments to pass to the JVM

Type: string

Default: ""

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.coordinator.openFirewall

Open firewall ports for Druid Coordinator.

Type: boolean

Default: false

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.coordinator.restartIfChanged

Automatically restart the service on config change. This can be set to false to defer restarts on clusters running critical applications. Please consider the security implications of inadvertently running an older version, and the possibility of unexpected behavior caused by inconsistent versions across a cluster when disabling this option.

Type: boolean

Default: false

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.extraClassPaths

Extra classpath to include in the jvm

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.extraConfDirs

Extra Conf Dirs to include in the jvm

Type: list of absolute path

Default: [ ]

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.historical.config

(key=value) Configuration to be written to runtime.properties of the druid Druid Historical https://druid.apache.org/docs/latest/configuration/index.html

Type: attribute set of anything

Default: { }

Example:

{
  "druid.plainTextPort" = "8082";
  "druid.service" = "servicename";
}

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.historical.enable

Whether to enable Druid Historical.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.historical.jdk

The JDK package to use.

Type: package

Default: pkgs.jdk17_headless

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.historical.jvmArgs

Arguments to pass to the JVM

Type: string

Default: ""

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.historical.openFirewall

Open firewall ports for Druid Historical.

Type: boolean

Default: false

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.historical.restartIfChanged

Automatically restart the service on config change. This can be set to false to defer restarts on clusters running critical applications. Please consider the security implications of inadvertently running an older version, and the possibility of unexpected behavior caused by inconsistent versions across a cluster when disabling this option.

Type: boolean

Default: false

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.historical.segmentLocations

Locations where the historical will store its data.

Type: null or (list of (submodule))

Default: null

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.historical.segmentLocations.*.freeSpacePercent

Druid Historical will fail to write if it exceeds this value

Type: floating point number

Default: 1.0

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.historical.segmentLocations.*.maxSize

Max size the druid historical can occupy

Type: string

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.historical.segmentLocations.*.path

the path to store the segments

Type: absolute path

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.log4j

Log4j Configuration for the druid process

Type: absolute path

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.middleManager.config

(key=value) Configuration to be written to runtime.properties of the druid Druid middleManager https://druid.apache.org/docs/latest/configuration/index.html

Type: attribute set of anything

Default: { }

Example:

{
  "druid.plainTextPort" = "8082";
  "druid.service" = "servicename";
}

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.middleManager.enable

Whether to enable Druid middleManager.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.middleManager.jdk

The JDK package to use.

Type: package

Default: pkgs.jdk17_headless

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.middleManager.jvmArgs

Arguments to pass to the JVM

Type: string

Default: ""

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.middleManager.openFirewall

Open firewall ports for Druid middleManager.

Type: boolean

Default: false

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.middleManager.restartIfChanged

Automatically restart the service on config change. This can be set to false to defer restarts on clusters running critical applications. Please consider the security implications of inadvertently running an older version, and the possibility of unexpected behavior caused by inconsistent versions across a cluster when disabling this option.

Type: boolean

Default: false

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.overlord.config

(key=value) Configuration to be written to runtime.properties of the druid Druid Overlord https://druid.apache.org/docs/latest/configuration/index.html

Type: attribute set of anything

Default: { }

Example:

{
  "druid.plainTextPort" = "8082";
  "druid.service" = "servicename";
}

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.overlord.enable

Whether to enable Druid Overlord.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.overlord.jdk

The JDK package to use.

Type: package

Default: pkgs.jdk17_headless

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.overlord.jvmArgs

Arguments to pass to the JVM

Type: string

Default: ""

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.overlord.openFirewall

Open firewall ports for Druid Overlord.

Type: boolean

Default: false

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.overlord.restartIfChanged

Automatically restart the service on config change. This can be set to false to defer restarts on clusters running critical applications. Please consider the security implications of inadvertently running an older version, and the possibility of unexpected behavior caused by inconsistent versions across a cluster when disabling this option.

Type: boolean

Default: false

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.package

The apache-druid package to use.

Type: package

Default: pkgs.druid

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.router.config

(key=value) Configuration to be written to runtime.properties of the druid Druid Router https://druid.apache.org/docs/latest/configuration/index.html

Type: attribute set of anything

Default: { }

Example:

{
  "druid.plainTextPort" = "8082";
  "druid.service" = "servicename";
}

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.router.enable

Whether to enable Druid Router.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.router.jdk

The JDK package to use.

Type: package

Default: pkgs.jdk17_headless

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.router.jvmArgs

Arguments to pass to the JVM

Type: string

Default: ""

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.router.openFirewall

Open firewall ports for Druid Router.

Type: boolean

Default: false

Declared by: nixos/modules/services/cluster/druid/default.nix

services.druid.router.restartIfChanged

Automatically restart the service on config change. This can be set to false to defer restarts on clusters running critical applications. Please consider the security implications of inadvertently running an older version, and the possibility of unexpected behavior caused by inconsistent versions across a cluster when disabling this option.

Type: boolean

Default: false

Declared by: nixos/modules/services/cluster/druid/default.nix

services.drupal.enable

Whether to enable drupal.

Type: boolean

Default: false

Example: true

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

services.drupal.package

The drupal package to use.

Type: package

Default: pkgs.drupal

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

services.drupal.sites

Specification of one or more Drupal sites to serve

Type: attribute set of (submodule)

Default:

{
  localhost = {
    enable = true;
  };
}

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

services.drupal.sites.<name>.configRoot

An optional path string with a leading slash indicating the location of the config sync directory on the Drupal package. Your package will probably have a config sync directory if it has been significantly customized.

The path must be relative to the project root directory.

This option differs from the configSyncDir option, which tells this service where to create a user-writeable config directory on NixOS.

Type: string

Default: ""

Example: "/config"

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

services.drupal.sites.<name>.configSyncDir

The location of the user-managed Drupal config sync directory. Drupal will both read from and write to this directory when executing configuration management operations.

This option differs from the configRoot option, which this service uses to discover the location of the config sync directory in the package's source code.

Type: absolute path

Default: "/var/lib/drupal/<name>/config/sync"

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

services.drupal.sites.<name>.database.createLocally

Create the database and database user locally.

Type: boolean

Default: true

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

services.drupal.sites.<name>.database.host

Database host address.

Type: string

Default: "localhost"

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

services.drupal.sites.<name>.database.name

Database name.

Type: string

Default: "drupal"

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

services.drupal.sites.<name>.database.passwordFile

A file containing the password corresponding to database.user.

Type: null or absolute path

Default: null

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

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

services.drupal.sites.<name>.database.port

Database host port.

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

Default: 3306

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

services.drupal.sites.<name>.database.socket

Path to the unix socket file to use for authentication.

Type: null or absolute path

Default: /run/mysqld/mysqld.sock

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

services.drupal.sites.<name>.database.tablePrefix

The $table_prefix is the value placed in the front of your database tables. Change the value if you want to use something other than dp_ for your database prefix. Typically this is changed if you are installing multiple Drupal sites in the same database.

Type: string

Default: "dp_"

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

services.drupal.sites.<name>.database.user

Database user.

Type: string

Default: "drupal"

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

services.drupal.sites.<name>.enable

Whether to enable Drupal web application.

Type: boolean

Default: false

Example: true

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

services.drupal.sites.<name>.extraConfig

Extra configuration values that you want to insert into settings.php. All configuration must be written as PHP script.

Type: strings concatenated with "\n"

Default: ""

Example:

''
  $config['user.settings']['anonymous'] = 'Visitor';
  $settings['entity_update_backup'] = TRUE;
''

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

services.drupal.sites.<name>.filesDir

The location of the Drupal files directory.

Many of the files in this directory are variable, so they must be located in a location writeable by users of the webgroup.

Type: absolute path

Default: "/var/lib/drupal/<name>/sites/default/files"

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

services.drupal.sites.<name>.modulesDir

The location for users to manually install Drupal modules.

Note: in most instances, it is preferable to install modules using composer, or to package them with your source code repository, if you are using a custom Drupal.

Type: absolute path

Default: "/var/lib/drupal/<name>/modules"

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

services.drupal.sites.<name>.package

The drupal package to use.

Type: package

Default: pkgs.drupal

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

services.drupal.sites.<name>.phpOptions

Options for PHP's php.ini file for this Drupal site.

Type: attribute set of (null or boolean or signed integer or floating point number or string)

Default: { }

Example:

{
  "opcache.interned_strings_buffer" = 8;
  "opcache.max_accelerated_files" = 10000;
  "opcache.memory_consumption" = 128;
  "opcache.revalidate_freq" = 15;
  "opcache.fast_shutdown" = 1;
}

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

services.drupal.sites.<name>.poolConfig

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

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

Default:

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

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

services.drupal.sites.<name>.privateFilesDir

The location of the Drupal private files directory.

Type: absolute path

Default: "/var/lib/drupal/<name>/private"

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

services.drupal.sites.<name>.stateDir

The location of the user-managed Drupal site state directory. This directory will contain the settings and configuration files for your Drupal instance. It may also contain your files directory if the filesDir option remains unchanged.

Many of the files in this directory are variable, so they must be located in a location writeable by users of the webgroup.

Type: absolute path

Default: "/var/lib/drupal/<name>"

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

services.drupal.sites.<name>.themesDir

The location for users to manually install Drupal themes.

Note: in most instances, it is preferable to install themes using composer, or to package them with your source code repository, if you are using a custom Drupal.

Type: absolute path

Default: "/var/lib/drupal/<name>/themes"

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

services.drupal.sites.<name>.virtualHost

Apache configuration can be done by adapting services.httpd.virtualHosts.

Type: submodule

Example:

{
  adminAddr = "webmaster@example.org";
  forceSSL = true;
  enableACME = true;
}

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

services.drupal.sites.<name>.virtualHost.acmeRoot

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

Type: null or string

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

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

services.drupal.sites.<name>.virtualHost.addSSL

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

Type: boolean

Default: false

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

services.drupal.sites.<name>.virtualHost.adminAddr

E-mail address of the server administrator.

Type: null or string

Default: null

Example: "admin@example.org"

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

services.drupal.sites.<name>.virtualHost.documentRoot

The path of Apache's document root directory. If left undefined, an empty directory in the Nix store will be used as root.

Type: null or absolute path

Default: null

Example: "/data/webserver/docs"

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

services.drupal.sites.<name>.virtualHost.enableACME

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

Type: boolean

Default: false

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

services.drupal.sites.<name>.virtualHost.enableUserDir

Whether to enable serving ~/public_html as /~«username».

Type: boolean

Default: false

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

services.drupal.sites.<name>.virtualHost.extraConfig

These lines go to httpd.conf verbatim. They will go after directories and directory aliases defined by default.

Type: strings concatenated with "\n"

Default: ""

Example:

''
  <Directory /home>
    Options FollowSymlinks
    AllowOverride All
  </Directory>
''

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

services.drupal.sites.<name>.virtualHost.forceSSL

Whether to add a separate nginx server block that permanently redirects (301) 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/drupal.nix

services.drupal.sites.<name>.virtualHost.globalRedirect

If set, all requests for this host are redirected permanently to the given URL.

Type: null or string

Default: null

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

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

services.drupal.sites.<name>.virtualHost.hostName

Canonical hostname for the server.

Type: string

Default: "‹name›"

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

services.drupal.sites.<name>.virtualHost.http2

Whether to enable HTTP 2. HTTP/2 is supported in all multi-processing modules that come with httpd. However, if you use the prefork mpm, there will be severe restrictions. Refer to https://httpd.apache.org/docs/2.4/howto/http2.html#mpm-config for details.

Type: boolean

Default: true

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

services.drupal.sites.<name>.virtualHost.listen

Listen addresses and ports for this virtual host.

Note

This option overrides addSSL, forceSSL 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:

[
  {
    ip = "195.154.1.1";
    port = 443;
    ssl = true;
  }
  {
    ip = "192.154.1.1";
    port = 80;
  }
  {
    ip = "*";
    port = 8080;
  }
]

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

services.drupal.sites.<name>.virtualHost.listen.*.ip

IP to listen on. 0.0.0.0 for IPv4 only, * for all.

Type: string

Default: "*"

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

services.drupal.sites.<name>.virtualHost.listen.*.port

Port to listen on

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

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

services.drupal.sites.<name>.virtualHost.listen.*.ssl

Whether to enable SSL (https) support.

Type: boolean

Default: false

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

services.drupal.sites.<name>.virtualHost.listenAddresses

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

Type: non-empty (list of string)

Default:

[
  "*"
]

Example:

[
  "127.0.0.1"
]

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

services.drupal.sites.<name>.virtualHost.locations

Declarative location config. See https://httpd.apache.org/docs/2.4/mod/core.html#location for details.

Type: attribute set of (submodule)

Default: { }

Example:

{
  "/" = {
    proxyPass = "http://localhost:3000";
  };
  "/foo/bar.png" = {
    alias = "/home/eelco/some-file.png";
  };
};

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

services.drupal.sites.<name>.virtualHost.locations.<name>.alias

Alias directory for requests. See https://httpd.apache.org/docs/2.4/mod/mod_alias.html#alias.

Type: null or absolute path

Default: null

Example: "/your/alias/directory"

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

services.drupal.sites.<name>.virtualHost.locations.<name>.extraConfig

These lines go to the end of the location verbatim.

Type: strings concatenated with "\n"

Default: ""

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

services.drupal.sites.<name>.virtualHost.locations.<name>.index

Adds DirectoryIndex directive. See https://httpd.apache.org/docs/2.4/mod/mod_dir.html#directoryindex.

Type: null or string

Default: null

Example: "index.php index.html"

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

services.drupal.sites.<name>.virtualHost.locations.<name>.priority

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

Type: signed integer

Default: 1000

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

services.drupal.sites.<name>.virtualHost.locations.<name>.proxyPass

Sets up a simple reverse proxy as described by https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html#simple.

Type: null or string

Default: null

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

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

services.drupal.sites.<name>.virtualHost.logFormat

Log format for Apache's log files. Possible values are: combined, common, referer, agent.

Type: string

Default: "common"

Example: "combined"

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

services.drupal.sites.<name>.virtualHost.onlySSL

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

Type: boolean

Default: false

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

services.drupal.sites.<name>.virtualHost.robotsEntries

Specification of pages to be ignored by web crawlers. See http://www.robotstxt.org/ for details.

Type: strings concatenated with "\n"

Default: ""

Example: "Disallow: /foo/"

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

services.drupal.sites.<name>.virtualHost.servedDirs

This option provides a simple way to serve static directories.

Type: list of (attribute set)

Default: [ ]

Example:

[
  {
    dir = "/home/eelco/Dev/nix-homepage";
    urlPath = "/nix";
  }
]

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

services.drupal.sites.<name>.virtualHost.servedFiles

This option provides a simple way to serve individual, static files.

Note

This option has been deprecated and will be removed in a future version of NixOS. You can achieve the same result by making use of the locations.<name>.alias option.

Type: list of (attribute set)

Default: [ ]

Example:

[
  {
    file = "/home/eelco/some-file.png";
    urlPath = "/foo/bar.png";
  }
]

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

services.drupal.sites.<name>.virtualHost.serverAliases

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

Type: list of string

Default: [ ]

Example:

[
  "www.example.org"
  "www.example.org:8080"
  "example.org"
]

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

services.drupal.sites.<name>.virtualHost.sslServerCert

Path to server SSL certificate.

Type: absolute path

Example: "/var/host.cert"

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

services.drupal.sites.<name>.virtualHost.sslServerChain

Path to server SSL chain file.

Type: null or absolute path

Default: null

Example: "/var/ca.pem"

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

services.drupal.sites.<name>.virtualHost.sslServerKey

Path to server SSL certificate key.

Type: absolute path

Example: "/var/host.key"

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

services.drupal.sites.<name>.virtualHost.useACMEHost

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

Type: null or string

Default: null

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

services.drupal.sites.<name>.webRoot

An optional path string with a leading slash indicating the location of the Drupal webroot in your package's source code.

The path relative to the project root directory.

Type: string

Default: ""

Example: "/web"

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

services.drupal.webserver

Whether to use nginx or caddy for virtual host management.

Further nginx configuration can be done by adapting services.nginx.virtualHosts.<name>. See services (N) for further information.

Further caddy configuration can be done by adapting services.caddy.virtualHosts.<name>. See services (C) for further information.

Type: one of "nginx", "caddy"

Default: "nginx"

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

services.dsnet.enable

Whether to enable dsnet, a centralised Wireguard VPN manager.

Type: boolean

Default: false

Example: true

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

services.dsnet.package

The dsnet package to use.

Type: package

Default: pkgs.dsnet

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

services.dsnet.settings

The settings to use for dsnet. This will be converted to a JSON object that will be passed to dsnet as a patch, using the patch command when the service is started. See the dsnet documentation for more information on the additional options.

Note that the resulting /etc/dsnetconfg.json is more of a database than it is a configuration file. It is therefore recommended that system specific values are configured here, rather than the full configuration including peers.

Peers may be managed via the dsnet add/remove commands, negating the need to manage key material and cumbersom configuration with nix. If you want peer configuration in nix, you may as well use the regular wireguard module.

Type: open submodule of (JSON value)

Default: { }

Example:

{
  DNS = "8.8.8.8";
  ExternalHostname = "vpn.example.com";
  ExternalIP = "127.0.0.1";
  ExternalIP6 = "";
  IP = "10.3.148.1";
  IP6 = "";
  ListenPort = 51820;
  Network = "10.3.148.0/22";
  Network6 = "";
  Networks = [
    "0.0.0.0/0"
  ];
}

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

services.dsnet.settings.ExternalHostname

The hostname that clients should use to connect to this server. This is used to generate the client configuration files.

This is preferred over ExternalIP, as it allows for IPv4 and IPv6, as well as enabling the ability tp change IP.

Type: null or string

Default: null

Example: "vpn.example.com"

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

services.dsnet.settings.ExternalIP

The external IP address of the server. This is used to generate the client configuration files for when an ExternalHostname is not set.

Leaving this empty will cause dsnet to use the IP address of what looks like the WAN interface.

Type: null or string

Default: null

Example: "192.0.2.1"

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

services.dsnet.settings.ExternalIP6

The external IPv6 address of the server. This is used to generate the client configuration files for when an ExternalHostname is not set. Used in preference to ExternalIP.

Leaving this empty will cause dsnet to use the IP address of what looks like the WAN interface.

Type: null or string

Default: null

Example: "2001:db8::1"

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

services.dsnet.settings.IP

The IPv4 address that the server will use on the network. Leave this empty to let dsnet choose an address.

Type: null or string

Default: null

Example: "172.18.0.1"

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

services.dsnet.settings.IP6

The IPv6 address that the server will use on the network Leave this empty to let dsnet choose an address.

Type: null or string

Default: null

Example: "2001:db8::1"

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

services.dsnet.settings.Network

The IPv4 network that the server will use to allocate IPs on the network. Leave this empty to let dsnet choose a network.

Type: null or string

Default: null

Example: "172.18.0.0/24"

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

services.dsnet.settings.Network6

The IPv6 network that the server will use to allocate IPs on the network. Leave this empty to let dsnet choose a network.

Type: null or string

Default: null

Example: "2001:db8::1/64"

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

services.dsnet.settings.Networks

The CIDR networks that should route through this server. Clients will be configured to route traffic for these networks through the server peer.

Type: null or (list of string)

Default: null

Example:

[
  "0.0.0.0/0"
  "192.168.0.0/24"
]

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

services.duckdns.domains

The domain(s) to update in DuckDNS (without the .duckdns.org suffix)

Type: null or (list of string)

Default: null

Example:

[
  "examplehost"
]

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

services.duckdns.domainsFile

The path to a file containing a newline-separated list of DuckDNS domain(s) to be updated (without the .duckdns.org suffix)

Type: null or absolute path

Default: null

Example:

pkgs.writeText "duckdns-domains.txt" ''
  examplehost
  examplehost2
  examplehost3
''

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

services.duckdns.enable

Whether to enable DuckDNS Dynamic DNS Client.

Type: boolean

Default: false

Example: true

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

services.duckdns.tokenFile

The path to a file containing the token used to authenticate with DuckDNS.

Type: absolute path

Default: null

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

services.duckling.enable

Whether to enable duckling.

Type: boolean

Default: false

Example: true

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

services.duckling.port

Port on which duckling will run.

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

Default: 8080

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

services.dufs.bindAddresses

IP addresses on which dufs listens.

Type: non-empty (list of string)

Default:

[
  "127.0.0.1"
]

Example:

[
  "127.0.0.1"
  "::1"
]

Declared by: nixos/modules/services/network-filesystems/dufs.nix

services.dufs.enable

Whether to enable dufs file server.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/network-filesystems/dufs.nix

services.dufs.environmentFile

Environment file as defined in systemd.exec(5). Use DUFS_AUTH in this file to keep authentication credentials out of the world-readable Nix store.

Type: null or absolute path

Default: null

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

Declared by: nixos/modules/services/network-filesystems/dufs.nix

services.dufs.group

Group under which dufs runs.

Type: string

Default: "dufs"

Declared by: nixos/modules/services/network-filesystems/dufs.nix

services.dufs.openFirewall

Whether to enable opening the dufs TCP port in the firewall.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/network-filesystems/dufs.nix

services.dufs.package

The dufs package to use.

Type: package

Default: pkgs.dufs

Declared by: nixos/modules/services/network-filesystems/dufs.nix

services.dufs.port

TCP port on which dufs listens.

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

Default: 5000

Declared by: nixos/modules/services/network-filesystems/dufs.nix

services.dufs.servePath

Path served by dufs. The default path /var/lib/dufs is created automatically. Any other path must already exist and be accessible to the configured user and group.

Type: absolute path

Default: "/var/lib/dufs"

Declared by: nixos/modules/services/network-filesystems/dufs.nix

services.dufs.settings

Settings written to the dufs YAML configuration file. See the dufs configuration documentation for available values. Configure serve-path, bind, and port with their dedicated NixOS options instead.

Type: YAML 1.1 value

Default: { }

Example:

{
  allow-delete = true;
  allow-upload = true;
  compress = "low";
  hidden = [
    "*.tmp"
  ];
}

Declared by: nixos/modules/services/network-filesystems/dufs.nix

services.dufs.user

User account under which dufs runs.

Type: string

Default: "dufs"

Declared by: nixos/modules/services/network-filesystems/dufs.nix

services.dump1090-fa.enable

Whether to enable dump1090-fa.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/misc/dump1090-fa.nix

services.dump1090-fa.extraArgs

Additional passed arguments

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/misc/dump1090-fa.nix

services.dump1090-fa.package

The dump1090-fa package to use.

Type: package

Default: pkgs.dump1090-fa

Declared by: nixos/modules/services/misc/dump1090-fa.nix

services.dunst.enable

Whether to enable Dunst notification daemon.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/desktops/dunst.nix

services.dunst.enableWayland

Whether to enable Wayland support.

Type: boolean

Default: true

Declared by: nixos/modules/services/desktops/dunst.nix

services.dunst.enableX11

Whether to enable X11 support.

Type: boolean

Default: true

Declared by: nixos/modules/services/desktops/dunst.nix

services.dunst.package

The dunst package to use.

Type: package

Default: pkgs.dunst

Declared by: nixos/modules/services/desktops/dunst.nix

services.dunst.settings

Dunst configuration, see dunst(5)

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

Default: { }

Example:

{
  global = {
    width = 300;
    height = 300;
    offset = "30x50";
    origin = "top-right";
    transparency = 10;
    frame_color = "#eceff1";
    font = "Droid Sans 9";
  };

  urgency_normal = {
    background = "#37474f";
    foreground = "#eceff1";
    timeout = 10;
  };
};

Declared by: nixos/modules/services/desktops/dunst.nix

services.duplicati.dataDir

The directory where Duplicati stores its data files.

Note

If left as the default value this directory will automatically be created before the Duplicati server starts, otherwise you are responsible for ensuring the directory exists with appropriate ownership and permissions.

Type: string

Default: "/var/lib/duplicati"

Declared by: nixos/modules/services/backup/duplicati.nix

services.duplicati.enable

Whether to enable Duplicati.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/backup/duplicati.nix

services.duplicati.interface

Listening interface for the web UI Set it to "any" to listen on all available interfaces

Type: string

Default: "127.0.0.1"

Declared by: nixos/modules/services/backup/duplicati.nix

services.duplicati.package

The duplicati package to use.

Type: package

Default: pkgs.duplicati

Declared by: nixos/modules/services/backup/duplicati.nix

services.duplicati.parameters

This option can be used to store some or all of the options given to the commandline client. Each line in this option should be of the format --option=value. The options in this file take precedence over the options provided through command line arguments. Duplicati docs: parameters-file

Type: strings concatenated with "\n"

Default: ""

Example:

''
  --webservice-allowedhostnames=*
''

Declared by: nixos/modules/services/backup/duplicati.nix

services.duplicati.parametersFile

This file can be used to store some or all of the options given to the commandline client. Each line in the file option should be of the format --option=value. The options in this file take precedence over the options provided through command line arguments. Duplicati docs: parameters-file

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/backup/duplicati.nix

services.duplicati.port

Port serving the web interface

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

Default: 8200

Declared by: nixos/modules/services/backup/duplicati.nix

services.duplicati.user

Duplicati runs as it's own user. It will only be able to backup world-readable files. Run as root with special care.

Type: string

Default: "duplicati"

Declared by: nixos/modules/services/backup/duplicati.nix

services.duplicity.cleanup.maxAge

If non-null, delete all backup sets older than the given time. Old backup sets will not be deleted if backup sets newer than time depend on them.

Type: null or string

Default: null

Example: "6M"

Declared by: nixos/modules/services/backup/duplicity.nix

services.duplicity.cleanup.maxFull

If non-null, delete all backups sets that are older than the count:th last full backup (in other words, keep the last count full backups and associated incremental sets).

Type: null or signed integer

Default: null

Example: 2

Declared by: nixos/modules/services/backup/duplicity.nix

services.duplicity.cleanup.maxIncr

If non-null, delete incremental sets of all backups sets that are older than the count:th last full backup (in other words, keep only old full backups and not their increments).

Type: null or signed integer

Default: null

Example: 1

Declared by: nixos/modules/services/backup/duplicity.nix

services.duplicity.enable

Whether to enable backups with duplicity.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/backup/duplicity.nix

services.duplicity.exclude

List of paths to exclude from backups. See the FILE SELECTION section in duplicity(1) for details on the syntax.

Type: list of string

Default: [ ]

Declared by: nixos/modules/services/backup/duplicity.nix

services.duplicity.excludeFileList

File containing newline-separated list of paths to exclude into the backups. See the FILE SELECTION section in duplicity(1) for details on the syntax.

Type: null or absolute path

Default: null

Example: "/path/to/fileList.txt"

Declared by: nixos/modules/services/backup/duplicity.nix

services.duplicity.extraFlags

Extra command-line flags passed to duplicity. See duplicity(1).

Type: list of string

Default: [ ]

Example:

[
  "--backend-retry-delay"
  "100"
]

Declared by: nixos/modules/services/backup/duplicity.nix

services.duplicity.frequency

Run duplicity with the given frequency (see systemd.time(7) for the format). If null, do not run automatically.

Type: null or string

Default: "daily"

Declared by: nixos/modules/services/backup/duplicity.nix

services.duplicity.fullIfOlderThan

If "never" (the default) always do incremental backups (the first backup will be a full backup, of course). If "always" always do full backups. Otherwise, this must be a string representing a duration. Full backups will be made when the latest full backup is older than this duration. If this is not the case, an incremental backup is performed.

Type: string

Default: "never"

Example: "1M"

Declared by: nixos/modules/services/backup/duplicity.nix

services.duplicity.include

List of paths to include into the backups. See the FILE SELECTION section in duplicity(1) for details on the syntax.

Type: list of string

Default: [ ]

Example:

[
  "/home"
]

Declared by: nixos/modules/services/backup/duplicity.nix

services.duplicity.includeFileList

File containing newline-separated list of paths to include into the backups. See the FILE SELECTION section in duplicity(1) for details on the syntax.

Type: null or absolute path

Default: null

Example: "/path/to/fileList.txt"

Declared by: nixos/modules/services/backup/duplicity.nix

services.duplicity.root

Root directory to backup.

Type: absolute path

Default: "/"

Declared by: nixos/modules/services/backup/duplicity.nix

services.duplicity.secretFile

Path of a file containing secrets (gpg passphrase, access key...) in the format of EnvironmentFile as described by systemd.exec(5). For example:

PASSPHRASE=«...»
AWS_ACCESS_KEY_ID=«...»
AWS_SECRET_ACCESS_KEY=«...»

Type: null or absolute path

Default: null

Declared by: nixos/modules/services/backup/duplicity.nix

services.duplicity.targetUrl

Target url to backup to. See the URL FORMAT section in duplicity(1) for supported urls.

Type: string

Example: "s3://host:port/prefix"

Declared by: nixos/modules/services/backup/duplicity.nix

services.dwm-status.enable

Whether to enable dwm-status user service.

Type: boolean

Default: false

Example: true

Declared by: nixos/modules/services/misc/dwm-status.nix

services.dwm-status.package

The dwm-status package to use.

Type: package

Default: pkgs.dwm-status

Example: dwm-status.override { enableAlsaUtils = false; }

Declared by: nixos/modules/services/misc/dwm-status.nix

services.dwm-status.settings

Config options for dwm-status, see https://github.com/Gerschtli/dwm-status#configuration for available options.

Type: open submodule of (TOML value)

Default: { }

Example:

{
  order = [
    "battery"
    "cpu_load"
    "time"
  ];
  time = {
    format = "%F %a %r";
    update_seconds = true;
  };
}

Declared by: nixos/modules/services/misc/dwm-status.nix

services.dwm-status.settings.order

List of enabled features in order.

Type: list of (one of "audio", "backlight", "battery", "cpu_load", "network", "time")

Default: [ ]

Declared by: nixos/modules/services/misc/dwm-status.nix

services.dysnomia.components

An attribute set in which each key represents a container and each value an attribute set in which each key represents a component and each value a derivation constructing its initial state

Type: attribute set of (attribute set)

Default: { }

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

services.dysnomia.containers

An attribute set in which each key represents a container and each value an attribute set providing its configuration properties

Type: attribute set of (attribute set)

Default: { }

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

services.dysnomia.enable

Whether to enable Dysnomia

Type: boolean

Default: false

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

services.dysnomia.enableAuthentication

Whether to publish privacy-sensitive authentication credentials

Type: boolean

Default: false

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

services.dysnomia.enableLegacyModules

Whether to enable Dysnomia legacy process and wrapper modules

Type: boolean

Default: true

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

services.dysnomia.extraContainerPaths

A list of paths containing additional container configurations that are added to the search folders

Type: list of absolute path

Default: [ ]

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

services.dysnomia.extraContainerProperties

An attribute set providing additional container settings in addition to the default properties

Type: attribute set

Default: { }

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

services.dysnomia.extraModulePaths

A list of paths containing additional modules that are added to the search folders

Type: list of absolute path

Default: [ ]

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

services.dysnomia.package

The Dysnomia package

Type: absolute path

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

services.dysnomia.properties

An attribute set in which each attribute represents a machine property. Optionally, these values can be shell substitutions.

Type: attribute set

Default: { }

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