From 22d52b8ed4faf55be5d37790e9f84b24fdec80eb Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 27 Sep 2020 15:58:38 +0200 Subject: l hass: add love option --- lass/3modules/hass.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lass/3modules/hass.nix b/lass/3modules/hass.nix index 30158e78..96521aaa 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; }; } -- cgit v1.2.3