nichts/modules/gui/stylix.nix

61 lines
1.9 KiB
Nix
Raw Normal View History

2024-05-04 15:00:14 +02:00
{ config, pkgs, lib, ... }:
2024-05-04 01:33:33 +02:00
with lib; let
cfg = config.modules.programs.stylix;
username = config.modules.other.system.username;
in {
options.modules.programs.stylix.enable = mkEnableOption "stylix";
config = mkIf cfg.enable {
home-manager.users.${username} = {
2024-05-04 15:00:14 +02:00
stylix = {
targets = {
btop.enable = true;
fish.enable = true;
emacs.enable = true;
firefox.enable = true;
kitty.enable = true;
lazygit.enable = true;
rofi.enable = true;
tmux.enable = true;
vim.enable = true;
zathura.enable = true;
gtk.enable = true;
2024-05-05 14:01:33 +02:00
hyprland.enable = true;
2024-05-04 15:00:14 +02:00
};
};
};
stylix = {
2024-05-05 20:28:17 +02:00
autoEnable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-soft.yaml";
2024-05-05 14:01:33 +02:00
polarity = "dark";
2024-05-04 15:00:14 +02:00
image = ../../hosts/vali/mars/2024-04-21-14-50.png;
cursor = {
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic";
size = 24;
2024-05-04 01:33:33 +02:00
};
2024-05-05 20:28:17 +02:00
opacity = {
applications = 0.7;
popups = 0.7;
desktop = 0.7;
};
fonts = {
sizes = {
terminal = 14;
popups = 14;
};
2024-05-05 22:12:18 +02:00
sansSerif = config.stylix.fonts.monospace;
serif = config.stylix.fonts.monospace;
emoji = config.stylix.fonts.monospace;
2024-05-05 20:28:17 +02:00
monospace = {
package = (pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];});
name = "JetBrainsMono";
};
};
2024-05-04 01:33:33 +02:00
};
};
}