about summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/fileSystemLayouts/default.nix2
-rw-r--r--system/services/backup/default.nix1
2 files changed, 3 insertions, 0 deletions
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)";
diff --git a/system/services/backup/default.nix b/system/services/backup/default.nix
index 49cf07fb..20e080b0 100644
--- a/system/services/backup/default.nix
+++ b/system/services/backup/default.nix
@@ -44,6 +44,7 @@ in {
   config = lib.mkIf cfg.enable {
     systemd = {
       services.backup = {
+        wantedBy = lib.mkForce [];
         unitConfig = {
           Description = "Backup the last snapshots of the persitent-storage subvolume.";
         };