fixed nfs

This commit is contained in:
Geir Okkenhaug Jerstad 2025-06-07 16:33:34 +00:00
parent 9bfddf14ce
commit 4a57978f45
6 changed files with 21 additions and 20 deletions

View file

@ -39,7 +39,7 @@
# Mount remote filesystem
fileSystems."/mnt/remote/media" = {
device = "sleeper-service:/mnt/storage";
device = "sleeper-service:/mnt/storage/media";
fsType = "nfs";
options = [
"x-systemd.automount"
@ -94,7 +94,7 @@
# Firewall
networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = [ 22 23231];
networking.firewall.allowedTCPPorts = [ 22 3000 23231];
networking.firewall.allowedUDPPorts = [ 22 23231 ];
networking.nftables.enable = true;
system.stateVersion = "23.05"; # Do not change this, it maintains data compatibility.

View file

@ -22,10 +22,7 @@
{ device = "/dev/disk/by-uuid/E251-F60A";
fsType = "vfat";
};
fileSystems."/mnt/remote/media" =
{ device = "sleeper-service:/mnt/storage";
fsType = "nfs";
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's