morn: add miniflux

This commit is contained in:
2025-07-06 23:59:16 +02:00
parent c9efb5c1dd
commit eb4b58bed7
5 changed files with 71 additions and 4 deletions

View File

@@ -8,8 +8,9 @@
../../common/auto-upgrade.nix
./hardware-configuration.nix
./services/nginx.nix
./services/glance
./services/miniflux.nix
./services/nginx.nix
];
networking = {
@@ -23,7 +24,7 @@
hostId = "89b7722d";
};
sops.defaultSopsFile = ../../secrets/burnham/burnham.yaml;
sops.defaultSopsFile = ../../secrets/morn/morn.yaml;
environment.variables = { EDITOR = "vim"; };

View File

@@ -0,0 +1,23 @@
{ config, pkgs, lib, ... }:
let
domain = "rss.home.feal.no";
listen_addr = "127.0.1.2:5051";
in {
sops.secrets."miniflux/env" = { };
services.miniflux = {
enable = true;
adminCredentialsFile = config.sops.secrets."miniflux/env".path;
config = {
CREATE_ADMIN = "1";
LISTEN_ADDR = listen_addr;
BASE_URL = "http://${domain}";
};
};
services.nginx.virtualHosts."${domain}" = {
locations."/".proxyPass = "http://${listen_addr}";
};
}