mirror of
https://github.com/Gaelan/minifedi
synced 2024-11-13 23:57:08 +00:00
10 lines
272 B
Nix
10 lines
272 B
Nix
{ pkgs, services, path }:
|
|
|
|
let scandir = pkgs.linkFarm "service" services;
|
|
in {
|
|
start = pkgs.writeShellScript "s6-start" ''
|
|
cp -RL ${scandir} $MINIFEDI_RUN/${path}
|
|
chmod -R +w $MINIFEDI_RUN/${path}
|
|
exec ${pkgs.s6}/bin/s6-svscan $MINIFEDI_RUN/${path}
|
|
'';
|
|
}
|