From 16eea6871447e2bda93800825c07468045731bdc Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 21 Jul 2024 16:37:28 -0600 Subject: sys/home-assistant: enable proxy forwarding from dmz --- sys/home-assistant/yaml-extra.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sys/home-assistant/yaml-extra.nix (limited to 'sys/home-assistant/yaml-extra.nix') 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; + }; + }; + }; + }); + }; + }; +} -- cgit v1.2.3