mirror of
https://github.com/MichaelFisher1997/nixos.git
synced 2025-06-14 14:23:12 +00:00
31 lines
752 B
Nix
31 lines
752 B
Nix
{... }:
|
|
|
|
{
|
|
services.rpcbind.enable = true; # needed for NFS
|
|
systemd.mounts = [{
|
|
type = "nfs";
|
|
what = "10.27.27.239:/BigNAS";
|
|
where = "/mnt/BigNAS";
|
|
mountConfig = {
|
|
Options = "noatime,nofail,x-systemd.device-timeout=5s";
|
|
};
|
|
}];
|
|
|
|
systemd.automounts = [{
|
|
wantedBy = [ "multi-user.target" ];
|
|
automountConfig = {
|
|
TimeoutIdleSec = "600";
|
|
};
|
|
where = "/mnt/BigNAS";
|
|
}];
|
|
fileSystems."/mnt/NVME" = {
|
|
device = "/dev/disk/by-uuid/15b96913-a018-4ecc-950c-b8cf74b93315";
|
|
fsType = "btrfs";
|
|
options = [ "compress=zstd" "nofail" "x-systemd.device-timeout=5s" ];
|
|
};
|
|
fileSystems."/mnt/ssd2" = {
|
|
device = "/dev/disk/by-uuid/bc0d1423-5682-4150-906f-b1a154a316ea";
|
|
fsType = "btrfs";
|
|
};
|
|
}
|