Working docker VM
Some checks are pending
/ Build Nix targets (push) Waiting to run

This commit is contained in:
Théo Barnouin 2025-05-14 14:44:37 +02:00
parent d8ccf817fe
commit e0622a450e
4 changed files with 8 additions and 4 deletions

View file

@ -65,6 +65,7 @@ in {
userland-proxy = false; userland-proxy = false;
metrics-addr = "0.0.0.0:9323"; metrics-addr = "0.0.0.0:9323";
data-root = "/mnt/docker-data"; data-root = "/mnt/docker-data";
ipv6 = false;
}; };
}; };
oci-containers = { oci-containers = {
@ -72,6 +73,7 @@ in {
containers = { containers = {
"gluetun" = { "gluetun" = {
autoStart = true; autoStart = true;
hostname = "gluetun";
image = "ghcr.io/qdm12/gluetun:latest"; image = "ghcr.io/qdm12/gluetun:latest";
environmentFiles = ["${config.age.secrets.docker-gluetun-env.path}"]; environmentFiles = ["${config.age.secrets.docker-gluetun-env.path}"];
environment = { environment = {
@ -85,7 +87,7 @@ in {
"gluetun_gluetun-config:/gluetun:rw" "gluetun_gluetun-config:/gluetun:rw"
]; ];
ports = [ ports = [
"8080:8080/tcp" "8080:8080"
]; ];
log-driver = "journald"; log-driver = "journald";
extraOptions = [ extraOptions = [
@ -122,9 +124,7 @@ in {
"gluetun" "gluetun"
]; ];
log-driver = "journald"; log-driver = "journald";
extraOptions = [ extraOptions = ["--network=container:gluetun"];
"--network=container:gluetun"
];
}; };
"bazarr" = { "bazarr" = {
image = "linuxserver/bazarr"; image = "linuxserver/bazarr";
@ -171,6 +171,7 @@ in {
"9696:9696/tcp" "9696:9696/tcp"
]; ];
log-driver = "journald"; log-driver = "journald";
extraOptions = ["--dns=192.168.1.90"];
}; };
"radarr" = { "radarr" = {
image = "lscr.io/linuxserver/radarr:latest"; image = "lscr.io/linuxserver/radarr:latest";

View file

@ -16,6 +16,7 @@
enable = true; enable = true;
allowedTCPPorts = [22 6060 9002]; allowedTCPPorts = [22 6060 9002];
}; };
nameservers = ["192.168.1.90"];
}; };
boot.isContainer = true; boot.isContainer = true;

View file

@ -93,6 +93,7 @@ in {
enable = true; enable = true;
allowedTCPPorts = [22 9002]; allowedTCPPorts = [22 9002];
}; };
nameservers = ["192.168.1.90"];
}; };
time.timeZone = "Europe/Paris"; time.timeZone = "Europe/Paris";

View file

@ -15,6 +15,7 @@
enable = true; enable = true;
allowedTCPPorts = [22 6060 9002]; allowedTCPPorts = [22 6060 9002];
}; };
nameservers = ["192.168.1.90"];
}; };
time.timeZone = "Europe/Paris"; time.timeZone = "Europe/Paris";