Operand

cancel con sole.

gram: build

> ./nixos/module/process.nix

Lenses
(coming soon!)


{ name, channel, pkg }:
{...}:
{
  environment.systemPackages = [ pkg ];
  systemd.services."${name}" = { enable = true;
    description = "${name}, on :${toString channel}";
    wantedBy = ["multi-user.target"];
    unitConfig = { After = "local-fs.target"; Wants = "local-fs.target"; };

    serviceConfig = {
      ExecStart = "${pkg}/bin/${name}";
      Type = "exec";
      KillMode = "process";
      TimeoutSec = 0;
      Restart = "always";
    };
}; }