blob: be9ab026b402ac2a7231909b2bcf03a9cacb408f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ 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 = "nextgum"; #TODO
in {
fileSystems."/media/download" = {
device = "//${host}/download";
fsType = "cifs";
options = automount_opts ++
[ "credentials=/var/src/secrets/download.smb"
"file_mode=0775"
"dir_mode=0775"
"uid=9001"
];
};
}
|