home-assistant: configure admin group, remove moved patches

This commit is contained in:
Sandro - 2024-02-04 03:10:43 +01:00
parent c4150b3715
commit 964cc54cee
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 6 additions and 13 deletions

View File

@ -207,7 +207,10 @@
hedgedoc.ldap.userGroup = "hedgedoc-users";
home-assistant.ldap.userGroup = "home-assistant-users";
home-assistant.ldap = {
adminGroup = "home-assistant-admins";
userGroup = "home-assistant-users";
};
hydra.ldap = {
roleMappings = [

View File

@ -98,10 +98,7 @@ in
"zha" # Zigbee
];
ldap.enable = true;
package = (pkgs.home-assistant.override {
extraPackages = ps: with ps; [
pyqrcode # for TOTP qrcode
];
package = pkgs.home-assistant.override {
# those tests take a long(er) time and can't be sped up with pytest-xdist
packageOverrides = _: prev: let
noTests.doCheck = false;
@ -109,14 +106,7 @@ in
aws-sam-translator = prev.aws-sam-translator.overridePythonAttrs (_: noTests);
moto = prev.moto.overridePythonAttrs (_: noTests);
};
}).overrideAttrs ({ patches ? [ ], ... }: {
patches = patches ++ [
../../overlays/home-assistant-local_temperature_calibration.diff
../../overlays/home-assistant-no-cloud.diff
];
doInstallCheck = false;
});
};
};
nginx = {