freon: init

This commit is contained in:
Peder Bergebakken Sundt 2024-01-11 00:36:51 +01:00
parent 7f516629b1
commit 781031ef20
4 changed files with 26 additions and 0 deletions

View File

@ -23,6 +23,7 @@
../../users/pbsds ../../users/pbsds
../../profiles/mounts/freon-nfs.nix
../../profiles/mounts/reidun-nfs.nix ../../profiles/mounts/reidun-nfs.nix
../../profiles/mounts/meconium-nfs.nix ../../profiles/mounts/meconium-nfs.nix

View File

@ -15,6 +15,7 @@
../../users/pbsds ../../users/pbsds
../../users/jornane ../../users/jornane
../../profiles/mounts/freon-nfs.nix
../../profiles/mounts/reidun-nfs.nix ../../profiles/mounts/reidun-nfs.nix
../../profiles/mounts/meconium-zfs.nix ../../profiles/mounts/meconium-zfs.nix

View File

@ -34,6 +34,7 @@
../../users/pbsds ../../users/pbsds
../../profiles/mounts/freon-nfs.nix
../../profiles/mounts/reidun-nfs.nix ../../profiles/mounts/reidun-nfs.nix
../../profiles/mounts/meconium-nfs.nix ../../profiles/mounts/meconium-nfs.nix

View File

@ -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"
])
);
}