summary refs log tree commit diff
path: root/host/Rory-discordbots/services.nix
blob: e2177d1445a01e8117d4ad8f9f413dfc64762d2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, pkgs, lib, ... }:

{
  systemd.services."foo@" = {
    description = "foo";
    wantedBy = [ "multi-user.target" ];
    serviceConfig = {
      Type = "simple";
      ExecStart = "${pkgs.foo}/bin/foo";
      User = "foo";
      Group = "foo";
      Restart = "always";
      RestartSec = "5s";
    };
  }
}