server nfs mount

This commit is contained in:
Danilo Reyes 2024-06-22 21:46:08 -06:00
parent b8f19d396f
commit b7129af524
2 changed files with 9 additions and 2 deletions

View File

@ -130,6 +130,11 @@
options = [ "bind" ]; options = [ "bind" ];
depends = [ "/mnt/pool" ]; depends = [ "/mnt/pool" ];
}; };
"/export/btrfs" = {
device = "/mnt/btrfs";
options = [ "bind" ];
depends = [ "/mnt/pool" ];
};
}; };
services.nfs = { services.nfs = {
server = { server = {
@ -138,6 +143,7 @@
/export workstation(rw,fsid=0,no_subtree_check) /export workstation(rw,fsid=0,no_subtree_check)
/export/jawz workstation(rw,nohide,insecure,no_subtree_check) /export/jawz workstation(rw,nohide,insecure,no_subtree_check)
/export/pool workstation(rw,nohide,insecure,no_subtree_check) /export/pool workstation(rw,nohide,insecure,no_subtree_check)
/export/btrfs workstation(rw,nohide,insecure,no_subtree_check)
''; '';
}; };
}; };

View File

@ -76,8 +76,9 @@
"/mnt/games" = btrfsMount "games" // { }; "/mnt/games" = btrfsMount "games" // { };
"/mnt/miniserver/pool" = nfsMount "miniserver" "pool" // { }; "/mnt/miniserver/pool" = nfsMount "miniserver" "pool" // { };
"/mnt/miniserver/jawz" = nfsMount "miniserver" "jawz" // { }; "/mnt/miniserver/jawz" = nfsMount "miniserver" "jawz" // { };
# "/mnt/server/pool" = nfsMount "server" "pool" // { }; "/mnt/server/pool" = nfsMount "server" "pool" // { };
# "/mnt/server/jawz" = nfsMount "server" "jawz" // { }; "/mnt/server/jawz" = nfsMount "server" "jawz" // { };
"/mnt/server/btrfs" = nfsMount "server" "btrfs" // { };
"/boot" = { "/boot" = {
device = "/dev/disk/by-uuid/ac6d349a-96b9-499e-9009-229efd7743a5"; device = "/dev/disk/by-uuid/ac6d349a-96b9-499e-9009-229efd7743a5";
fsType = "ext4"; fsType = "ext4";