fusuma: use lib.makeBinPath for service PATH

The local makeBinPath helper reimplemented lib.makeBinPath with a
non-strict foldl accumulator. Use the stdlib function instead: it is
strict and removes the duplicated logic.
This commit is contained in:
Austin Horstman 2026-06-15 21:12:18 -05:00
parent fa4e2f7e10
commit a69e55d05b

View file

@ -57,10 +57,6 @@ let
'';
};
makeBinPath =
packages:
lib.foldl (a: b: if a == "" then b else "${a}:${b}") "" (map (pkg: "${pkg}/bin") packages);
in
{
meta.maintainers = [ lib.maintainers.iosmanthus ];
@ -127,7 +123,7 @@ in
};
Service = {
Environment = "PATH=${makeBinPath cfg.extraPackages}";
Environment = "PATH=${lib.makeBinPath cfg.extraPackages}";
ExecStart = "${cfg.package}/bin/fusuma";
};