added variable time update

pull/2/head
Nickiel12 1 year ago
parent f40a9264c3
commit 01e195b58c

@ -88,6 +88,12 @@ rust-project TODO: write shell script for automatically updating `cargoHash`
The file path to the toml that contains user information secrets
'';
};
frequency = lib.mkOption {
type = lib.type.int;
description = lib.mdDoc ''
The number of minutes to wait between updates
'';
};
};
config.systemd.services.status_cloud = let
cfg = config.services.status_cloud;
@ -109,7 +115,7 @@ rust-project TODO: write shell script for automatically updating `cargoHash`
in lib.mkIf cfg.enable {
wantedBy = [ "timers.target" ];
partOf = [ "status_cloud.service" ];
timerConfig.OnCalendar = [ "*:0/15" ];
timerConfig.OnCalendar = [ "*:0/${builtins.toString cfg.frequncy}" ];
};
};

Loading…
Cancel
Save