summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/share/gum-client.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2022-09-23 23:01:58 +0200
committermakefu <github@syntax-fehler.de>2022-09-23 23:01:58 +0200
commitf66a4cb237d29ae152ebb601b62bb6c9e29e4031 (patch)
treeaf2314f695c4d08e26240d1e04accb8965a46154 /makefu/2configs/share/gum-client.nix
parent0c334ea99cf984920a442a27e33d000f7ac9c2d4 (diff)
ma share: proxy hetzner via gum
Diffstat (limited to 'makefu/2configs/share/gum-client.nix')
-rw-r--r--makefu/2configs/share/gum-client.nix23
1 files changed, 15 insertions, 8 deletions
diff --git a/makefu/2configs/share/gum-client.nix b/makefu/2configs/share/gum-client.nix
index db2adfb1c..5192ef515 100644
--- a/makefu/2configs/share/gum-client.nix
+++ b/makefu/2configs/share/gum-client.nix
@@ -2,21 +2,28 @@
let
automount_opts =
- [ "x-systemd.automount"
- "noauto" "x-systemd.idle-timeout=600"
- "x-systemd.device-timeout=5s"
- "x-systemd.mount-timeout=5s"
+ [ "x-systemd.automount" "noauto"
+ "x-systemd.idle-timeout=300"
+ "x-systemd.mount-timeout=60s"
];
- host = "nextgum"; #TODO
+ host = "gum"; #TODO
in {
- fileSystems."/media/download" = {
- device = "//${host}/download";
+ boot.extraModprobeConfig = ''
+ options cifs CIFSMaxBufSize=130048
+ '';
+ fileSystems."/media/cloud" = {
+ device = "//${host}/cloud-proxy";
fsType = "cifs";
options = automount_opts ++
[ "credentials=/var/src/secrets/download.smb"
"file_mode=0775"
"dir_mode=0775"
- "uid=9001"
+ "bsize=8388608"
+ "fsc"
+ "rsize=130048"
+ "cache=loose"
+ "uid=${toString config.users.users.download.uid}"
+ "gid=${toString config.users.groups.download.gid}"
"vers=3"
];
};