commit 1d5f25b25f5ff8e52fec03a92ef5e8a7f8ee2060 parent 49dfa501fbbc31430b6b600c6322a6311c3031aa Author: Vincent Demeester <vincent@sbr.pm> Date: Fri, 3 Apr 2020 19:39:33 +0200 machine/wakasu: mount sakhalin.home and use /net/* Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | tmp/nixos-configuration/machine/home.nix | | | 20 | +++++++++++++++++++- |
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/tmp/nixos-configuration/machine/home.nix b/tmp/nixos-configuration/machine/home.nix @@ -4,9 +4,27 @@ with import ../assets/machines.nix; { boot.kernelParams = [ "nfs.nfs4_disable_idmapping=0" "nfsd.nfs4_disable_idmapping=0" ]; networking.domain = "synodine.home"; time.timeZone = "Europe/Paris"; + # To mimic autofs on fedora + fileSystems."/net/synodine.home/" = { + device = "${home.ips.synodine}:/"; + fsType = "nfs"; + options = [ "x-systemd.automount" "noauto" ]; + }; + # FIXME(vdemeester): I think it acts like this because there is only one export + fileSystems."/net/sakhalin.home/export/gaia" = { + device = "${home.ips.sakhalin}:/"; + fsType = "nfs"; + options = [ "x-systemd.automount" "noauto" ]; + }; + # Deprecated fileSystems."/mnt/synodine" = { device = "${home.ips.synodine}:/"; fsType = "nfs"; - options = ["x-systemd.automount" "noauto"]; + options = [ "x-systemd.automount" "noauto" ]; + }; + fileSystems."/mnt/sakhalin" = { + device = "${home.ips.sakhalin}:/"; + fsType = "nfs"; + options = [ "x-systemd.automount" "noauto" ]; }; }