nixos-vm: try nginx and docker
All checks were successful
check / check (push) Successful in 29s

This commit is contained in:
Florian RICHER 2024-10-25 14:46:44 +02:00
parent d8a5045f61
commit f38abd1320

View file

@ -36,23 +36,31 @@
};
modules.system = {
desktop = {
plasma.enable = true;
};
server = {
docker.enable = true;
openssh.enable = true;
};
hardware = {
bluetooth.enable = true;
gamingKernel.enable = true;
keymaps.layout = "us";
pipewire.enable = true;
plymouth.enable = true;
printing.enable = true;
waydroid.enable = true;
};
};
# Run containers
virtualisation.oci-containers.containers."hello" = {
image = "docker.io/nginxdemos/hello:latest";
ports = [
"9000:80/tcp"
];
};
services.nginx = {
enable = true;
virtualHosts."hello.local" = {
locations."/" = {
proxyPass = "http://127.0.0.1:9000";
};
};
};
}