Enable networkmanager for all devices

This commit is contained in:
Kiana Sheibani 2022-06-23 14:35:01 -04:00
parent bf628b2025
commit db1a4958ea
3 changed files with 4 additions and 13 deletions

View file

@ -14,6 +14,9 @@ nixpkgs, # The flake's input version of nixpkgs
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
networking.wireless.enable = false;
networking.networkmanager.enable = true;
# Set your time zone. # Set your time zone.
time.timeZone = "America/New_York"; time.timeZone = "America/New_York";
@ -30,7 +33,7 @@ nixpkgs, # The flake's input version of nixpkgs
users.users.kiana = { users.users.kiana = {
isNormalUser = true; isNormalUser = true;
description = "Kiana Sheibani"; description = "Kiana Sheibani";
extraGroups = [ "wheel" ]; # Enable sudo for the user. extraGroups = [ "wheel" "networkmanager" ]; # Enable sudo for the user.
shell = pkgs.fish; shell = pkgs.fish;
}; };

View file

@ -5,13 +5,6 @@ in {
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
networking.hostName = "kiana-desktop";
networking.wireless.enable = true;
networking.wireless.networks = {
"NETGEAR97".psk = "pastelcello694";
};
# Passwords # Passwords
users.users.kiana = { inherit hashedPassword; }; users.users.kiana = { inherit hashedPassword; };
users.users.root = { inherit hashedPassword; }; users.users.root = { inherit hashedPassword; };

View file

@ -15,9 +15,4 @@ in {
# Passwords # Passwords
users.users.kiana = { inherit hashedPassword; }; users.users.kiana = { inherit hashedPassword; };
users.users.root = { inherit hashedPassword; }; users.users.root = { inherit hashedPassword; };
# Networking
networking.wireless.enable = false;
networking.networkmanager.enable = true;
users.users.kiana.extraGroups = [ "networkmanager" ];
} }