feat: Added stuff

This commit is contained in:
uttarayan21
2025-07-29 13:20:38 +05:30
parent 6f4b4b0e29
commit a455c6954c
5 changed files with 19 additions and 8 deletions

View File

@@ -3,10 +3,12 @@
secrets."authelia/oidc/immich/client_id" = {
owner = config.systemd.services.authelia-darksailor.serviceConfig.User;
mode = "0440";
restartUnits = ["immich-server.service" "authelia-darksailor.service"];
};
secrets."authelia/oidc/immich/client_secret" = {
owner = config.systemd.services.authelia-darksailor.serviceConfig.User;
mode = "0440";
restartUnits = ["immich-server.service" "authelia-darksailor.service"];
};
templates = {
"immich-config.json" = {
@@ -36,10 +38,10 @@
'';
mode = "0400";
owner = "immich";
restartUnits = ["immich-server.service" "authelia-darksailor.service"];
};
};
};
users.users.immich.extraGroups = [config.systemd.services.authelia-darksailor.serviceConfig.Group];
services.immich = {
enable = true;
mediaLocation = "/media/photos/immich";

View File

@@ -28,7 +28,7 @@
};
};
open-webui = {
enable = false;
enable = true;
port = 7070;
environment = {
SCARF_NO_ANALYTICS = "True";

View File

@@ -13,8 +13,6 @@
http_port = 5090;
ldap_port = 389;
ldap_host = "::";
# environment = {
# };
environmentFile = ''
LLDAP_LDAP_USER_PASS_FILE = ${config.sops.secrets."lldap/admin".path};
LLDAP_JWT_SECRET_FILE = ${config.sops.secrets."lldap/jwt".path};

View File

@@ -4,26 +4,37 @@
lib,
...
}: {
services = {
services = let
settings = {
auth = {
authentication_enabled = true;
authentication_method = "External";
};
};
in {
sonarr = {
enable = true;
package = unstablePkgs.sonarr;
group = "media";
inherit settings;
};
radarr = {
enable = true;
package = unstablePkgs.radarr;
group = "media";
inherit settings;
};
lidarr = {
enable = true;
package = unstablePkgs.lidarr;
group = "media";
inherit settings;
};
bazarr = {
enable = true;
package = unstablePkgs.bazarr;
group = "media";
# settings.AuthenticationMethod = "External";
};
caddy.virtualHosts = {
"sonarr.tsuba.darksailor.dev".extraConfig = ''