diff options
author | Vincent Ambo <tazjin@tvl.su> | 2024-02-25T09·47+0300 |
---|---|---|
committer | Vincent Ambo <tazjin@tvl.su> | 2024-02-25T09·47+0300 |
commit | 9a5a1ddf24229c89862d35751843f03981aaa6c9 (patch) | |
tree | 5dfb30e7c4f4a1ac549d0f09bf5f7a2b894f3243 /users/tazjin/nixos/modules/miniflux.nix | |
parent | c63b9d88cd94e00ec03ac3878a39fcf30980e008 (diff) |
feat(tazjin/koptevo): experimental miniflux setup r/7603
Change-Id: I2020a6bf2262966d41d3b47a17b122df121d661d
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"; + }; + }; +} |