nixos/modules/heimdall/default.nix
Andreas Zweili ee838b2f2e Add a tag to the heimdall container
This correctly labels it in the system logs otherwise you only see the id
2023-03-03 17:33:17 +01:00

27 lines
681 B
Nix

{ ... }:
{
virtualisation.oci-containers = {
backend = "docker";
containers."heimdall" = {
image = "linuxserver/heimdall:2.5.5";
autoStart = true;
environment = {
TZ = "Europe/Zurich";
PUID = "1000";
PGID = "100";
};
ports = [
"8081:80"
];
volumes = [
"/etc/localtime:/etc/localtime:ro"
];
extraOptions = [
''--mount=type=volume,source=heimdall,target=/config,volume-driver=local,volume-opt=type=nfs,volume-opt=device=:/server_data/heimdall,"volume-opt=o=addr=10.7.89.108,rw,nfsvers=4.0,nolock,hard,noatime"''
"--log-opt=tag='heimdall'"
];
};
};
}