diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2024-12-31 01:12:06 -0800 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2024-12-31 01:12:06 -0800 |
commit | 9282caadd34bf3bd07986ff6cc6e9e6e59438851 (patch) | |
tree | f65755b71f84c304fd3a0c6cacd1dfbf04b41231 /hosts/arrakis | |
parent | 49424d34bf0a8a5355ea13f335ebf6037a19eda7 (diff) | |
download | nix-9282caadd34bf3bd07986ff6cc6e9e6e59438851.tar nix-9282caadd34bf3bd07986ff6cc6e9e6e59438851.tar.gz nix-9282caadd34bf3bd07986ff6cc6e9e6e59438851.tar.bz2 nix-9282caadd34bf3bd07986ff6cc6e9e6e59438851.tar.lz nix-9282caadd34bf3bd07986ff6cc6e9e6e59438851.tar.xz nix-9282caadd34bf3bd07986ff6cc6e9e6e59438851.tar.zst nix-9282caadd34bf3bd07986ff6cc6e9e6e59438851.zip |
Fix NFS bind mount dependency
Diffstat (limited to 'hosts/arrakis')
-rw-r--r-- | hosts/arrakis/default.nix | 19 |
1 files changed, 5 insertions, 14 deletions
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" ]; }; |