summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2021-01-16 20:51:47 +0100
committerAlan Pearce2021-01-16 20:51:47 +0100
commit15e6d3bfa4643fea6521f55563d349558e33dca9 (patch)
tree012ffc3e4f807b1520a949fae87aeed1537f5218
parentba2a03380a69a7af1e5dae763d9003b0ee5b1a52 (diff)
downloadnixfiles-15e6d3bfa4643fea6521f55563d349558e33dca9.tar.lz
nixfiles-15e6d3bfa4643fea6521f55563d349558e33dca9.tar.zst
nixfiles-15e6d3bfa4643fea6521f55563d349558e33dca9.zip
Extract wireless setup fvrom connman.nix to iwd.nix
-rw-r--r--system/settings/hardware/connman.nix1
-rw-r--r--system/settings/hardware/iwd.nix9
-rw-r--r--system/settings/hardware/laptop.nix2
3 files changed, 11 insertions, 1 deletions
diff --git a/system/settings/hardware/connman.nix b/system/settings/hardware/connman.nix
index 8604cb06..779f8b7a 100644
--- a/system/settings/hardware/connman.nix
+++ b/system/settings/hardware/connman.nix
@@ -4,7 +4,6 @@
     enable = true;
     enableVPN = false;
   };
-  networking.wireless.enable = true;
 
   environment.systemPackages = with pkgs; [
     connman-gtk
diff --git a/system/settings/hardware/iwd.nix b/system/settings/hardware/iwd.nix
new file mode 100644
index 00000000..560c6694
--- /dev/null
+++ b/system/settings/hardware/iwd.nix
@@ -0,0 +1,9 @@
+{ config, pkgs, ... }:
+
+{
+  networking.wireless.iwd = {
+    enable = true;
+  };
+
+  services.connman.wifi.backend = "iwd";
+}
diff --git a/system/settings/hardware/laptop.nix b/system/settings/hardware/laptop.nix
index 0dea0384..9f752070 100644
--- a/system/settings/hardware/laptop.nix
+++ b/system/settings/hardware/laptop.nix
@@ -4,6 +4,8 @@
   imports = [
     ./bluetooth.nix
     ./bluetooth-audio.nix
+    ./connman.nix
+    ./iwd.nix
     ../user-interface.nix
   ];