NOflake/extras/uwuraid.nix

69 lines
1.7 KiB
Nix
Raw Normal View History

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";
})
2025-04-19 19:20:15 -07:00
(opts
// {
what = "//100.97.47.81/media";
where = "/mnt/uwuraid/media";
})
2024-10-07 19:41:32 -07:00
# (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";})
2025-04-19 19:20:15 -07:00
(opts // {where = "/mnt/uwuraid/media";})
2024-10-07 19:41:32 -07:00
# (opts // {where = "/mnt/uwuraid/isos";})
(opts // {where = "/mnt/uwuraid/photos";})
(opts // {where = "/mnt/uwuraid/virginia";})
];
2023-07-11 00:38:39 -07:00
}