42 lines
815 B
Nix
42 lines
815 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
inputs,
|
|
osConfig,
|
|
...
|
|
}:
|
|
let
|
|
schemesFile = import ./schemes.nix {
|
|
inherit pkgs inputs;
|
|
};
|
|
scheme = schemesFile.schemes.paul;
|
|
cfg = osConfig.my.stylix;
|
|
gnomeEnabled = osConfig.services.desktopManager.gnome.enable;
|
|
in
|
|
{
|
|
gtk = lib.mkIf (!cfg.enable && gnomeEnabled) {
|
|
enable = true;
|
|
iconTheme = {
|
|
name = "Papirus-Light";
|
|
package = pkgs.papirus-icon-theme.override {
|
|
color = "yellow";
|
|
};
|
|
};
|
|
};
|
|
stylix = {
|
|
inherit (cfg) enable;
|
|
autoEnable = cfg.enable;
|
|
iconTheme = {
|
|
enable = true;
|
|
package = scheme.iconPackage;
|
|
light = "Papirus-Light";
|
|
dark = "Papirus-Dark";
|
|
};
|
|
targets.librewolf = {
|
|
firefoxGnomeTheme.enable = true;
|
|
profileNames = [ config.home.username ];
|
|
};
|
|
};
|
|
}
|