set up homearea automounts
Eval nix flake / evals (push) Successful in 41m25s
Details
Eval nix flake / evals (push) Successful in 41m25s
Details
This commit is contained in:
parent
28e3f5672c
commit
ed1ca817e6
|
@ -5,6 +5,7 @@
|
|||
|
||||
../../base.nix
|
||||
../../misc/metrics-exporters.nix
|
||||
../../modules/home-areas.nix
|
||||
|
||||
#./services/keycloak.nix
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
../../base.nix
|
||||
../../misc/metrics-exporters.nix
|
||||
../../modules/home-areas.nix
|
||||
./services/nginx
|
||||
|
||||
./acmeCert.nix
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
./hardware-configuration.nix
|
||||
../../base.nix
|
||||
../../misc/metrics-exporters.nix
|
||||
../../modules/home-areas.nix
|
||||
|
||||
./services/openvpn-client.nix
|
||||
];
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
./hardware-configuration.nix
|
||||
../../base.nix
|
||||
../../misc/metrics-exporters.nix
|
||||
../../modules/home-areas.nix
|
||||
|
||||
./services/nginx
|
||||
./services/metrics
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
./hardware-configuration.nix
|
||||
../../base.nix
|
||||
../../misc/metrics-exporters.nix
|
||||
../../modules/home-areas.nix
|
||||
];
|
||||
|
||||
sops.defaultSopsFile = ../../secrets/shark/shark.yaml;
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{
|
||||
fileSystems = let
|
||||
shorthandAreas = {
|
||||
# See toriel:/etc/exports
|
||||
"/home/pvv/t/pederbs" = "homepvvt.pvv.ntnu.no:/export/home/pvv/t/pederbs";
|
||||
"/home/pvv/t/yorinad" = "homepvvt.pvv.ntnu.no:/export/home/pvv/t/yorinad";
|
||||
}
|
||||
//
|
||||
# See microbel:/etc/exports
|
||||
(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"
|
||||
];
|
||||
}) shorthandAreas);
|
||||
}
|
Loading…
Reference in New Issue