mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-21 14:34:05 -05:00
I haven't slept for 24 hours I literally couldn't care less
This commit is contained in:
parent
5b53eff0f3
commit
f24fc3fea2
9 changed files with 72 additions and 58 deletions
|
|
@ -25,6 +25,9 @@ let
|
|||
enabled = true;
|
||||
host = "host.containers.internal";
|
||||
port = 1883;
|
||||
topic_prefix = "frigate";
|
||||
user = "{FRIGATE_MQTT_USER}";
|
||||
password = "{FRIGATE_MQTT_PASSWORD}";
|
||||
};
|
||||
ui = {
|
||||
timezone = "America/New_York";
|
||||
|
|
@ -78,7 +81,7 @@ let
|
|||
####################
|
||||
record = {
|
||||
enabled = true;
|
||||
retain.days = 0; # as per official documentation
|
||||
continuous.days = 0; # as per official documentation
|
||||
alerts.retain.days = 14;
|
||||
detections.retain.days = 14;
|
||||
};
|
||||
|
|
@ -146,11 +149,19 @@ in
|
|||
sops = {
|
||||
templates."frigate_env".content = ''
|
||||
FRIGATE_JWT_SECRET=${config.sops.placeholder."frigate/jwt"}
|
||||
FRIGATE_MQTT_USER=${config.sops.placeholder."frigate/mqtt/user"}
|
||||
FRIGATE_MQTT_PASSWORD=${config.sops.placeholder."frigate/mqtt/pass"}
|
||||
'';
|
||||
secrets = {
|
||||
"frigate/jwt" = {
|
||||
sopsFile = "${sopsFolder}/services.yaml";
|
||||
};
|
||||
"frigate/mqtt/user" = {
|
||||
sopsFile = "${sopsFolder}/services.yaml";
|
||||
};
|
||||
"frigate/mqtt/pass" = {
|
||||
sopsFile = "${sopsFolder}/services.yaml";
|
||||
};
|
||||
};
|
||||
};
|
||||
systemd.tmpfiles.rules = [
|
||||
|
|
@ -163,7 +174,7 @@ in
|
|||
virtualisation.quadlet = {
|
||||
containers = {
|
||||
frigate.containerConfig = {
|
||||
image = "ghcr.io/blakeblackshear/frigate:0.17.0-beta1";
|
||||
image = "ghcr.io/blakeblackshear/frigate:0.17.0-beta2";
|
||||
environmentFiles = [ config.sops.templates."frigate_env".path ];
|
||||
devices = [
|
||||
"/dev/bus/usb:/dev/bus/usb"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue