!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

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

Load older messages


SenderMessageTime
11 Mar 2025
@k900:0upti.meK900It actually worked surprisingly well06:08:17
@k900:0upti.meK900I now have a coin battery powered button double sided taped to the outside of my door06:08:34
@lynatic:catgirl.cloudLyn (they/she) I'm having this problem with my nixpkgs-unstable override right now, is there any fix? 17:08:05
@k900:0upti.meK900You can't really just stack a package from unstable on top of stable17:08:35
@k900:0upti.meK900And expect it to work in the general case17:08:40
@lynatic:catgirl.cloudLyn (they/she) huh I thought that was the entire point of nix 17:09:25
@k900:0upti.meK900There are intentional impurities17:09:48
@k900:0upti.meK900There are also unavoidable impurities17:10:05
@k900:0upti.meK900Like the kernel17:10:08
@lynatic:catgirl.cloudLyn (they/she)so this just doesn't work as of now/we have to either use stable or make the full system from nixos unstable? https://wiki.nixos.org/wiki/Home_Assistant#Tracking_the_latest_release17:11:17
@hexa:lossy.network@hexa:lossy.networkthis was the issue17:12:22
@hexa:lossy.network@hexa:lossy.networkI LD_PRELOAD'ed and incompatible libjemalloc17:12:33
@hexa:lossy.network@hexa:lossy.network
commit 8c9755e515014f97a1985d19030ec90cb60785b4
Author: Martin Weinelt <hexa@darmstadt.ccc.de>
Date:   Wed Jan 1 23:59:50 2025 +0100

    home-assistant: use unstable jemalloc to match native dependencies
    
    Otherwise home-assistant runs into import errors, e.g. on microvad
    
    ImportError: /nix/store/ybjcla5bhj8g1y84998pn4a2drfxybkv-gcc-13.3.0-lib/lib/libstdc++.so.6: version `CXXABI_1.3.15' not found

diff --git a/modules/home-assistant/default.nix b/modules/home-assistant/default.nix
index 538c627..26a958e 100644
--- a/modules/home-assistant/default.nix
+++ b/modules/home-assistant/default.nix
@@ -20,7 +20,7 @@ in
     ./zigbee2mqtt.nix
   ];
 
-  systemd.services.home-assistant.environment.LD_PRELOAD = "${lib.getLib pkgs.jemalloc}/lib/libjemalloc.so";
+  systemd.services.home-assistant.environment.LD_PRELOAD = "${lib.getLib unstable.jemalloc}/lib/libjemalloc.so";
 
   services.home-assistant = {
     enable = true;
17:13:45
* @philipp:xndr.dephilipp is avoiding impurities by having home-assistant in a microvm.nix17:15:57
@lynatic:catgirl.cloudLyn (they/she)I somehow managed to have this problem while having this in a microvm already aaaa17:19:49
@lynatic:catgirl.cloudLyn (they/she) thanks, I'll try fixing my install to use that module declaration then 17:20:25
@hexa:lossy.network@hexa:lossy.networkare you also using jemalloc?17:20:41
@hexa:lossy.network@hexa:lossy.networkor is your problem caused by sth else17:20:56
@hexa:lossy.network@hexa:lossy.networkbecause you have not yet posted any error17:21:09
@lynatic:catgirl.cloudLyn (they/she)seems I just had a skill issue where my override only halfway worked (overrode the homeassistant packages but not the module) which caused a bunch of errors including the jemalloc one. got it to work now.17:53:04
@hexa:lossy.network@hexa:lossy.network
  systemd.services.home-assistant.environment = {
    LD_PRELOAD = "${lib.getLib unstable.jemalloc}/lib/libjemalloc.so";
    # https://github.com/jemalloc/jemalloc/blob/dev/TUNING.md
    MALLOC_CONF = "background_thread:true,metadata_thp:auto,dirty_decay_ms:20000,muzzy_decay_ms:20000";
    PYTHONMALLOC = "malloc";
  };
17:54:05
@hexa:lossy.network@hexa:lossy.networkis that I'm using these days fwiw17:54:09
@hexa:lossy.network@hexa:lossy.networkhmmm17:55:00
@hexa:lossy.network@hexa:lossy.network why don't we have meta.mainLib 😄 17:55:06
@hexa:lossy.network@hexa:lossy.network and lib.getLib pkgs.jemalloc resolves to $out/lib/libjemalloc.so 17:55:26
@hexa:lossy.network@hexa:lossy.network and lib.getLib' to arbitrary librarie names 17:55:38
@hexa:lossy.network@hexa:lossy.networksorry, that is a bad idea 😄 17:55:49
@adam_neverwas:matrix.org@adam_neverwas:matrix.org removed their display name adam_neverwas.23:24:16
12 Mar 2025
@rosssmyth:matrix.org@rosssmyth:matrix.org joined the room.00:40:29
@sandro:supersandro.deSandro 🐧we have that, too and we bend backwards for avahi...10:32:38

Show newer messages


Back to Room ListRoom Version: 6