Commit 36bb5a317f24

Vincent Demeester <vincent@sbr.pm>
2026-06-10 13:18:11
fix(aomi): remove syncthing from system-manager, use home-manager
Avoids duplicate syncthing services. Home-manager version has full folder configuration from globals.nix.
1 parent e8edb24
Changed files (1)
systems
systems/aomi/system.nix
@@ -55,28 +55,6 @@ in
       mode = "0644";
     };
 
-    # Syncthing user service for vincent
-    systemd.services.syncthing = {
-      description = "Syncthing - Open Source Continuous File Synchronization";
-      wants = [ "network-online.target" ];
-      after = [ "network-online.target" ];
-      wantedBy = [ "system-manager.target" ];
-      serviceConfig = {
-        Type = "simple";
-        User = "vincent";
-        Group = "vincent";
-        ExecStart = "${pkgs.syncthing}/bin/syncthing serve --no-browser --no-restart";
-        Restart = "on-failure";
-        RestartSec = "10";
-        SuccessExitStatus = "3 4";
-        RestartForceExitStatus = "3 4";
-        # Hardening
-        ProtectSystem = "full";
-        PrivateTmp = true;
-        SystemCallArchitectures = "native";
-        MemoryDenyWriteExecute = true;
-        NoNewPrivileges = true;
-      };
-    };
+    # Syncthing is managed by home-manager (user service with full folder config)
   };
 }