mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-28 03:37:12 +08:00
19 lines
330 B
Nix
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 ];
|
|
};
|
|
}
|