This commit is contained in:
parent
5e30f30ac2
commit
d127cf7b05
@ -5,6 +5,10 @@
|
||||
interfaces = [ "enp14s0f1" ];
|
||||
|
||||
config = { config, pkgs, ... }: {
|
||||
imports = [
|
||||
../../modules/home-areas.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
zsh
|
||||
bash
|
||||
@ -99,6 +103,5 @@
|
||||
|
||||
# TODO
|
||||
# - Kerberos Authentication
|
||||
# - Home directory mounts
|
||||
# - Mail Transfer Agent
|
||||
}
|
||||
|
21
modules/home-areas.nix
Normal file
21
modules/home-areas.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{ 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user