From 20212e406ca3d24cbce0b20b6d03036136c6f536 Mon Sep 17 00:00:00 2001 From: Andre Date: Tue, 2 Jul 2024 15:12:17 -0400 Subject: [PATCH] Home-manager: prevent Syncthing autostart --- hosts/Dimaga/default.nix | 8 ++++++++ modules/users/aires/default.nix | 2 +- modules/users/gremlin/default.nix | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/hosts/Dimaga/default.nix b/hosts/Dimaga/default.nix index 1d011d1..99ff34d 100644 --- a/hosts/Dimaga/default.nix +++ b/hosts/Dimaga/default.nix @@ -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. diff --git a/modules/users/aires/default.nix b/modules/users/aires/default.nix index f4214d6..4f4d370 100644 --- a/modules/users/aires/default.nix +++ b/modules/users/aires/default.nix @@ -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 { }; }; }; }) diff --git a/modules/users/gremlin/default.nix b/modules/users/gremlin/default.nix index 68d7392..0e7aa05 100644 --- a/modules/users/gremlin/default.nix +++ b/modules/users/gremlin/default.nix @@ -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 { }; }; }; })