mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-20 16:01:21 +02:00
refactor: Use hyphen(`-`) for variable names & folder names(except Python), replace all unserscore(`_`) with hyphen(`-`).
18 lines
444 B
Nix
18 lines
444 B
Nix
{
|
|
config,
|
|
myvars,
|
|
...
|
|
}: {
|
|
# mount a smb/cifs share
|
|
fileSystems."/home/${myvars.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}"
|
|
];
|
|
};
|
|
}
|