From 9420f787b794ee0e98d87a79d54ea18ac40f9a62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Sat, 11 Dec 2021 19:40:53 +0100 Subject: [PATCH] feat(rpi4): add miniflux --- rpi4.nix | 2 ++ services/miniflux.nix | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 services/miniflux.nix diff --git a/rpi4.nix b/rpi4.nix index 346c4bc..fc0a40b 100644 --- a/rpi4.nix +++ b/rpi4.nix @@ -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" diff --git a/services/miniflux.nix b/services/miniflux.nix new file mode 100644 index 0000000..91f8d98 --- /dev/null +++ b/services/miniflux.nix @@ -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}"; + }; + }; +}