feat(rpi4): add miniflux

This commit is contained in:
Felix Schröter 2021-12-11 19:40:53 +01:00
parent 7f4fc67b57
commit 9420f787b7
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
2 changed files with 20 additions and 0 deletions

View file

@ -24,6 +24,7 @@ in with builtins; {
# ./services/photoprism.nix # TODO not working on aarch64 due to tensorflow
./services/home-assistant.nix
./services/owntracks.nix
./services/miniflux.nix
];
nixpkgs.config.allowUnfree = true;
@ -65,6 +66,7 @@ in with builtins; {
"*.home.felschr.com"
"home.felschr.com"
"media.felschr.com"
"news.felschr.com"
"mqtt.felschr.com"
"owntracks.felschr.com"
"etebase.felschr.com"

18
services/miniflux.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, pkgs, ... }:
let port = 8002;
in {
services.miniflux = {
enable = true;
adminCredentialsFile = "/etc/nixos/secrets/miniflux";
config = { LISTEN_ADDR = "localhost:${port}"; };
};
services.nginx = {
virtualHosts."news.felschr.com" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:${port}";
};
};
}