Enable Jellyfin
This commit is contained in:
parent
6e892e2ad9
commit
93e006b936
17
flake.nix
17
flake.nix
|
@ -603,7 +603,8 @@
|
|||
|
||||
mount ${device} ${mountDir}
|
||||
|
||||
btrfs subvolume create ${mountDir}/@jellyfin
|
||||
btrfs subvolume create ${mountDir}/@jellyfin-library
|
||||
btrfs subvolume create ${mountDir}/@jellyfin-state
|
||||
btrfs subvolume create ${mountDir}/@snapshots
|
||||
|
||||
umount ${mountDir}
|
||||
|
@ -612,6 +613,7 @@
|
|||
cryptsetup luksClose "cryptdrive$drive_num"
|
||||
done
|
||||
|
||||
mkdir -p /storage/jellyfin
|
||||
mkdir -p /var/lib/jellyfin
|
||||
'';
|
||||
in
|
||||
|
@ -643,10 +645,16 @@
|
|||
options = [ "defaults" "compress=zstd" "rw" ];
|
||||
};
|
||||
|
||||
"/storage/jellyfin" = {
|
||||
inherit device;
|
||||
fsType = "btrfs";
|
||||
options = [ "defaults" "compress=zstd" "rw" "subvol=@jellyfin-library" ];
|
||||
};
|
||||
|
||||
"/var/lib/jellyfin" = {
|
||||
inherit device;
|
||||
fstype = "btrfs";
|
||||
options = [ "defaults" "compress=zstd" "rw" "subvol=@jellyfin" ];
|
||||
fsType = "btrfs";
|
||||
options = [ "defaults" "compress=zstd" "rw" "subvol=@jellyfin-state" ];
|
||||
};
|
||||
};
|
||||
in
|
||||
|
@ -948,9 +956,6 @@
|
|||
jellyfin = makeJellyfinConfig system {
|
||||
hostname = "jellyfin";
|
||||
selfIp = "192.168.20.195";
|
||||
unlockMounts = false;
|
||||
mountVolumes = false;
|
||||
enableJellyfin = false;
|
||||
};
|
||||
|
||||
pinetab2 = makeDesktopConfig {
|
||||
|
|
Loading…
Reference in a new issue