summary refs log tree commit diff
path: root/nixos/tests/home-assistant.nix
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-02-03 12:45:52 +0100
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-02-03 13:08:11 +0100
commitf85453f060b4756a3d55c2d3a6563be19f41dfe6 (patch)
treeb331a7d98c10abe04073dc41789321ca6264326f /nixos/tests/home-assistant.nix
parentf908f6c9827288cdd0dda84d28738d300377a8b2 (diff)
downloadnixpkgs-f85453f060b4756a3d55c2d3a6563be19f41dfe6.tar
nixpkgs-f85453f060b4756a3d55c2d3a6563be19f41dfe6.tar.gz
nixpkgs-f85453f060b4756a3d55c2d3a6563be19f41dfe6.tar.bz2
nixpkgs-f85453f060b4756a3d55c2d3a6563be19f41dfe6.tar.lz
nixpkgs-f85453f060b4756a3d55c2d3a6563be19f41dfe6.tar.xz
nixpkgs-f85453f060b4756a3d55c2d3a6563be19f41dfe6.tar.zst
nixpkgs-f85453f060b4756a3d55c2d3a6563be19f41dfe6.zip
nixos/home-assistant: add configWritable option
Diffstat (limited to 'nixos/tests/home-assistant.nix')
-rw-r--r--nixos/tests/home-assistant.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/nixos/tests/home-assistant.nix b/nixos/tests/home-assistant.nix
index 9e97ed4c47e..00a0e82fedc 100644
--- a/nixos/tests/home-assistant.nix
+++ b/nixos/tests/home-assistant.nix
@@ -61,6 +61,7 @@ in {
               } ];
             } ];
           };
+          lovelaceConfigWritable = true;
         };
       };
   };
@@ -70,9 +71,10 @@ in {
     $hass->waitForUnit("home-assistant.service");
 
     # The config is specified using a Nix attribute set,
-    # but then converted from JSON to YAML
+    # converted from JSON to YAML, and linked to the config dir
     $hass->succeed("test -L ${configDir}/configuration.yaml");
-    $hass->succeed("test -L ${configDir}/ui-lovelace.yaml");
+    # The lovelace config is copied because lovelaceConfigWritable = true
+    $hass->succeed("test -f ${configDir}/ui-lovelace.yaml");
 
     # Check that Home Assistant's web interface and API can be reached
     $hass->waitForOpenPort(8123);