freon: init
This commit is contained in:
parent
7f516629b1
commit
781031ef20
|
@ -23,6 +23,7 @@
|
|||
|
||||
../../users/pbsds
|
||||
|
||||
../../profiles/mounts/freon-nfs.nix
|
||||
../../profiles/mounts/reidun-nfs.nix
|
||||
../../profiles/mounts/meconium-nfs.nix
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
../../users/pbsds
|
||||
../../users/jornane
|
||||
|
||||
../../profiles/mounts/freon-nfs.nix
|
||||
../../profiles/mounts/reidun-nfs.nix
|
||||
../../profiles/mounts/meconium-zfs.nix
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
|
||||
../../users/pbsds
|
||||
|
||||
../../profiles/mounts/freon-nfs.nix
|
||||
../../profiles/mounts/reidun-nfs.nix
|
||||
../../profiles/mounts/meconium-nfs.nix
|
||||
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
{ 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 (
|
||||
(map (mkMount "/mnt/freon" "192.168.1.3:/Freon/") [
|
||||
""
|
||||
#"/something"
|
||||
])
|
||||
);
|
||||
|
||||
}
|
Loading…
Reference in New Issue