config/profiles/mounts/reidun-nfs.nix

59 lines
1.4 KiB
Nix
Raw Normal View History

2023-02-24 21:36:30 +01:00
{ config, pkgs, lib, ... }:
{
2023-03-11 15:59:56 +01:00
# TODO: wireguard
#boot.kernelParams = [ "nfs.nfs4_disable_idmapping=0" "nfsd.nfs4_disable_idmapping=0" ];
2023-02-24 21:36:30 +01:00
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;
2024-08-13 16:26:58 +02:00
# TODO: space in dirname is not supported
in joinSets (map (mkMount "/mnt/reidun" "192.168.1.3:/Reidun/shared") [
2023-02-24 21:36:30 +01:00
""
2024-02-10 21:32:14 +01:00
#"/Backups"
2024-02-25 15:43:54 +01:00
#"/Comics"
2023-02-24 21:36:30 +01:00
"/Downloads"
2024-02-17 23:15:21 +01:00
#"/Games"
#"/Games/Installable"
#"/Games/Portable"
#"/Games/ROMs"
2024-02-10 21:32:14 +01:00
#"/ISO"
2024-02-17 03:49:50 +01:00
#"/Images"
#"/Images/Collections"
#"/Images/Memes"
#"/Images/Pictures"
#"/Images/Wallpapers"
2023-02-24 21:36:30 +01:00
"/Music"
"/Music/Albums"
"/Music/Kancolle"
"/Music/OST"
"/Music/Old"
"/Music/Touhou"
"/Music/Vocaloid"
"/Music/dojin.co"
"/Various"
"/Various/Zotero"
"/Various/resilio"
"/Video"
"/Video/Anime"
"/Video/Concerts"
"/Video/Documentaries"
"/Video/Movies"
"/Video/Musicvideos"
"/Video/Series"
"/Work"
"/Work/Documents"
2024-02-10 21:32:14 +01:00
"/Work/FL-Studio"
2023-02-24 21:36:30 +01:00
"/Work/Programming"
"/Work/School"
"/pub"
2024-08-13 16:26:58 +02:00
]);
2023-02-24 21:36:30 +01:00
}