wifi with iwd/connman

This commit is contained in:
Janis 2025-07-21 16:31:48 +02:00
parent d3a3297d38
commit c31387ebb5
3 changed files with 24 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{lib, config, ...}: {pkgs, lib, config, ...}:
let let
theme = import ../data/theme.nix {inherit config; }; theme = import ../data/theme.nix {inherit config; };
utils = import ../utils.nix {inherit lib; }; utils = import ../utils.nix {inherit lib; };
@ -218,6 +218,13 @@ SSID: {essid} {frequency}'';
}; };
in { in {
imports = [ ../options.nix ]; imports = [ ../options.nix ];
home.packages = with pkgs; [
waybar
pavucontrol
iwgtk
];
programs.waybar = { programs.waybar = {
enable = true; enable = true;

View file

@ -79,9 +79,18 @@
}; };
networking = { networking = {
networkmanager.enable = true;
nameservers = ["1.1.1.1" "9.9.9.9"]; nameservers = ["1.1.1.1" "9.9.9.9"];
wireless.iwd = {
enable = true;
settings = {
Settings ={
AutoConnect = true;
}; };
};
};
};
time.timeZone = "Europe/Amsterdam"; time.timeZone = "Europe/Amsterdam";
i18n.defaultLocale = "en_GB.UTF-8"; i18n.defaultLocale = "en_GB.UTF-8";
@ -94,6 +103,11 @@
qemuGuest.enable = config.vmGuest; qemuGuest.enable = config.vmGuest;
spice-vdagentd.enable = config.vmGuest; spice-vdagentd.enable = config.vmGuest;
connman = {
enable = true;
wifi.backend = "iwd"; # Use iwd for Wi-Fi management.
};
pipewire = { pipewire = {
enable = true; enable = true;
pulse.enable = true; pulse.enable = true;

View file

@ -30,4 +30,4 @@ echo "IP: $VM_IP"
# done # done
# Synchronize the NixOS configuration with rsync # Synchronize the NixOS configuration with rsync
sshpass -p "$PASSWORD" rsync -avz config/ "$USER@$VM_IP:/etc/nixos/" sshpass -p "$PASSWORD" rsync -avz new/ "$USER@$VM_IP:/etc/nixos/new"