added variable time update
This commit is contained in:
parent
f40a9264c3
commit
01e195b58c
1 changed files with 7 additions and 1 deletions
|
@ -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…
Reference in a new issue