feat(tyr): setup nfs share.

This commit is contained in:
CronyAkatsuki 2025-09-26 02:59:19 +02:00
parent 4a5788ef8a
commit 757336eb6a
3 changed files with 12 additions and 2 deletions

View file

@ -5,7 +5,7 @@
...
}: let
auto_mount = pkgs.writeShellScriptBin "auto_mount" ''
timeout 1 ${pkgs.bash}/bin/bash -c ": < /dev/tcp/192.168.0.4/2049"
timeout 1 ${pkgs.bash}/bin/bash -c ": < /dev/tcp/192.168.0.5/2049"
if [ $? -ne 0 ]; then
systemctl stop mnt-share.automount
@ -24,7 +24,7 @@ in {
config = lib.mkIf config.crony.nfs-share.enable {
# Nfs share
fileSystems."/mnt/share" = {
device = "192.168.0.4:/mnt/nfs";
device = "192.168.0.5:/export/nfs";
fsType = "nfs";
options = ["_netdev" "noauto" "x-systemd.automount" "x-systemd.mount-timeout=10" "timeo=14" "x-systemd.idle-timeout=600"];
};