From 641b07bdb21b1fda3ca5ec25f6c2f05f5ed53521 Mon Sep 17 00:00:00 2001 From: Andre Date: Wed, 18 Dec 2024 22:59:32 +0000 Subject: [PATCH] Pihole: tidying --- systems/aarch64-linux/Pihole/default.nix | 9 ++++++--- systems/aarch64-linux/Pihole/hardware-configuration.nix | 4 +--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/systems/aarch64-linux/Pihole/default.nix b/systems/aarch64-linux/Pihole/default.nix index f1ecf34..60e094c 100644 --- a/systems/aarch64-linux/Pihole/default.nix +++ b/systems/aarch64-linux/Pihole/default.nix @@ -18,9 +18,12 @@ in # Connect to the network automagically networkmanager.enable = lib.mkForce false; - wireless.networks = { - "${config.${namespace}.secrets.networking.networks.home.SSID}" = { - psk = "${config.${namespace}.secrets.networking.networks.home.password}"; + wireless = { + enable = true; + networks = { + "${config.${namespace}.secrets.networking.networks.home.SSID}" = { + psk = "${config.${namespace}.secrets.networking.networks.home.password}"; + }; }; }; }; diff --git a/systems/aarch64-linux/Pihole/hardware-configuration.nix b/systems/aarch64-linux/Pihole/hardware-configuration.nix index 25c5000..3ed2235 100644 --- a/systems/aarch64-linux/Pihole/hardware-configuration.nix +++ b/systems/aarch64-linux/Pihole/hardware-configuration.nix @@ -31,10 +31,8 @@ } ]; - hardware.enableRedistributableFirmware = true; - networking.wireless.enable = true; - hardware = { + enableRedistributableFirmware = true; raspberry-pi."4" = { apply-overlays-dtmerge.enable = true; };