1
0
Fork 0

Home-manager: prevent Syncthing autostart

This commit is contained in:
Aires 2024-07-02 15:12:17 -04:00
parent fa6157c228
commit 20212e406c
3 changed files with 10 additions and 2 deletions

View file

@ -41,6 +41,14 @@ in
# To see all available timezones, run `timedatectl list-timezones`.
time.timeZone = "America/New_York";
# Disable suspend
systemd.targets = {
sleep.enable = false;
suspend.enable = false;
hibernate.enable = false;
hybrid-sleep.enable = false;
};
# Configure the system.
aux.system = {
# Enable to allow unfree (e.g. closed source) packages.

View file

@ -160,7 +160,7 @@ with lib;
# Override the default Syncthing settings so it doesn't start on boot
systemd.user.services."syncthing" = mkIf (!cfg.services.syncthing.autostart) {
Install = lib.mkForce { };
wantedBy = lib.mkForce { };
};
};
})

View file

@ -131,7 +131,7 @@ with lib;
# Override the default Syncthing settings so it doesn't start on boot
systemd.user.services."syncthing" = mkIf (!cfg.services.syncthing.autostart) {
Install = lib.mkForce { };
wantedBy = lib.mkForce { };
};
};
})