media server stuff

This commit is contained in:
Danilo Reyes 2023-11-09 23:56:23 -06:00
parent b8cecec95a
commit 958b17708d
2 changed files with 6 additions and 49 deletions

View File

@ -703,6 +703,7 @@ environment = {
systemPackages = with pkgs; [ systemPackages = with pkgs; [
wget wget
jellyfin-ffmpeg # coolest video converter! jellyfin-ffmpeg # coolest video converter!
mediainfo
dlib dlib
]; ];
variables = rec { variables = rec {
@ -755,49 +756,6 @@ environment = {
}; };
#+end_src #+end_src
* SNAPRAID
It's a parity raid utility which creates a scheme similar to what UNRAID
offered, except not in real time, I schedule it to run every night, so it keeps
my files sync, while it is possible to use snapraid as a solution to keep a
historic backup of your files, I am more concerned with the whole disk recovery
in case of failure, as such a frequent sync fits my preferences.
#+begin_src nix
# snapraid = {
# enable = true;
# touchBeforeSync = true;
# sync.interval = "02:00";
# scrub.interval = "04:00";
# extraConfig = ''
# autosave 5000
# # blocksize 128
# '';
# parityFiles = [
# "/mnt/disks/parity/snapraid.parity"
# ];
# dataDisks = {
# d1 = "/mnt/disks/disk1/";
# d2 = "/mnt/disks/disk2/";
# d3 = "/mnt/disks/seedbox/";
# };
# exclude = [
# "/tmp/"
# "/lost+found/"
# "/multimedia/downloads/"
# "/backups/"
# "/glue/Spankbank/unorganized/chaturbate/"
# "/nextcloud/nextcloud.log"
# "/seeding/"
# "/.Trash-1000/"
# ];
# contentFiles = [
# "/var/snapraid.content"
# "/mnt/snapraid/disk1/snapraid.content"
# "/mnt/snapraid/disk2/snapraid.content"
# ];
# };
#+end_src
* PROGRAMS * PROGRAMS
Some programs get enabled and installed through here, as well as the activation Some programs get enabled and installed through here, as well as the activation
of some services. of some services.
@ -845,7 +803,6 @@ services = {
settings = { settings = {
inotify = "yes"; inotify = "yes";
media_dir = [ media_dir = [
"/mnt/disks/seedbox"
"/mnt/pool" "/mnt/pool"
]; ];
}; };

View File

@ -113,11 +113,11 @@
depends = [ "/mnt/pool" ]; depends = [ "/mnt/pool" ];
}; };
# Jellyfin RO # Jellyfin RO
"/mnt/jellyfin/external" = { # "/mnt/jellyfin/external" = {
device = "/mnt/disks/nvme"; # device = "/mnt/disks/nvme";
options = [ "bind" "ro" ]; # options = [ "bind" "ro" ];
depends = [ "/mnt/pool" ]; # depends = [ "/mnt/pool" ];
}; # };
"/mnt/jellyfin/media" = { "/mnt/jellyfin/media" = {
device = "/mnt/pool/multimedia/media"; device = "/mnt/pool/multimedia/media";
options = [ "bind" "ro" ]; options = [ "bind" "ro" ];