52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
inputs,
|
|
...
|
|
}:
|
|
let
|
|
schemesFile = import ./schemes.nix {
|
|
inherit pkgs inputs;
|
|
};
|
|
scheme = schemesFile.schemes.cheems;
|
|
cfg = config.my.stylix;
|
|
in
|
|
{
|
|
options.my.stylix.enable = lib.mkEnableOption "system-wide theming with Stylix";
|
|
config = {
|
|
stylix = {
|
|
inherit (scheme) image polarity;
|
|
enable = true;
|
|
autoEnable = cfg.enable;
|
|
targets.qt.platform = lib.mkForce "qtct";
|
|
}
|
|
// lib.optionalAttrs (scheme ? base16Scheme) { inherit (scheme) base16Scheme; };
|
|
home-manager.users.jawz = {
|
|
gtk = lib.mkIf (!cfg.enable) {
|
|
enable = true;
|
|
iconTheme = {
|
|
name = "Papirus-Light";
|
|
package = pkgs.papirus-icon-theme.override {
|
|
color = "yellow";
|
|
};
|
|
};
|
|
};
|
|
stylix = {
|
|
enable = true;
|
|
autoEnable = cfg.enable;
|
|
iconTheme = {
|
|
inherit (cfg) enable;
|
|
package = scheme.iconPackage;
|
|
light = "Papirus-Light";
|
|
dark = "Papirus-Dark";
|
|
};
|
|
targets.librewolf = {
|
|
firefoxGnomeTheme.enable = true;
|
|
profileNames = [ "jawz" ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|