flakes/modules/user/eww.nix

22 lines
626 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
let
res = pkgs.stdenvNoCC.mkDerivation {
pname = "eww-wayland-config";
version = "1.0.0";
dontUnpack = true;
installPhase = ''
cp -r ${../../res/eww-wayland} $out
substituteInPlace $out/eww.scss \
--replace-warn "EWW_BACKGROUND" "${config.catppuccin.hexcolors.crust}" \
--replace-warn "EWW_TEXT" "${config.catppuccin.hexcolors.text}" \
2025-03-17 00:10:45 +11:00
--replace-warn "EWW_ACCENT" "${config.catppuccin.hexcolors.${config.catppuccin.accent}}"
'';
};
in {
2024-01-17 15:33:46 +07:00
home.packages = with pkgs; [ socat ];
programs.eww = {
enable = true;
configDir = res;
2024-01-17 15:33:46 +07:00
};
}