mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2025-12-15 06:37:14 +01:00
bikkje: mount home directories
This commit is contained in:
20
modules/home-areas.nix
Normal file
20
modules/home-areas.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
fileSystems = let
|
||||
# See microbel:/etc/exports
|
||||
homeMounts = (lib.listToAttrs (map
|
||||
(l: lib.nameValuePair "/home/pvv/${l}" "homepvv${l}.pvv.ntnu.no:/export/home/pvv/${l}")
|
||||
[ "a" "b" "c" "d" "h" "i" "j" "k" "l" "m" "z" ]));
|
||||
in { }
|
||||
//
|
||||
(lib.mapAttrs (_: device: {
|
||||
inherit device;
|
||||
fsType = "nfs";
|
||||
options = [
|
||||
"nfsvers=3"
|
||||
"proto=tcp"
|
||||
"nofail"
|
||||
"_netdev"
|
||||
];
|
||||
}) homeMounts);
|
||||
}
|
||||
Reference in New Issue
Block a user