6WLPQQSNPMTKQTUKG5UGF6BW4JX62M2WWCPLDSDO7NT7IWOLMNYAC 5RSGWH6C4EZ44DQZU2MXA6O2AWY7P7NFB274WLH46QM7FTNGU5PAC NS6HMTK6TCXNNT5WMVFL7ZNNBK6KR3V67GQBIQV5HQQGHLH3TMOQC NQ6EEHRPP26QUH6XMZ5LRL4YIUAWOEAWF6MY6CGOEPUIANKSQI7QC RHDO6BBKT5SL2IER3BMB3RO7FF7HCKVSOHYO3C7KCVEVVZPVVV2QC 6TJTI7RQ5QVCBPW6BKPUL6XUFWUIMXH774UAFCHACDJQWDMPSZNQC XYVOW54TWIJYX7VDWOTXFNM27C2ODJKTGUZ3LXVDURPHHLBKXS6QC XNGFJHLQT32DYH52PZRADH5EQDY7HRNEJ472IP4FNWL45NYO6LNAC # Do not modify this file! It was generated by ‘nixos-generate-config’# and may be overwritten by future invocations. Please make changes# to /etc/nixos/configuration.nix instead.{ config, lib, pkgs, modulesPath, ... }:{imports = [ ];boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "sd_mod" "sr_mod" ];boot.initrd.kernelModules = [ ];boot.kernelModules = [ ];boot.extraModulePackages = [ ];fileSystems."/" ={ device = "/dev/disk/by-uuid/5dc0d3b1-5c8f-4796-9f54-6fa499ed8e61";fsType = "ext4";};swapDevices = [ ];virtualisation.hypervGuest.enable = true;}
# 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];nix = { package = pkgs.nixFlakes; extraOptions = ''experimental-features = nix-command flakes''; };nixpkgs.config.allowUnfree = true;boot.loader.systemd-boot.enable = true;networking.hostName = "nixos"; # Define your hostname.# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.# Set your time zone.time.timeZone = "America/Chicago";# The global useDHCP flag is deprecated, therefore explicitly set to false here.# Per-interface useDHCP will be mandatory in the future, so this generated config# replicates the default behaviour.networking.useDHCP = false;networking.interfaces.ens18.useDHCP = true;networking.interfaces.ens18.ipv4.addresses = [{address = "192.168.1.24";prefixLength = 32;}];# Select internationalisation properties.# i18n.defaultLocale = "en_US.UTF-8";# console = {# font = "Lat2-Terminus16";# keyMap = "us";# };# Enable the GNOME 3 Desktop Environment.# services.xserver.enable = true;# services.xserver.displayManager.gdm.enable = true;# services.xserver.desktopManager.gnome3.enable = true;# Configure keymap in X11# services.xserver.layout = "us";# services.xserver.xkbOptions = "eurosign:e";# Enable CUPS to print documents.# services.printing.enable = true;# Enable sound.# sound.enable = true;# hardware.pulseaudio.enable = true;# Enable touchpad support (enabled default in most desktopManager).# services.xserver.libinput.enable = true;users.users.bender = {isNormalUser = true;extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.};# List packages installed in system profile. To search, run:# $ nix search wget# environment.systemPackages = with pkgs; [# wget vim# firefox# ];# Some programs need SUID wrappers, can be configured further or are# started in user sessions.# programs.mtr.enable = true;# programs.gnupg.agent = {# enable = true;# enableSSHSupport = true;# };# List services that you want to enable:# Enable the OpenSSH daemon.services.openssh.enable = true;# Open ports in the firewall.# Or disable the firewall altogether.# networking.firewall.enable = false;# 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 = "20.09"; # Did you read the comment?}networking.firewall.allowedTCPPorts = [22 #ssh];networking.firewall.allowedUDPPorts = [ 51820 ];networking.nat = {enable = true;externalInterface = "ens18";internalInterfaces = ["wg0"];};networking.wireguard.interfaces = {wg0 = {ips = ["10.0.100.1/24"];listenPort = 51820;privateKeyFile = config.age.secrets."wireguard/private.key".path;peers = [];};};age.secrets."wireguard/private.key".file = ../../secrets/wireguard/private.key;{ # Windows desktoppublicKey = "cuPku4mcym5S7KR1/NJMwAFnw7+yUeCq8KmJv52dqEk=";# List of IPs assigned to this peer within the tunnel subnet. Used to configure routing.allowedIPs = [ "10.1.100.1/32" ];}
# 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];nix = { package = pkgs.nixFlakes; extraOptions = ''experimental-features = nix-command flakes''; };nixpkgs.config.allowUnfree = true;boot.loader.systemd-boot.enable = true;networking.hostName = "nixos"; # Define your hostname.# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.# Set your time zone.time.timeZone = "America/Chicago";# The global useDHCP flag is deprecated, therefore explicitly set to false here.# Per-interface useDHCP will be mandatory in the future, so this generated config# replicates the default behaviour.networking.useDHCP = false;networking.interfaces.ens18.useDHCP = true;networking.interfaces.ens18.ipv4.addresses = [{address = "192.168.1.24";prefixLength = 32;}];networking.nat = {enable = true;externalInterface = "ens18";internalInterfaces = ["wg0"];};networking.wireguard.interfaces = {wg0 = {ips = ["10.0.100.1/24"];listenPort = 51820;privateKeyFile = config.age.secrets."wireguard/private.key".path;peers = [{ # Windows desktoppublicKey = "cuPku4mcym5S7KR1/NJMwAFnw7+yUeCq8KmJv52dqEk=";# List of IPs assigned to this peer within the tunnel subnet. Used to configure routing.allowedIPs = [ "10.1.100.1/32" ];}];};};age.secrets."wireguard/private.key".file = ../../secrets/wireguard/private.key;# Select internationalisation properties.# i18n.defaultLocale = "en_US.UTF-8";# console = {# font = "Lat2-Terminus16";# keyMap = "us";# };# Enable the GNOME 3 Desktop Environment.# services.xserver.enable = true;# services.xserver.displayManager.gdm.enable = true;# services.xserver.desktopManager.gnome3.enable = true;# Configure keymap in X11# services.xserver.layout = "us";# services.xserver.xkbOptions = "eurosign:e";# Enable CUPS to print documents.# services.printing.enable = true;# Enable sound.# sound.enable = true;# hardware.pulseaudio.enable = true;# Enable touchpad support (enabled default in most desktopManager).# services.xserver.libinput.enable = true;users.users.bender = {isNormalUser = true;extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.};# List packages installed in system profile. To search, run:# $ nix search wget# environment.systemPackages = with pkgs; [# wget vim# firefox# ];# Some programs need SUID wrappers, can be configured further or are# started in user sessions.# programs.mtr.enable = true;# programs.gnupg.agent = {# enable = true;# enableSSHSupport = true;# };# List services that you want to enable:# Enable the OpenSSH daemon.services.openssh.enable = true;# Open ports in the firewall.networking.firewall.allowedTCPPorts = [22 #ssh];networking.firewall.allowedUDPPorts = [ 51820 ];# Or disable the firewall altogether.# networking.firewall.enable = false;# 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 = "20.09"; # Did you read the comment?}
# Do not modify this file! It was generated by ‘nixos-generate-config’# and may be overwritten by future invocations. Please make changes# to /etc/nixos/configuration.nix instead.{ config, lib, pkgs, modulesPath, ... }:{imports = [ ];boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "sd_mod" "sr_mod" ];boot.initrd.kernelModules = [ ];boot.kernelModules = [ ];boot.extraModulePackages = [ ];fileSystems."/" ={ device = "/dev/disk/by-uuid/5dc0d3b1-5c8f-4796-9f54-6fa499ed8e61";fsType = "ext4";};swapDevices = [ ];virtualisation.hypervGuest.enable = true;}