challenger/frigate: init
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
# ./services/archivebox.nix
|
# ./services/archivebox.nix
|
||||||
./services/audiobookshelf.nix
|
./services/audiobookshelf.nix
|
||||||
./services/calibre.nix
|
./services/calibre.nix
|
||||||
|
./services/frigate.nix
|
||||||
./services/jellyfin.nix
|
./services/jellyfin.nix
|
||||||
./services/komga.nix
|
./services/komga.nix
|
||||||
./services/nextcloud.nix
|
./services/nextcloud.nix
|
||||||
|
|||||||
49
hosts/challenger/services/frigate.nix
Normal file
49
hosts/challenger/services/frigate.nix
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
{
|
||||||
|
fileSystems = {
|
||||||
|
"/var/lib/frigate" = {
|
||||||
|
device = "/tank/nvr/frigate";
|
||||||
|
depends = [ "/tank/nvr/frigate" ];
|
||||||
|
options = [ "bind" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.frigate = {
|
||||||
|
enable = true;
|
||||||
|
hostname = "frigate.home.feal.no";
|
||||||
|
vaapiDriver = "nvidia";
|
||||||
|
checkConfig = false;
|
||||||
|
settings = {
|
||||||
|
# auth.reset_admin_password = true;
|
||||||
|
motion.enabled = true;
|
||||||
|
record.enabled = true;
|
||||||
|
# snapshots.enabled = true;
|
||||||
|
# detect = {
|
||||||
|
# enabled = true;
|
||||||
|
# fps = 5;
|
||||||
|
# };
|
||||||
|
|
||||||
|
cameras = {
|
||||||
|
driveway = {
|
||||||
|
ffmpeg.inputs = [
|
||||||
|
{
|
||||||
|
path = "rtsp://admin:placeholder@192.168.10.40/streaming/channels/101";
|
||||||
|
roles = [
|
||||||
|
"detect"
|
||||||
|
"record"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services.frigate.serviceConfig = {
|
||||||
|
# Allow GPU use
|
||||||
|
PrivateDevices = false;
|
||||||
|
|
||||||
|
# Allow cpuinfo
|
||||||
|
ProcSubset = "all";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
domain = "komga.home.feal.no";
|
domain = "komga.home.feal.no";
|
||||||
port = 5001;
|
port = 5004;
|
||||||
in {
|
in {
|
||||||
services.komga = {
|
services.komga = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
|
|
||||||
virtualHosts."cloud.feal.no".default = true;
|
virtualHosts."jf.feal.no".default = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
|
|||||||
Reference in New Issue
Block a user