summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/share/hetzner-client.nix
blob: f7afc6d5754a5ef6ec8abafb2012a2f772f225ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ config, lib, pkgs, ... }:

with <stockholm/lib>;
let
  automount_opts =
  ["nofail" "noempty"
  ];
  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=${toString <secrets/hetzner.smb>}"
        "file_mode=0770"
        "dir_mode=0770"
        "uid=${toString config.users.users.download.uid}"
        "gid=${toString config.users.groups.download.gid}"
        "vers=3"
        #"vers=2.1"
        "rsize=65536"
        "wsize=130048"
        "iocharset=utf8"
        "cache=loose"
      ];
  };
}