diff --git a/hosts/hl-bigbox1.nix b/hosts/hl-bigbox1.nix index 9ad5134..e6ca799 100644 --- a/hosts/hl-bigbox1.nix +++ b/hosts/hl-bigbox1.nix @@ -10,10 +10,8 @@ boot.loader.efi.canTouchEfiVariables = true; boot.tmp.useTmpfs = true; boot.kernelPackages = pkgs.linuxPackages_latest; - #systemd.enableUnifiedCgroupHierarchy = false; - # Containers + # Containers virtualisation.oci-containers = { - backend = "docker"; containers = { ollama = { autoStart = true; diff --git a/hosts/hl-minipc2.nix b/hosts/hl-minipc2.nix index fcb64ee..bf53680 100644 --- a/hosts/hl-minipc2.nix +++ b/hosts/hl-minipc2.nix @@ -10,5 +10,25 @@ # Special udev rule for google's coral tpu homelab.udevrules.coraltpu.enable = true; + + # Containers + virtualisation.oci-containers = { + containers = { + scrypted = { + autoStart = true; + image = "ghcr.io/koush/scrypted"; + extraOptions = [ "--network=host" ]; + volumes = [ + "/var/run/dbus:/var/run/dbus" + "/var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket" + "/opt/homelab/scrypted/db:/server/volume" + "/mnt/EightTerra/NVR:/nvr" + ]; + environment = { + SCRYPTED_NVR_VOLUME = "/nvr"; + }; + }; + }; + }; } diff --git a/modules/network-drives.nix b/modules/network-drives.nix index e110f02..09ac2c9 100644 --- a/modules/network-drives.nix +++ b/modules/network-drives.nix @@ -10,4 +10,10 @@ fsType = "nfs"; options = [ "x-systemd.automount" "noauto" ]; }; + + fileSystems."/mnt/EightTerra/NVR" = { + device = "tnas1.lab.internal:/mnt/EightTerra/NVR"; + fsType = "nfs"; + options = [ "x-systemd.automount" "noauto" ]; + }; } diff --git a/modules/os/containers/docker.nix b/modules/os/containers/docker.nix index 7a17be8..cb730fb 100644 --- a/modules/os/containers/docker.nix +++ b/modules/os/containers/docker.nix @@ -11,4 +11,5 @@ }; environment.systemPackages = with pkgs; [ docker-compose ]; users.users.${user.name}.extraGroups = [ "docker" ]; + virtualisation.oci-containers.backend = "docker"; }