ctucx.git: nixfiles

ctucx' nixfiles

commit 04be1bd2324d8aa3341bcd8d04edbbebfc8163f6
parent 0d12f6d6855756011310c6cb1369eced7558dd8d
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 23 Jan 2022 22:21:29 +0100

programs/syncthing: append `/syncthing` to dataDir on hosts [ lollo, desastro ]
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configurations/programs/syncthing.nix b/configurations/programs/syncthing.nix
@@ -39,7 +39,8 @@ let
     else
       false;
 
-  dataDir        = "/home/leah" + (if config.networking.hostName == "desastro" then "/syncthing" else "");
+  appendDataDirHosts = [ "desastro" "lollo" ];
+  dataDir     = "/home/leah" + (if builtins.elem config.networking.hostName appendDataDirHosts then "/syncthing" else "");
 
 in {
   services = {