Define the monoserver as a systemd service

Much better than manually running:

```shell
$ cd ~/briefcase && git pull --rebase origin master
$ nix-rebuild switch
$ nix-build -A zoo
$ pkill zoo
$ ./result/zoo &
$ job -l
$ disown %<job-number>
```
This commit is contained in:
William Carroll 2020-08-14 12:50:32 +01:00
parent ace08853e0
commit d903afeb54

View file

@ -142,6 +142,16 @@ in {
# };
# };
systemd.services.zoo = {
enable = true;
description = "Run my monoserver";
script = "${briefcase.zoo}/zoo";
environment = {};
serviceConfig = {
Restart = "always";
};
};
services.gitDaemon = {
enable = true;
basePath = "/srv/git";