pvv-nixos-config/modules/home-areas.nix
h7x4 d127cf7b05
Some checks failed
Eval nix flake / evals (push) Failing after 1m50s
bikkje: mount home directories
2024-02-18 23:36:23 +01:00

22 lines
506 B
Nix

{ 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"
"noauto"
"proto=tcp"
"x-systemd.automount"
"x-systemd.idle-timeout=300"
];
}) homeMounts);
}