trivionomicon/templates/system-flake/sys/default.nix

15 lines
350 B
Nix
Raw Normal View History

2025-01-26 22:38:38 +01:00
{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";
};
}