summaryrefslogtreecommitdiff
path: root/sys/home-assistant/yaml-extra.nix
blob: 6275e12109ac55d6607046f3ffb2f3cab5b4999b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
            };
          };
        };
      });
    };
  };
}