2023-12-10 06:03:49 +01:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
# TODO: wireguard
|
|
|
|
#boot.kernelParams = [ "nfs.nfs4_disable_idmapping=0" "nfsd.nfs4_disable_idmapping=0" ];
|
|
|
|
|
|
|
|
fileSystems = let
|
|
|
|
mkMount = mountpoint: server: subdir: {
|
|
|
|
"${mountpoint}${subdir}" = {
|
|
|
|
device = "${server}${subdir}";
|
|
|
|
fsType = "nfs";
|
|
|
|
#options = [ "nfsvers=4.2" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
# TODO: combine nameValuePair and listToAttrs
|
|
|
|
joinSets = sets: builtins.foldl' (l: r: l // r) {} sets;
|
|
|
|
in joinSets (
|
|
|
|
# TODO: depend on nox.networking.interfaces.eno1.ipv4.addresses
|
2024-04-03 16:07:08 +02:00
|
|
|
(map (mkMount "/mnt/meconium" "192.168.1.8:/Meconium" ) [
|
2023-12-10 06:03:49 +01:00
|
|
|
""
|
2023-12-10 09:47:02 +01:00
|
|
|
"/backups"
|
|
|
|
"/backups/rocm"
|
2023-12-10 06:03:49 +01:00
|
|
|
"/beets_music"
|
2024-04-16 06:49:45 +02:00
|
|
|
#"/garage"
|
|
|
|
#"/garage/gunktrunk"
|
2023-12-10 06:03:49 +01:00
|
|
|
])
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|