stockholm/makefu/2configs/share/gum-client.nix

32 lines
729 B
Nix
Raw Normal View History

2018-09-04 07:47:08 +00:00
{ config, lib, pkgs, ... }:
let
automount_opts =
2022-09-23 21:01:58 +00:00
[ "x-systemd.automount" "noauto"
"x-systemd.idle-timeout=300"
"x-systemd.mount-timeout=60s"
2018-09-04 07:47:08 +00:00
];
2022-09-23 21:01:58 +00:00
host = "gum"; #TODO
2018-09-04 07:47:08 +00:00
in {
2022-09-23 21:01:58 +00:00
boot.extraModprobeConfig = ''
options cifs CIFSMaxBufSize=130048
'';
fileSystems."/media/cloud" = {
device = "//${host}/cloud-proxy";
2018-09-04 07:47:08 +00:00
fsType = "cifs";
options = automount_opts ++
[ "credentials=/var/src/secrets/download.smb"
"file_mode=0775"
"dir_mode=0775"
2022-09-23 21:01:58 +00:00
"bsize=8388608"
"fsc"
"rsize=130048"
"cache=loose"
"uid=${toString config.users.users.download.uid}"
"gid=${toString config.users.groups.download.gid}"
2018-09-16 23:11:57 +00:00
"vers=3"
2018-09-04 07:47:08 +00:00
];
};
}