From 695ceb8bfeb9ad8a1eaaa31495933594f9cb5bb4 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 15 Jan 2025 14:00:26 +0800 Subject: [PATCH] hosts/ni/services/rss-reader: add helper script --- configs/nixos/ni/modules/services/rss-reader/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configs/nixos/ni/modules/services/rss-reader/default.nix b/configs/nixos/ni/modules/services/rss-reader/default.nix index aea29974..e3d2885d 100644 --- a/configs/nixos/ni/modules/services/rss-reader/default.nix +++ b/configs/nixos/ni/modules/services/rss-reader/default.nix @@ -29,5 +29,14 @@ in services.nginx.virtualHosts."rss.ni.local" = { locations."/".proxyPass = "http://ni.local:${builtins.toString port}"; }; + + # Just make sure you execute this script as `miniflux` helper especially + # that it is configured with PostgreSQL. + wrapper-manager.packages.miniflux-helper = { + wrappers.miniflux-helper = { + arg0 = lib.getExe' config.services.miniflux.package "miniflux"; + env = lib.mapAttrs (_: value: { value = builtins.toString value; }) config.services.miniflux.config; + }; + }; }; }