fix: Separate nfs config
This commit is contained in:
parent
c541fa4e6e
commit
48fb68c2fd
5 changed files with 100 additions and 64 deletions
|
|
@ -38,6 +38,11 @@ in {
|
|||
sonarr.enable = true;
|
||||
};
|
||||
|
||||
fileSystems.media.video = {
|
||||
enable = true;
|
||||
permissions = [ "read" "write" ];
|
||||
};
|
||||
|
||||
virtualisation.containers.enable = lib.mkIf inUse true;
|
||||
};
|
||||
|
||||
|
|
@ -139,20 +144,6 @@ in {
|
|||
"_netdev" "nosuid" "tcp"
|
||||
];
|
||||
};
|
||||
|
||||
"/srv/video" = {
|
||||
device = "192.168.0.11:/mnt/SMALL/MEDIA/VIDEO";
|
||||
fsType = "nfs";
|
||||
options = [
|
||||
"rw"
|
||||
"auto"
|
||||
"nfsvers=4.2"
|
||||
"soft"
|
||||
"rsize=1048576" "wsize=1048576"
|
||||
"timeo=600" "retrans=2"
|
||||
"_netdev" "nosuid" "tcp"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Make sure the Docker network exists.
|
||||
|
|
@ -226,7 +217,9 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
virtualisation.oci-containers.containers = {
|
||||
virtualisation.oci-containers.containers = let
|
||||
videoHostPath = config.homelab.fileSystems.media.video.hostPath;
|
||||
in {
|
||||
bazarr = let
|
||||
port = 6767;
|
||||
in lib.mkIf cfg.bazarr.enable {
|
||||
|
|
@ -252,8 +245,8 @@ in {
|
|||
|
||||
"/srv/bazarr-backup:/config/backup"
|
||||
|
||||
"/srv/video/Films:/media/movies"
|
||||
"/srv/video/Series:/media/series"
|
||||
"${videoHostPath}/Films:/media/movies"
|
||||
"${videoHostPath}/Series:/media/series"
|
||||
];
|
||||
labels = {
|
||||
"traefik.enable" = "true";
|
||||
|
|
@ -374,7 +367,7 @@ in {
|
|||
"/srv/radarr-backup:/config/Backups"
|
||||
|
||||
"/srv/torrent:/media/cache"
|
||||
"/srv/video/Films:/media/movies"
|
||||
"${videoHostPath}/Films:/media/movies"
|
||||
];
|
||||
labels = {
|
||||
"traefik.enable" = "true";
|
||||
|
|
@ -407,7 +400,7 @@ in {
|
|||
"/srv/sonarr-backup:/config/Backups"
|
||||
|
||||
"/srv/torrent:/media/cache"
|
||||
"/srv/video/Series:/media/series"
|
||||
"${videoHostPath}/Series:/media/series"
|
||||
];
|
||||
labels = {
|
||||
"traefik.enable" = "true";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue