From edc2df97f05af8be25c6621fefca4e23038bba62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 24 Nov 2025 23:39:42 +0200 Subject: [PATCH] fra1-c: snapshot /var/lib --- hosts/fra1-c/configuration.nix | 17 +++++++++++++++++ modules/profiles/workstation/default.nix | 1 + 2 files changed, 18 insertions(+) diff --git a/hosts/fra1-c/configuration.nix b/hosts/fra1-c/configuration.nix index 0c2cbb4..a220d3f 100644 --- a/hosts/fra1-c/configuration.nix +++ b/hosts/fra1-c/configuration.nix @@ -94,6 +94,23 @@ in }; }; + btrfssnapshot = { + enable = true; + subvolumes = [ + { + subvolume = "/var/lib"; + label = "hourly"; + keep = 24; + refreshInterval = "*:00:00"; + } + { + subvolume = "/var/lib"; + label = "5minutely"; + keep = 12; + refreshInterval = "*:0/5"; + } + ]; + }; }; }; diff --git a/modules/profiles/workstation/default.nix b/modules/profiles/workstation/default.nix index 3ac28d3..0bb14f2 100644 --- a/modules/profiles/workstation/default.nix +++ b/modules/profiles/workstation/default.nix @@ -47,6 +47,7 @@ in shfmt tokei shfmt + mbpoll # modbus poll bloaty skopeo inferno