about summary refs log tree commit diff
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2016-04-25 01:51:57 +0200
committerProfpatsch <mail@profpatsch.de>2016-04-25 01:51:57 +0200
commit8ba0636172ecee2742c8d18ffd21d329c48f617b (patch)
tree7897ce0a86896659e593ff298e1c5030a8d0fd1e
parent4e9ff898a06e247d989a2f220e07aa3776991aaa (diff)
modules/labtops: simplify wireless connection
-rw-r--r--machines/labnet/labtop.nix11
-rw-r--r--modules/user/openlab/labtops.nix5
2 files changed, 4 insertions, 12 deletions
diff --git a/machines/labnet/labtop.nix b/machines/labnet/labtop.nix
index 7cc90db7..956b0377 100644
--- a/machines/labnet/labtop.nix
+++ b/machines/labnet/labtop.nix
@@ -1,6 +1,5 @@
 { lib }:
 let
-  compose = f: g: x: f (g x);
   callMachine = import ../../lib/call-machine.nix;
   mkLabtop = hostname: config: {
     vuizvui.user.openlab.labtops.enable = true;
@@ -39,16 +38,6 @@ let
       fsType = "ext4";
     };
 
-    networking.wireless = {
-      interfaces = [ "wlp2s0" ];
-    };
-    environment.etc."wpa_supplicant.conf".text = ''
-      network={
-      	ssid="Labor 2.0"
-      	#psk="nerdhoehle2"
-      	psk=5d925de5243d3a77a86e803ff6ac1f02ce7e1606f23bdb3d8ca60d90f26e8684
-      }
-    '';
   };
 
 in
diff --git a/modules/user/openlab/labtops.nix b/modules/user/openlab/labtops.nix
index 26a08a22..9b188f5d 100644
--- a/modules/user/openlab/labtops.nix
+++ b/modules/user/openlab/labtops.nix
@@ -84,8 +84,11 @@ in
 
     services.openssh.enable = true;
 
-    networking.networkmanager.enable = true;
     networking.firewall.enable = false;
+    networking.wireless = {
+      enable = true;
+      networks."Labor 2.0".psk = "nerdhoehle2";
+    };
 
     # TODO: an argument that tells about hardware capability
     nix.maxJobs = 2;