2022-02-07 23:21:59 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2022-03-01 22:26:31 +00:00
|
|
|
with <stockholm/lib>;
|
2022-02-07 23:21:59 +00:00
|
|
|
let
|
|
|
|
automount_opts =
|
2023-06-03 13:35:54 +00:00
|
|
|
["nofail"
|
2022-02-07 23:21:59 +00:00
|
|
|
];
|
|
|
|
host = "u288834.your-storagebox.de";
|
|
|
|
in {
|
|
|
|
boot.kernel.sysctl."net.ipv6.route.max_size" = 2147483647;
|
2022-03-01 22:26:31 +00:00
|
|
|
|
2022-02-07 23:21:59 +00:00
|
|
|
fileSystems."/media/cloud" = {
|
|
|
|
device = "//${host}/backup";
|
|
|
|
fsType = "cifs";
|
|
|
|
options = automount_opts ++
|
2022-03-01 22:26:31 +00:00
|
|
|
[ "credentials=${toString <secrets/hetzner.smb>}"
|
|
|
|
"file_mode=0770"
|
|
|
|
"dir_mode=0770"
|
|
|
|
"uid=${toString config.users.users.download.uid}"
|
|
|
|
"gid=${toString config.users.groups.download.gid}"
|
2022-09-23 21:01:58 +00:00
|
|
|
"vers=3"
|
|
|
|
#"vers=2.1"
|
2022-02-07 23:21:59 +00:00
|
|
|
"rsize=65536"
|
|
|
|
"wsize=130048"
|
|
|
|
"iocharset=utf8"
|
2022-09-23 21:01:58 +00:00
|
|
|
"cache=loose"
|
2022-02-07 23:21:59 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|