Skip to content

Commit e631db6

Browse files
committed
vivid: init
Initilize the vivid module with stylix. With the PR nix-community/home-manager#7979 merged, it is possible to configure the module using base16 theming. Closes #560
1 parent 83e0cbf commit e631db6

File tree

3 files changed

+141
-0
lines changed

3 files changed

+141
-0
lines changed

modules/vivid/hm.nix

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
{ mkTarget, ... }:
2+
mkTarget {
3+
name = "vivid";
4+
humanName = "Vivid";
5+
6+
configElements = [
7+
(
8+
{ colors }:
9+
{
10+
programs.vivid = {
11+
activeTheme = "stylix";
12+
themes = {
13+
stylix = {
14+
colors = {
15+
inherit (colors)
16+
base00
17+
base01
18+
base02
19+
base03
20+
base04
21+
base05
22+
base06
23+
base07
24+
base08
25+
base09
26+
base0A
27+
base0B
28+
base0C
29+
base0D
30+
base0E
31+
base0F
32+
;
33+
};
34+
35+
core = {
36+
normal_text = { };
37+
regular_file = { };
38+
reset_to_normal = { };
39+
40+
directory.foreground = "base0D";
41+
symlink.foreground = "base0E";
42+
multi_hard_link = { };
43+
fifo = {
44+
foreground = "base01";
45+
background = "base0D";
46+
};
47+
socket = {
48+
foreground = "base01";
49+
background = "base0E";
50+
};
51+
door = {
52+
foreground = "base01";
53+
background = "base0E";
54+
};
55+
block_device = {
56+
foreground = "base0D";
57+
background = "base02";
58+
};
59+
character_device = {
60+
foreground = "base0E";
61+
background = "base02";
62+
};
63+
broken_symlink = {
64+
foreground = "base01";
65+
background = "base08";
66+
};
67+
missing_symlink_target = {
68+
foreground = "base01";
69+
background = "base08";
70+
};
71+
setuid = { };
72+
setgid = { };
73+
file_with_capability = { };
74+
sticky_other_writable = { };
75+
other_writable = { };
76+
sticky = { };
77+
executable_file = {
78+
foreground = "base08";
79+
font-style = "bold";
80+
};
81+
};
82+
83+
text = {
84+
special = {
85+
foreground = "base00";
86+
background = "base0A";
87+
};
88+
todo.font-style = "bold";
89+
licenses.foreground = "base04";
90+
configuration.foreground = "base0A";
91+
other.foreground = "base0A";
92+
};
93+
94+
markup.foreground = "base0A";
95+
96+
programming = {
97+
source.foreground = "base0B";
98+
tooling.foreground = "base0C";
99+
"continuous-integration".foreground = "base0B";
100+
};
101+
102+
media.foreground = "base0F";
103+
104+
office.foreground = "base08";
105+
106+
archives = {
107+
foreground = "base0D";
108+
font-style = "underline";
109+
};
110+
111+
executable = {
112+
foreground = "base08";
113+
font-style = "bold";
114+
};
115+
116+
unimportant.foreground = "base04";
117+
};
118+
};
119+
};
120+
}
121+
)
122+
];
123+
}

modules/vivid/meta.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{ lib, ... }:
2+
{
3+
name = "vivid";
4+
homepage = "https://github.com/sharkdp/vivid";
5+
maintainers = with lib.maintainers; [ arunoruto ];
6+
}

modules/vivid/testbeds/vivid.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{ lib, pkgs, ... }:
2+
let
3+
package = pkgs.ghostty;
4+
in
5+
{
6+
home-manager.sharedModules = lib.singleton {
7+
programs.vivid = {
8+
enable = true;
9+
inherit package;
10+
};
11+
};
12+
}

0 commit comments

Comments
 (0)