26 Sep 2024 |
hexa | 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 | * 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 | also supports extraCertificateStrings , a list of strings | 17:34:16 |
Mackeveli | 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 | post your config | 17:36:48 |
Mackeveli | https://github.com/negatethis/nixos-config/blob/main/services/music-assistant.nix | 18:14:15 |
hexa | ok, I see the issue | 18:18:42 |
hexa | also note that we are lacking dependencies for some of these providers | 18:20:18 |
hexa | https://github.com/NixOS/nixpkgs/pull/344704 | 18:23:35 |
Mackeveli | 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 🐧 | 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 | we don't use pip? | 12:33:58 |
hexa | i'm not sure what you're asking for | 12:34:46 |
hexa | https://github.com/home-assistant/core/commit/c8948e3b1c8b1f52df6185695331cf6471c86829 | 12:39:44 |
hexa | probably what he is talking about | 12:40:36 |
Sandro 🐧 | oh yeah, right 🤦♂️ | 15:09:33 |
Sandro 🐧 | 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 | that hooks is only used for python2 | 15:16:35 |
hexa | try again 😛 | 15:16:44 |
hexa | we use pypaInstallHook (aka python -m installer) for installing | 15:18:04 |
hexa | and the buildPhase always created a wheel for the installPhase to unpack and installl | 15:18:36 |
hexa | * and the buildPhase always creates a wheel for the installPhase to unpack and installl | 15:18:40 |
| elikoga set a profile picture. | 16:27:26 |
28 Sep 2024 |
| Majiir Paktu left the room. | 00:11:28 |
| Majiir Paktu joined the room. | 00:12:11 |
30 Sep 2024 |
| von.dev joined the room. | 05:18:52 |
1 Oct 2024 |
| -_o joined the room. | 21:01:13 |
2 Oct 2024 |
alex | 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 joined the room. | 02:14:37 |
| lilith joined the room. | 20:45:12 |