Skip to main content
Version: v0.0.3

NixOS Module

The NixOS module services.iglu-cache is the easiest way to deploy the Iglu-Cache on NixOS. The definition can be found here.

services.iglu-cache.​

OptionDefaultTypeDescription
enablefalseboolIglu-cache service.
packagepkgs.iglu-cachepackageThe Iglu cache package to runs.
user"iglu"strUser account under which iglu-cache runs.
group"iglu"strGroup under which iglu-cache runs.
dataDir"/var/lib/iglu-cache"strPath where derivations are stored.
openFirewallfalseboolOpen ports in the firewall for the iglu-cache.

services.iglu-cache.database.​

This options configure the database. It creates a postgresql instance if you set services.iglu-cache.database.type = "postgres"; and services.iglu-cache.database.createLocally = true;. Additionally are the database settings in the config.toml set by this config.

host, port, user, passwordFile only matter for postgres. createLocally requires type = "postgres".

OptionDefaultTypeDescription
type"sqlite"enum: sqlite, postgresWhich database type is used.
createLocallyfalseboolCreate the database and database user locally.
name"iglu"strDatabase name.
usercfg.userstrDatabase user.
passwordFilenullnullOr strFull path to a file containing the database password.
host"/var/run/postgresql"strHost where the database is stored.
port5432portPort of the database connection.

services.iglu-cache.settings.​

These options are the same as the ones from the config.toml (see here).

danger

The [database] settings are overwriten by services.iglu-cache.database!

services.iglu-cache.settings.storage.​

danger

S3 settings are not implemented yet!