diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2025-08-27 09:41:27 -0700 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2025-08-27 09:41:27 -0700 |
commit | 33b2abe35eb7ab449a3056017b06c5cf2793abf8 (patch) | |
tree | 3da620d0b2254a71f373a9bab364dde4ddc57980 /hosts/arrakis | |
parent | ce97d32e8772c47a2ef96c6ffd9e6a718bb9c94d (diff) | |
download | nix-33b2abe35eb7ab449a3056017b06c5cf2793abf8.tar nix-33b2abe35eb7ab449a3056017b06c5cf2793abf8.tar.gz nix-33b2abe35eb7ab449a3056017b06c5cf2793abf8.tar.bz2 nix-33b2abe35eb7ab449a3056017b06c5cf2793abf8.tar.lz nix-33b2abe35eb7ab449a3056017b06c5cf2793abf8.tar.xz nix-33b2abe35eb7ab449a3056017b06c5cf2793abf8.tar.zst nix-33b2abe35eb7ab449a3056017b06c5cf2793abf8.zip |
Add caladan NFS mounts @arrakis
Diffstat (limited to 'hosts/arrakis')
-rw-r--r-- | hosts/arrakis/default.nix | 2 | ||||
-rw-r--r-- | hosts/arrakis/hardware-configuration.nix | 18 | ||||
-rw-r--r-- | hosts/arrakis/services.nix | 3 |
3 files changed, 22 insertions, 1 deletions
diff --git a/hosts/arrakis/default.nix b/hosts/arrakis/default.nix index 7eb9f28..114f4ab 100644 --- a/hosts/arrakis/default.nix +++ b/hosts/arrakis/default.nix @@ -292,6 +292,8 @@ after = [ "zfs-import-data.service" ]; description = "Bind NFS exports to ZFS paths"; script = '' + ${pkgs.util-linux}/bin/mount --onlyonce /srv/caladan/downloads || ${pkgs.coreutils}/bin/true + ${pkgs.util-linux}/bin/mount --onlyonce /srv/caladan/www || ${pkgs.coreutils}/bin/true ${pkgs.util-linux}/bin/mount --onlyonce /srv/nfs/keepers || ${pkgs.coreutils}/bin/true ${pkgs.util-linux}/bin/mount --onlyonce /srv/nfs/movies || ${pkgs.coreutils}/bin/true ${pkgs.util-linux}/bin/mount --onlyonce /srv/nfs/tv || ${pkgs.coreutils}/bin/true diff --git a/hosts/arrakis/hardware-configuration.nix b/hosts/arrakis/hardware-configuration.nix index c7a6652..1948809 100644 --- a/hosts/arrakis/hardware-configuration.nix +++ b/hosts/arrakis/hardware-configuration.nix @@ -21,6 +21,24 @@ MOZ_DISABLE_RDD_SANDBOX = "1"; }; + fileSystems."/srv/caladan/downloads" = { + device = "/data/home/nipsy/downloads"; + fsType = "none"; + options = [ + "bind" + "noauto" + ]; + }; + + fileSystems."/srv/caladan/www" = { + device = "/data/home/nipsy/www"; + fsType = "none"; + options = [ + "bind" + "noauto" + ]; + }; + fileSystems."/srv/nfs/keepers" = { device = "/data/home/nipsy/downloads/keepers"; fsType = "none"; diff --git a/hosts/arrakis/services.nix b/hosts/arrakis/services.nix index a42a2b9..3f68caf 100644 --- a/hosts/arrakis/services.nix +++ b/hosts/arrakis/services.nix @@ -65,7 +65,8 @@ server = { enable = true; exports = '' - /srv/nfs 192.168.1.0/24(ro,all_squash,insecure,crossmnt,subtree_check,fsid=0) + /srv/nfs 192.168.1.0/24(ro,all_squash,insecure,crossmnt,subtree_check,fsid=1) + /srv/caladan 192.168.1.4/32(rw,root_squash,crossmnt,subtree_check,fsid=2) ''; }; settings = { |