From bc43fbf222e5a084e2d6601c3dbf4172a5b3352e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 5 Aug 2024 19:07:06 +0300 Subject: [PATCH] vno1-gdrx: add btrfssnapshot --- hosts/vno1-gdrx/configuration.nix | 40 +++++++++++++------------------ 1 file changed, 17 insertions(+), 23 deletions(-) diff --git a/hosts/vno1-gdrx/configuration.nix b/hosts/vno1-gdrx/configuration.nix index cf6c8bf..2fa6781 100644 --- a/hosts/vno1-gdrx/configuration.nix +++ b/hosts/vno1-gdrx/configuration.nix @@ -79,29 +79,23 @@ in group = "users"; }; - #btrfssnapshot = { - # enable = true; - # subvolumes = [ - # { - # subvolume = "/home"; - # label = "5minutely"; - # keep = 12; - # refreshInterval = "*:0/5"; - # } - # { - # subvolume = "/home"; - # label = "hourly"; - # keep = 24; - # refreshInterval = "*:00:00"; - # } - # ]; - #}; - - #wifibackup = { - # enable = true; - # toPath = "/home/${config.mj.username}/M-Active/.wifi"; - # toUser = config.mj.username; - #}; + btrfssnapshot = { + enable = true; + subvolumes = [ + { + subvolume = "/home"; + label = "5minutely"; + keep = 12; + refreshInterval = "*:0/5"; + } + { + subvolume = "/home"; + label = "hourly"; + keep = 24; + refreshInterval = "*:00:00"; + } + ]; + }; remote-builder.client = let