15 lines
350 B
Nix
15 lines
350 B
Nix
{pkgs, ...}: {
|
|
# Let 'nixos-version --json' know about the Git revision
|
|
# of this flake.
|
|
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
|
|
|
|
# Network configuration.
|
|
networking.firewall.allowedTCPPorts = [80];
|
|
|
|
# Enable a web server.
|
|
services.httpd = {
|
|
enable = true;
|
|
adminAddr = "morty@example.org";
|
|
};
|
|
}
|