From 592127264960d011a4e70f6b8ba8e3d567fb394a Mon Sep 17 00:00:00 2001 From: "root@nixos-nas" <> Date: Wed, 11 Jun 2025 18:41:19 +0000 Subject: [PATCH] more zfs --- configuration.nix | 7 +++++++ modules/zfs.nix | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index f47ebb0..7a5bd5d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -55,6 +55,13 @@ services.openssh.enable = true; services.zfs.autoScrub.enable = true; # Snapshots & Details kommen später + systemd.services.zfs-prune-snapshots = { + description = "Remove ZFS snapshots older than policy"; + serviceConfig.ExecStart = "/run/current-system/sw/bin/zfs-prune-snapshots -r --keep=2w"; + startAt = "daily"; + }; + + # Wir pinnen den Kernel, bis ZFS 2.3.x für 6.13 bereit ist boot.kernelPackages = pkgs.linuxPackages_6_12; diff --git a/modules/zfs.nix b/modules/zfs.nix index b6d36b0..b7081ba 100644 --- a/modules/zfs.nix +++ b/modules/zfs.nix @@ -26,9 +26,8 @@ #### 3. Zusätzliche Module / Tools ################################## environment.systemPackages = with pkgs; [ - zfs # zpool, zfs + zfs # zpool, zfs, arc_summary zfs-prune-snapshots - arc_summary ]; #### 4. Optional: Sanoid statt OpenSolaris-Snapshots ################