From 4915b1ba8902c53a0990ee73c434f33297d0434b Mon Sep 17 00:00:00 2001 From: Sergei Bulavintsev Date: Thu, 25 Jan 2024 11:34:27 +0300 Subject: [PATCH] feat(nix): auto mount nfs share --- nix/nixos/hardware-configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/nixos/hardware-configuration.nix b/nix/nixos/hardware-configuration.nix index 3bd6c0f..319e329 100644 --- a/nix/nixos/hardware-configuration.nix +++ b/nix/nixos/hardware-configuration.nix @@ -27,6 +27,12 @@ fsType = "vfat"; }; + fileSystems."/mnt/tank" = { + device = "truenas.sbulav.gq:/mnt/tank"; + options = ["x-systemd.automount" "x-systemd.idle-timeout=600" "noauto"]; + fsType = "nfs"; + }; + swapDevices = [ {device = "/dev/disk/by-uuid/73002676-c9b2-46e8-a987-5bf002c91cbc";} ];