about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-05-27 04:52:55 +0200
committerGitHub <noreply@github.com>2021-05-27 04:52:55 +0200
commit5584b49a4684ac6b00b099f17c6ca3e7665a5015 (patch)
tree7b99c183b201d703101d9e3d5acd547cf38ac17a /nixos
parent10cb8e3f4868bd9e82a0f5c7516651250859f55c (diff)
parentb9e2b878c52f6081ac09f32bd8f3c90d7814c63a (diff)
Merge pull request #123363 from FliegendeWurst/trilium-update-0.47.3
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-apps/trilium.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/nixos/modules/services/web-apps/trilium.nix b/nixos/modules/services/web-apps/trilium.nix
index 3a6ea02676aa5..ae41ba50d2e27 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
@@ -28,7 +29,7 @@ in
       type = types.str;
       default = "/var/lib/trilium";
       description = ''
-        The directory storing the nodes database and the configuration.
+        The directory storing the notes database and the configuration.
       '';
     };
 
@@ -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";
@@ -85,7 +94,7 @@ in
 
   config = lib.mkIf cfg.enable (lib.mkMerge [
   {
-    meta.maintainers = with lib.maintainers; [ ];
+    meta.maintainers = with lib.maintainers; [ fliegendewurst ];
 
     users.groups.trilium = {};
     users.users.trilium = {