treewide: prune more old xorg configs, and rename wayland modules
This commit is contained in:
parent
46c30b9d5d
commit
2e74aa5f00
15 changed files with 10 additions and 318 deletions
21
modules/user/eww.nix
Normal file
21
modules/user/eww.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue