update containers + add some more

This commit is contained in:
♥ Minnie ♥ 2023-05-16 22:01:26 +08:00
parent d2c3cd93a1
commit 8928af8c38
11 changed files with 74 additions and 38 deletions

View file

@ -13,17 +13,25 @@
# You can also split up your configuration and import pieces of it here:
# Containers
# Homepage
./containers/homepage.nix
./containers/pihole.nix
# Media server containers
./containers/jellyfin.nix
# Multimedia
./containers/plex.nix
./containers/sonarr.nix
./containers/radarr.nix
./containers/prowlarr.nix
./containers/overseerr.nix
# DevOps
./containers/gitea.nix
./containers/code-server.nix
# Documents & Files
./containers/qbittorrent.nix
# Utilities
./containers/pihole.nix
# Import your generated (nixos-generate-config) hardware configuration
./hardware-configuration.nix
];

View file

@ -0,0 +1,13 @@
{ ... }:
{
# Code server
virtualisation.oci-containers.containers."code-server" = {
autoStart = true;
image = "lscr.io/linuxserver/code-server:latest";
volumes = [
"/srv/code-server:/config"
];
ports = [ "8443:8443" ];
};
}

View file

@ -0,0 +1,17 @@
{ ... }:
{
# Gitea
virtualisation.oci-containers.containers."gitea" = {
autoStart = true;
image = "gitea/gitea:latest";
volumes = [
"/srv/gitea:/data"
"/etc/localtime:/etc/localtime:ro"
];
ports = [
"4000:3000"
"2221:22"
];
};
}

View file

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

View file

@ -1,15 +0,0 @@
{ ... }:
{
# Jellyfin
virtualisation.oci-containers.containers."jellyfin" = {
autoStart = true;
image = "jellyfin/jellyfin";
volumes = [
"/srv/jellyfin/config:/config"
"/srv/jellyfin/cache:/cache"
"/srv/media:/media"
];
ports = [ "8096:8096" ];
};
}

View file

@ -0,0 +1,13 @@
{ ... }:
{
# Overseerr
virtualisation.oci-containers.containers."overseerr" = {
autoStart = true;
image = "sctx/overseerr:latest";
volumes = [
"/srv/overseer:/app/config"
];
ports = [ "5055:5055" ];
};
}

View file

@ -0,0 +1,14 @@
{ ... }:
{
# Plex
virtualisation.oci-containers.containers."plex" = {
autoStart = true;
image = "lscr.io/linuxserver/plex:latest";
volumes = [
"/srv/plex:/config"
"/srv/media:/media"
];
ports = [ "32400:32400" ];
};
}

View file

@ -1,14 +0,0 @@
{ ... }:
{
# Prowlarr
virtualisation.oci-containers.containers."prowlarr" = {
autoStart = true;
image = "cr.hotio.dev/hotio/prowlarr";
volumes = [
"/srv/prowlarr/config:/config"
"/srv/media:/media"
];
ports = [ "9696:9696" ];
};
}

View file

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

View file

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

View file

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