2025-09-13 02:38:36 -04:00
|
|
|
{
|
|
|
|
|
pkgs,
|
|
|
|
|
config,
|
|
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
let
|
|
|
|
|
automount_opts = [
|
|
|
|
|
"x-systemd.automount"
|
|
|
|
|
"x-systemd.idle-timeout=60"
|
|
|
|
|
"x-systemd.device-timeout=5s"
|
|
|
|
|
"x-systemd.mount-timeout=5s"
|
|
|
|
|
"noauto"
|
|
|
|
|
"user"
|
|
|
|
|
"users"
|
|
|
|
|
];
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
fileSystems = {
|
|
|
|
|
"/mnt/EclypseCloud" = {
|
|
|
|
|
device = "//100.78.212.35/EclypseCloud";
|
|
|
|
|
fsType = "cifs";
|
|
|
|
|
options = [
|
|
|
|
|
"credentials=${config.age.secrets.eclypsecloud-eclypse.path}"
|
|
|
|
|
"uid=${toString config.users.users.eclypse.uid}"
|
|
|
|
|
"rw"
|
2025-09-18 09:35:45 -04:00
|
|
|
]
|
|
|
|
|
++ automount_opts;
|
2025-09-13 02:38:36 -04:00
|
|
|
};
|
|
|
|
|
"/mnt/Music" = {
|
|
|
|
|
device = "//100.78.212.35/music";
|
|
|
|
|
fsType = "cifs";
|
|
|
|
|
options = [
|
|
|
|
|
"credentials=${config.age.secrets.eclypsecloud-eclypse.path}"
|
|
|
|
|
"uid=${toString config.users.users.eclypse.uid}"
|
|
|
|
|
"rw"
|
2025-09-18 09:35:45 -04:00
|
|
|
]
|
|
|
|
|
++ automount_opts;
|
2025-09-13 02:38:36 -04:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2025-10-14 14:50:25 -04:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
cifs-utils
|
|
|
|
|
# rclone
|
|
|
|
|
];
|
2025-09-18 09:35:45 -04:00
|
|
|
}
|