Add selfhosted services

This commit is contained in:
aloslider
2026-06-30 04:26:40 +03:00
parent f212c874b5
commit 13e407847f
78 changed files with 2346 additions and 690 deletions
@@ -0,0 +1,38 @@
{ config, lib, ... }:
with lib;
let
common = config.selfhosted.common;
cfg = config.selfhosted.immich;
in
{
imports = [
./immich
./ml
./postgresql
./redis
];
options.selfhosted.immich = {
targetName = mkOption {
type = types.str;
};
version = mkOption {
type = types.str;
};
};
config = {
sops.secrets = {
"immich/db_password" = { };
"immich/client_id" = { };
"immich/client_secret" = { };
};
systemd.targets."${common.backend}-${cfg.targetName}" = {
unitConfig = {
Description = "Root target for ${cfg.targetName}";
};
wantedBy = [ "${common.backend}-${common.rootTarget.name}.target" ];
};
};
}