diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-07-21 16:37:28 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-07-21 16:42:16 -0600 |
| commit | 16eea6871447e2bda93800825c07468045731bdc (patch) | |
| tree | 6cadb480f72e2a878ee67c92babc84f87587cdb5 /sys/home-assistant/yaml-extra.nix | |
| parent | b1f3d839adc88b024e3a79d09b54a1939b78edba (diff) | |
sys/home-assistant: enable proxy forwarding from dmz
Diffstat (limited to 'sys/home-assistant/yaml-extra.nix')
| -rw-r--r-- | sys/home-assistant/yaml-extra.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/home-assistant/yaml-extra.nix b/sys/home-assistant/yaml-extra.nix new file mode 100644 index 0000000..6275e12 --- /dev/null +++ b/sys/home-assistant/yaml-extra.nix @@ -0,0 +1,22 @@ +{ lib, ... }: +with lib; { + options.services.home-assistant = { + config = mkOption { + type = with lib.types; nullOr (submodule { + options = { + http = { + use_x_forwarded_for = mkOption { + type = nullOr bool; + default = null; + }; + + trusted_proxies = mkOption { + type = nullOr (either str (listOf str)); + default = null; + }; + }; + }; + }); + }; + }; +} |
