Complete rework of the systemd logic.

This commit is contained in:
r-vdp 2023-03-21 16:14:12 +01:00
parent 806b1f23fd
commit 58353436c2
No known key found for this signature in database
9 changed files with 316 additions and 164 deletions

View file

@ -1,6 +1,5 @@
{ lib
, pkgs
, config
, ...
}:
let
@ -23,11 +22,12 @@ let
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecReload = "true";
ExecReload = "${lib.getBin pkgs.coreutils}/bin/true";
};
wantedBy = [ "multi-user.target" ];
requiredBy = lib.mkIf (ix > 5) [ "service-0.service" ];
script = ''
sleep ${if ix > 5 then "3" else "1"}
sleep ${if ix > 5 then "2" else "1"}
'';
})
);