From 4db1af8f593c8373e9827273f3652d9dc9393c83 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Wed, 25 May 2022 12:07:35 +0200 Subject: [PATCH] snapper timeline --- home/syncthing/default.nix | 0 nixos/common.nix | 19 +++++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 home/syncthing/default.nix diff --git a/home/syncthing/default.nix b/home/syncthing/default.nix new file mode 100644 index 0000000..e69de29 diff --git a/nixos/common.nix b/nixos/common.nix index 1c8fe71..77541b8 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -110,8 +110,23 @@ }; services.snapper.configs = { - persist.subvolume = "/persist"; - data.subvolume = "/data"; + persist = { + subvolume = "/persist"; + fstype = "btrfs"; + extraConfig = '' + TIMELINE_CREATE=yes + TIMELINE_CLEANUP=yes + ''; + }; + data = { + subvolume = "/data"; + fstype = "btrfs"; + extraConfig = '' + TIMELINE_CREATE=yes + TIMELINE_CLEANUP=yes + ''; + + }; }; security.doas = {