From 014673205c337261ba4ba67a20833d996039eeba Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Wed, 17 Jan 2024 09:06:39 +0100 Subject: [PATCH] Fix lapetus usb mounting service target --- hosts/nixos/lapetus/filesystems/zfs.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hosts/nixos/lapetus/filesystems/zfs.nix b/hosts/nixos/lapetus/filesystems/zfs.nix index 8df786b..1c39ca9 100644 --- a/hosts/nixos/lapetus/filesystems/zfs.nix +++ b/hosts/nixos/lapetus/filesystems/zfs.nix @@ -16,9 +16,8 @@ RemainAfterExit = true; }; unitConfig.DefaultDependencies = "no"; - wantedBy = [ "initrd.target" ]; - before = [ "zfs-mount.service" ]; - after = [ "zfs-import.target" ]; + wantedBy = [ "zfs-import.target" ]; + before = [ "zfs-import.target" ]; script = '' MOUNTPOINT="${secretMountpoint}" USB="/dev/sdb"