Persist IWD configuration and enable wifi firmware
- IWD is an alternative to wpa_supplicant, which I've found to be more reliable.
- Unfortunately it doesn't support declarative config on nix
diff --git a/modules/networking.nix b/modules/networking.nix
index 28ba47f..ac82538 100644
--- a/modules/networking.nix
+++ b/modules/networking.nix
@@ -1,4 +1,4 @@
-{
+{config, ...}: {
config = {
networking.hostName = "python";
@@ -12,5 +12,9 @@
networking.search = [
"python.local"
];
+
+ hardware.enableRedistributableFirmware = true;
+
+ environment.persistence."/nix/persist".directories = ["/var/lib/iwd"];
};
}