2018-09-04 09:47:08 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
automount_opts =
|
2023-07-12 20:34:13 +02:00
|
|
|
[ "x-systemd.automount" "nofail"
|
2022-09-23 23:01:58 +02:00
|
|
|
"x-systemd.idle-timeout=300"
|
|
|
|
"x-systemd.mount-timeout=60s"
|
2018-09-04 09:47:08 +02:00
|
|
|
];
|
2023-07-09 17:40:17 +02:00
|
|
|
host = "gum.w";
|
2018-09-04 09:47:08 +02:00
|
|
|
in {
|
2022-09-23 23:01:58 +02:00
|
|
|
boot.extraModprobeConfig = ''
|
|
|
|
options cifs CIFSMaxBufSize=130048
|
|
|
|
'';
|
|
|
|
fileSystems."/media/cloud" = {
|
|
|
|
device = "//${host}/cloud-proxy";
|
2018-09-04 09:47:08 +02:00
|
|
|
fsType = "cifs";
|
|
|
|
options = automount_opts ++
|
2023-07-09 17:40:17 +02:00
|
|
|
[ "credentials=${config.sops.secrets."download.smb".path}"
|
2018-09-04 09:47:08 +02:00
|
|
|
"file_mode=0775"
|
|
|
|
"dir_mode=0775"
|
2022-09-23 23:01:58 +02:00
|
|
|
"bsize=8388608"
|
|
|
|
"fsc"
|
|
|
|
"rsize=130048"
|
|
|
|
"cache=loose"
|
|
|
|
"uid=${toString config.users.users.download.uid}"
|
|
|
|
"gid=${toString config.users.groups.download.gid}"
|
2018-09-17 01:11:57 +02:00
|
|
|
"vers=3"
|
2018-09-04 09:47:08 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|