refactor services as modules
This commit is contained in:
parent
a673e92979
commit
8cb0676ca5
6 changed files with 110 additions and 87 deletions
30
nixos/viridian/services/home-assistant/default.nix
Normal file
30
nixos/viridian/services/home-assistant/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
# Home automation that puts local control and privacy first.
|
||||
services.home-assistant = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
extraComponents = [
|
||||
# Components required to complete the onboarding
|
||||
"esphome"
|
||||
"met"
|
||||
"radio_browser"
|
||||
"adguard"
|
||||
"jellyfin"
|
||||
];
|
||||
config = {
|
||||
# Includes dependencies for a basic setup
|
||||
# https://www.home-assistant.io/integrations/defaultoconfig/
|
||||
default_config = {};
|
||||
http = {
|
||||
use_x_forwarded_for = true;
|
||||
trusted_proxies = [
|
||||
"192.168.1.102"
|
||||
];
|
||||
};
|
||||
};
|
||||
configDir = "/var/lib/home-assistant";
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue