From 71226ec478b71daf6a0e7d151514083feb1ca18f Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 26 Jan 2025 15:38:38 -0600 Subject: templates: add 'system-flake' template --- templates/system-flake/sys/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 templates/system-flake/sys/default.nix (limited to 'templates/system-flake/sys/default.nix') diff --git a/templates/system-flake/sys/default.nix b/templates/system-flake/sys/default.nix new file mode 100644 index 0000000..fa0f994 --- /dev/null +++ b/templates/system-flake/sys/default.nix @@ -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"; + }; +} -- cgit v1.2.3