Merge pull request #109494 from ipetkov/nixos-zpool-trim-persistent-timer

nixos/zfs: make zpool-trim timer persistent
This commit is contained in:
Jörg Thalheim 2021-01-16 13:20:18 +00:00 committed by GitHub
commit 21d78fa465
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";
})
];
}