NixOS options
Generated from the module in nix/modules.
Every option is under services.muelle; site options under services.muelle.sites.<name>.
services.muelle.enable
Whether to enable muelle deploy receiver.
Type: boolean
Default:
false
Example:
true
Declared by:
services.muelle.accessLogFormat
nginx log_format name for prod vhost access logs (must be defined elsewhere). Null uses nginx’s default.
Type: null or string
Default:
null
Example:
"withHost"
Declared by:
services.muelle.acmeHost
ACME cert (security.acme.certs name) covering domain and *.<domain>.
Type: string
Declared by:
services.muelle.artifactUrlBase
Artifacts must be fetched from <artifactUrlBase>/<repo>/.
Type: string
Default:
"https://api.github.com/repos"
Declared by:
services.muelle.baseDir
Root of <site>/<slot>/{releases,current}.
Type: string
Default:
"/var/www/muelle"
Declared by:
services.muelle.domain
Host serving /hooks/<site>, /status/<id> and the listing of
next/preview environments at /. Those environments are served at
next-<site>.<domain> and <hash>-<site>.<domain>.
Type: string
Example:
"muelle.example.com"
Declared by:
services.muelle.headers
Response headers sent by every vhost muelle declares, as
name = value; null drops one. Defaults, each overridable on its
own:
Content-Security-Policy: frame-ancestors 'none'Referrer-Policy: strict-origin-when-cross-originStrict-Transport-Security: max-age=31536000X-Content-Type-Options: nosniffX-Frame-Options: DENY
HSTS leaves out includeSubDomains and preload: the apex may not be
yours. Per site: sites.<name>.headers. The listing and /status/
always send their own strict Content-Security-Policy and
Referrer-Policy. nginx drops server-level add_header directives in
a location that sets its own: repeat them there.
Type: attribute set of (null or string)
Default:
{ }
Example:
{
Content-Security-Policy = "frame-ancestors https://partner.example";
X-Frame-Options = null;
}
Declared by:
services.muelle.hookRateLimit
nginx limit_req rate for /hooks/, per client IP (burst 5).
Type: string
Default:
"20r/m"
Declared by:
services.muelle.indexVhost
A services.nginx.virtualHosts.<name> module merged into the domain
vhost, after previewVhost. Its / lists the next/preview
deployments: gate it, it reveals branch names and URLs. Gate
location / only (as enableAuth-style modules do): /hooks/ and
/status/ are separate locations and must stay reachable from CI.
Type: module
Default:
{ }
Example:
{ locations."/".extraConfig = "auth_request /auth;"; }
Declared by:
services.muelle.keepPreviews
Preview slots kept per site (oldest removed first).
Type: positive integer, meaning >0
Default:
10
Declared by:
services.muelle.keepReleases
Releases kept per slot.
Type: positive integer, meaning >0
Default:
3
Declared by:
services.muelle.maxArtifactBytes
Maximum artifact download size.
Type: positive integer, meaning >0
Default:
209715200
Declared by:
services.muelle.maxArtifactFiles
Maximum number of entries (files and directories) in an artifact.
Type: positive integer, meaning >0
Default:
50000
Declared by:
services.muelle.maxExtractedBytes
Maximum total uncompressed size of an artifact (guards against zip bombs).
Type: positive integer, meaning >0
Default:
2147483648
Declared by:
services.muelle.maxSkew
Seconds a request timestamp may differ from the server clock.
Type: signed integer
Default:
300
Declared by:
services.muelle.port
Local port of the webhook daemon.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
9077
Declared by:
services.muelle.previewTtlDays
Days after its last deploy a preview is removed (daily, by muelle-prune.timer).
Null disables expiry. Overridable per site.
Type: null or (positive integer, meaning >0)
Default:
30
Declared by:
services.muelle.previewVhost
A services.nginx.virtualHosts.<name> module merged into every
next/preview vhost and into the domain vhost (the listing), e.g.
an auth gate. Definitions merge like any vhost definition: per-site
previewVhost and indexVhost add to it, and override its values
with lib.mkForce.
Type: module
Default:
{ }
Example:
{
enableAuth = true;
}
Declared by:
services.muelle.securityHeaders
Deprecated, use headers. When set, these nginx add_header
directives replace headers on every vhost, as before 3.2.0; ""
sends none.
Type: null or strings concatenated with “\n”
Default:
null
Declared by:
services.muelle.sites
Sites that can be deployed.
Type: attribute set of (submodule)
Default:
{ }
Declared by:
services.muelle.sites.<name>.acmeHost
ACME cert (security.acme.certs name) of the prod vhost.
Type: null or string
Default:
domain
Declared by:
services.muelle.sites.<name>.domain
Domain of the prod environment. When set, muelle declares its nginx vhost:
HTTPS only, rooted at root, try_files like next/preview, logs in
/var/log/nginx/<site>-{error,access}.log. Extend it through
services.nginx.virtualHosts.<domain> (e.g. extra locations).
Type: null or string
Default:
null
Example:
"example.com"
Declared by:
services.muelle.sites.<name>.envs
Environments this site may deploy to. [ "prod" ] disables next and previews.
Type: list of (one of “prod”, “next”, “preview”)
Default:
[
"prod"
"next"
"preview"
]
Declared by:
services.muelle.sites.<name>.extraConfig
Extra nginx config for the prod vhost’s server block.
Type: strings concatenated with “\n”
Default:
""
Declared by:
services.muelle.sites.<name>.headers
Response headers of this site’s prod, next/preview and apex vhosts,
merged header by header over services.muelle.headers; null drops one.
Type: attribute set of (null or string)
Default:
{ }
Example:
{
Content-Security-Policy = "frame-ancestors https://partner.example";
X-Frame-Options = null;
}
Declared by:
services.muelle.sites.<name>.immutablePaths
URL path prefixes whose files never change, because their names
carry a content hash (e.g. Astro’s /_astro/, Vite’s /assets/).
They are sent with Cache-Control: public, max-age=31536000, immutable on prod, next and previews, so browsers keep them a
year without revalidating. Never list paths whose files change in
place: browsers would keep stale copies.
Type: list of string matching the pattern /.*
Default:
[ ]
Example:
[
"/_astro/"
]
Declared by:
services.muelle.sites.<name>.previewApex
Apex domain whose next.<apex> and <hash>.<apex> subdomains expose this
site’s next/preview slots: a 302 to <slot>-<site>.<domain>, or the slot
itself with publicPreviews. Needs an ACME cert of the same name covering *.<apex>.
Type: null or string
Default:
null
Example:
"example.com"
Declared by:
services.muelle.sites.<name>.previewTtlDays
Days after its last deploy a preview of this site is removed. Null keeps previews until pruned by count.
Type: null or (positive integer, meaning >0)
Default:
config.services.muelle.previewTtlDays
Declared by:
services.muelle.sites.<name>.previewVhost
A services.nginx.virtualHosts.<name> module merged into this
site’s next/preview vhost, after services.muelle.previewVhost.
Type: module
Default:
{ }
Example:
{ basicAuthFile = "/run/secrets/htpasswd"; }
Declared by:
services.muelle.sites.<name>.prodBranches
Branches allowed to deploy to prod; requests for prod from any other branch are rejected. Null allows every branch. The branch comes from the signed payload, so this guards against mistakes (a feature branch deploying to prod), not against a leaked secret.
Type: null or (list of string)
Default:
[
"main"
]
Example:
[
"main"
"release"
]
Declared by:
services.muelle.sites.<name>.prodUrl
Public URL of the prod environment, reported back to CI.
Type: string
Default:
"https://${domain}" if domain is set
Example:
"https://example.com"
Declared by:
services.muelle.sites.<name>.publicPreviewVhost
A services.nginx.virtualHosts.<name> module merged into this
site’s public next/preview vhost on previewApex (only with
publicPreviews). Neither previewVhost is merged there, so
this is the place for the site’s own settings, such as error pages.
Type: module
Default:
{ }
Example:
{ extraConfig = "error_page 404 /404.html;"; }
Declared by:
services.muelle.sites.<name>.publicPreviews
Serve next/previews on previewApex without previewVhost (no gate) and
report their URLs there. Their content then shares a site with prod: see
Gating previews. <slot>-<site>.<domain> stays as it is.
Type: boolean
Default:
false
Declared by:
services.muelle.sites.<name>.repo
GitHub repository (owner/name) allowed to deploy this site. Artifacts are only fetched from its API.
Type: string matching the pattern [A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+
Example:
"octocat/example.com"
Declared by:
services.muelle.sites.<name>.root
Document root of the prod environment (a symlink flipped on deploy). Use it in your own vhost if domain is unset.
Type: string (read only)
Default:
"${baseDir}/<name>/prod/current"
Declared by:
services.muelle.sites.<name>.secretFile
File holding the HMAC secret for this site (e.g. an agenix secret path).
Read by systemd through LoadCredential, so it can stay root-only.
Use a hex string (openssl rand -hex 32).
Type: absolute path
Declared by:
services.muelle.sites.<name>.securityHeaders
Deprecated, use headers. When set, these nginx add_header
directives replace this site’s headers, as before 3.2.0.
Type: null or strings concatenated with “\n”
Default:
null
Declared by:
services.muelle.stateDir
Status and job files, spool, logs and locks.
Type: string
Default:
"/var/lib/muelle"
Declared by: