From 379ec5badd75c0e09d6154ac7f9b7d35e3994f34 Mon Sep 17 00:00:00 2001
From: coolneng <akasroua@gmail.com>
Date: Mon, 1 Jun 2020 19:39:12 +0200
Subject: [PATCH] Disable ZnapZend remote until it's fixed

---
 modules/datasync.nix    | 31 +++++++++++--------------------
 modules/development.nix |  2 +-
 2 files changed, 12 insertions(+), 21 deletions(-)

diff --git a/modules/datasync.nix b/modules/datasync.nix
index 96f37c3..0bac2fc 100644
--- a/modules/datasync.nix
+++ b/modules/datasync.nix
@@ -1,7 +1,7 @@
 { config, lib, pkgs, ... }:
 
 {
- # ZFS automatic backup solution
+  # ZFS automatic backup solution
   services.znapzend = {
     enable = true;
     autoCreation = true;
@@ -11,24 +11,16 @@
     };
     zetup = {
       "syscea/stateful/root" = {
-        plan = "1d=>1h,1m=>1d,1y=>1m";
+        plan = "1day=>1hour,1month=>1day,1year=>1month";
         recursive = true;
         mbuffer.enable = true;
-        destinations.remote = {
-          host = "coolneng@zion";
-          dataset = "vault/backups/panacea/root";
-        };
-      }; 
+      };
 
       "syscea/stateful/home" = {
-        plan = "1d=>1h,1m=>1d,1y=>1m";
+        plan = "1day=>1hour,1month=>1day,1year=>1month";
         recursive = true;
         mbuffer.enable = true;
-        destinations.remote = {
-          host = "coolneng@zion";
-          dataset = "vault/backups/panacea/home";
-        };
-      }; 
+      };
     };
   };
 
@@ -39,7 +31,10 @@
     dataDir = "/home/coolneng";
     declarative = {
       devices = {
-        zion = { id = "XABIMVG-K5RKMAF-KNC33AR-TDAVEGK-GHUIVFD-NIFCX6L-6PQXRM5-KLK2PAU"; };
+        zion = {
+          id =
+            "XABIMVG-K5RKMAF-KNC33AR-TDAVEGK-GHUIVFD-NIFCX6L-6PQXRM5-KLK2PAU";
+        };
       };
       folders = {
         Documents = {
@@ -48,9 +43,7 @@
           devices = [ "zion" ];
           versioning = {
             type = "simple";
-            params = {
-              keep = "5";
-            };
+            params = { keep = "5"; };
           };
         };
 
@@ -60,9 +53,7 @@
           devices = [ "zion" ];
           versioning = {
             type = "simple";
-            params = {
-              keep = "5";
-            };
+            params = { keep = "5"; };
           };
         };
 
diff --git a/modules/development.nix b/modules/development.nix
index 75a12f8..144ac4b 100644
--- a/modules/development.nix
+++ b/modules/development.nix
@@ -6,7 +6,7 @@
 
   # Enable virtualisation
   virtualisation.libvirtd = {
-    enable = false;
+    enable = true;
     onBoot = "ignore";
     onShutdown = "shutdown";
     qemuPackage = pkgs.qemu_kvm;