nixos/mnt.nix

37 lines
734 B
Nix
Raw Normal View History

2024-06-05 23:04:40 +01:00
{ pkgs, ... }:
{
2024-08-29 12:09:20 +01:00
services.rpcbind.enable = true; # needed for NFS
systemd.mounts = [{
type = "nfs";
mountConfig = {
Options = "noatime";
};
what = "100.105.0.115:/BigNAS";
where = "/mnt/BigNAS";
}];
systemd.automounts = [{
wantedBy = [ "multi-user.target" ];
automountConfig = {
TimeoutIdleSec = "600";
};
where = "/mnt/BigNAS";
}];
2024-07-20 15:06:21 +01:00
#fileSystems."/mnt/BigNAS" = {
# device = "10.27.27.239:/BigNAS";
# fsType = "nfs";
2024-08-29 12:09:20 +01:00
# options = [ "x-systemd.automount" "noauto" ];
2024-07-20 15:06:21 +01:00
#};
2024-06-05 23:04:40 +01:00
2024-07-20 15:06:21 +01:00
#fileSystems."/mnt/MainPool" = {
# device = "10.27.27.12:/MainPool";
# fsType = "nfs";
#};
2024-08-29 12:09:20 +01:00
fileSystems."/mnt/NV1" = {
device = "/dev/nvme1n1p1";
fsType = "btrfs";
};
2024-07-20 15:06:21 +01:00
}