mount external hdd + update volume path

This commit is contained in:
♥ Minnie ♥ 2023-05-17 18:23:19 +08:00
parent eb38690275
commit 170e12223e
10 changed files with 15 additions and 10 deletions

View file

@ -6,7 +6,7 @@
autoStart = true; autoStart = true;
image = "lscr.io/linuxserver/code-server:latest"; image = "lscr.io/linuxserver/code-server:latest";
volumes = [ volumes = [
"/srv/code-server:/config" "/srv/containers/code-server:/config"
]; ];
ports = [ "8443:8443" ]; ports = [ "8443:8443" ];
}; };

View file

@ -6,7 +6,7 @@
autoStart = true; autoStart = true;
image = "gitea/gitea:latest"; image = "gitea/gitea:latest";
volumes = [ volumes = [
"/srv/gitea:/data" "/srv/containers/gitea:/data"
"/etc/localtime:/etc/localtime:ro" "/etc/localtime:/etc/localtime:ro"
]; ];
ports = [ ports = [

View file

@ -6,7 +6,7 @@
autoStart = true; autoStart = true;
image = "ghcr.io/benphelps/homepage:latest"; image = "ghcr.io/benphelps/homepage:latest";
volumes = [ volumes = [
"/srv/homepage:/app/config" "/srv/containers/homepage:/app/config"
]; ];
ports = [ "3000:3000" ]; ports = [ "3000:3000" ];
}; };

View file

@ -6,7 +6,7 @@
autoStart = true; autoStart = true;
image = "sctx/overseerr:latest"; image = "sctx/overseerr:latest";
volumes = [ volumes = [
"/srv/overseer:/app/config" "/srv/containers/overseerr:/app/config"
]; ];
ports = [ "5055:5055" ]; ports = [ "5055:5055" ];
}; };

View file

@ -6,8 +6,8 @@
autoStart = true; autoStart = true;
image = "pihole/pihole:latest"; image = "pihole/pihole:latest";
volumes = [ volumes = [
"/srv/pihole/etc-pihole:/etc/pihole" "/srv/containers/pihole/etc-pihole:/etc/pihole"
"/srv/pihole/etc-dnsmasq.d:/etc/dnsmasq.d" "/srv/containers/pihole/etc-dnsmasq.d:/etc/dnsmasq.d"
]; ];
ports = [ ports = [
"53:53/tcp" "53:53/tcp"

View file

@ -6,7 +6,7 @@
autoStart = true; autoStart = true;
image = "lscr.io/linuxserver/plex:latest"; image = "lscr.io/linuxserver/plex:latest";
volumes = [ volumes = [
"/srv/plex:/config" "/srv/containers/plex:/config"
"/srv/media:/media" "/srv/media:/media"
]; ];
ports = [ "32400:32400" ]; ports = [ "32400:32400" ];

View file

@ -6,7 +6,7 @@
autoStart = true; autoStart = true;
image = "cr.hotio.dev/hotio/qbittorrent"; image = "cr.hotio.dev/hotio/qbittorrent";
volumes = [ volumes = [
"/srv/qbittorrent:/config" "/srv/containers/qbittorrent:/config"
"/srv/media:/media" "/srv/media:/media"
]; ];
ports = [ "8080:8080" ]; ports = [ "8080:8080" ];

View file

@ -6,7 +6,7 @@
autoStart = true; autoStart = true;
image = "cr.hotio.dev/hotio/radarr"; image = "cr.hotio.dev/hotio/radarr";
volumes = [ volumes = [
"/srv/radarr:/config" "/srv/containers/radarr:/config"
"/srv/media:/media" "/srv/media:/media"
]; ];
ports = [ "7878:7878" ]; ports = [ "7878:7878" ];

View file

@ -6,7 +6,7 @@
autoStart = true; autoStart = true;
image = "cr.hotio.dev/hotio/sonarr"; image = "cr.hotio.dev/hotio/sonarr";
volumes = [ volumes = [
"/srv/sonarr:/config" "/srv/containers/sonarr:/config"
"/srv/media:/media" "/srv/media:/media"
]; ];
ports = [ "8989:8989" ]; ports = [ "8989:8989" ];

View file

@ -18,6 +18,11 @@
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/srv/media" =
{ device = "/dev/disk/by-uuid/3548fbc6-6efd-4ed1-acc1-bd3ffed9d7a7";
fsType = "ext4";
};
swapDevices = [ ]; swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking