2023-07-11 00:38:39 -07:00
|
|
|
{ ... }: {
|
|
|
|
|
services.rpcbind.enable = true;
|
|
|
|
|
systemd.mounts = let commonMountOptions = { type = "nfs"; mountConfig = { Options = "noatime"; }; }; in
|
|
|
|
|
[
|
2023-07-18 22:14:59 -07:00
|
|
|
(commonMountOptions // { what = "100.86.160.104:/mnt/user/anime"; where = "/mnt/uwuraid/anime"; })
|
|
|
|
|
(commonMountOptions // { what = "100.86.160.104:/mnt/user/backup"; where = "/mnt/uwuraid/backup"; })
|
|
|
|
|
(commonMountOptions // { what = "100.86.160.104:/mnt/user/everything"; where = "/mnt/uwuraid/everything"; })
|
2023-07-22 17:56:50 -07:00
|
|
|
(commonMountOptions // { what = "100.86.160.104:/mnt/user/movies"; where = "/mnt/uwuraid/movies"; })
|
|
|
|
|
(commonMountOptions // { what = "100.86.160.104:/mnt/user/photos"; where = "/mnt/uwuraid/photos"; })
|
|
|
|
|
(commonMountOptions // { what = "100.86.160.104:/mnt/user/syncthing"; where = "/mnt/uwuraid/syncthing"; })
|
|
|
|
|
(commonMountOptions // { what = "100.86.160.104:/mnt/user/television"; where = "/mnt/uwuraid/television"; })
|
2023-07-11 00:38:39 -07:00
|
|
|
];
|
|
|
|
|
systemd.automounts = let commonAutoMountOptions = { wantedBy = [ "multi-user.target" ]; automountConfig = { TimeoutIdleSec = "60"; }; }; in
|
|
|
|
|
[
|
|
|
|
|
(commonAutoMountOptions // { where = "/mnt/uwuraid/anime"; })
|
|
|
|
|
(commonAutoMountOptions // { where = "/mnt/uwuraid/backup"; })
|
2023-07-18 11:12:40 -07:00
|
|
|
(commonAutoMountOptions // { where = "/mnt/uwuraid/everything"; })
|
2023-07-18 22:14:59 -07:00
|
|
|
(commonAutoMountOptions // { where = "/mnt/uwuraid/movies"; })
|
|
|
|
|
(commonAutoMountOptions // { where = "/mnt/uwuraid/photos"; })
|
2023-07-11 00:38:39 -07:00
|
|
|
(commonAutoMountOptions // { where = "/mnt/uwuraid/syncthing"; })
|
|
|
|
|
(commonAutoMountOptions // { where = "/mnt/uwuraid/television"; })
|
|
|
|
|
];
|
|
|
|
|
}
|