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

View file

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

View file

@ -30,4 +30,4 @@ echo "IP: $VM_IP"
# done
# 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"