From 9282caadd34bf3bd07986ff6cc6e9e6e59438851 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Tue, 31 Dec 2024 01:12:06 -0800 Subject: Fix NFS bind mount dependency --- hosts/arrakis/default.nix | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'hosts') diff --git a/hosts/arrakis/default.nix b/hosts/arrakis/default.nix index 890474c..d42929b 100644 --- a/hosts/arrakis/default.nix +++ b/hosts/arrakis/default.nix @@ -286,20 +286,11 @@ "nfs-bind-mount" = { after = [ "zfs-import-data.service" ]; description = "Bind NFS exports to ZFS paths"; - serviceConfig = { - Type = "simple"; - ExecStart = '' - ${pkgs.util-linux}/bin/mount /srv/nfs/keepers - ${pkgs.util-linux}/bin/mount /srv/nfs/movies - ${pkgs.util-linux}/bin/mount /srv/nfs/tv - ''; - ExecStop = '' - ${pkgs.util-linux}/bin/umount /srv/nfs/keepers - ${pkgs.util-linux}/bin/umount /srv/nfs/movies - ${pkgs.util-linux}/bin/umount /srv/nfs/tv - ''; - RemainAfterExit = true; - }; + script = '' + ${pkgs.util-linux}/bin/mount /srv/nfs/keepers + ${pkgs.util-linux}/bin/mount /srv/nfs/movies + ${pkgs.util-linux}/bin/mount /srv/nfs/tv + ''; wantedBy = [ "local-fs.target" ]; }; -- cgit v1.2.3