diff options
author | Soispha <soispha@vhack.eu> | 2023-04-13 05:55:00 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-05-09 19:30:34 +0200 |
commit | 56c521f068d3c4687cb92d59096e30cb2f3a4cda (patch) | |
tree | 7b801c246ff3ff3131a112988278be5e0b23f0be /system | |
parent | Feat(hm/conf/neomutt): Add fetch-mail bind (diff) | |
download | nixos-config-56c521f068d3c4687cb92d59096e30cb2f3a4cda.tar.gz nixos-config-56c521f068d3c4687cb92d59096e30cb2f3a4cda.zip |
Fix(system): Disable timer activated systemd services
Diffstat (limited to '')
-rw-r--r-- | system/fileSystemLayouts/default.nix | 2 | ||||
-rw-r--r-- | system/services/backup/default.nix | 1 |
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."; }; |