mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
temp
This commit is contained in:
parent
beb00a5718
commit
f1de6cf3ee
2 changed files with 68 additions and 38 deletions
|
|
@ -8,6 +8,7 @@
|
|||
system = {
|
||||
nginx.enable = true;
|
||||
forgejo.enable = true;
|
||||
frigate.enable = true;
|
||||
bitcoin = {
|
||||
enable = true;
|
||||
electrum.enable = true;
|
||||
|
|
@ -124,9 +125,5 @@
|
|||
keyFile = "/var/lib/sops-nix/key.txt";
|
||||
generateKey = true;
|
||||
};
|
||||
secrets = {
|
||||
camera_user = {};
|
||||
camera_pass = {};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,13 @@ let
|
|||
in
|
||||
{ options.modules.system.frigate = { enable = mkEnableOption "Enable Frigate NVR"; };
|
||||
config = mkIf cfg.enable {
|
||||
sops = {
|
||||
secrets = {
|
||||
camera_user = {};
|
||||
camera_pass = {};
|
||||
};
|
||||
};
|
||||
|
||||
services.frigate = {
|
||||
enable = true;
|
||||
hostname = "frigate";
|
||||
|
|
@ -18,46 +25,71 @@ in
|
|||
};
|
||||
cameras = {
|
||||
"Doorbell" = {
|
||||
ffpmeg.inputs = [
|
||||
ffmpeg = {
|
||||
inputs = [
|
||||
{
|
||||
path = "rtsp://$(cat /run/secrets/camera_user):$(cat /run/secrets/camera_pass)@192.168.0.108/cam/realmonitor?channel=1&subtype=0";
|
||||
roles = [ "detect" "record" ];
|
||||
path = "rtsp://user:password@192.168.0.108/cam/realmonitor?channel=1&subtype=0";
|
||||
roles = [ "record" ];
|
||||
}
|
||||
{
|
||||
path = "rtsp://user:password@192.168.0.108/cam/realmonitor?channel=1&subtype=1";
|
||||
roles = [ "detect" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
"Living Room" = {
|
||||
ffpmeg.inputs = [
|
||||
ffmpeg = {
|
||||
inputs = [
|
||||
{
|
||||
path = "rtsp://admin:th3bigbl4ck@192.168.0.181/cam/realmonitor?channel=1&subtype=0";
|
||||
roles = [ "detect" "record" ];
|
||||
path = "rtsp://user:password@192.168.0.181/cam/realmonitor?channel=1&subtype=0";
|
||||
roles = [ "record" ];
|
||||
}
|
||||
{
|
||||
path = "rtsp://user:password@192.168.0.181/cam/realmonitor?channel=1&subtype=1";
|
||||
roles = [ "detect" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
"Kitchen" = {
|
||||
ffpmeg.inputs = [
|
||||
ffmpeg = {
|
||||
inputs = [
|
||||
{
|
||||
path = "rtsp://admin:th3bigbl4ck@192.168.0.181/cam/realmonitor?channel=2&subtype=0";
|
||||
roles = [ "detect" "record" ];
|
||||
path = "rtsp://user:password@192.168.0.181/cam/realmonitor?channel=2&subtype=0";
|
||||
roles = [ "record" ];
|
||||
}
|
||||
{
|
||||
path = "rtsp://user:password@192.168.0.181/cam/realmonitor?channel=2&subtype=1";
|
||||
roles = [ "detect" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
"Parking Lot" = {
|
||||
ffpmeg.inputs = [
|
||||
ffmpeg = {
|
||||
inputs = [
|
||||
{
|
||||
path = "rtsp://admin:th3bigbl4ck@192.168.0.59/cam/realmonitor?channel=1&subtype=0";
|
||||
roles = [ "detect" "record" ];
|
||||
path = "rtsp://user:password@192.168.0.59/cam/realmonitor?channel=1&subtype=0";
|
||||
roles = [ "record" ];
|
||||
}
|
||||
{
|
||||
path = "rtsp://user:password@192.168.0.59/cam/realmonitor?channel=1&subtype=1";
|
||||
roles = [ "detect" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
"Porch" = {
|
||||
ffpmeg.inputs = [
|
||||
ffmpeg = {
|
||||
inputs = [
|
||||
{
|
||||
path = "rtsp://admin:th3bigbl4ck@192.168.0.108/cam/realmonitor?channel=1&subtype=0";
|
||||
roles = [ "detect" "record" ];
|
||||
path = "rtsp://user:password@192.168.0.108/cam/realmonitor?channel=1&subtype=0";
|
||||
roles = [ "record" ];
|
||||
}
|
||||
{
|
||||
path = "rtsp://user:password@192.168.0.108/cam/realmonitor?channel=1&subtype=1";
|
||||
roles = [ "detect" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
@ -65,4 +97,5 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue