summary refs log tree commit diff
path: root/host/Rory-discordbots/services.nix
blob: a1ef75fd9d15ec91f8e4db164c0cb060e54e5cc6 (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";
    };
  }
}