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

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