mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59: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:
parent
ca922258e1
commit
dc2f3812b4
1 changed files with 12 additions and 2 deletions
|
@ -9,6 +9,10 @@ let
|
||||||
let
|
let
|
||||||
freq = {
|
freq = {
|
||||||
"hourly" = [{ Minute = 0; }];
|
"hourly" = [{ Minute = 0; }];
|
||||||
|
"daily" = [{
|
||||||
|
Hour = 0;
|
||||||
|
Minute = 0;
|
||||||
|
}];
|
||||||
"weekly" = [{
|
"weekly" = [{
|
||||||
Weekday = 1;
|
Weekday = 1;
|
||||||
Hour = 0;
|
Hour = 0;
|
||||||
|
@ -62,8 +66,14 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
frequency = mkOption {
|
frequency = mkOption {
|
||||||
type =
|
type = types.enum [
|
||||||
types.enum [ "hourly" "weekly" "monthly" "semiannually" "annually" ];
|
"hourly"
|
||||||
|
"daily"
|
||||||
|
"weekly"
|
||||||
|
"monthly"
|
||||||
|
"semiannually"
|
||||||
|
"annually"
|
||||||
|
];
|
||||||
default = "weekly";
|
default = "weekly";
|
||||||
example = "monthly";
|
example = "monthly";
|
||||||
description = ''
|
description = ''
|
||||||
|
|
Loading…
Reference in a new issue