modularized raspi mount
Check NixOS configurations / eval-hosts (push) Failing after 47m52s

This commit is contained in:
2026-07-13 01:12:43 +10:00
parent 8ff22175e5
commit 3bb2b83370
2 changed files with 45 additions and 41 deletions
+19 -40
View File
@@ -26,6 +26,7 @@ in
# ../../modules/nix/tailscale-service.nix
../../modules/tailscale/enable-service.nix
../../modules/rotate-traefik-logs.nix
../../modules/raspi/mount-data.nix
];
@@ -40,54 +41,32 @@ boot.zfs.forceImportRoot = false;
nfs-utils
];
# services.logrotate = {
# enable = true;
# settings = {
# "/mnt/docker-volumes/traefik-data/logs/*.log" = {
# daily = true;
# size = "100M";
# rotate = 20;
# compress = true;
# missingok = true;
# notifempty = true;
# copytruncate = true;
# };
# };
# };
boot.supportedFilesystems = [ "nfs" ];
services.rpcbind.enable = true;
# Mount docker persistent data
# fileSystems."/mnt/docker-persistent-data" = {
# device = "/dev/disk/by-label/docker-data";
# fsType = "ext4";
# options = [ "defaults" "nofail" "noatime" ];
# };
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"
# fileSystems."/mnt/raspi" = {
# device = "raspberrypi.tail13f623.ts.net:/home/raspi/raspi";
# fsType = "nfs4";
# options = [
# "nofail"
# "_netdev"
# "noatime"
# Unmount after 10 min idle
"x-systemd.idle-timeout=600"
# # Don't mount until first access
# "x-systemd.automount"
# Give the Pi/Tailscale a little time to appear
"x-systemd.device-timeout=10s"
# # Unmount after 10 min idle
# "x-systemd.idle-timeout=600"
# Explicitly use NFSv4.2 if supported
"nfsvers=4.2"
];
};
# # Give the Pi/Tailscale a little time to appear
# "x-systemd.device-timeout=10s"
# # Explicitly use NFSv4.2 if supported
# "nfsvers=4.2"
# ];
# };
# Create nextcloud cron scheduled task
systemd.services.nextcloud = {
+25
View File
@@ -0,0 +1,25 @@
{ ... }:
{
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"
];
};
}