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
++ [ ++ (
(epkgs.trivialBuild { if config.stylix.enable then
pname = "stylix-theme"; [
src = pkgs.writeText "stylix-theme.el" extraConfig; (epkgs.trivialBuild {
version = "0.1.0"; pname = "stylix-theme";
packageRequires = extra; src = pkgs.writeText "stylix-theme.el" extraConfig;
}) version = "0.1.0";
]; packageRequires = extra;
})
]
else
[ ]
);
extraBinPackages = builtins.attrValues { extraBinPackages = builtins.attrValues {
inherit (pkgs.xorg) xwininfo; inherit (pkgs.xorg) xwininfo;
inherit (pkgs) inherit (pkgs)