From d65bf24fb830da316ec28fcd2cc2599a9e894de0 Mon Sep 17 00:00:00 2001 From: Julien Moutinho <julm+sourcephile-nix@sourcephile.fr> Date: Mon, 7 Feb 2022 06:03:01 +0100 Subject: [PATCH] carotte: enable wireless in Linux --- hosts/carotte/switch | 2 +- nixos/profiles/hardware/cubieboard2.nix | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/hosts/carotte/switch b/hosts/carotte/switch index 4be5dd1..9fafd3b 100755 --- a/hosts/carotte/switch +++ b/hosts/carotte/switch @@ -4,4 +4,4 @@ cd "${0%/*}"/../.. # Building Linux or Rust requires space sudo mount -o remount,size=15G /tmp -nix -L run .#carotte.switch "$@" +nix -L --keep-going run .#carotte.switch "$@" diff --git a/nixos/profiles/hardware/cubieboard2.nix b/nixos/profiles/hardware/cubieboard2.nix index 73b6ee5..755b634 100644 --- a/nixos/profiles/hardware/cubieboard2.nix +++ b/nixos/profiles/hardware/cubieboard2.nix @@ -94,6 +94,15 @@ nixpkgs.overlays = [ NET_SCH_FQ_CODEL = module; UIO = module; + # WiFi + # Not built in the Cubieboard2, require an USB dongle + WIRELESS = yes; + CFG80211 = module; + LIB80211 = module; + LIB80211_CRYPT_CCMP = module; + MAC80211 = module; + MAC80211_HWSIM = module; + # Sound options SND_SOC_ADI = no; SND_SOC_ADI_AXI_I2S = no; -- 2.47.2