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,20 +1,21 @@
{ pkgs, ... }:
with pkgs.lib.nix-rice;
let
palette = pkgs.lib.rice.palette.toRGBHex pkgs.rice.colorPalette;
strPalette = palette.toRGBHex pkgs.rice.colorPalette;
font = pkgs.rice.font.normal;
in
{
services.twmn = {
enable = true;
text = {
color = palette.primary.foreground;
color = strPalette.primary.foreground;
font = { inherit (font) package size; family = font.name; };
};
window = {
animation.bounce.enable = false;
color = palette.primary.background;
color = strPalette.primary.background;
height = 32;
opacity = pkgs.lib.rice.float.round (pkgs.rice.opacity * 100);
opacity = float.round (pkgs.rice.opacity * 100);
offset = { x = -20; y = 50; };
};
};