From d92455cebf6c5b367589a2cb83f98daf9d7feea3 Mon Sep 17 00:00:00 2001 From: LavaDesu Date: Sun, 23 Mar 2025 12:44:10 +1100 Subject: [PATCH] user/eww: use boolToString --- modules/user/eww.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/user/eww.nix b/modules/user/eww.nix index 5a61891..1a6ee54 100644 --- a/modules/user/eww.nix +++ b/modules/user/eww.nix @@ -1,5 +1,6 @@ -{ config, pkgs, ... }: +{ config, lib, pkgs, ... }: let + inherit (lib) boolToString; res = pkgs.stdenvNoCC.mkDerivation { pname = "eww-wayland-config"; version = "1.0.0"; @@ -8,10 +9,10 @@ let cp -r ${../../res/eww} $out substituteInPlace $out/eww.yuck \ - --replace-fail "_BAT_ENABLED_" "${config.me.batteryDevice != null}" \ + --replace-fail "_BAT_ENABLED_" "${boolToString (config.me.batteryDevice != null)}" \ --replace-fail "_BAT_PATH_" "${config.me.batteryDevice}" \ - --replace-fail "_BT_ENABLED_" "${config.me.hasBluetooth}" \ - --replace-fail "_WIFI_ENABLED_" "${config.me.hasWifi}" + --replace-fail "_BT_ENABLED_" "${boolToString config.me.hasBluetooth}" \ + --replace-fail "_WIFI_ENABLED_" "${boolToString config.me.hasWifi}" substituteInPlace $out/eww.scss \ --replace-fail "EWW_BACKGROUND" "${config.catppuccin.hexcolors.crust}" \