wifi
This commit is contained in:
+53
-1
@@ -193,7 +193,7 @@
|
|||||||
|
|
||||||
users.users.jeremy = {
|
users.users.jeremy = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "docker" "wireshark" ]; # Enable sudo
|
extraGroups = [ "wheel" "docker" "wireshark" "networkmanager" ]; # Enable sudo
|
||||||
shell = pkgs.bash;
|
shell = pkgs.bash;
|
||||||
home = "/home/jeremy";
|
home = "/home/jeremy";
|
||||||
createHome = true;
|
createHome = true;
|
||||||
@@ -251,9 +251,13 @@
|
|||||||
pavucontrol # PulseAudio Volume Control
|
pavucontrol # PulseAudio Volume Control
|
||||||
bluez # Bluetooth support
|
bluez # Bluetooth support
|
||||||
bluez-tools # Bluetooth tools
|
bluez-tools # Bluetooth tools
|
||||||
|
polkit_gnome
|
||||||
|
|
||||||
xwayland-satellite # xwayland support
|
xwayland-satellite # xwayland support
|
||||||
fuzzel # menu
|
fuzzel # menu
|
||||||
|
networkmanagerapplet
|
||||||
|
|
||||||
|
wireless-regdb
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts.packages = [ pkgs.nerd-fonts.jetbrains-mono ];
|
fonts.packages = [ pkgs.nerd-fonts.jetbrains-mono ];
|
||||||
@@ -285,6 +289,29 @@
|
|||||||
jack.enable = false;
|
jack.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# networking = {
|
||||||
|
# interfaces.eno1 = {
|
||||||
|
# ipv4.addresses = [{
|
||||||
|
# address = "192.168.2.100";
|
||||||
|
# prefixLength = 24;
|
||||||
|
# }];
|
||||||
|
# };
|
||||||
|
# defaultGateway = {
|
||||||
|
# address = "192.168.2.1";
|
||||||
|
# interface = "eno1";
|
||||||
|
# };
|
||||||
|
# # interfaces.ens3 = {
|
||||||
|
# # ipv4.addresses = [{
|
||||||
|
# # address = "10.40.0.132";
|
||||||
|
# # prefixLength = 24;
|
||||||
|
# # }];
|
||||||
|
# # };
|
||||||
|
# # defaultGateway = {
|
||||||
|
# # address = "10.40.0.1";
|
||||||
|
# # interface = "wlp10s0";
|
||||||
|
# # };
|
||||||
|
# };
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
security.rtkit.enable = true; # Enable RealtimeKit for audio purposes
|
security.rtkit.enable = true; # Enable RealtimeKit for audio purposes
|
||||||
@@ -358,6 +385,31 @@
|
|||||||
gobject-introspection
|
gobject-introspection
|
||||||
];
|
];
|
||||||
|
|
||||||
|
networking.networkmanager = {
|
||||||
|
enable = true;
|
||||||
|
wifi.backend = "wpa_supplicant"; # remove the iwd line, this is the default
|
||||||
|
wifi.powersave = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
networking.wireless.enable = false;
|
||||||
|
# nixpkgs.config.allowUnfree = true;
|
||||||
|
hardware.enableAllFirmware = true;
|
||||||
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
security.pam.services.login.enableGnomeKeyring = true;
|
||||||
|
security.polkit.enable = true;
|
||||||
|
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
boot.extraModprobeConfig = ''
|
||||||
|
options mt7921e disable_aspm=Y
|
||||||
|
options cfg80211 ieee80211_regdom="CA"
|
||||||
|
'';
|
||||||
|
|
||||||
|
programs.nm-applet.enable = true;
|
||||||
|
hardware.wirelessRegulatoryDatabase = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# bootloader device
|
# bootloader device
|
||||||
boot.loader.grub.device = "/dev/sda";
|
boot.loader.grub.device = "/dev/sda";
|
||||||
|
|||||||
Reference in New Issue
Block a user