From 49d864839affb1bd9564f1c33832b938a7484eb2 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Tue, 19 Dec 2023 20:06:54 -0800 Subject: [PATCH] imperium: syncthing system service --- machine/imperium/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/machine/imperium/default.nix b/machine/imperium/default.nix index 21c8961..59dfdf3 100644 --- a/machine/imperium/default.nix +++ b/machine/imperium/default.nix @@ -54,7 +54,6 @@ firefox libreoffice mpv - syncthing unzip ]; @@ -62,6 +61,17 @@ enable = false; }; + # tvb monopolizes the system syncthing for now. User services are harder to get working + # and nobody else uses imperium right now. In the future, rewriting the syncthing module + # to allow multiple instances is probably the right move. + services.syncthing = { + enable = true; + dataDir = "/home/tvb"; + openDefaultPorts = true; + user = "tvb"; + group = "tvb"; + }; + # This value governs how some stateful data, like databases, are handled # across different versions of NixOS. This should not be changed to a new # release unless the sysadmin has determined that no services would be