Switch to module-based rice

This commit is contained in:
Filippo Berto 2024-10-22 18:49:26 +02:00
parent a8ee39aaa3
commit 61329e5f96
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
19 changed files with 505 additions and 547 deletions

View file

@ -1,11 +1,13 @@
{ pkgs, ... }:
{ pkgs, nixosConfig, ... }:
with nixosConfig.nix-rice.lib;
let
strPalette = pkgs.lib.nix-rice.palette.toRgbHex {
inherit (pkgs.rice.colorPalette) normal bright dark;
inherit (pkgs.rice.colorPalette.primary) background foreground;
inherit (nixosConfig.nix-rice) rice;
strPalette = palette.toRgbHex {
inherit (rice.colorPalette) normal bright dark;
inherit (rice.colorPalette.primary) background foreground;
};
opacity = toString pkgs.rice.opacity;
font = pkgs.rice.font.monospace;
opacity = toString rice.opacity;
font = rice.font.monospace;
colorString =
normal: bright:
builtins.concatStringsSep ":" [