From e4c08419bd8b0251e07103d68fd3d5a244226bab Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 28 Jul 2021 12:47:21 +0200 Subject: [PATCH] Stop SATA-HAT after umount.target is reached --- modules/periodic.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/periodic.nix b/modules/periodic.nix index 0ff5b51..76eab23 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -42,9 +42,10 @@ in { ${pkgs.bash}/bin/bash -c "/etc/nixos/scripts/SATA-hat.sh off" ''; }; - before = [ "zfs-import.target" "zfs-import-vault.service" ]; + before = [ "zfs-import.target" "zfs-import-vault.service" "umount.target" ]; requires = [ "systemd-udev-settle.service" ]; after = [ "systemd-udev-settle.service" ]; + conflicts = [ "umount.target" ]; }; # HACK: restart services dependent on ZFS afer mount