ma share: add hetzner-client
This commit is contained in:
parent
c564c4f0f4
commit
bf3c158391
29
makefu/2configs/share/hetzner-client.nix
Normal file
29
makefu/2configs/share/hetzner-client.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
automount_opts =
|
||||
[ "x-systemd.automount"
|
||||
"noauto" "x-systemd.idle-timeout=600"
|
||||
"x-systemd.device-timeout=5s"
|
||||
"x-systemd.mount-timeout=5s"
|
||||
];
|
||||
host = "u288834.your-storagebox.de";
|
||||
in {
|
||||
boot.kernel.sysctl."net.ipv6.route.max_size" = 2147483647;
|
||||
fileSystems."/media/cloud" = {
|
||||
device = "//${host}/backup";
|
||||
fsType = "cifs";
|
||||
options = automount_opts ++
|
||||
[ "credentials=/var/src/secrets/hetzner.smb"
|
||||
"file_mode=0775"
|
||||
"dir_mode=0775"
|
||||
"uid=9001"
|
||||
#"vers=3"
|
||||
"vers=2.1"
|
||||
"rsize=65536"
|
||||
"wsize=130048"
|
||||
"iocharset=utf8"
|
||||
];
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user