diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2021-01-16 13:20:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-16 13:20:18 +0000 |
commit | 21d78fa465fda5d161866d8aafe23427bf49f441 (patch) | |
tree | 32541c5552af020bcef505e8d32c37aebc83c9bd /nixos/modules | |
parent | c2462bb3914a24c37a479665ff1888af73382a70 (diff) | |
parent | e2fa74dc68d5f6fcedcf63aa9d64e488eff2b985 (diff) | |
download | nixpkgs-21d78fa465fda5d161866d8aafe23427bf49f441.tar nixpkgs-21d78fa465fda5d161866d8aafe23427bf49f441.tar.gz nixpkgs-21d78fa465fda5d161866d8aafe23427bf49f441.tar.bz2 nixpkgs-21d78fa465fda5d161866d8aafe23427bf49f441.tar.lz nixpkgs-21d78fa465fda5d161866d8aafe23427bf49f441.tar.xz nixpkgs-21d78fa465fda5d161866d8aafe23427bf49f441.tar.zst nixpkgs-21d78fa465fda5d161866d8aafe23427bf49f441.zip |
Merge pull request #109494 from ipetkov/nixos-zpool-trim-persistent-timer
nixos/zfs: make zpool-trim timer persistent
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/tasks/filesystems/zfs.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix index 6becc696273..9638a7cb3e5 100644 --- a/nixos/modules/tasks/filesystems/zfs.nix +++ b/nixos/modules/tasks/filesystems/zfs.nix @@ -664,6 +664,8 @@ in # - There are only HDDs and we would set the system in a degraded state serviceConfig.ExecStart = ''${pkgs.runtimeShell} -c 'for pool in $(zpool list -H -o name); do zpool trim $pool; done || true' ''; }; + + systemd.timers.zpool-trim.timerConfig.Persistent = "yes"; }) ]; } |