home: terminal: use 'colors' directly
This commit is contained in:
parent
88b943076d
commit
d4668416af
1 changed files with 6 additions and 5 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.my.home.terminal;
|
cfg = config.my.home.terminal;
|
||||||
|
inherit (config.my.home.terminal) colors;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf (cfg.program == "termite") {
|
config = lib.mkIf (cfg.program == "termite") {
|
||||||
|
|
@ -24,11 +25,11 @@ in
|
||||||
|
|
||||||
|
|
||||||
# Colors
|
# Colors
|
||||||
backgroundColor = cfg.colors.background;
|
backgroundColor = colors.background;
|
||||||
cursorColor = cfg.colors.cursor;
|
cursorColor = colors.cursor;
|
||||||
foregroundColor = cfg.colors.foreground;
|
foregroundColor = colors.foreground;
|
||||||
foregroundBoldColor = cfg.colors.foregroundBold;
|
foregroundBoldColor = colors.foregroundBold;
|
||||||
colorsExtra = with cfg.colors; ''
|
colorsExtra = with colors; ''
|
||||||
# Normal colors
|
# Normal colors
|
||||||
color0 = ${black}
|
color0 = ${black}
|
||||||
color1 = ${red}
|
color1 = ${red}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue