From 56c521f068d3c4687cb92d59096e30cb2f3a4cda Mon Sep 17 00:00:00 2001 From: Soispha Date: Thu, 13 Apr 2023 05:55:00 +0200 Subject: Fix(system): Disable timer activated systemd services --- system/fileSystemLayouts/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'system/fileSystemLayouts/default.nix') diff --git a/system/fileSystemLayouts/default.nix b/system/fileSystemLayouts/default.nix index 1676d993..40855714 100644 --- a/system/fileSystemLayouts/default.nix +++ b/system/fileSystemLayouts/default.nix @@ -48,6 +48,7 @@ in { systemd = { services = { hibernate-preparation = { + # TODO check if they work wantedBy = ["systemd-hibernate.service"]; unitConfig = { Description = "Enable swap file and disable zram before hibernate"; @@ -91,6 +92,7 @@ in { }; }; services.fstrim = lib.mkIf cfg.ssd { + wantedBy = lib.mkForce []; unitConfig = { Description = "Discard unused blocks on filesystems from /etc/fstab"; Documentation = "man:fstrim(8)"; -- cgit 1.4.1