mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 01:59:19 +08:00
services.hpcstat: fix
This commit is contained in:
parent
eb4cac0f14
commit
77296face8
@ -82,18 +82,26 @@ inputs:
|
||||
in
|
||||
{
|
||||
services = builtins.listToAttrs (builtins.map
|
||||
(script: { "hpcstat-${script.name}" =
|
||||
(script:
|
||||
{
|
||||
script = script.value;
|
||||
serviceConfig = { Type = "oneshot"; User = "hpcstat"; Group = "hpcstat"; };
|
||||
};})
|
||||
name = "hpcstat-${script.name}";
|
||||
value =
|
||||
{
|
||||
script = script.value;
|
||||
serviceConfig = { Type = "oneshot"; User = "hpcstat"; Group = "hpcstat"; };
|
||||
};
|
||||
})
|
||||
(inputs.localLib.attrsToList scripts));
|
||||
timers = builtins.listToAttrs (builtins.map
|
||||
(calender: { "hpcstat-${calender.name}" =
|
||||
(calender:
|
||||
{
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = { OnCalendar = calender.value; Unit = "hpcstat-${calender.name}.service"; };
|
||||
};})
|
||||
name = "hpcstat-${calender.name}";
|
||||
value =
|
||||
{
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = { OnCalendar = calender.value; Unit = "hpcstat-${calender.name}.service"; };
|
||||
};
|
||||
})
|
||||
(inputs.localLib.attrsToList calenders));
|
||||
tmpfiles.rules = [ "d /var/lib/hpcstat 0700 hpcstat hpcstat" ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user