2024-03-28 08:54:48 -07:00
|
|
|
{config, ...}: {
|
|
|
|
|
age.secrets.uwuraid.file = ../secrets/uwuraid.age;
|
2024-02-24 02:30:17 -08:00
|
|
|
systemd.mounts = let
|
|
|
|
|
opts = {
|
|
|
|
|
type = "cifs";
|
2024-03-28 08:54:48 -07:00
|
|
|
mountConfig = {Options = "users,noauto,credentials=${config.age.secrets.uwuraid.path},noatime,uid=1000,gid=100";};
|
2024-02-24 02:30:17 -08:00
|
|
|
};
|
|
|
|
|
in [
|
|
|
|
|
(opts
|
|
|
|
|
// {
|
|
|
|
|
what = "//100.97.47.81/anime";
|
|
|
|
|
where = "/mnt/uwuraid/anime";
|
|
|
|
|
})
|
2024-03-03 23:17:20 -08:00
|
|
|
# (opts
|
|
|
|
|
# // {
|
|
|
|
|
# what = "//100.97.47.81/appdata";
|
|
|
|
|
# where = "/mnt/uwuraid/appdata";
|
|
|
|
|
# })
|
2024-02-24 02:30:17 -08:00
|
|
|
(opts
|
|
|
|
|
// {
|
|
|
|
|
what = "//100.97.47.81/backup";
|
|
|
|
|
where = "/mnt/uwuraid/backup";
|
|
|
|
|
})
|
|
|
|
|
(opts
|
|
|
|
|
// {
|
|
|
|
|
what = "//100.97.47.81/everything";
|
|
|
|
|
where = "/mnt/uwuraid/everything";
|
|
|
|
|
})
|
2024-03-15 14:41:13 -07:00
|
|
|
# (opts
|
|
|
|
|
# // {
|
|
|
|
|
# what = "//100.97.47.81/games";
|
|
|
|
|
# where = "/mnt/uwuraid/games";
|
|
|
|
|
# })
|
|
|
|
|
# (opts
|
|
|
|
|
# // {
|
|
|
|
|
# what = "//100.97.47.81/isos";
|
|
|
|
|
# where = "/mnt/uwuraid/isos";
|
|
|
|
|
# })
|
2024-05-06 12:58:30 -07:00
|
|
|
# (opts
|
|
|
|
|
# // {
|
|
|
|
|
# what = "//100.97.47.81/jellyfin";
|
|
|
|
|
# where = "/mnt/uwuraid/jellyfin";
|
|
|
|
|
# })
|
2024-02-24 02:30:17 -08:00
|
|
|
(opts
|
|
|
|
|
// {
|
|
|
|
|
what = "//100.97.47.81/movies";
|
|
|
|
|
where = "/mnt/uwuraid/movies";
|
|
|
|
|
})
|
|
|
|
|
(opts
|
|
|
|
|
// {
|
|
|
|
|
what = "//100.97.47.81/music";
|
|
|
|
|
where = "/mnt/uwuraid/music";
|
|
|
|
|
})
|
|
|
|
|
(opts
|
|
|
|
|
// {
|
|
|
|
|
what = "//100.97.47.81/photos";
|
|
|
|
|
where = "/mnt/uwuraid/photos";
|
|
|
|
|
})
|
|
|
|
|
(opts
|
|
|
|
|
// {
|
|
|
|
|
what = "//100.97.47.81/syncthing";
|
|
|
|
|
where = "/mnt/uwuraid/syncthing";
|
|
|
|
|
})
|
2024-03-15 14:41:13 -07:00
|
|
|
# (opts
|
|
|
|
|
# // {
|
|
|
|
|
# what = "//100.97.47.81/television";
|
|
|
|
|
# where = "/mnt/uwuraid/television";
|
|
|
|
|
# })
|
2024-04-14 04:24:36 -07:00
|
|
|
(opts
|
|
|
|
|
// {
|
|
|
|
|
what = "//100.97.47.81/virginia";
|
|
|
|
|
where = "/mnt/uwuraid/virginia";
|
|
|
|
|
})
|
2024-02-24 02:30:17 -08:00
|
|
|
];
|
|
|
|
|
systemd.automounts = let
|
|
|
|
|
opts = {
|
|
|
|
|
wantedBy = ["multi-user.target"];
|
|
|
|
|
automountConfig = {TimeoutIdleSec = "60";};
|
|
|
|
|
};
|
|
|
|
|
in [
|
|
|
|
|
(opts // {where = "/mnt/uwuraid/anime";})
|
2024-03-03 23:17:20 -08:00
|
|
|
# (opts // {where = "/mnt/uwuraid/appdata";})
|
2024-02-24 02:30:17 -08:00
|
|
|
(opts // {where = "/mnt/uwuraid/backup";})
|
|
|
|
|
(opts // {where = "/mnt/uwuraid/everything";})
|
2024-03-15 14:41:13 -07:00
|
|
|
# (opts // {where = "/mnt/uwuraid/games";})
|
|
|
|
|
# (opts // {where = "/mnt/uwuraid/isos";})
|
2024-02-24 02:30:17 -08:00
|
|
|
# (opts // { where = "/mnt/uwuraid/jellyfin"; })
|
|
|
|
|
(opts // {where = "/mnt/uwuraid/movies";})
|
|
|
|
|
(opts // {where = "/mnt/uwuraid/music";})
|
|
|
|
|
(opts // {where = "/mnt/uwuraid/photos";})
|
|
|
|
|
(opts // {where = "/mnt/uwuraid/syncthing";})
|
2024-04-14 04:24:36 -07:00
|
|
|
(opts // {where = "/mnt/uwuraid/virginia";})
|
2024-03-15 14:41:13 -07:00
|
|
|
# (opts // {where = "/mnt/uwuraid/television";})
|
2024-02-24 02:30:17 -08:00
|
|
|
];
|
2023-07-11 00:38:39 -07:00
|
|
|
}
|