nixos-configs/scopedPackages/hass-components/default.nix

34 lines
980 B
Nix
Raw Normal View History

2024-10-16 20:12:23 -04:00
{
lib,
pkgs,
self,
2024-10-16 20:12:23 -04:00
...
} @ inputs:
lib.makeScope pkgs.newScope (hass: let
inherit (self.lib) mergeAttrsList;
python3Packages = pkgs.python312Packages.override {
overrides = final: prev: (mergeAttrsList (map (x: x python3Packages final prev) [
(import ./spotifyplus/overrides.nix ({inherit pkgs;} // inputs))
(import ./tuya-local/overrides.nix {inherit pkgs;})
]));
};
2024-09-19 22:16:11 -04:00
buildHassComponent = file: extraArgs:
hass.callPackage file (inputs // extraArgs // {inherit python3Packages;});
2024-09-02 22:14:49 -04:00
in {
extended-ollama-conversation = buildHassComponent ./extended-ollama-conversation {};
ha-fallback-conversation = buildHassComponent ./ha-fallback-conversation {};
2024-10-22 20:28:11 -04:00
material-symbols = buildHassComponent ./material-symbols {};
2024-10-05 12:38:13 -04:00
netdaemon = buildHassComponent ./netdaemon {};
spotifyplus = buildHassComponent ./spotifyplus {};
tuya-local = buildHassComponent ./tuya-local {};
2024-10-23 00:30:24 -04:00
yamaha-soundbar = buildHassComponent ./yamaha-soundbar {};
2024-09-02 22:14:49 -04:00
})