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