summaryrefslogtreecommitdiffstats
path: root/makefu
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2022-02-08 00:21:59 +0100
committermakefu <github@syntax-fehler.de>2022-02-08 00:21:59 +0100
commitbf3c158391b982ed660fd968d4bb2a19590bf5bd (patch)
tree7d34c7d399b4ae0c312c7052e942c2a76c61b451 /makefu
parentc564c4f0f48e6d6e889f50b520b7c512df527660 (diff)
ma share: add hetzner-client
Diffstat (limited to 'makefu')
-rw-r--r--makefu/2configs/share/hetzner-client.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/makefu/2configs/share/hetzner-client.nix b/makefu/2configs/share/hetzner-client.nix
new file mode 100644
index 000000000..e59698063
--- /dev/null
+++ b/makefu/2configs/share/hetzner-client.nix
@@ -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"
+ ];
+ };
+
+}