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,8 +1,8 @@
{ pkgs, ... }:
{ pkgs, nixosConfig, ... }:
with nixosConfig.nix-rice.lib;
let
strPalette = pkgs.lib.nix-rice.palette.toRgbHex {
inherit (pkgs.rice.colorPalette) normal bright primary;
};
inherit (nixosConfig.nix-rice) rice;
strPalette = palette.toRgbHex rice.colorPalette;
in
{
home.file.".Xresources" = {
@ -30,8 +30,8 @@ in
*.color14: ${strPalette.bright.cyan}
*.color15: ${strPalette.bright.white}
xterm*faceName: ${pkgs.rice.font.monospace.name}
xterm*faceSize: ${toString pkgs.rice.font.monospace.size}
xterm*faceName: ${rice.font.monospace.name}
xterm*faceSize: ${toString rice.font.monospace.size}
'';
onChange = "${pkgs.xorg.xrdb}/bin/xrdb -merge ~/.Xresources ";
};