summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/wireless.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/wireless.nix b/modules/wireless.nix
new file mode 100644
index 0000000..89d8b65
--- /dev/null
+++ b/modules/wireless.nix
@@ -0,0 +1,25 @@
+{ config, lib, ... }:
+
+{
+ age.secrets.wireless-secrets = {
+ file = ../secrets/wireless-secrets.age;
+ };
+
+ networking = {
+ useDHCP = true;
+
+ wireless = {
+ enable = true;
+
+ # force wpa_supplicant to use all wlan interfaces
+ interfaces = lib.mkForce [ ];
+
+ secretsFile = config.age.secrets.wireless-secrets.path;
+ networks = {
+ # yea this is my home network :3
+ # (my boyfriends brother picked the name)
+ "Das asoziale Netzwerk".pskRaw = "ext:psk_home";
+ };
+ };
+ };
+}