summary refs log tree commit diff
path: root/machines/fourmi/devices.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/fourmi/devices.nix')
-rw-r--r--machines/fourmi/devices.nix25
1 files changed, 20 insertions, 5 deletions
diff --git a/machines/fourmi/devices.nix b/machines/fourmi/devices.nix
index 3738553..61f6d1d 100644
--- a/machines/fourmi/devices.nix
+++ b/machines/fourmi/devices.nix
@@ -1,4 +1,9 @@
-{ lib, nixos-hardware, ... }:
+{
+  config,
+  lib,
+  nixos-hardware,
+  ...
+}:
 
 {
   # correctly configure hardware in this pi server.
@@ -8,7 +13,7 @@
 
   # boot settings
   boot = {
-    loader = { 
+    loader = {
       grub.enable = false;
       generic-extlinux-compatible.enable = true;
     };
@@ -25,14 +30,24 @@
     };
   };
 
+  age.secrets.wireless-secrets = {
+    file = ../../secrets/wireless-secrets.age;
+  };
+
   networking = {
     # todo: configure properly
     firewall.enable = lib.mkForce false;
 
     useDHCP = true;
-    networkmanager = {
-      enable = false;
-      wifi.powersave = false;
+    wireless = {
+      enable = true;
+      interfaces = [ "wlan0" ];
+      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";
+      };
     };
   };
 }