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