This commit is contained in:
root@nixos-nas 2025-06-11 18:41:19 +00:00
parent a55b594483
commit 5921272649
2 changed files with 8 additions and 2 deletions

View File

@ -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;

View File

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