Watch : Fix cache mounting.
This commit is contained in:
parent
50f9a0839e
commit
6af8863253
|
@ -16,10 +16,6 @@ in {
|
||||||
hostPath = "${cfg.storage}/cache";
|
hostPath = "${cfg.storage}/cache";
|
||||||
isReadOnly = false;
|
isReadOnly = false;
|
||||||
};
|
};
|
||||||
"/cache" = {
|
|
||||||
hostPath = "${cfg.storage}/cache";
|
|
||||||
isReadOnly = false;
|
|
||||||
};
|
|
||||||
"/dev/dri" = {
|
"/dev/dri" = {
|
||||||
hostPath = "/dev/dri";
|
hostPath = "/dev/dri";
|
||||||
isReadOnly = false;
|
isReadOnly = false;
|
||||||
|
@ -30,10 +26,12 @@ in {
|
||||||
// container.attachMedia "movie" cfg.movie true
|
// container.attachMedia "movie" cfg.movie true
|
||||||
// container.attachMedia "music" cfg.music true
|
// container.attachMedia "music" cfg.music true
|
||||||
// container.attachMedia "photo" cfg.photo true
|
// container.attachMedia "photo" cfg.photo true
|
||||||
|
// container.attachMedia "porn" cfg.porn true
|
||||||
// container.attachMedia "show" cfg.show true
|
// container.attachMedia "show" cfg.show true
|
||||||
// container.attachMedia "study" cfg.study true
|
// container.attachMedia "study" cfg.study true
|
||||||
// container.attachMedia "work" cfg.work true
|
// container.attachMedia "work" cfg.work true
|
||||||
// container.attachMedia "youtube" cfg.youtube true;
|
// container.attachMedia "youtube" cfg.youtube true
|
||||||
|
;
|
||||||
|
|
||||||
allowedDevices = [
|
allowedDevices = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -203,7 +203,7 @@
|
||||||
storage = "${storage}/vpn";
|
storage = "${storage}/vpn";
|
||||||
};
|
};
|
||||||
watch = {
|
watch = {
|
||||||
inherit (media) anime download movie music photo show study work youtube;
|
inherit (media) anime download movie music photo porn show study work youtube;
|
||||||
address = "10.1.0.11";
|
address = "10.1.0.11";
|
||||||
domain = "watch.${domain}";
|
domain = "watch.${domain}";
|
||||||
port = 8096;
|
port = 8096;
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
movie = [ "/storage/cold_1/media/movie" "/storage/cold_2/media/movie" ];
|
movie = [ "/storage/cold_1/media/movie" "/storage/cold_2/media/movie" ];
|
||||||
music = [ "/storage/hot/media/music" "/storage/cold_2/media/music" ];
|
music = [ "/storage/hot/media/music" "/storage/cold_2/media/music" ];
|
||||||
paper = [ "/storage/hot/media/paper" ];
|
paper = [ "/storage/hot/media/paper" ];
|
||||||
|
porn = [ "/storage/cold_2/media/porn" ];
|
||||||
photo = [ "${storage}/cloud/data/data/cakee/files/media/photo" "/storage/cold_1/backup/tmp/photo" ];
|
photo = [ "${storage}/cloud/data/data/cakee/files/media/photo" "/storage/cold_1/backup/tmp/photo" ];
|
||||||
show = [ "/storage/cold_1/media/show" "/storage/cold_2/media/show" ];
|
show = [ "/storage/cold_1/media/show" "/storage/cold_2/media/show" ];
|
||||||
study = [ "/storage/cold_1/media/study" "/storage/cold_2/media/study" ];
|
study = [ "/storage/cold_1/media/study" "/storage/cold_2/media/study" ];
|
||||||
|
@ -36,7 +37,7 @@ in {
|
||||||
imports = [
|
imports = [
|
||||||
(import ../../container/Change.nix args)
|
(import ../../container/Change.nix args)
|
||||||
(import ../../container/Cloud.nix args)
|
(import ../../container/Cloud.nix args)
|
||||||
(import ../../container/Ddns.nix args)
|
# (import ../../container/Ddns.nix args)
|
||||||
(import ../../container/Dns.nix args)
|
(import ../../container/Dns.nix args)
|
||||||
(import ../../container/Download.nix args)
|
(import ../../container/Download.nix args)
|
||||||
(import ../../container/Git.nix args)
|
(import ../../container/Git.nix args)
|
||||||
|
@ -45,7 +46,7 @@ in {
|
||||||
(import ../../container/Iot.nix args)
|
(import ../../container/Iot.nix args)
|
||||||
(import ../../container/Jobber.nix args)
|
(import ../../container/Jobber.nix args)
|
||||||
(import ../../container/Mail.nix args)
|
(import ../../container/Mail.nix args)
|
||||||
(import ../../container/Office.nix args)
|
# (import ../../container/Office.nix args)
|
||||||
(import ../../container/Paper.nix args)
|
(import ../../container/Paper.nix args)
|
||||||
(import ../../container/Pass.nix args)
|
(import ../../container/Pass.nix args)
|
||||||
(import ../../container/Paste.nix args)
|
(import ../../container/Paste.nix args)
|
||||||
|
|
|
@ -45,10 +45,10 @@
|
||||||
# "net.ipv6.conf.default.accept_redirects" = 0;
|
# "net.ipv6.conf.default.accept_redirects" = 0;
|
||||||
|
|
||||||
# Increase file watchers.
|
# Increase file watchers.
|
||||||
"fs.inotify.max_user_instances" = 999999;
|
"fs.inotify.max_user_instances" = 9999999;
|
||||||
"fs.inotify.max_user_watches" = 999999;
|
"fs.inotify.max_user_watches" = 9999999;
|
||||||
"fs.inotify.max_user_event" = 999999;
|
"fs.inotify.max_user_event" = 9999999;
|
||||||
"fs.file-max" = 999999;
|
# "fs.file-max" = 999999;
|
||||||
|
|
||||||
# # Disable ipv6.
|
# # Disable ipv6.
|
||||||
# "net.ipv6.conf.all.disable_ipv6" = 1;
|
# "net.ipv6.conf.all.disable_ipv6" = 1;
|
||||||
|
|
Loading…
Reference in a new issue