Set up autofs
This commit is contained in:
parent
cf760b8b85
commit
b68ca558d8
@ -157,5 +157,19 @@ in
|
|||||||
. $HOME/.bashrc
|
. $HOME/.bashrc
|
||||||
fi
|
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}
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user