# Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). { config, pkgs, ... }: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ./services/uplcg.nix ./services/tracktrain.nix ./services/chat.nix ]; services.nginx.enable = true; # Use the GRUB 2 boot loader. boot.loader.grub.enable = true; boot.loader.grub.version = 2; boot.loader.grub.devices = [ "/dev/sda" ]; networking = { hostName = "chaski"; enableIPv6 = true; defaultGateway6 = { address = "fe80::1"; interface = "ens3"; }; interfaces.ens3.ipv6.addresses = [ { address = "2a01:4f9:c010:69ed::1"; prefixLength = 64; } ]; useDHCP = false; interfaces.ens10.useDHCP = true; interfaces.ens3.useDHCP = true; firewall.logRefusedConnections = false; firewall.allowedTCPPorts = [ 80 443 ]; }; services.nix-serve = { enable = true; openFirewall = true; }; system.stateVersion = "20.09"; # Did you read the comment? }