1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-14 07:09:45 +01:00

nix-gc: add daily frequency option

The systemd.time documentation defines the shorthands `daily` and
`minutely` which are currently not included in the nix-gc module.

This commit adds the `daily` option, but omits `minutely` since it's not
a timescale that would make sense to run a gc for.

https://www.freedesktop.org/software/systemd/man/latest/systemd.time.html
This commit is contained in:
Sofie 2024-03-15 13:36:03 +01:00 committed by Mikilio
parent b316a65c99
commit 3d2206c3f7
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F

View file

@ -9,6 +9,10 @@ let
let
freq = {
"hourly" = [{ Minute = 0; }];
"daily" = [{
Hour = 0;
Minute = 0;
}];
"weekly" = [{
Weekday = 1;
Hour = 0;
@ -62,8 +66,14 @@ in {
};
frequency = mkOption {
type =
types.enum [ "hourly" "weekly" "monthly" "semiannually" "annually" ];
type = types.enum [
"hourly"
"daily"
"weekly"
"monthly"
"semiannually"
"annually"
];
default = "weekly";
example = "monthly";
description = ''