2024-05-26 16:45:38 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2022-02-04 23:23:34 +01:00
|
|
|
|
|
|
|
{
|
2022-05-06 03:16:17 +02:00
|
|
|
age.secrets.samba.file = ../../secrets/samba.age;
|
|
|
|
|
2022-12-27 20:04:49 +01:00
|
|
|
fileSystems."/mnt/media" = {
|
2022-06-13 21:58:27 +02:00
|
|
|
device = "//192.168.1.102/media";
|
2022-02-04 23:23:34 +01:00
|
|
|
fsType = "cifs";
|
|
|
|
options = [
|
|
|
|
# automount options
|
|
|
|
"x-systemd.automount"
|
|
|
|
"noauto"
|
|
|
|
"x-systemd.idle-timeout=60"
|
|
|
|
"x-systemd.device-timeout=5s"
|
|
|
|
"x-systemd.mount-timeout=5s"
|
|
|
|
|
|
|
|
"uid=1000"
|
2022-07-13 23:58:39 +02:00
|
|
|
"gid=100"
|
2022-05-04 03:02:47 +02:00
|
|
|
"credentials=${config.age.secrets.samba.path}"
|
2022-07-13 23:58:39 +02:00
|
|
|
|
|
|
|
"nobrl"
|
2022-02-04 23:23:34 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|