summary refs log tree commit diff
path: root/pkgs/servers/home-assistant/default.nix
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-01-28 22:57:11 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-11-10 22:00:12 +0100
commitd4914b6d157ca82a478e76e44c1c7f530d43f587 (patch)
tree3cd1846cda51b3979da220e45093ba778f2de610 /pkgs/servers/home-assistant/default.nix
parent3dc0248dbc70fdba6d1a668ed00b4678dfae098c (diff)
home-assistant: allow symlinks in static folder
Home Assistant by default does not follow symlinks in its static
folders, which doesn't mix well with serving anything from the nix
store.
Diffstat (limited to 'pkgs/servers/home-assistant/default.nix')
-rw-r--r--pkgs/servers/home-assistant/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix
index 3fb3e244928ca..c782d36d87f2a 100644
--- a/pkgs/servers/home-assistant/default.nix
+++ b/pkgs/servers/home-assistant/default.nix
@@ -396,6 +396,10 @@ in python.pkgs.buildPythonApplication rec {
 
   # leave this in, so users don't have to constantly update their downstream patch handling
   patches = [
+    # Follow symlinks in /var/lib/hass/www
+    ./patches/static-symlinks.patch
+
+    # Patch path to ffmpeg binary
     (substituteAll {
       src = ./patches/ffmpeg-path.patch;
       ffmpeg = "${lib.getBin ffmpeg-headless}/bin/ffmpeg";