treewide: prune more old xorg configs, and rename wayland modules

This commit is contained in:
LavaDesu 2025-03-23 00:29:58 +11:00
parent 46c30b9d5d
commit 2e74aa5f00
Signed by: cilly
GPG key ID: 6500251E087653C9
15 changed files with 10 additions and 318 deletions

21
modules/user/eww.nix Normal file
View file

@ -0,0 +1,21 @@
{ 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}" \
--replace-warn "EWW_ACCENT" "${config.catppuccin.hexcolors.${config.catppuccin.accent}}"
'';
};
in {
home.packages = with pkgs; [ socat ];
programs.eww = {
enable = true;
configDir = res;
};
}