media server stuff
This commit is contained in:
parent
b8cecec95a
commit
958b17708d
@ -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"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@ -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" ];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user