nix/rice.nix
2023-05-21 15:42:47 +10:00

91 lines
2.1 KiB
Nix

final: prev:
with prev.lib.nix-rice; let
theme = kitty-themes.getThemeByName "rose-pine";
in rec {
rice = {
palette =
rec {
bright =
palette.defaultPalette
// {
black = theme.color0;
red = theme.color1;
green = theme.color2;
yellow = theme.color3;
blue = theme.color4;
magenta = theme.color5;
cyan = theme.color6;
white = theme.color7;
};
normal =
palette.darken 15 bright;
util =
palette.defaultPalette
// {
fg = theme.foreground;
bg = theme.background;
fg_sel = theme.selection_foreground;
bg_sel = theme.selection_background;
cursor = theme.cursor;
cursor_text = theme.cursor_text_color;
url = theme.url_color;
};
}
// theme;
fonts = rec {
sans = {
name = "Inria Sans";
size = 12;
package = final.inriafonts;
};
serif = {
name = "Inria Serif";
size = 12;
package = final.inriafonts;
};
monospace = {
name = "Fira Code";
size = 10;
package = final.fira-code;
};
emoji = {
name = "Twitter Color Emoji";
size = 12;
package = final.twemoji-color-font;
};
pkgs = with final; [
sans.package
serif.package
monospace.package
emoji.package
meslo-lgs-nf
material-icons
material-design-icons
];
};
icons = {
name = "Rose-Pine";
package = final.rose-pine-icons;
};
gtk-theme = {
name = "RosePine-Main";
package = final.rose-pine-theme;
};
borders = {
thickness = 4;
rounding = 10;
};
bg = {
image = prev.fetchurl {
url = "https://github.com/the-argus/wallpapers/blob/main/rose/minimal_squares_rosepine.png?raw=true";
sha256 = "sha256-mZNgRDyEB5EzGucguv3vWTFaRBOEVS94bJjv7XVNW+Y=";
};
};
}; # /rice
}