nix-config/hosts/franz/arion/dashboard/default.nix

25 lines
658 B
Nix
Raw Normal View History

2024-05-03 16:31:26 +02:00
{config, ...}: let
vars = import ../../../../vars.nix;
in {
2024-03-07 16:57:10 +01:00
virtualisation.arion = {
projects.dashboard.settings = {
imports = [./arion-compose.nix];
};
};
2024-05-03 16:31:26 +02:00
sops.secrets."homarr/oidc_client_id" = {
owner = vars.user;
};
sops.secrets."homarr/oidc_client_secret" = {
owner = vars.user;
};
sops.templates."homarr.env" = {
path = "/home/${vars.user}/.docker/dashboard/homarr.env";
owner = vars.user;
mode = "0775";
content = ''
AUTH_OIDC_CLIENT_SECRET="${config.sops.placeholder."homarr/oidc_client_secret"}"
AUTH_OIDC_CLIENT_ID="${config.sops.placeholder."homarr/oidc_client_id"}"
'';
};
2024-03-07 16:57:10 +01:00
}