mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-19 23:41:21 +02:00
15 lines
343 B
Nix
15 lines
343 B
Nix
{
|
|
config,
|
|
username,
|
|
...
|
|
}: {
|
|
# mount a smb/cifs share
|
|
fileSystems."/home/${username}/SMB-Downloads" = {
|
|
device = "//192.168.5.194/Downloads";
|
|
fsType = "cifs";
|
|
options = [
|
|
"vers=3.0,uid=1000,gid=100,dir_mode=0755,file_mode=0755,mfsymlinks,credentials=${config.age.secrets.smb-credentials.path},nofail"
|
|
];
|
|
};
|
|
}
|