forked from Goxore/nixconf
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy paththeme.nix
More file actions
31 lines (29 loc) · 756 Bytes
/
Copy paththeme.nix
File metadata and controls
31 lines (29 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
let
theme = {
base00 = "#242424"; # bg
base01 = "#3c3836"; # dark
base02 = "#504945";
base03 = "#665c54";
base04 = "#bdae93";
base05 = "#d5c4a1";
base06 = "#ebdbb2"; # fg
base07 = "#fbf1c7"; # light fg
base08 = "#fb4934"; # red
base09 = "#fe8019"; # orange
base0A = "#fabd2f"; # yellow
base0B = "#b8bb26"; # green
base0C = "#8ec07c"; # cyan
base0D = "#7daea3"; # blue
base0E = "#e089a1"; # magenta
base0F = "#f28534"; # orange
};
stripHash = str:
if builtins.substring 0 1 str == "#"
then builtins.substring 1 (builtins.stringLength str - 1) str
else str;
themeNoHash = builtins.mapAttrs (_: v: stripHash v) theme;
in {
flake = {
inherit theme themeNoHash;
};
}