mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
27 lines
638 B
Nix
27 lines
638 B
Nix
{ config, ... }: {
|
|
sops.secrets = {
|
|
invidious_db_password = {
|
|
sopsFile = ./secrets/invidious.yaml;
|
|
};
|
|
invidious_hmac_key = {
|
|
sopsFile = ./secrets/invidious.yaml;
|
|
};
|
|
};
|
|
services.invidious = {
|
|
enable = true;
|
|
hmacKeyFile = config.sops.secrets.invidious_hmac_key.path;
|
|
settings = {
|
|
domain = "yt.gensokyo.zone";
|
|
hsts = false;
|
|
db = {
|
|
user = "kemal";
|
|
dbname = "invidious";
|
|
};
|
|
};
|
|
database = {
|
|
host = "postgresql.local.gensokyo.zone";
|
|
passwordFile = config.sops.secrets.invidious_db_password.path;
|
|
createLocally = false;
|
|
};
|
|
};
|
|
}
|