Merge pull request #109494 from ipetkov/nixos-zpool-trim-persistent-timer
nixos/zfs: make zpool-trim timer persistent
This commit is contained in:
commit
21d78fa465
@ -664,6 +664,8 @@ in
|
|||||||
# - There are only HDDs and we would set the system in a degraded state
|
# - 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' '';
|
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";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user