78 lines
2.4 KiB
Nix
78 lines
2.4 KiB
Nix
{ config, nixosConfig, ... }:
|
|
with nixosConfig.nix-rice.lib;
|
|
let
|
|
inherit (nixosConfig.nix-rice) rice;
|
|
strPalette = palette.toRGBShortHex {
|
|
inherit (rice.colorPalette) normal bright primary
|
|
background
|
|
foreground
|
|
;
|
|
dim = rice.colorPalette.dark;
|
|
};
|
|
in
|
|
{
|
|
home.packages = [ rice.font.monospace.package ];
|
|
programs.rio = {
|
|
enable = true;
|
|
settings = {
|
|
hide-cursor-when-typing = true;
|
|
theme = "rice";
|
|
editor.program = "${config.programs.helix.package}/bin/hx";
|
|
fonts = {
|
|
size = rice.font.monospace.size * 1.2;
|
|
family = "CascadiaCode";
|
|
emoji.family = "Noto Color Emoji";
|
|
};
|
|
window.opacity = rice.opacity;
|
|
};
|
|
themes.rice.colors = {
|
|
# Regular colors
|
|
inherit (strPalette) background foreground;
|
|
inherit (strPalette.normal)
|
|
black red green yellow blue magenta cyan white;
|
|
|
|
# Cursor
|
|
cursor = strPalette.normal.white;
|
|
vi-cursor = strPalette.normal.white;
|
|
|
|
# Navigation
|
|
tabs = strPalette.normal.blue;
|
|
tabs-foreground = strPalette.normal.yellow;
|
|
tabs-active = strPalette.normal.green;
|
|
tabs-active-highlight = strPalette.normal.yellow;
|
|
tabs-active-foreground = strPalette.bright.yellow;
|
|
bar = "#1b1a1a";
|
|
split = "#292527";
|
|
|
|
# Search
|
|
search-match-background = strPalette.normal.yellow;
|
|
search-match-foreground = strPalette.normal.black;
|
|
search-focused-match-background = strPalette.bright.yellow;
|
|
search-focused-match-foreground = strPalette.bright.black;
|
|
|
|
# Selection
|
|
selection-foreground = strPalette.bright.black;
|
|
selection-background = strPalette.bright.cyan;
|
|
|
|
# Dim colors
|
|
dim-black = strPalette.dim.black;
|
|
dim-red = strPalette.dim.red;
|
|
dim-green = strPalette.dim.green;
|
|
dim-yellow = strPalette.dim.yellow;
|
|
dim-blue = strPalette.dim.blue;
|
|
dim-magenta = strPalette.dim.magenta;
|
|
dim-cyan = strPalette.dim.cyan;
|
|
dim-white = strPalette.dim.white;
|
|
|
|
# Light colors
|
|
light-black = strPalette.bright.black;
|
|
light-red = strPalette.bright.red;
|
|
light-green = strPalette.bright.green;
|
|
light-yellow = strPalette.bright.yellow;
|
|
light-blue = strPalette.bright.blue;
|
|
light-magenta = strPalette.bright.magenta;
|
|
light-cyan = strPalette.bright.cyan;
|
|
light-white = strPalette.bright.white;
|
|
};
|
|
};
|
|
}
|