Host based configuration

This commit is contained in:
Filippo Berto 2021-10-25 23:29:23 +02:00
parent 1502fa1e36
commit b4571fbe53
10 changed files with 106 additions and 79 deletions

58
rice.nix Normal file
View file

@ -0,0 +1,58 @@
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);
in
(
rec {
rice = nix-rice // {
colorPalette = with nix-rice; rec {
normal = {
black = nord.n1;
blue = nord.n10;
cyan = nord.n8;
green = nord.n14;
magenta = nord.n15;
red = nord.n11;
white = nord.n5;
yellow = nord.n13;
};
bright = palette.brighten 10 normal // {
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 = "FuraCode Nerd Font Mono";
package = (
final.nerdfonts.override {
fonts = [ "FiraCode" ];
}
);
size = 10;
};
};
opacity = 0.9;
};
}
)