nixos-config/user/style/stylix.nix

50 lines
1.1 KiB
Nix
Raw Normal View History

{ config, pkgs, myTheme, ... }:
2023-05-14 01:06:06 +05:30
let
myFont = "Inconsolata";
myFontPkg = pkgs.inconsolata;
in
{
stylix.autoEnable = false;
stylix.polarity = "dark";
stylix.image = pkgs.fetchurl {
url = "https://w.wallhaven.cc/full/6d/wallhaven-6d5k6x.jpg";
sha256 = "+xl4H3UiVmMRNvMhIlaLdVTYYqnSyCTSX2UOTGsDQ8c=";
};
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/"+myTheme+".yaml";
2023-05-14 01:06:06 +05:30
stylix.fonts = {
monospace = {
name = myFont;
package = myFontPkg;
};
serif = {
name = myFont;
package = myFontPkg;
};
sansSerif = {
name = myFont;
package = myFontPkg;
};
emoji = {
name = "Noto Color Emoji";
package = pkgs.noto-fonts-emoji-blob-bin;
};
sizes = {
terminal = 18;
applications = 14;
popups = 12;
desktop = 12;
};
};
stylix.targets.alacritty.enable = true;
stylix.targets.kitty.enable = true;
stylix.targets.gtk.enable = true;
stylix.targets.rofi.enable = true;
programs.rofi.enable = true;
stylix.targets.feh.enable = true;
programs.feh.enable = true;
}