mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-10 17:34:05 -05:00
work on mealie
This commit is contained in:
parent
d9ded5e913
commit
b69957614f
2 changed files with 42 additions and 0 deletions
|
|
@ -42,6 +42,7 @@
|
|||
|
||||
# Hosted services
|
||||
"modules/services/the-nest"
|
||||
"modules/services/mealie"
|
||||
"modules/services/actualbudget"
|
||||
"modules/services/frigate"
|
||||
"modules/services/homebox"
|
||||
|
|
|
|||
41
modules/services/mealie/default.nix
Normal file
41
modules/services/mealie/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
sopsFolder = inputs.nix-secrets + "/sops";
|
||||
in
|
||||
{
|
||||
|
||||
services.caddy.virtualHosts."mealie.wanderingcrow.net".extraConfig = ''
|
||||
reverse_proxy http://localhost:9000
|
||||
'';
|
||||
sops.secrets = {
|
||||
"mealie/oidc/client" = {
|
||||
sopsFile = "${sopsFolder}/services.yaml";
|
||||
};
|
||||
"mealie/oidc/secret" = {
|
||||
sopsFile = "${sopsFolder}/services.yaml";
|
||||
};
|
||||
};
|
||||
sops.templates."mealie-env".content = ''
|
||||
OIDC_CONFIGURATION_URL=https://auth.wanderingcrow.net/.well-known/openid-configuration
|
||||
OIDC_CLIENT_ID=${config.sops.placeholder."mealie/oidc/client"}
|
||||
OIDC_CLIENT_SECRET=${config.sops.placeholder."mealie/oidc/secret"}
|
||||
OIDC_ADMIN_GROUP=admins
|
||||
'';
|
||||
services.mealie = {
|
||||
enable = true;
|
||||
settings = {
|
||||
BASE_URL = "https://mealie.wanderingcrow.net";
|
||||
ALLOW_SIGNUP = false;
|
||||
ALLOW_PASSWORD_LOGIN = false;
|
||||
DB_ENGINE = "sqlite";
|
||||
OIDC_AUTH_ENABLED = true;
|
||||
OIDC_SIGNUP_ENABLED = true;
|
||||
OIDC_PROVIDER_NAME = "Pocket ID";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue