refactor rice into config

This commit is contained in:
atagen 2025-07-21 12:26:28 +10:00
parent c33b079159
commit 3095dc27fe
64 changed files with 225 additions and 230 deletions

40
graphical/boot.nix Normal file
View file

@ -0,0 +1,40 @@
{ config, ... }:
let
inherit (config) rice;
in
{
boot.tmp.useTmpfs = true;
boot.initrd.systemd.enable = true;
boot.loader.limine = {
enable = true;
style =
let
pal = rice.palette.shortHex;
in
{
wallpapers = [ rice.bg.src ];
interface = {
brandingColor = 1;
branding = "welcome to quiver";
};
graphicalTerminal =
let
getPal = p: builtins.attrValues p |> builtins.concatStringsSep ";";
in
{
palette = getPal pal.normal;
brightPalette = getPal pal.bright;
marginGradient = 0;
margin = 256;
foreground = pal.util.fg;
background = "20" + pal.util.bg;
brightForeground = pal.bright.yellow;
brightBackground = pal.util.bg;
};
backdrop = pal.util.bg;
};
maxGenerations = 5;
};
}