Commit c06f52f3b03f

Vincent Demeester <vincent@sbr.pm>
2022-08-21 11:22:52
systems/modules: move syncthing from desktop to services
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 1f4d9ef
Changed files (4)
systems
systems/hosts/wakasu.nix
@@ -80,6 +80,8 @@ in
     };
     desktop = {
       wayland.sway.enable = true;
+    };
+    services = {
       syncthing = {
         enable = true;
         guiAddress = "${metadata.hosts.wakasu.wireguard.addrs.v4}:8384";
systems/modules/desktop/default.nix
@@ -5,6 +5,5 @@
     ./sway.nix
     ./wayland.nix
     ./xorg.nix
-    ./syncthing.nix
   ];
 }
systems/modules/services/default.nix
@@ -3,6 +3,7 @@
     ./barrier.nix
     ./govanityurl.nix
     ./nix-binary-cache.nix
+    ./syncthing.nix
     ./wireguard.client.nix
   ];
 }
systems/modules/desktop/syncthing.nix → systems/modules/services/syncthing.nix
@@ -3,7 +3,7 @@
 with lib;
 let
   # unstable = versionOlder config.system.nixos.release "21.05";
-  cfg = config.modules.desktop.syncthing;
+  cfg = config.modules.services.syncthing;
   isCurrentHost = n: v: n != config.networking.hostName;
   devices = {
     wakasu = {
@@ -36,7 +36,7 @@ let
 in
 {
   options = {
-    modules.desktop.syncthing = {
+    modules.services.syncthing = {
       enable = mkEnableOption "Enable syncthing profile";
       guiAddress = mkOption {
         type = types.str;