From c3d0d5a1e9eb62df964b5e858c8f8fcb1e5a67b5 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Sun, 24 Sep 2023 19:46:04 -0600 Subject: [PATCH] bugfix nfs shares rename --- server/configuration.org | 2 +- server/{hardware-configuration.nix => fstab.nix} | 10 +++++----- workstation/fstab.nix | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename server/{hardware-configuration.nix => fstab.nix} (91%) diff --git a/server/configuration.org b/server/configuration.org index 8b8717f..dc22fd2 100755 --- a/server/configuration.org +++ b/server/configuration.org @@ -60,7 +60,7 @@ passwords and other secrets. #+begin_src nix imports = [ - ./hardware-configuration.nix + ./fstab.nix ./servers.nix # ./openldap.nix # diff --git a/server/hardware-configuration.nix b/server/fstab.nix similarity index 91% rename from server/hardware-configuration.nix rename to server/fstab.nix index 6868453..b1da202 100755 --- a/server/hardware-configuration.nix +++ b/server/fstab.nix @@ -140,11 +140,11 @@ server = { enable = true; exports = '' - /export 192.168.1.64(rw,fsid=0,no_subtree_check) - /export/disk1 192.168.1.64(rw,nohide,insecure,no_subtree_check) - /export/disk2 192.168.1.64(rw,nohide,insecure,no_subtree_check) - /export/seedbox 192.168.1.64(rw,nohide,insecure,no_subtree_check) - /export/jawz 192.168.1.64(rw,nohide,insecure,no_subtree_check) + /export workstation(rw,fsid=0,no_subtree_check) + /export/disk1 workstation(rw,nohide,insecure,no_subtree_check) + /export/disk2 workstation(rw,nohide,insecure,no_subtree_check) + /export/seedbox workstation(rw,nohide,insecure,no_subtree_check) + /export/jawz workstation(rw,nohide,insecure,no_subtree_check) ''; }; }; diff --git a/workstation/fstab.nix b/workstation/fstab.nix index 3d7a054..b22c8f4 100644 --- a/workstation/fstab.nix +++ b/workstation/fstab.nix @@ -33,7 +33,7 @@ fileSystems = let mount = disk: { - device = "workstation:/${disk}"; + device = "server:/${disk}"; fsType = "nfs"; }; in {