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,17 +1,17 @@
{ pkgs, ... }:
{ pkgs, nixosConfig, ... }:
with nixosConfig.nix-rice.lib;
let
inherit (pkgs.rice) colorPalette;
inherit (pkgs.lib) nix-rice;
inherit (nixosConfig.nix-rice.rice) colorPalette font;
alpha = 0.9;
custom = nix-rice.palette.toRGBHex {
custom = palette.toRGBHex {
inherit (colorPalette.primary) background foreground;
alpha_background = nix-rice.color.setAlphaRgba alpha colorPalette.primary.background;
alpha_background = color.setAlphaRgba alpha colorPalette.primary.background;
primary_accent = colorPalette.normal.blue;
secondary_accent = colorPalette.normal.cyan;
tertiary_accent = colorPalette.primary.yellow;
palette = {
primary_background_rgba = colorPalette.primary.background;
tertiary_background_hex = nix-rice.color.setAlphaRgba alpha colorPalette.primary.background;
tertiary_background_hex = color.setAlphaRgba alpha colorPalette.primary.background;
};
};
swaync-client = "${pkgs.swaynotificationcenter}/bin/swaync-client";
@ -184,7 +184,7 @@ in
* {
border: none;
border-radius: 0px;
font-family: ${pkgs.rice.font.monospace.name};
font-family: ${font.monospace.name};
font-size: 10px;
min-height: 0;
}