homepage
Customizable application dashboard
Example
{
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
nps.stacks.homepage.bookmarks
Homepage bookmarks configuration.
YAML 1.1 value
[ ]
[
{
Developer = [
{
Github = [
{
abbr = "GH";
href = "https://github.com/";
}
];
}
];
}
{
Entertainment = [
{
YouTube = [
{
abbr = "YT";
href = "https://youtube.com/";
}
];
}
];
}
]
nps.stacks.homepage.docker
Homepage docker configuration.
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.
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
string
config.sops.secrets."immich/authelia/client_secret".path"
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:
- As a literal string
- As an absolute path to a file containing the hash (
toFile) - As an absolute oath to a file containing the client_secret, in which case the hash will be automatically computed (
toHash) - 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.
null or string or (submodule)
null
# 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
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:
nps.stacks.homepage.oidc.userGroup
Users of this group will be able to log in
nps.stacks.homepage.services
Homepage services configuration.
YAML 1.1 value
{ }
{
"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/";
};
};
}
nps.stacks.homepage.settings
Homepage settings.
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.
boolean
config.nps.stacks.docker-socket-proxy.enable
nps.stacks.homepage.widgets
Homepage widgets configuration.
YAML 1.1 value
[ ]
[
{
resources = {
cpu = true;
disk = "/";
memory = true;
};
}
{
search = {
provider = "duckduckgo";
target = "_blank";
};
}
]
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:
{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.
services.podman.containers.<name>.homepage.name
The name of the service as it will appear on the Homepage dashboard. Defaults to the container name.
string
lib.toSentenceCase <containerName>
services.podman.containers.<name>.homepage.settings
Settings for the Homepage service. This can include icon, href, description, widget configuration, etc.
Container Aliases
nps.stacks.homepage.containers.homepage
Alias of {option}services.podman.containers.homepage.
