Skip to content

homepage

Customizable application dashboard

Example

nix
{
  nps.stacks.homepage = {
    enable = true;

    containers.homepage.volumes = [
      "/hostpath/to/image:/app/public/images/background.jpg"
    ];
    settings.background = {
      image = "/images/background.jpg";
      opacity = 50;
    };
    widgets = [
      {
        openweathermap = {
          units = "metric";
          cache = 5;
          apiKey.path = config.sops.secrets."OPENWEATHERMAP_API_KEY".path;
        };
      }
    ];
  };
}

Stack Options

nps.stacks.homepage.authSecretFile

Path to a file containing the auth secret. Only required if OIDC Is enabled. You can generate a secret using `openssl rand -base64 32.

See https://gethomepage.dev/installation/#security-authentication

Type
plaintext
absolute path
Declaration

nps.stacks.homepage.bookmarks

Homepage bookmarks configuration.

See https://gethomepage.dev/configs/bookmarks/.

Type
plaintext
YAML 1.1 value
Default
nix
[ ]
Example
nix
[
  {
    Developer = [
      {
        Github = [
          {
            abbr = "GH";
            href = "https://github.com/";
          }
        ];
      }
    ];
  }
  {
    Entertainment = [
      {
        YouTube = [
          {
            abbr = "YT";
            href = "https://youtube.com/";
          }
        ];
      }
    ];
  }
]
Declaration

nps.stacks.homepage.docker

Homepage docker configuration.

See https://gethomepage.dev/configs/docker/.

Type
plaintext
YAML 1.1 value
Default
nix
{ }
Declaration

nps.stacks.homepage.enable

Whether to enable the Homepage stack.

The services of enabled stacks will be automatically added to Homepage. The module will also automatically configure the docker integration for the local host and setup some widgets.

Type
plaintext
boolean
Default
nix
false
Example
nix
true
Declaration

nps.stacks.homepage.oidc.clientSecretFile

The file containing the client secret for the OIDC client that will be registered in Authelia.

For examples on how to generate a client secret, see

https://www.authelia.com/integration/openid-connect/frequently-asked-questions/#client-secret

Type
plaintext
string
Example
nix
config.sops.secrets."immich/authelia/client_secret".path"
Declaration

nps.stacks.homepage.oidc.clientSecretHash

The client secret hash. For examples on how to generate a client secret, see https://www.authelia.com/integration/openid-connect/frequently-asked-questions/#client-secret

The value can be passed in multiple ways:

  1. As a literal string
  2. As an absolute path to a file containing the hash (toFile)
  3. As an absolute oath to a file containing the client_secret, in which case the hash will be automatically computed (toHash)
  4. As null

If left unset (null), the client secret will be read from the file specified in the clientSecretFile option and hashed automatically before being passed to the Authelia container.

Type
plaintext
null or string or (submodule)
Default
nix
null
Example
nix
# Literal String:
"$pbkdf2-sha512$310000$cbOAIWbfz3vCVXIPIp6d2A$J0klwULa6TvPRCU1HAfuKua/dMKTl8gbTYJz2N73ejGUu0LUGz/y3kwmJLuKuAYGg3WQOT0q9ZzVHHUvpKpgvQ"

# Client secret hash stored in a file
{ fromFile = config.sops.secrets."immich/client_secret_hash".path; }

# Client secret stored in a file: Hash will be computed dynamically
{ toHash = config.sops.secrets."immich/client_secret".path; }

# Null (default): Hash will be computed automatically based on the clientSecretFile option
# Equivalent to { toHash = cfg.oidc.clientSecretFile; }
null
Declaration

nps.stacks.homepage.oidc.enable

Whether to enable OIDC login with Authelia. This will register an OIDC client in Authelia and setup the necessary configuration.

For details, see:

Type
plaintext
boolean
Default
nix
false
Declaration

nps.stacks.homepage.oidc.userGroup

Users of this group will be able to log in

Type
plaintext
string
Default
nix
"homepage_user"
Declaration

nps.stacks.homepage.services

Homepage services configuration.

See https://gethomepage.dev/configs/services/.

Type
plaintext
YAML 1.1 value
Default
nix
{ }
Example
nix
{
  "My First Group" = {
    "My First Service" = {
      description = "Some Service";
      href = "http://localhost/";
    };
  };
  "My Second Group" = {
    "My Second Service" = {
      description = "Some other Service";
      href = "http://localhost/";
    };
  };
}
Declaration

nps.stacks.homepage.settings

Type
plaintext
YAML 1.1 value
Default
nix
{ }
Declaration

nps.stacks.homepage.useSocketProxy

Whether to access the Podman socket through the read-only proxy for the homepage stack. Will be enabled by default if the 'docker-socket-proxy' stack is enabled.

Type
plaintext
boolean
Default
nix
config.nps.stacks.docker-socket-proxy.enable
Declaration

nps.stacks.homepage.widgets

Homepage widgets configuration.

See https://gethomepage.dev/widgets/.

Type
plaintext
YAML 1.1 value
Default
nix
[ ]
Example
nix
[
  {
    resources = {
      cpu = true;
      disk = "/";
      memory = true;
    };
  }
  {
    search = {
      provider = "duckduckgo";
      target = "_blank";
    };
  }
]
Declaration

Container Extension

Homepage adds the homepage container options to the existing services.podman.containers.<name> options. Setting the category automatically adds the container to the Homepage dashboard under that category.

The name defaults to the container name, the service href is automatically set to the URL registered in Traefik. Additional settings (icon, description, widget configuration, ...) can be provided via the settings attribute, see https://gethomepage.dev/configs/services/.

To hide a service from the dashboard, set the category option to null.

Example:

nix
{config, ...}: {
  nps.stacks.homepage.enable = true;

  nps.stacks.streaming.containers.jellyfin.homepage = {
    category = "Media";
    name = "Jellyfin";
    settings = {
      description = "Media Server";
      icon = "jellyfin";
    };
  };
}

services.podman.containers.<name>.homepage.category

The category under which the service will be listed on the Homepage dashboard.

Type
plaintext
null or string
Default
nix
null
Declaration

services.podman.containers.<name>.homepage.name

The name of the service as it will appear on the Homepage dashboard. Defaults to the container name.

Type
plaintext
string
Default
nix
lib.toSentenceCase <containerName>
Declaration

services.podman.containers.<name>.homepage.settings

Settings for the Homepage service. This can include icon, href, description, widget configuration, etc.

See https://gethomepage.dev/configs/services/#services/

Type
plaintext
YAML 1.1 value
Default
nix
{ }
Declaration

Container Aliases

nps.stacks.homepage.containers.homepage

Alias of {option}services.podman.containers.homepage.

Type
plaintext
submodule
Declaration