nixos-config/services/miniflux.nix
Felix Schröter 0dee8b4fa7
fix(secrets): fix permissions
Also moves key references into respective configs where they are used.
2022-05-06 03:44:47 +02:00

21 lines
466 B
Nix

{ config, pkgs, ... }:
let port = 8002;
in {
age.secrets.miniflux.file = ../secrets/miniflux.age;
services.miniflux = {
enable = true;
adminCredentialsFile = config.age.secrets.miniflux.path;
config = { LISTEN_ADDR = "localhost:${toString port}"; };
};
services.nginx = {
virtualHosts."news.felschr.com" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:${toString port}";
};
};
}