about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorGiulio De Pasquale <github@depasquale.giugl.io>2022-12-16 16:11:40 +0100
committerGitHub <noreply@github.com>2022-12-16 16:11:40 +0100
commitb2742248e8730435483e0f7d2564f5f8cde3cb3e (patch)
treeed41d74b9819bb3cee4544d960904095417ffa4d /nixos/modules
parent20620ad86709c9caa473414b10e44a9c45ea9d78 (diff)
miniflux: Add package option
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/web-apps/miniflux.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/nixos/modules/services/web-apps/miniflux.nix b/nixos/modules/services/web-apps/miniflux.nix
index 34a108cebd2b8..7cc8ce10ffe07 100644
--- a/nixos/modules/services/web-apps/miniflux.nix
+++ b/nixos/modules/services/web-apps/miniflux.nix
@@ -21,6 +21,13 @@ in
     services.miniflux = {
       enable = mkEnableOption (lib.mdDoc "miniflux and creates a local postgres database for it");
 
+      package = mkOption {
+        type = types.package;
+        default = pkgs.miniflux;
+        defaultText = literalExpression "pkgs.miniflux";
+        description = lib.mdDoc "Miniflux package to use.";
+      };
+
       config = mkOption {
         type = types.attrsOf types.str;
         example = literalExpression ''
@@ -89,7 +96,7 @@ in
       after = [ "network.target" "postgresql.service" "miniflux-dbsetup.service" ];
 
       serviceConfig = {
-        ExecStart = "${pkgs.miniflux}/bin/miniflux";
+        ExecStart = "${cfg.package}/bin/miniflux";
         User = dbUser;
         DynamicUser = true;
         RuntimeDirectory = "miniflux";
@@ -122,6 +129,6 @@ in
 
       environment = cfg.config;
     };
-    environment.systemPackages = [ pkgs.miniflux ];
+    environment.systemPackages = [ cfg.package ];
   };
 }