From bd44913cccd9ce1f301dbf60266eb1452c2c15eb Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Thu, 22 Jan 2026 08:51:34 -0600 Subject: [PATCH] cleanup --- .../raspberry-pi/overlays/default.nix | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/modules/nixos/hardware/raspberry-pi/overlays/default.nix b/modules/nixos/hardware/raspberry-pi/overlays/default.nix index f2d4cd6..5c44e52 100644 --- a/modules/nixos/hardware/raspberry-pi/overlays/default.nix +++ b/modules/nixos/hardware/raspberry-pi/overlays/default.nix @@ -49,16 +49,18 @@ in # w1-gpio-pi5.dtbo # w1-gpio-pullup-pi5.dtbo - systemd.services = { - apply-overlays = { - description = "Apply Raspberry Pi Device Tree Overlays"; - script = '' - echo "Applying Device Tree Overlays via ConfigFS" - '' ++ lib.mkIf cfg.pi5DisableWifi.enable '' - mkdir ${configfsPath}/disable-wifi-pi5 - cp ${cfg.pi5DisableWifi.overlay} ${configfsPath}/disable-wifi-pi5/dtbo - ''; - wantedBy = [ "multi-user.target" ]; + config = { + systemd.services = { + apply-overlays = { + description = "Apply Raspberry Pi Device Tree Overlays"; + script = '' + echo "Applying Device Tree Overlays via ConfigFS" + '' ++ lib.mkIf cfg.pi5DisableWifi.enable '' + mkdir ${configfsPath}/disable-wifi-pi5 + cp ${cfg.pi5DisableWifi.overlay} ${configfsPath}/disable-wifi-pi5/dtbo + ''; + wantedBy = [ "multi-user.target" ]; + }; }; }; } \ No newline at end of file