aboutsummaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/arrakis/default.nix19
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" ];
};