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