nixos-config/configurations/nixos/public-container/default.nix
2025-02-01 14:28:32 -05:00

19 lines
330 B
Nix

{ pkgs, ... }:
{
imports = [
./configuration.nix
];
# Hello world service
services.nginx = {
enable = true;
# Return "Hello World" on / request
virtualHosts."_" = {
root = "${pkgs.writeTextDir "index.html" "Hello World"}";
};
};
networking.firewall = {
allowedTCPPorts = [ 80 ];
};
}