diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2020-06-02 01:48:35 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2020-06-02 15:51:35 +0200 |
commit | da6b277f96980b4e1819714364256573062a6eae (patch) | |
tree | ec483cba43bcadf9788977f20ecfb9c7a3885fb2 /nixos/modules/services | |
parent | b6f084797a4f4e38b6fdca49c750f8ea017f3e0a (diff) | |
download | nixlib-da6b277f96980b4e1819714364256573062a6eae.tar nixlib-da6b277f96980b4e1819714364256573062a6eae.tar.gz nixlib-da6b277f96980b4e1819714364256573062a6eae.tar.bz2 nixlib-da6b277f96980b4e1819714364256573062a6eae.tar.lz nixlib-da6b277f96980b4e1819714364256573062a6eae.tar.xz nixlib-da6b277f96980b4e1819714364256573062a6eae.tar.zst nixlib-da6b277f96980b4e1819714364256573062a6eae.zip |
nixos/home-assistant: allow arbitrary yaml functions
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/misc/home-assistant.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/nixos/modules/services/misc/home-assistant.nix b/nixos/modules/services/misc/home-assistant.nix index 86033d02bf3f..8ce2437841b0 100644 --- a/nixos/modules/services/misc/home-assistant.nix +++ b/nixos/modules/services/misc/home-assistant.nix @@ -11,9 +11,9 @@ let (recursiveUpdate defaultConfig cfg.config) else cfg.config)); configFile = pkgs.runCommand "configuration.yaml" { preferLocalBuild = true; } '' ${pkgs.remarshal}/bin/json2yaml -i ${configJSON} -o $out - # Hack to support secrets, that are encoded as custom yaml objects, - # https://www.home-assistant.io/docs/configuration/secrets/ - sed -i -e "s/'\!secret \(.*\)'/\!secret \1/" $out + # Hack to support custom yaml objects, + # i.e. secrets: https://www.home-assistant.io/docs/configuration/secrets/ + sed -i -e "s/'\!\([a-z_]\+\) \(.*\)'/\!\1 \2/;s/^\!\!/\!/;" $out ''; lovelaceConfigJSON = pkgs.writeText "ui-lovelace.json" @@ -120,7 +120,9 @@ in { unit_system = "metric"; time_zone = "UTC"; }; - frontend = { }; + frontend = { + themes = "!include_dir_merge_named themes"; + }; http = { }; feedreader.urls = [ "https://nixos.org/blogs.xml" ]; } |