services.glance.environmentFile
NixOS option
Path to an environment file as defined in systemd.exec(5). See upstream documentation https://github.com/glanceapp/glance/blob/main/docs/configuration.md#environment-variables. Example content of the file: TIMEZONE=Europe/Paris Example services.glance.settings.pages configuration: [ { name = "Home"; columns = [ { size = "full"; widgets = [ { type = "clock"; timezone = "\${TIMEZONE}"; label = "Local Time"; } ]; } ]; } ]; Note that when using Glance’s ${ENV_VAR} syntax in Nix, you need to escape it as follows: use \${ENV_VAR} in " strings and ''${ENV_VAR} in '' strings. Alternatively, you can put each secret in it’s own file, see services.glance.settings.
type: null or absolute pathDefault
"/dev/null"
Example
declared in: nixos/modules/services/web-apps/glance.nixView source on NixOS/nixpkgs →"/var/lib/secrets/glance"