add miniflux module
This commit is contained in:
parent
39ec1189f7
commit
25dad86874
3 changed files with 47 additions and 0 deletions
25
modules/miniflux.nix
Normal file
25
modules/miniflux.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue