services.glance.environmentFile

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 path
Default
"/dev/null"
Example
"/var/lib/secrets/glance"
Declared
<nixpkgs/nixos/modules/services/web-apps/glance.nix>