summary refs log tree commit diff
diff options
context:
space:
mode:
authorFliegendeWurst <2012gdwu+github@posteo.de>2021-05-17 15:37:16 +0200
committerFliegendeWurst <2012gdwu+github@posteo.de>2021-05-24 09:55:49 +0200
commitb9e2b878c52f6081ac09f32bd8f3c90d7814c63a (patch)
treef635127dbe056a1d4879afb15df224db91572f7b
parent7cb492fb1357dde3a5c67f31f8ce6e612fd4301c (diff)
downloadnixpkgs-b9e2b878c52f6081ac09f32bd8f3c90d7814c63a.tar
nixpkgs-b9e2b878c52f6081ac09f32bd8f3c90d7814c63a.tar.gz
nixpkgs-b9e2b878c52f6081ac09f32bd8f3c90d7814c63a.tar.bz2
nixpkgs-b9e2b878c52f6081ac09f32bd8f3c90d7814c63a.tar.lz
nixpkgs-b9e2b878c52f6081ac09f32bd8f3c90d7814c63a.tar.xz
nixpkgs-b9e2b878c52f6081ac09f32bd8f3c90d7814c63a.tar.zst
nixpkgs-b9e2b878c52f6081ac09f32bd8f3c90d7814c63a.zip
nixos/trilium-server: noBackup option
-rw-r--r--nixos/modules/services/web-apps/trilium.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/trilium.nix b/nixos/modules/services/web-apps/trilium.nix
index b878de023ff..ae41ba50d2e 100644
--- a/nixos/modules/services/web-apps/trilium.nix
+++ b/nixos/modules/services/web-apps/trilium.nix
@@ -9,6 +9,7 @@ let
 
     # Disable automatically generating desktop icon
     noDesktopIcon=true
+    noBackup=${cfg.noBackup}
 
     [Network]
     # host setting is relevant only for web deployments - set the host on which the server will listen
@@ -40,6 +41,14 @@ in
       '';
     };
 
+    noBackup = mkOption {
+      type = types.bool;
+      default = false;
+      description = ''
+        Disable periodic database backups.
+      '';
+    };
+
     host = mkOption {
       type = types.str;
       default = "127.0.0.1";