stylix: init droid (#778)

stylix: init nixOnDroidModules.stylix module to support Nix-on-Droid

Closes: https://github.com/danth/stylix/issues/775
Link: https://github.com/danth/stylix/pull/778

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
This commit is contained in:
bricked 2025-03-11 16:10:23 +01:00 committed by GitHub
parent 9dc4827488
commit e3233ead63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 151 additions and 4 deletions

36
modules/console/droid.nix Normal file
View file

@ -0,0 +1,36 @@
{ config, lib, ... }:
{
options.stylix.targets.console.enable =
config.lib.stylix.mkEnableTarget "the Nix-on-Droid console" true;
config =
lib.mkIf (config.stylix.enable && config.stylix.targets.console.enable)
{
terminal.colors = with config.lib.stylix.colors.withHashtag; rec {
background = base00;
foreground = base05;
cursor = base05;
# normal
color0 = base00;
color1 = base08;
color2 = base0B;
color3 = base0A;
color4 = base0D;
color5 = base0E;
color6 = base0C;
color7 = base05;
# bright
color8 = base02;
color9 = color1;
color10 = color2;
color11 = color3;
color12 = color4;
color13 = color5;
color14 = color6;
color15 = base07;
};
};
}