added scrypted to minipc2
This commit is contained in:
1 parent
ea5d67a0d0
commit
f1c5d1998e
4 files changed
+28
-3
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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" ];
|
||||
};
|
||||
}
|
||||
@@ -11,4 +11,5 @@
|
||||
};
|
||||
environment.systemPackages = with pkgs; [ docker-compose ];
|
||||
users.users.${user.name}.extraGroups = [ "docker" ];
|
||||
virtualisation.oci-containers.backend = "docker";
|
||||
}
|
||||
Reference in new issue
Block a user