feat: Split all the services into their own files

This commit is contained in:
uttarayan21
2025-01-05 23:16:00 +05:30
parent 3e70fa7efb
commit 35676b7383
11 changed files with 348 additions and 295 deletions

View File

@@ -0,0 +1,41 @@
{
config,
pkgs,
...
}: {
services = {
home-assistant = {
enable = false;
extraComponents = [
"esphome"
"met"
"radio_browser"
"wiz"
];
customComponents = [
pkgs.home-assistant-custom-components.auth-header
];
config = {
default_config = {};
http = {
server_host = "::1";
trusted_proxies = ["::1"];
use_x_forwarded_for = true;
};
auth_header = {
username_header = "Remote-User";
};
};
};
caddy = {
virtualHosts."home.darksailor.dev".extraConfig = ''
forward_auth localhost:5555 {
uri /api/authz/forward-auth
copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
}
reverse_proxy localhost:8123
'';
};
};
}