NOflake/extras/uwuraid.nix

42 lines
1.8 KiB
Nix
Raw Normal View History

2023-07-11 00:38:39 -07:00
{ ... }: {
services.rpcbind.enable = true;
2023-09-28 23:33:56 -07:00
systemd.mounts =
let
opts = {
type = "cifs";
2024-01-22 10:40:07 -08:00
mountConfig = { Options = "users,noauto,credentials=/etc/nixos/smb-secrets,noatime,uid=1000,gid=100"; };
2023-09-28 23:33:56 -07:00
};
in
2023-07-11 00:38:39 -07:00
[
2024-01-22 10:40:07 -08:00
(opts // { what = "//100.97.47.81/anime"; where = "/mnt/uwuraid/anime"; })
(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/jellyfin"; where = "/mnt/uwuraid/jellyfin"; })
(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"; })
(opts // { what = "//100.97.47.81/television"; where = "/mnt/uwuraid/television"; })
2023-07-11 00:38:39 -07:00
];
2023-09-28 23:33:56 -07:00
systemd.automounts =
let
opts = {
wantedBy = [ "multi-user.target" ];
automountConfig = { TimeoutIdleSec = "60"; };
};
in
2023-07-11 00:38:39 -07:00
[
2023-09-28 23:33:56 -07:00
(opts // { where = "/mnt/uwuraid/anime"; })
(opts // { where = "/mnt/uwuraid/backup"; })
(opts // { where = "/mnt/uwuraid/everything"; })
2023-11-29 17:39:32 -08:00
(opts // { where = "/mnt/uwuraid/isos"; })
# (opts // { where = "/mnt/uwuraid/jellyfin"; })
2023-09-28 23:33:56 -07:00
(opts // { where = "/mnt/uwuraid/movies"; })
(opts // { where = "/mnt/uwuraid/music"; })
(opts // { where = "/mnt/uwuraid/photos"; })
(opts // { where = "/mnt/uwuraid/syncthing"; })
(opts // { where = "/mnt/uwuraid/television"; })
2023-07-11 00:38:39 -07:00
];
}