dots/modules/nixos/features/miniflux.nix
2025-10-22 01:22:05 +11:00

36 lines
763 B
Nix

{
config,
...
}:
let
port = "5010";
in
{
services = {
miniflux = {
enable = true;
adminCredentialsFile = config.age.secrets.miniflux-creds.path;
config = {
BASE_URL = "https://miniflux.fi33.buzz";
LISTEN_ADDR = "localhost:${port}";
};
};
borgmatic.settings.postgresql_databases = [
{
name = "miniflux";
hostname = "localhost";
username = "root";
password = "{credential systemd borgmatic-pg}";
}
];
nginx.virtualHosts."miniflux.fi33.buzz" = {
forceSSL = true;
useACMEHost = "fi33.buzz";
locations."/".proxyPass = "http://localhost:${port}";
};
};
age.secrets."miniflux-creds".file = ../../../secrets/miniflux-creds.age;
}