28 lines
772 B
Nix
28 lines
772 B
Nix
# NFS read-only mount of nixdesk (14900k) bulk storage for extra Jellyfin libraries.
|
|
# Source: ssh inventory hostName for 14900k. Export is defined in
|
|
# modules/hosts/14900k/_private/jellyfin-nfs-export.nix
|
|
#
|
|
# In Jellyfin (in addition to local /var/lib/media/...), add e.g.:
|
|
# Movies → /mnt/nixdesk-jellyfin/movies
|
|
# Shows → /mnt/nixdesk-jellyfin/tv
|
|
{ ... }:
|
|
let
|
|
# Must match LAN IP of the NFS server (flake `sshInventory` → hosts."14900k".hostName).
|
|
nfsExportHost = "192.168.2.25";
|
|
in
|
|
{
|
|
fileSystems."/mnt/nixdesk-jellyfin" = {
|
|
device = "${nfsExportHost}:/mnt/test/jellyfin";
|
|
fsType = "nfs";
|
|
options = [
|
|
"rw"
|
|
"noatime"
|
|
"nofail"
|
|
"_netdev"
|
|
"x-systemd.automount"
|
|
"x-systemd.idle-timeout=600"
|
|
];
|
|
};
|
|
|
|
}
|