Clean up system config

work
Matthew Ess 2020-01-02 17:54:21 -05:00
parent f65e6c502d
commit b1be94eda1
1 changed files with 17 additions and 20 deletions

View File

@ -11,15 +11,7 @@
<home-manager/nixos> <home-manager/nixos>
]; ];
# Use the GRUB 2 boot loader. # Bootloader
# boot.loader.grub.enable = true;
# boot.loader.grub.version = 2;
# boot.loader.grub.efiSupport = true;
# boot.loader.grub.efiInstallAsRemovable = true;
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
# Define on which hard drive you want to install Grub.
# boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
# systemd-boot
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.configurationLimit = 64; boot.loader.systemd-boot.configurationLimit = 64;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
@ -28,18 +20,23 @@
system.autoUpgrade.enable = true; system.autoUpgrade.enable = true;
networking.hostName = "nixpad"; # Define your hostname. networking = {
networking.networkmanager.enable = true; hostName = "nixpad"; # Define your hostname.
networking.networkmanager.wifi.scanRandMacAddress = false; networkmanager = {
enable = true;
# The global useDHCP flag is deprecated, therefore explicitly set to false here. wifi.scanRandMacAddress = false;
# Per-interface useDHCP will be mandatory in the future, so this generated config };
# replicates the default behaviour.
networking.useDHCP = false;
networking.interfaces.enp0s25.useDHCP = true;
networking.interfaces.wlp3s0.useDHCP = true;
networking.interfaces.wwp0s20u4c2i12.useDHCP = true;
# 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.
useDHCP = false;
interfaces = {
enp0s25.useDHCP = true;
wlp3s0.useDHCP = true;
wwp0s20u4c2i12.useDHCP = true;
};
};
# Configure network proxy if necessary # Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";