Base Settings
Most stacks will rely on some central settings. An example would be the base location where containers should create bind mounts for persistent data.
Example
{config, ...}: {
hostIP4Address = "192.168.178.2";
hostUid = 1000;
storageBaseDir = "${config.home.homeDirectory}/stacks";
externalStorageBaseDir = "/mnt/hdd";
}Options
nps.defaultGid
GID of the user that will be used by default for containers if they allow GID configuration. When running rootless containers, GID 0 gets mapped to the host users GID.
nps.defaultTz
Default timezone for containers.
Will be passed to all containers as TZ environment variable.
nps.defaultUid
UID of the user that will be used by default for containers if they allow UID configuration. When running rootless containers, UID 0 gets mapped to the host users UID.
nps.enableSocket
Whether to enable the Podman socket for user services. Note that the socket is required for the services like Traefik or Homepage to run successfully, since they access the Podman API.
If this is disabled and you use these services, you will need to manually enable the socket.
nps.externalStorageBaseDir
Base location that will be used for larger data such as downloads or media files. Could be an external disk.
nps.hostIP4Address
The IPv4 address which will be used in case explicit bindings are required.
nps.hostUid
UID of the host user running the containers. Will be used to infer the Podman socket location (XDG_RUNTIME_DIR).
nps.mediaStorageBaseDir
Base location for larger media files. This is where containers like Jellyfin or Immich will store their media files.
absolute path
"${config.nps.externalStorageBaseDir}/media"
nps.package
The podman package to use.
nps.socketLocation
The location of the Podman socket for user services. Will be passed to containers that communicate with the Podman API, such as Traefik, Homepage or Beszel.
absolute path
"/run/user/${toString config.nps.hostUid}/podman/podman.sock"
nps.storageBaseDir
Base directory for Podman storage.
This is where each stack will create its bind mounts for persistent data.
For example, setting this to /home/foo/stacks would result in Adguard creating its bind mount at /home/foo/stacks/adguard.
absolute path
"${config.home.homeDirectory}/stacks"