58 lines
1.3 KiB
Nix
58 lines
1.3 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.stylix;
|
|
iconTheme = pkgs.papirus-icon-theme;
|
|
in
|
|
{
|
|
options.my.stylix.enable = lib.mkEnableOption "enable";
|
|
config = {
|
|
stylix = {
|
|
enable = cfg.enable;
|
|
image = ./wallpapers/la_fragua_de_vulcano.jpg;
|
|
cursor = {
|
|
package = pkgs.bibata-cursors;
|
|
name = "Bibata-Modern-Ice";
|
|
size = 30;
|
|
};
|
|
fonts = {
|
|
monospace = {
|
|
package = pkgs.nerd-fonts.comic-shanns-mono;
|
|
name = "ComicShansMono Nerd Font Mono";
|
|
};
|
|
sansSerif = {
|
|
package = pkgs.dejavu_fonts;
|
|
name = "DejaVu Sans";
|
|
};
|
|
serif = {
|
|
package = pkgs.dejavu_fonts;
|
|
name = "DejaVu Serif";
|
|
};
|
|
};
|
|
targets.qt.platform = lib.mkForce "qtct";
|
|
};
|
|
home-manager.users.jawz = {
|
|
gtk = lib.mkIf (!cfg.enable) {
|
|
iconTheme = iconTheme;
|
|
};
|
|
stylix = {
|
|
enable = cfg.enable;
|
|
iconTheme = {
|
|
enable = cfg.enable;
|
|
package = iconTheme;
|
|
light = "Papirus-Light";
|
|
dark = "Papirus-Dark";
|
|
};
|
|
targets.librewolf = {
|
|
firefoxGnomeTheme.enable = cfg.enable;
|
|
profileNames = [ "jawz" ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|