{pkgs, config, ...}: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ]; networking.hostName = "venus"; # Define your hostname. # Wireguard tunnel to oracle age.secrets.wireguardThinkcentre.file = "../../secrets/wireguard-thinkcentre.age"; networking.wg-quick.interfaces = { wg0 = { address = [ "10.0.10.2/32" ]; listenPort = 51820; privateKeyFile = config.age.secrets.wireguardThinkcentre.path; peers = [ { publicKey = "sdqT2l1HRe9rDYejJ+luQK8zdC+/KqDuQ1rpvZq/KlQ="; endpoint = "150.136.162.107:51820"; allowedIPs = "10.0.10.1/24"; }; ]; }; }; # Set your time zone. time.timeZone = "America/New_York"; # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; i18n.extraLocaleSettings = { LC_ADDRESS = "en_US.UTF-8"; LC_IDENTIFICATION = "en_US.UTF-8"; LC_MEASUREMENT = "en_US.UTF-8"; LC_MONETARY = "en_US.UTF-8"; LC_NAME = "en_US.UTF-8"; LC_NUMERIC = "en_US.UTF-8"; LC_PAPER = "en_US.UTF-8"; LC_TELEPHONE = "en_US.UTF-8"; LC_TIME = "en_US.UTF-8"; }; # Configure keymap in X11 services.xserver = { layout = "us"; xkbVariant = ""; }; swapDevices = [ { device = "/swapfile"; priority = 0; size = 16384; } ]; programs.zsh.enable = true; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.michael = { isNormalUser = true; description = "Michael Thomas"; extraGroups = ["wheel" "docker" "podman" "adbusers" "dialout"]; shell = pkgs.zsh; }; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "23.11"; # Did you read the comment? }