diff options
Diffstat (limited to 'users/tazjin/nixos/modules/miniflux.nix')
-rw-r--r-- | users/tazjin/nixos/modules/miniflux.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/users/tazjin/nixos/modules/miniflux.nix b/users/tazjin/nixos/modules/miniflux.nix new file mode 100644 index 000000000000..52334ef503b3 --- /dev/null +++ b/users/tazjin/nixos/modules/miniflux.nix @@ -0,0 +1,21 @@ +{ config, depot, lib, pkgs, ... }: + +{ + age.secrets.miniflux.file = depot.users.tazjin.secrets."miniflux.age"; + + services.miniflux = { + enable = true; + adminCredentialsFile = "/run/agenix/miniflux"; + config.LISTEN_ADDR = "127.0.0.1:6359"; + }; + + services.nginx.virtualHosts."feeds" = { + serverName = "feeds.tazj.in"; + enableACME = true; + forceSSL = true; + + locations."/" = { + proxyPass = "http://127.0.0.1:6359"; + }; + }; +} |