{ config, pkgs, ... }: { imports = [ # Include the results of the hardware scan. /etc/nixos/hardware-configuration.nix ./components/base-server.nix ]; # Use the extlinux boot loader. (NixOS wants to enable GRUB by default) boot.loader.grub.enable = false; # Enables the generation of /boot/extlinux/extlinux.conf boot.loader.generic-extlinux-compatible.enable = true; networking.hostName = "rock64"; # Define your hostname. # Set your time zone. time.timeZone = "Australia/Brisbane"; users.users.kurtisa = { isNormalUser = true; description = "Kurtis Andrews"; extraGroups = [ "networkmanager" "wheel" ]; }; # List packages installed in system profile. environment.systemPackages = with pkgs; [ netclient ]; # Docker virtualisation.docker.enable = true; #wireguard settings networking.firewall = { allowedUDPPorts = [ 51820 ]; # Clients and peers can use the same port, see listenport }; networking.wireguard.interfaces = { wg0 = { ips = [ "10.138.53.253/32" ]; listenPort = 51820; mtu = 1420; privateKey = "EP5qHEd5XCjnRVAHQSobA8LJhnlBMtVFgNbR75s1eUw="; peers = [ { publicKey = "y5qD7a3Pf2Hmt/kje6zGObPBkYbg4V2Ugxzml1B32xw="; allowedIPs = [ "10.138.53.0/24" "10.7.0.0/24" "10.14.88.0/24" "10.13.50.0/24" ]; endpoint = "139.99.171.43:51821"; persistentKeepalive = 25; } ]; }; }; system.stateVersion = "23.05"; # Did you read the comment? }