24 lines
658 B
Nix
24 lines
658 B
Nix
{config, ...}: let
|
|
vars = import ../../../../vars.nix;
|
|
in {
|
|
virtualisation.arion = {
|
|
projects.dashboard.settings = {
|
|
imports = [./arion-compose.nix];
|
|
};
|
|
};
|
|
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"}"
|
|
'';
|
|
};
|
|
}
|