[pi4] ADd roomba dependency to home assistant️

This commit is contained in:
2025-08-12 16:38:00 +00:00
parent 859a0e22c2
commit cb6e38604d

View File

@ -6,11 +6,18 @@ let
in
{
services.home-assistant = {
services = {
home-assistant = {
enable = true;
package =
(pkgs.home-assistant.override {
extraPackages = py: with py; [ psycopg2 ];
extraPackages =
py: with py; [
# Postgres
psycopg2
# Roomba
roombapy
];
}).overrideAttrs
(oldAttrs: {
# Avoid long install checks
@ -41,7 +48,7 @@ in
};
};
services.nginx.virtualHosts.${domain} = {
nginx.virtualHosts.${domain} = {
forceSSL = true;
enableACME = true;
extraConfig = ''
@ -52,7 +59,7 @@ in
proxyWebsockets = true;
};
};
services.postgresql = {
postgresql = {
enable = true;
ensureDatabases = [ dbName ];
ensureUsers = [
@ -62,4 +69,5 @@ in
}
];
};
};
}