forked from fabian/nix_config
templates: add 'system-flake' template
This commit is contained in:
parent
4b8609385a
commit
3a3d73d5b6
15 changed files with 212 additions and 0 deletions
14
templates/system-flake/sys/default.nix
Normal file
14
templates/system-flake/sys/default.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue