Switch networkmanager backend to iwd

Switch network frontend to iwgtk, bluetooth frontend to overskride

Enable wifi powersave on laptops
This commit is contained in:
Evie Litherland-Smith 2024-12-05 13:51:47 +00:00
parent e53d29d7e8
commit 51081b3eca
5 changed files with 20 additions and 7 deletions

View file

@ -93,7 +93,6 @@
}; };
networking = { networking = {
inherit hostName; inherit hostName;
networkmanager.enable = true;
firewall.enable = true; firewall.enable = true;
nameservers = [ "9.9.9.9" ]; nameservers = [ "9.9.9.9" ];
}; };

View file

@ -2,6 +2,16 @@
{ {
nixpkgs.config.chromium.commandLineArgs = "--password-store='gnome-libsecret' --enable-features=UseOzonePlatform --ozone-platform=wayland"; nixpkgs.config.chromium.commandLineArgs = "--password-store='gnome-libsecret' --enable-features=UseOzonePlatform --ozone-platform=wayland";
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
networking = {
networkmanager = {
enable = true;
wifi.backend = "iwd";
};
wireless.iwd = {
enable = true;
settings.Settings.AutoConnect = true;
};
};
environment = { environment = {
sessionVariables = { sessionVariables = {
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
@ -18,9 +28,11 @@
libsecret libsecret
libnotify libnotify
xdg-utils xdg-utils
wl-clipboard
hunspell hunspell
hunspellDicts.en_GB-large hunspellDicts.en_GB-large
wl-clipboard
iwgtk
overskride
grim grim
slurp slurp
swappy swappy
@ -28,6 +40,7 @@
libreoffice libreoffice
evince evince
image-roll image-roll
imagemagick
clapper clapper
g4music g4music
ffmpeg ffmpeg

View file

@ -231,9 +231,9 @@
"dimaround, org.kde.polkit-kde-authentication-agent-1|Pinentry|pinentry-qt|gcr-prompter" "dimaround, org.kde.polkit-kde-authentication-agent-1|Pinentry|pinentry-qt|gcr-prompter"
"stayfocused, org.kde.polkit-kde-authentication-agent-1|Pinentry|pinentry-qt|gcr-prompter" "stayfocused, org.kde.polkit-kde-authentication-agent-1|Pinentry|pinentry-qt|gcr-prompter"
# Network and Bluetooth control panels # Network and Bluetooth control panels
"float, pavucontrol|.blueman-manager-wrapped|nm-connection-editor" "float, pavucontrol|org.twosheds.iwgtk|overskride|io.github.kaii_lb.Overskride"
"size 800 600, pavucontrol|.blueman-manager-wrapped|nm-connection-editor" "size 800 600, pavucontrol|org.twosheds.iwgtk|overskride|io.github.kaii_lb.Overskride"
"move onscreen 100%-820 50,pavucontrol|.blueman-manager-wrapped|nm-connection-editor" "move onscreen 100%-820 50,pavucontrol|org.twosheds.iwgtk|overskride|io.github.kaii_lb.Overskride"
# File browser and picker dialog # File browser and picker dialog
"float, org.gnome.Nautilus|xdg-desktop-portal-gtk" "float, org.gnome.Nautilus|xdg-desktop-portal-gtk"
"size 1200 900, org.gnome.Nautilus|xdg-desktop-portal-gtk" "size 1200 900, org.gnome.Nautilus|xdg-desktop-portal-gtk"

View file

@ -164,7 +164,7 @@
format-linked = "󰈂 "; format-linked = "󰈂 ";
format-disconnected = "󰈂 "; format-disconnected = "󰈂 ";
tooltip-format = "{essid} ({signalStrength}%)"; tooltip-format = "{essid} ({signalStrength}%)";
on-click = "${pkgs.networkmanagerapplet}/bin/nm-connection-editor"; on-click = "${pkgs.iwgtk}/bin/iwgtk";
}; };
bluetooth = { bluetooth = {
format = "󰂯"; format = "󰂯";
@ -173,7 +173,7 @@
format-on = "󰂯"; format-on = "󰂯";
format-connected = "󰂱"; format-connected = "󰂱";
tooltip-format = "{status} | {device_alias}"; tooltip-format = "{status} | {device_alias}";
on-click = "${pkgs.blueman}/bin/blueman-manager"; on-click = "${pkgs.overskride}/bin/overskride";
}; };
"clock#calendar" = "clock#calendar" =
let let

View file

@ -3,6 +3,7 @@
imports = [ ./desktop.nix ]; imports = [ ./desktop.nix ];
environment.systemPackages = [ pkgs.acpi ]; environment.systemPackages = [ pkgs.acpi ];
powerManagement.enable = true; powerManagement.enable = true;
networking.networkmanager.wifi.powersave = true;
services.auto-cpufreq = { services.auto-cpufreq = {
enable = true; enable = true;
settings = { settings = {