system/nixos/hosts/canigou/services/miniflux.nix

21 lines
453 B
Nix
Raw Normal View History

2023-09-21 01:24:40 +03:00
{ config, pkgs, ... }:
2023-06-22 17:12:06 +03:00
let
port = 33001;
addr = "0.0.0.0:${toString port}";
in
{
services.miniflux = {
enable = true;
2023-09-21 01:24:40 +03:00
package = pkgs.unstable.miniflux;
2023-06-22 17:12:06 +03:00
adminCredentialsFile = config.age.secrets.miniflux-admin-credentials.path;
config = {
LISTEN_ADDR = addr;
};
};
age.secrets.miniflux-admin-credentials.file = ../../../../secrets/miniflux-admin-credentials.age;
networking.firewall.allowedTCPPorts = [ port ];
}