summaryrefslogtreecommitdiff
path: root/sys/home-assistant/yaml-extra.nix
diff options
context:
space:
mode:
Diffstat (limited to 'sys/home-assistant/yaml-extra.nix')
-rw-r--r--sys/home-assistant/yaml-extra.nix22
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;
+ };
+ };
+ };
+ });
+ };
+ };
+}