Skip to content

Commit

Permalink
feat(nix): auto mount nfs share
Browse files Browse the repository at this point in the history
  • Loading branch information
sbulav committed Jan 25, 2024
1 parent 221ef06 commit 4915b1b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nix/nixos/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";}
];
Expand Down

0 comments on commit 4915b1b

Please sign in to comment.