final: prev: let nix-rice = final.callPackage ( fetchTarball { url = "https://github.com/bertof/nix-rice/archive/refs/tags/v0.2.1.tar.gz"; sha256 = "1is70gjf59sxccwhz1hl9hdxsd4z8vqsr2rdk3imnmxj9n3jf6j8"; } ) {}; nord = with nix-rice; palette.tPalette color.hexToRgba (import ./themes/nord.nix); onedark = with nix-rice; palette.tPalette color.hexToRgba (import ./themes/onedark.nix); tomorrow-night = with nix-rice; palette.tPalette color.hexToRgba (import ./themes/tomorrow-night.nix); in ( rec { rice = nix-rice // { colorPalette = with nix-rice; rec { normal = { black = onedark.black; blue = onedark.blue; cyan = onedark.cyan; green = onedark.green; magenta = onedark.magenta; red = onedark.darkRed; white = onedark.white; yellow = onedark.darkYellow; }; bright = palette.brighten 10 normal // { red = onedark.lightRed; yellow = onedark.lightYellow; # blue = nord.n9; # black = nord.n2; # red = nord.n12; # white = nord.n6; }; dark = palette.darken 10 normal // { # black = nord.n0; # blue = nord.n3; # cyan = nord.n7; # white = nord.n4; }; }; font = { normal = { name = "Cantarell"; package = final.cantarell-fonts; size = 10; }; monospace = { name = "FiraCode Nerd Font Mono"; package = ( final.nerdfonts.override { fonts = [ "FiraCode" ]; } ); size = 10; }; }; opacity = 0.95; }; } )