Skip to content

wifi support #37

Description

@Redhawk18

Hey this project has been so helpful, I'm just stuck on the final step of connecting to a network before I can install. Do you know why iwctl doesn't show any devices? Some of the changes I've made to the template are

enabling wifi hardware.

{ ... }:
{
  # Hardware can be turned on and off here
  board.hardware.enabled = {
    # If you are useing Orange Pi 5, uncomment the line below to turn the LED off
    # led = false;

    # Uncomment the line below to turn on the AP6275P Wi-Fi module
    wifi-ap6275p = true;
  };
  networking.hostName = "orangepi5";
}

and adding iwd into my config

{ pkgs, ... }:
{
  # You can set your timezone here
  # time.timeZone = "Europe/Dublin";

  nixpkgs = {
    # to build on aarch64 machine
    # hostPlatform = { system = "aarch64-linux"; };

    # to build on x86_64 machine
    hostPlatform = {
      system = "aarch64-linux";
    };
    buildPlatform = {
      system = "x86_64-linux";
    };
  };

  nix.settings.experimental-features = [
    "nix-command"
    "flakes"
  ];
  services.openssh.enable = true;

  users.users.nixos = {
    isNormalUser = true;
    password = "nixos";
    extraGroups = [ "wheel" ];
  };

  networking = {
    firewall.enable = false;

    wireless.iwd = {
      enable = true;
      settings = {
        Rank = {
          BandModifier2_4GHz = 1;
          BandModifier5GHz = 2;
        };
        Settings = {
          AutoConnect = true;
        };

      };
    };

  };

  hardware.enableRedistributableFirmware = true;

  system.stateVersion = "24.11";
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions