glance
Highly customizable dashboard
Example
{config, ...}: {
nps.stacks.glance = {
enable = true;
settings.pages.home = {
columns.start = {
rank = 500;
size = "small";
widgets = [
{
type = "server-stats";
servers = [
{
type = "local";
name = "Server";
}
];
}
{
type = "reddit";
subreddit = "selfhosted";
collapse-after = 3;
}
];
};
};
};
}Stack Options
nps.stacks.glance.enable
Whether to enable glance.
nps.stacks.glance.settings
Settings that will be provided as the glance.yml configuration file.
See https://github.com/glanceapp/glance/blob/main/docs/configuration.md#configuring-glance
nps.stacks.glance.settings.pages
This option has no description.
nps.stacks.glance.settings.pages.<name>.columns
The columns to display on the page
nps.stacks.glance.settings.pages.<name>.columns.<name>.rank
The order of the column on the page.
nps.stacks.glance.settings.pages.<name>.columns.<name>.size
The size of the column.
nps.stacks.glance.settings.pages.<name>.name
The name of the page. Default to the attribute name.
nps.stacks.glance.useSocketProxy
Whether to access the Podman socket through the read-only proxy for the glance stack. Will be enabled by default if the 'docker-socket-proxy' stack is enabled.
boolean
config.nps.stacks.docker-socket-proxy.enable
nps.stacks.glance.userCss
Custom CSS settings.
See https://github.com/glanceapp/glance/blob/main/docs/configuration.md#custom-css-file
Container Extension
Glance adds the glance container options to the existing services.podman.containers.<name> options. Setting the category automatically adds the container to a docker-containers widget on the dashboard.
The name defaults to the container name, the url defaults to the URL registered in Traefik. Additional settings (icon, description, href, ...) can be provided via freeform attributes, see https://github.com/glanceapp/glance/blob/main/docs/configuration.md#docker-containers.
Example:
{config, ...}: {
nps.stacks.glance.enable = true;
nps.stacks.streaming.containers.jellyfin.glance = {
category = "Media";
name = "Jellyfin";
description = "Media Server";
icon = "si:jellyfin";
};
}services.podman.containers.<name>.glance
Settings for the service.
See https://github.com/glanceapp/glance/blob/main/docs/configuration.md#docker-containers
open submodule of (YAML 1.1 value)
{ }
services.podman.containers.<name>.glance.category
The category under which the service will be listed on the dashboard.
services.podman.containers.<name>.glance.name
The name of the service as it will displayed on the dashboard.
string
lib.toSentenceCase <containerName>
services.podman.containers.<name>.glance.url
The URL of the service.
Container Aliases
nps.stacks.glance.containers.glance
Alias of {option}services.podman.containers.glance.
