2024-03-28 08:54:48 -07:00
|
|
|
{config, ...}: {
|
|
|
|
|
age.secrets.uwuraid.file = ../secrets/uwuraid.age;
|
2024-10-07 19:41:32 -07:00
|
|
|
systemd.mounts = let
|
|
|
|
|
opts = {
|
|
|
|
|
type = "cifs";
|
2025-03-09 01:21:37 -08:00
|
|
|
mountConfig = {Options = "noauto,noatime,async,users,rw,x-systemd.automount,credentials=${config.age.secrets.uwuraid.path},gid=users,file_mode=0770,dir_mode=0770";};
|
2024-10-07 19:41:32 -07:00
|
|
|
};
|
|
|
|
|
in [
|
|
|
|
|
(opts
|
|
|
|
|
// {
|
|
|
|
|
what = "//100.97.47.81/anime";
|
|
|
|
|
where = "/mnt/uwuraid/anime";
|
|
|
|
|
})
|
2025-01-30 17:42:24 -08:00
|
|
|
(opts
|
|
|
|
|
// {
|
|
|
|
|
what = "//100.97.47.81/appdata";
|
|
|
|
|
where = "/mnt/uwuraid/appdata";
|
|
|
|
|
})
|
2024-10-07 19:41:32 -07:00
|
|
|
(opts
|
|
|
|
|
// {
|
|
|
|
|
what = "//100.97.47.81/backup";
|
|
|
|
|
where = "/mnt/uwuraid/backup";
|
|
|
|
|
})
|
|
|
|
|
(opts
|
|
|
|
|
// {
|
|
|
|
|
what = "//100.97.47.81/everything";
|
|
|
|
|
where = "/mnt/uwuraid/everything";
|
|
|
|
|
})
|
|
|
|
|
# (opts
|
|
|
|
|
# // {
|
|
|
|
|
# what = "//100.97.47.81/isos";
|
|
|
|
|
# where = "/mnt/uwuraid/isos";
|
|
|
|
|
# })
|
|
|
|
|
(opts
|
|
|
|
|
// {
|
|
|
|
|
what = "//100.97.47.81/photos";
|
|
|
|
|
where = "/mnt/uwuraid/photos";
|
|
|
|
|
})
|
|
|
|
|
(opts
|
|
|
|
|
// {
|
|
|
|
|
what = "//100.97.47.81/virginia";
|
|
|
|
|
where = "/mnt/uwuraid/virginia";
|
|
|
|
|
})
|
|
|
|
|
];
|
|
|
|
|
systemd.automounts = let
|
|
|
|
|
opts = {
|
|
|
|
|
wantedBy = ["multi-user.target"];
|
2025-03-09 01:21:37 -08:00
|
|
|
automountConfig = {
|
|
|
|
|
TimeoutIdleSec = "60";
|
|
|
|
|
# DirectoryMode
|
|
|
|
|
};
|
2024-10-07 19:41:32 -07:00
|
|
|
};
|
|
|
|
|
in [
|
|
|
|
|
(opts // {where = "/mnt/uwuraid/anime";})
|
2025-01-30 17:42:24 -08:00
|
|
|
(opts // {where = "/mnt/uwuraid/appdata";})
|
2024-10-07 19:41:32 -07:00
|
|
|
(opts // {where = "/mnt/uwuraid/backup";})
|
|
|
|
|
(opts // {where = "/mnt/uwuraid/everything";})
|
|
|
|
|
# (opts // {where = "/mnt/uwuraid/isos";})
|
|
|
|
|
(opts // {where = "/mnt/uwuraid/photos";})
|
|
|
|
|
(opts // {where = "/mnt/uwuraid/virginia";})
|
|
|
|
|
];
|
2023-07-11 00:38:39 -07:00
|
|
|
}
|