add miniflux module

This commit is contained in:
Yan Lin 2025-12-03 20:11:38 +01:00
parent 39ec1189f7
commit 25dad86874
3 changed files with 47 additions and 0 deletions

25
modules/miniflux.nix Normal file
View file

@ -0,0 +1,25 @@
{ config, lib, ... }:
let
cfg = config.services.miniflux-custom;
in
{
options.services.miniflux-custom = {
port = lib.mkOption {
type = lib.types.port;
default = 8070;
description = "Port for Miniflux to listen on";
};
};
config = {
services.miniflux = {
enable = true;
adminCredentialsFile = "/etc/miniflux-admin-credentials";
config = {
LISTEN_ADDR = "0.0.0.0:${toString cfg.port}";
BASE_URL = "https://rss.yanlincs.com";
};
};
};
}