frigate: initial setup
Some checks failed
flake / flake (push) Failing after 35s

This commit is contained in:
Jake Hillion 2024-09-08 17:35:41 +01:00
parent 39730d2ec3
commit 7ef4c09317
4 changed files with 33 additions and 0 deletions

View File

@ -21,6 +21,7 @@ in
services = {
authoritative_dns = [ "boron.cx.ts.hillion.co.uk" ];
downloads = "tywin.storage.ts.hillion.co.uk";
frigate = "boron.cx.ts.hillion.co.uk";
gitea = "boron.cx.ts.hillion.co.uk";
homeassistant = "microserver.home.ts.hillion.co.uk";
mastodon = "";

View File

@ -40,6 +40,7 @@ in
restic.tywin.storage 21600 CNAME tywin.storage.ts.hillion.co.uk.
sonarr.downloads 21600 CNAME tywin.storage.ts.hillion.co.uk.
zigbee2mqtt.home 21600 CNAME router.home.ts.hillion.co.uk.
frigate 21600 CNAME boron.cx.ts.hillion.co.uk.
'' + (makeRecords "A" config.custom.dns.authoritative.ipv4.uk.co.hillion.ts) + "\n\n" + (makeRecords "AAAA" config.custom.dns.authoritative.ipv6.uk.co.hillion.ts);
};

View File

@ -4,6 +4,7 @@
imports = [
./authoritative_dns.nix
./downloads.nix
./frigate.nix
./gitea/default.nix
./homeassistant.nix
./mastodon/default.nix

View File

@ -0,0 +1,30 @@
{ config, pkgs, lib, ... }:
let
cfg = config.custom.services.frigate;
in
{
options.custom.services.frigate = {
enable = true;
};
config = lib.mkIf cfg.enable {
services.frigate = {
enable = true;
};
services.caddy = {
enable = true;
virtualHosts = [{
name = "frigate.ts.hillion.co.uk";
extraConfig = ''
reverse_proxy SOMEWHERE
tls {
ca https://ca.ts.hillion.co.uk:8443/acme/acme/directory
}
'';
}];
};
};
}