!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

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

Load older messages


SenderMessageTime
26 Sep 2024
@hexa:lossy.networkhexa
systemd.services.music-assistant.environment.NIX_SSL_CERT_FILE = "${pkgs.cacert.override { extraCertificateFiles [ ./foo.pem ] }}/etc/ssl/certs/ca-bundle.crt";
17:30:57
@hexa:lossy.networkhexa *
systemd.services.music-assistant.environment = {
  NIX_SSL_CERT_FILE = "${pkgs.cacert.override { extraCertificateFiles [ ./foo.pem ] }}/etc/ssl/certs/ca-bundle.crt";
};
17:31:08
@hexa:lossy.networkhexa also supports extraCertificateStrings, a list of strings 17:34:16
@mackeveli:matrix.orgMackeveli Hmm I tried that but now I'm getting an unrelated error upon running nixos-rebuild:
 error: attempt to call something which is not a function but a list

       at /nix/store/y6205wq8hxvpqvl8l9d1n9xah01kg0lq-source/pkgs/by-name/mu/music-assis
tant/package.nix:20:52:

           19|   providerNames = lib.attrNames providerPackages;
           20|   providerDependencies = lib.concatMap (provider: (providerPackages.${provider} python.pkgs)) providers;
             |                                                    ^
           21|
17:34:41
@hexa:lossy.networkhexapost your config17:36:48
@mackeveli:matrix.orgMackeveli https://github.com/negatethis/nixos-config/blob/main/services/music-assistant.nix 18:14:15
@hexa:lossy.networkhexaok, I see the issue18:18:42
@hexa:lossy.networkhexaalso note that we are lacking dependencies for some of these providers18:20:18
@hexa:lossy.networkhexahttps://github.com/NixOS/nixpkgs/pull/34470418:23:35
@mackeveli:matrix.orgMackeveli Gotcha. I'll stick to the music-assistant container and use only HTTP while this is sorted out. I appreciate the help! 18:34:58
27 Sep 2024
@sandro:supersandro.deSandro 🐧 hexa: did you already think or investigate if we can follow ha with replacing pip with uv? https://developers.home-assistant.io/blog/2024/04/03/build-images-with-uv/ 12:33:30
@hexa:lossy.networkhexawe don't use pip?12:33:58
@hexa:lossy.networkhexai'm not sure what you're asking for12:34:46
@hexa:lossy.networkhexahttps://github.com/home-assistant/core/commit/c8948e3b1c8b1f52df6185695331cf6471c8682912:39:44
@hexa:lossy.networkhexaprobably what he is talking about12:40:36
@sandro:supersandro.deSandro 🐧oh yeah, right 🤦‍♂️15:09:33
@sandro:supersandro.deSandro 🐧Would it make sense to replace it here https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/python/hooks/pip-install-hook.sh#L14 ? Is that even a part which takes a while to run?15:10:54
@hexa:lossy.networkhexathat hooks is only used for python215:16:35
@hexa:lossy.networkhexatry again 😛 15:16:44
@hexa:lossy.networkhexawe use pypaInstallHook (aka python -m installer) for installing15:18:04
@hexa:lossy.networkhexaand the buildPhase always created a wheel for the installPhase to unpack and installl15:18:36
@hexa:lossy.networkhexa * and the buildPhase always creates a wheel for the installPhase to unpack and installl15:18:40
@elikoga:matrix.orgelikoga set a profile picture.16:27:26
28 Sep 2024
@majiir:matrix.orgMajiir Paktu left the room.00:11:28
@majiir:matrix.orgMajiir Paktu joined the room.00:12:11
30 Sep 2024
@von.dev:matrix.orgvon.dev joined the room.05:18:52
1 Oct 2024
@-_o:matrix.org-_o joined the room.21:01:13
2 Oct 2024
@alex:acrawford.comalex

Does anyone have an example for overriding the version of zwave-js? I tried the following but there’s still a mismatch with the package lock.

package = pkgs.zwave-js-server.overrideAttrs (old: rec {
 version = "1.28.0";

 src = pkgs.fetchFromGitHub {
   owner = "zwave-js";
   repo  = old.pname;
   rev   = version;
   hash  = "sha256-2P3kA7biK9tnebkskQgRK/oakPWsSGEH8zrr5O4x0u0=";
 };

 npmDepsHash = lib.fakeHash;
});

And here’s the error:

ERROR: npmDepsHash is out of date

The package-lock.json in src is not the same as the in /nix/store/h586wagc3flrpyrsv275w3ngqbdas72v-zwave-js-server-1.35.0-npm-deps.

15:20:10
3 Oct 2024
@midirhee12:tchncs.demidirhee12 joined the room.02:14:37
@lilith:matrix.firelilith.orglilith joined the room.20:45:12

Show newer messages


Back to Room ListRoom Version: 6