nix/modules/wm/stylix/default.nix

83 lines
2 KiB
Nix
Raw Permalink Normal View History

2024-11-24 21:35:15 +01:00
{
pkgs,
username,
lib,
config,
...
}: let
backgroundUrl = "https://wallpapers.joygnu.org/wallpapers/anime/ghibli-japanese-walled-garden.png";
backgroundSha256 = "sha256-10Lv25V0RG0mnw/O90DeVchCNWJbdktUADtuI+enEwM=";
in {
options = {
theme.enable = lib.mkEnableOption "";
};
config = lib.mkIf config.theme.enable {
2024-11-27 16:14:50 +01:00
stylix = {
enable = true;
polarity = "dark";
image = pkgs.fetchurl {
url = backgroundUrl;
sha256 = backgroundSha256;
};
base16Scheme = {
base00 = "282828"; # ----
base01 = "3c3836"; # ---
base02 = "504945"; # --
base03 = "665c54"; # -
base04 = "bdae93"; # +
base05 = "d5c4a1"; # ++
base06 = "ebdbb2"; # +++
base07 = "fbf1c7"; # ++++
base08 = "cc241d"; # red
base09 = "fe0819"; # orange
base0A = "d79921"; # yellow
base0B = "98971a"; # green
base0C = "689d6a"; # aqua/cyan
base0D = "458588"; # blue
base0E = "b16286"; # purple
base0F = "a89984"; # brown
};
cursor = {
name = "Bibata-Modern-Ice";
package = pkgs.bibata-cursors;
size = 24;
};
2024-11-24 21:35:15 +01:00
2024-11-27 16:14:50 +01:00
fonts = {
monospace = {
2024-12-02 16:39:04 +01:00
package = pkgs.nerd-fonts.roboto-mono;
2024-11-27 16:14:50 +01:00
name = "RobotoMono Nerd Font";
};
sizes = {
applications = 12;
terminal = 13;
desktop = 12;
popups = 12;
};
};
};
home-manager.users.${username} = {
2024-11-24 21:35:15 +01:00
stylix = {
enable = true;
targets = {
rofi.enable = false;
dunst.enable = false;
helix.enable = false;
2024-12-02 16:39:04 +01:00
firefox.enable = false;
2024-11-24 21:35:15 +01:00
};
};
xresources.path = ".config/.Xresources";
};
2024-11-27 16:14:50 +01:00
home-manager.users.root = {
stylix = {
enable = true;
targets = {
rofi.enable = false;
dunst.enable = false;
helix.enable = false;
};
};
};
2024-11-24 21:35:15 +01:00
};
}