Files
nix-config-ryan4yin/hosts/idols_ai/cifs-mount.nix

18 lines
439 B
Nix

{
config,
username,
...
}: {
# mount a smb/cifs share
fileSystems."/home/${username}/SMB-Downloads" = {
device = "//192.168.5.194/Downloads";
fsType = "cifs";
options = [
# https://www.freedesktop.org/software/systemd/man/latest/systemd.mount.html
"nofail,_netdev"
"uid=1000,gid=100,dir_mode=0755,file_mode=0755"
"vers=3.0,credentials=${config.age.secrets.smb-credentials.path}"
];
};
}