nichts/modules/styling/stylix.nix

92 lines
2.2 KiB
Nix
Raw Normal View History

2024-05-22 14:29:45 +02:00
{
config,
2024-07-10 23:10:52 +02:00
inputs,
2024-05-22 14:29:45 +02:00
pkgs,
lib,
...
2024-05-26 02:36:36 +02:00
}: let
2024-07-21 17:36:55 +02:00
cfg = config.modules.usrEnv.style.stylix;
2024-07-21 15:11:55 +02:00
inherit (config.modules.usrEnv.style.stylix) scheme image cursor fontsizes;
2024-07-30 21:04:27 +02:00
inherit (config.modules.other.system) username;
2024-07-21 15:11:55 +02:00
inherit (lib) mkIf;
2024-05-04 01:33:33 +02:00
in {
2024-07-10 23:10:52 +02:00
imports = [inputs.stylix.nixosModules.stylix];
2024-07-21 15:11:55 +02:00
config = mkIf cfg.enable {
2024-05-26 02:36:36 +02:00
stylix = {
2024-07-06 13:39:24 +02:00
enable = true;
2024-07-31 02:09:58 +02:00
autoEnable = false;
2024-07-21 20:14:19 +02:00
homeManagerIntegration = {
followSystem = true;
autoImport = true;
};
2024-07-06 13:39:24 +02:00
base16Scheme = scheme;
inherit image;
2024-05-26 02:36:36 +02:00
polarity = "dark";
cursor = {
2024-07-21 15:11:55 +02:00
inherit (cursor) size package name;
# package = pkgs.bibata-cursors;
# name = "Bibata-Modern-Classic";
2024-05-26 02:36:36 +02:00
};
fonts = {
sizes = {
2024-07-21 15:11:55 +02:00
inherit (fontsizes) terminal popups applications;
};
2024-05-26 02:36:36 +02:00
monospace = {
package =
pkgs.nerdfonts.override {fonts = ["JetBrainsMono" "ComicShannsMono"];};
# name = "JetBrainsMono";
name = "ComicShannsMono Nerd Font";
2024-05-14 00:18:53 +02:00
};
2024-07-07 13:23:38 +02:00
serif = config.stylix.fonts.monospace;
sansSerif = config.stylix.fonts.monospace;
# serif = {
#
# package = pkgs.noto-fonts;
# name = "Noto Serif";
# };
# sansSerif = {
# package = pkgs.lexend;
# name = "Lexend";
# };
2024-07-21 20:14:19 +02:00
2024-05-26 02:36:36 +02:00
emoji = {
2024-07-23 00:00:26 +02:00
package = pkgs.noto-fonts-color-emoji;
2024-05-26 02:36:36 +02:00
name = "Noto Color Emoji";
};
};
2024-05-26 02:36:36 +02:00
opacity = {
applications = 0.9;
popups = 0.9;
desktop = 0.9;
2024-07-21 20:14:19 +02:00
terminal = 0.9;
2024-05-26 02:36:36 +02:00
};
targets = {
console.enable = true;
fish.enable = true;
2024-06-01 19:31:05 +02:00
grub.enable = false;
2024-05-26 02:36:36 +02:00
grub.useImage = true;
2024-07-30 21:04:27 +02:00
gtk.enable = true;
2024-05-26 02:36:36 +02:00
lightdm.enable = true;
nixos-icons.enable = true;
2024-07-07 13:23:38 +02:00
plymouth.enable = true;
2024-05-26 02:36:36 +02:00
plymouth.logoAnimated = true;
};
2024-05-04 01:33:33 +02:00
};
2024-07-30 21:04:27 +02:00
home-manager.users.${username} = {
stylix.targets = {
btop.enable = true;
2024-07-31 02:09:58 +02:00
helix.enable = true;
2024-07-30 21:04:27 +02:00
dunst.enable = true;
firefox.enable = true;
foot.enable = true;
fzf.enable = true;
hyprland.enable = true;
lazygit.enable = true;
zellij.enable = true;
};
};
};
2024-05-04 01:33:33 +02:00
}