nichts/modules/styling/stylix.nix

106 lines
2.8 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-08-13 11:00:58 +02:00
inherit (config.modules.usrEnv.style.stylix) 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-08-15 21:20:56 +02:00
enable = false;
2024-07-31 02:09:58 +02:00
autoEnable = false;
2024-07-21 20:14:19 +02:00
homeManagerIntegration = {
followSystem = true;
autoImport = true;
};
2024-08-01 02:23:54 +02:00
# base16Scheme = scheme;
base16Scheme = {
scheme = "3024-custom";
# base00 = "090300"; # ----
2024-08-13 11:00:58 +02:00
base00 = "000000"; # Black
2024-08-01 02:23:54 +02:00
base01 = "3a3432"; # Dark grey
base02 = "4a4543"; # Lighter grey
base03 = "5c5855"; # Light greLight grey
base04 = "807d7c"; # +
base05 = "a5a2a2"; # ++
base06 = "d6d5d4"; # +++
base07 = "f7f7f7"; # ++++
base08 = "db2d20"; # red
base09 = "e8bbd0"; # orange
base0A = "fded02"; # yellow
base0B = "01a252"; # green
base0C = "b5e4f4"; # aqua
base0D = "01a0e4"; # blue
base0E = "a16a94"; # purple
base0F = "cdab53"; # brown
};
2024-07-06 13:39:24 +02:00
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;
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 = {
2024-08-01 01:18:12 +02:00
applications = 1.0;
popups = 1.0;
desktop = 1.0;
terminal = 1.0;
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;
2024-08-01 02:23:54 +02:00
emacs.enable = true;
kde.enable = true;
yazi.enable = true;
2024-07-30 21:04:27 +02:00
zellij.enable = true;
};
};
};
2024-05-04 01:33:33 +02:00
}