This repository has been archived on 2026-07-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
nixos/modules/raspi/mount-data.nix
T
beatzaplenty d5467e9a5b
Check NixOS configurations / eval-hosts (push) Failing after 6m18s
remove raspi docker data mount
2026-07-13 12:48:14 +10:00

47 lines
963 B
Nix

{ ... }:
{
fileSystems."/mnt/raspi" = {
device = "raspberrypi.tail13f623.ts.net:/home/raspi/raspi";
fsType = "nfs4";
options = [
"nofail"
"_netdev"
"noatime"
# Don't mount until first access
"x-systemd.automount"
# Unmount after 10 min idle
"x-systemd.idle-timeout=600"
# Give the Pi/Tailscale a little time to appear
"x-systemd.device-timeout=10s"
# Explicitly use NFSv4.2 if supported
"nfsvers=4.2"
];
};
# fileSystems."/mnt/raspi-data" = {
# device = "raspberrypi.tail13f623.ts.net:/home/raspi/docker-data";
# fsType = "nfs4";
# options = [
# "nofail"
# "_netdev"
# "noatime"
# # Don't mount until first access
# "x-systemd.automount"
# # Unmount after 10 min idle
# "x-systemd.idle-timeout=600"
# # Give the Pi/Tailscale a little time to appear
# "x-systemd.device-timeout=10s"
# # Explicitly use NFSv4.2 if supported
# "nfsvers=4.2"
# ];
# };
}