Set up autofs

This commit is contained in:
Jan-Bulthuis 2025-06-10 01:15:50 +02:00
parent cf760b8b85
commit b68ca558d8

View File

@ -157,5 +157,19 @@ in
. $HOME/.bashrc
fi
'';
# Mount home directory
services.autofs = {
enable = true;
autoMaster =
let
networkMap = pkgs.writeText "auto" ''
* -fstype=cifs,multiuser,cruid=''${UID},sec=krb5 ://${inputs.secrets.lab.nas.host}/&
'';
in
''
/network file:${networkMap}
'';
};
};
}