Switch to nix-rice 0.3.1

This commit is contained in:
Filippo Berto 2023-01-01 18:01:38 +01:00
parent 740dceeb6a
commit 412d7cc283
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
15 changed files with 63 additions and 59 deletions

View file

@ -1,32 +1,31 @@
{ pkgs, ... }:
with pkgs.lib.nix-rice;
let
strPalette = pkgs.lib.rice.palette.toRgbHex rec {
strPalette = palette.toRgbHex {
inherit (pkgs.rice.colorPalette) normal bright dark;
background = normal.black;
foreground = normal.white;
inherit (pkgs.rice.colorPalette.primary) background foreground;
};
opacity = toString pkgs.rice.opacity;
font = pkgs.rice.font.monospace;
colorString = with strPalette;
normal: bright:
builtins.concatStringsSep ":" [
normal.black
normal.red
normal.green
normal.yellow
normal.blue
normal.magenta
normal.cyan
normal.white
bright.black
bright.red
bright.green
bright.yellow
bright.blue
bright.magenta
bright.cyan
bright.white
];
colorString = normal: bright:
builtins.concatStringsSep ":" [
normal.black
normal.red
normal.green
normal.yellow
normal.blue
normal.magenta
normal.cyan
normal.white
bright.black
bright.red
bright.green
bright.yellow
bright.blue
bright.magenta
bright.cyan
bright.white
];
in
{
home.packages = with pkgs; [ terminator ];