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 ################