feat: teslamate
This commit is contained in:
parent
60eccadaa8
commit
71f4de2804
8
hosts/architect/postgres.nix
Normal file
8
hosts/architect/postgres.nix
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
postgresql = {
|
||||||
|
enable = true;
|
||||||
|
package = lib.mkForce pkgs.postgresql;
|
||||||
|
};
|
||||||
|
}
|
38
hosts/architect/teslamate.nix
Normal file
38
hosts/architect/teslamate.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
domain = "media.giugl.io";
|
||||||
|
port = 8096;
|
||||||
|
allowLan = true;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# needed since StateDirectory does not accept symlinks
|
||||||
|
systemd.services.jellyfin.serviceConfig.StateDirectory = lib.mkForce "";
|
||||||
|
|
||||||
|
architect.vhost.${domain} = with config.architect.networks; {
|
||||||
|
dnsInterfaces = [ "lan" "tailscale" ];
|
||||||
|
locations = {
|
||||||
|
"/" = {
|
||||||
|
inherit port allowLan;
|
||||||
|
|
||||||
|
allow = [
|
||||||
|
tailscale.net
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
"/socket" = {
|
||||||
|
inherit port allowLan;
|
||||||
|
|
||||||
|
proxyWebsockets = true;
|
||||||
|
allow = [
|
||||||
|
tailscale.net
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.teslamate = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.teslamatePkgs.teslamate;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user