about summary refs log tree commit diff
diff options
context:
space:
mode:
authordevhell <devhell@mailfresser.de>2019-08-01 15:47:32 +0100
committerdevhell <devhell@mailfresser.de>2019-08-01 15:47:32 +0100
commita808f28816e92d698bf58b43dc424f659514aba7 (patch)
tree792180ffe4f2aae83cc83114929f608f806aa01b
parentfc513a130ab79ac54a654f50d3232bfead441c1b (diff)
profiles/services: Move syncthing to machines
Unfortunately gunnr can't access syncthing from its network, and so
there's no point in having it run. Looks ugly and needs to be DRY-ed at
some point in time, but that'll have to wait.
-rw-r--r--machines/devhell/eir.nix5
-rw-r--r--machines/devhell/hildr.nix5
-rw-r--r--machines/devhell/sigrun.nix5
-rw-r--r--modules/user/devhell/profiles/services.nix6
4 files changed, 15 insertions, 6 deletions
diff --git a/machines/devhell/eir.nix b/machines/devhell/eir.nix
index 13f02c3a..673b1220 100644
--- a/machines/devhell/eir.nix
+++ b/machines/devhell/eir.nix
@@ -95,6 +95,11 @@
       install = true;
       path = [ pkgs.notmuch ];
     };
+    syncthing = {
+      enable = true;
+      user = "dev";
+      dataDir = "/home/dev/syncthing/";
+    };
   };
 
   services.udev = {
diff --git a/machines/devhell/hildr.nix b/machines/devhell/hildr.nix
index ee21cfa0..01eba608 100644
--- a/machines/devhell/hildr.nix
+++ b/machines/devhell/hildr.nix
@@ -99,6 +99,11 @@
       install = true;
       path = [ pkgs.notmuch ];
     };
+    syncthing = {
+      enable = true;
+      user = "dev";
+      dataDir = "/home/dev/syncthing/";
+    };
   };
 
   services.acpid = {
diff --git a/machines/devhell/sigrun.nix b/machines/devhell/sigrun.nix
index 96b55197..fa9d5597 100644
--- a/machines/devhell/sigrun.nix
+++ b/machines/devhell/sigrun.nix
@@ -100,6 +100,11 @@
       install = true;
       path = [ pkgs.notmuch ];
     };
+    syncthing = {
+      enable = true;
+      user = "dev";
+      dataDir = "/home/dev/syncthing/";
+    };
   };
 
   services.xserver = {
diff --git a/modules/user/devhell/profiles/services.nix b/modules/user/devhell/profiles/services.nix
index 64ebfdff..901e7170 100644
--- a/modules/user/devhell/profiles/services.nix
+++ b/modules/user/devhell/profiles/services.nix
@@ -76,12 +76,6 @@ in {
       };
     };
 
-    services.syncthing = {
-      enable = true;
-      user = "dev";
-      dataDir = "/home/dev/syncthing/";
-    };
-
     services.journald.extraConfig = ''
       SystemMaxUse = 50M
     '';