50 lines
876 B
Nix
50 lines
876 B
Nix
{
|
|
pkgs,
|
|
stylix,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ stylix.nixosModules.stylix ];
|
|
|
|
options.auto_styling.enable = lib.mkEnableOption "Enable Stylix";
|
|
|
|
config = lib.mkIf config.auto_styling.enable {
|
|
stylix = {
|
|
enable = true;
|
|
|
|
image = ../../wallpapers/default.jpg;
|
|
polarity = "dark";
|
|
|
|
opacity = {
|
|
terminal = 0.8;
|
|
popups = 0.8;
|
|
};
|
|
|
|
fonts = rec {
|
|
serif = monospace;
|
|
sansSerif = monospace;
|
|
|
|
monospace = {
|
|
package = pkgs.nerd-fonts.jetbrains-mono;
|
|
name = "JetBrainsMono Nerd Font";
|
|
};
|
|
|
|
sizes = {
|
|
applications = 14;
|
|
desktop = 12;
|
|
popups = 12;
|
|
terminal = 14;
|
|
};
|
|
|
|
};
|
|
};
|
|
|
|
fonts.packages = with pkgs; [
|
|
nerd-fonts.jetbrains-mono
|
|
source-han-sans
|
|
twemoji-color-font
|
|
];
|
|
};
|
|
}
|