templates: add 'system-flake' template

This commit is contained in:
Alejandro Soto 2025-01-26 15:38:38 -06:00
parent 4b8609385a
commit 3a3d73d5b6
15 changed files with 212 additions and 0 deletions

View file

@ -0,0 +1,14 @@
{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";
};
}