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,10 @@
{ pkgs, ... }:
{ nixosConfig, ... }:
with nixosConfig.nix-rice.lib;
let
strPalette = pkgs.lib.nix-rice.palette.toRgbHex rec {
inherit (pkgs.rice.colorPalette) normal bright primary;
dim = pkgs.rice.colorPalette.dark;
inherit (nixosConfig.nix-rice) rice;
strPalette = palette.toRgbHex rec {
inherit (rice.colorPalette) normal bright primary;
dim = rice.colorPalette.dark;
cursor = {
cursor = normal.white;
text = normal.black;
@ -23,7 +25,7 @@ let
in
{
# Include fonts packages
home.packages = [ pkgs.rice.font.monospace.package ];
home.packages = [ rice.font.monospace.package ];
programs.alacritty = {
enable = true;
settings = {
@ -41,10 +43,10 @@ in
};
scrolling.history = 3000;
font = {
normal.family = pkgs.rice.font.monospace.name;
inherit (pkgs.rice.font.monospace) size;
normal.family = rice.font.monospace.name;
inherit (rice.font.monospace) size;
};
window.opacity = pkgs.rice.opacity;
window.opacity = rice.opacity;
mouse = {
# hide_when_typing = true;
hints.modifiers = "Control";