diff options
author | lassulus <lassulus@lassul.us> | 2020-09-27 15:58:38 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2020-09-27 15:58:38 +0200 |
commit | 22d52b8ed4faf55be5d37790e9f84b24fdec80eb (patch) | |
tree | 1947fdc279d62dd72e0ab8546c24d9e78c8c1c64 /lass/3modules | |
parent | 9b5c11239956ff5cd7a24fe1ef32cd49a3aa8d26 (diff) |
l hass: add love option
Diffstat (limited to 'lass/3modules')
-rw-r--r-- | lass/3modules/hass.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lass/3modules/hass.nix b/lass/3modules/hass.nix index 30158e78a..96521aaa9 100644 --- a/lass/3modules/hass.nix +++ b/lass/3modules/hass.nix @@ -22,6 +22,22 @@ in { }; in valueType; }; + love = mkOption { + default = {}; + type = with lib.types; let + valueType = nullOr (oneOf [ + bool + int + float + str + (attrsOf valueType) + (listOf valueType) + ]) // { + description = "Yaml value"; + emptyValue.value = {}; + }; + in valueType; + }; }; config = @@ -29,6 +45,7 @@ in { mkIf (cfg.config != {}) { services.home-assistant.config = cfg.config; + # services.home-assistant.lovelaceConfig = cfg.love; }; } |