nixos-config/2configs/share/hetzner-client.nix

28 lines
744 B
Nix
Raw Normal View History

2022-02-08 00:21:59 +01:00
{ config, lib, pkgs, ... }:
let
automount_opts = ["nofail" "_netdev" "soft" "x-systemd.automount"];
2022-02-08 00:21:59 +01:00
host = "u288834.your-storagebox.de";
in {
boot.kernel.sysctl."net.ipv6.route.max_size" = 2147483647;
sops.secrets."hetzner.smb" = {};
2022-02-08 00:21:59 +01:00
fileSystems."/media/cloud" = {
device = "//${host}/backup";
fsType = "cifs";
options = automount_opts ++
[ "credentials=${config.sops.secrets."hetzner.smb".path}"
"file_mode=0770"
"dir_mode=0770"
"uid=${toString config.users.users.download.uid}"
"gid=${toString config.users.groups.download.gid}"
2022-09-23 23:01:58 +02:00
"vers=3"
#"vers=2.1"
2022-02-08 00:21:59 +01:00
"rsize=65536"
"wsize=130048"
"iocharset=utf8"
2022-09-23 23:01:58 +02:00
"cache=loose"
2022-02-08 00:21:59 +01:00
];
};
}