fixed nfs
This commit is contained in:
parent
9bfddf14ce
commit
4a57978f45
6 changed files with 21 additions and 20 deletions
|
@ -58,10 +58,10 @@
|
|||
# ];
|
||||
|
||||
# Create mount directories early in boot process
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /mnt/storage 0755 root root -"
|
||||
"d /mnt/storage/media 0755 root root -"
|
||||
];
|
||||
# systemd.tmpfiles.rules = [
|
||||
# "d /mnt/storage 0755 root root -"
|
||||
# "d /mnt/storage/media 0755 root root -"
|
||||
# ];
|
||||
|
||||
# Network configuration - using working setup from old config
|
||||
# networking.hostName = "sleeper-service";
|
||||
|
|
|
@ -9,19 +9,20 @@
|
|||
# Export the storage directory (ZFS dataset)
|
||||
# Allow access from both local network and Tailscale network
|
||||
exports = ''
|
||||
/mnt/storage 10.0.0.0/24(rw,sync,no_subtree_check,no_root_squash) 100.64.0.0/10(rw,sync,no_subtree_check,no_root_squash)
|
||||
/mnt/storage 10.0.0.0/24(rw,sync,no_subtree_check,no_root_squash) 100.64.0.0/10(rw,sync,no_subtree_check,no_root_squash)
|
||||
/mnt/storage/media 10.0.0.0/24(rw,sync,no_subtree_check,no_root_squash) 100.64.0.0/10(rw,sync,no_subtree_check,no_root_squash)
|
||||
'';
|
||||
# Create exports on startup
|
||||
createMountPoints = true;
|
||||
};
|
||||
|
||||
# Ensure the storage subdirectories exist (ZFS dataset is mounted at /mnt/storage)
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /mnt/storage/media 0755 sma users -"
|
||||
"d /mnt/storage/downloads 0755 sma users -"
|
||||
"d /mnt/storage/backups 0755 sma users -"
|
||||
"d /mnt/storage/shares 0755 sma users -"
|
||||
];
|
||||
# systemd.tmpfiles.rules = [
|
||||
# "d /mnt/storage/media 0755 sma users -"
|
||||
# "d /mnt/storage/downloads 0755 sma users -"
|
||||
# "d /mnt/storage/backups 0755 sma users -"
|
||||
# "d /mnt/storage/shares 0755 sma users -"
|
||||
# ];
|
||||
|
||||
# Required packages for NFS
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue