diff options
author | William Carroll <wpcarro@gmail.com> | 2020-08-14T11·50+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-08-20T10·26+0100 |
commit | d903afeb5438e62d24cd4e3420140f913e259bf9 (patch) | |
tree | afee8efaa6e273355a858ee6acce80e2589aba97 /nixos | |
parent | ace08853e03de13dc14077477bd8ccb51e2730f2 (diff) |
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> ```
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/socrates/configuration.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/socrates/configuration.nix b/nixos/socrates/configuration.nix index f88ebe1222e4..7d958dbdeb73 100644 --- a/nixos/socrates/configuration.nix +++ b/nixos/socrates/configuration.nix @@ -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"; |