emacs stylix theme is conditional

This commit is contained in:
Danilo Reyes 2024-12-28 18:07:18 -06:00
parent 71f59b22b4
commit 0a60f023a7

View File

@ -30,14 +30,19 @@
extra = extraPackages epkgs; extra = extraPackages epkgs;
in in
extra extra
++ [ ++ (
if config.stylix.enable then
[
(epkgs.trivialBuild { (epkgs.trivialBuild {
pname = "stylix-theme"; pname = "stylix-theme";
src = pkgs.writeText "stylix-theme.el" extraConfig; src = pkgs.writeText "stylix-theme.el" extraConfig;
version = "0.1.0"; version = "0.1.0";
packageRequires = extra; packageRequires = extra;
}) })
]; ]
else
[ ]
);
extraBinPackages = builtins.attrValues { extraBinPackages = builtins.attrValues {
inherit (pkgs.xorg) xwininfo; inherit (pkgs.xorg) xwininfo;
inherit (pkgs) inherit (pkgs)