49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
schemesFile = import ./schemes.nix { inherit pkgs; };
|
|
scheme = schemesFile.schemes.jesus;
|
|
cfg = config.my.stylix;
|
|
in
|
|
{
|
|
options.my.stylix.enable = lib.mkEnableOption "enable";
|
|
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" ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|