!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

505 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant132 Servers

Load older messages


SenderMessageTime
9 Feb 2025
@hexa:lossy.network@hexa:lossy.network and you possibly need to also set allowlist_external_dirs 17:48:02
@hexa:lossy.network@hexa:lossy.networkhttps://www.home-assistant.io/integrations/homeassistant/#allowlist_external_dirs17:48:32
@mfed3:matrix.orgmfed3

Think this will work?

homeassistant = {
        media_dirs = {
          local = "/media";
        };

        allowlist_external_dirs = [ "/media" ];
      };
17:52:05
@mfed3:matrix.orgmfed3I am always unsure about converting yaml to nix in knowing if things are variables or strings like "local" = vs local = 17:52:44
@hexa:lossy.network@hexa:lossy.networknot with that indent 😄 17:53:17
@hexa:lossy.network@hexa:lossy.network * not with that indent 😄 17:53:31
@hexa:lossy.network@hexa:lossy.networknothing in home-assistant yaml is a variable17:53:52
@hexa:lossy.network@hexa:lossy.networkthe values you pass can be nix vars17:54:09
@mfed3:matrix.orgmfed3LOL yea don't know how that spacing happened copying and pasting in17:54:45
@mfed3:matrix.orgmfed3So I realize I was explaining incorrectly, previously, what I'm actually looking to do is assign medai_dirs to use a relative path inside of my NixOS home-assistant directory, not an external directory. I think allowlist is for the opposite18:36:20
@mfed3:matrix.orgmfed3

Instead of an absolute path is there an equivalent way to say

allowlist_external_dirs = [ "/var/lib/home-assistant/media" ];

with nixos referencing just an internal folder in the installation?

19:02:15
@hexa:lossy.network@hexa:lossy.network ${config.services.home-assistant.configDir}/media 19:03:39
@mfed3:matrix.orgmfed3Thanks!19:35:27
@hexa:lossy.network@hexa:lossy.network
Bisecting: 2 revisions left to test after this (roughly 2 steps)
[e4e6c25166f739b71b2f9c6a9248441f407c06e9] x265: 3.6 -> 4.1 (#360117)
19:42:57
@hexa:lossy.network@hexa:lossy.networkthe picture is getting clearer19:43:06
@hexa:lossy.network@hexa:lossy.network
Bisecting: 2 revisions left to test after this (roughly 1 step)
no[cd2a5352360f70a2ddeb5cf1ab617efb3ea96f02] x265: 3.6 -> 4.1
19:43:43
@hexa:lossy.network@hexa:lossy.networklmao19:43:50
@hexa:lossy.network@hexa:lossy.network
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[f1f383cc5e2fc1406fc8cba27c16e9254f069b38] x265: format
21:00:10
@hexa:lossy.network@hexa:lossy.networkwhat if it is the reformatting commit 🤡21:00:19
@hexa:lossy.network@hexa:lossy.network