31 lines
865 B
Nix
31 lines
865 B
Nix
{ config, ... }:
|
|
let
|
|
app = config.skyg.internalNetworkingMap.apps.nvr;
|
|
in
|
|
{
|
|
skyg.nixos.common.container-services.scrypted = {
|
|
enable = true;
|
|
autoUpdate.enable = true;
|
|
networks.lan = config.skyg.nixos.common.containers.networks.ipvlanLab.compose;
|
|
services.scrypted = {
|
|
image = "ghcr.io/koush/scrypted";
|
|
networks.lan.ipv4_address = app.ip;
|
|
volumes = [
|
|
"/var/run/dbus:/var/run/dbus"
|
|
"/var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket"
|
|
"/opt/homelab/scrypted/db:/server/volume"
|
|
"scrypted-nvr:/nvr"
|
|
];
|
|
environment.SCRYPTED_NVR_VOLUME = "/nvr";
|
|
};
|
|
volumes.scrypted-nvr = {
|
|
driver = "local";
|
|
driver_opts = {
|
|
type = "nfs";
|
|
o = "addr=tnas1.lab.internal,rw,nfsvers=4.0,nolock,hard,noatime";
|
|
device = ":/mnt/OneT/NVR";
|
|
};
|
|
};
|
|
};
|
|
}
|