Set hostname and enable wireless

Remove commented example configs (proxy, SUID wrappers, programs,
firewall
port examples) to tidy configuration.nix
This commit is contained in:
Stefan Kempinger 2026-01-28 23:45:20 +01:00
parent a07cf335ef
commit 018dc5b26d

View file

@ -15,12 +15,8 @@
boot.loader.grub.device = "/dev/vda"; boot.loader.grub.device = "/dev/vda";
boot.loader.grub.useOSProber = true; boot.loader.grub.useOSProber = true;
networking.hostName = "nixos"; # Define your hostname. networking.hostName = "nixos-mum"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking # Enable networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
@ -122,17 +118,7 @@
services.udev.extraRules = '' services.udev.extraRules = ''
ENV{LIBINPUT_CALIBRATION_MATRIX}="-1 0 1 0 -1 1" ENV{LIBINPUT_CALIBRATION_MATRIX}="-1 0 1 0 -1 1"
''; '';
# 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 = { services.openssh = {
enable = true; enable = true;
settings = { settings = {
@ -146,11 +132,7 @@
"nix-command" "nix-command"
"flakes" "flakes"
]; ];
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
networking.firewall.enable = false; networking.firewall.enable = false;
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default