Skip to content

Commit

Permalink
Use colors.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Sep 23, 2023
1 parent 0695e7b commit d059441
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 34 deletions.
23 changes: 23 additions & 0 deletions colors.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
dark = {
black = "#0f0f1c";
red = "#d22942";
green = "#17b67c";
yellow = "#f2a174";
blue = "#8b8af1";
magenta = "#d78af1";
cyan = "#4fcfeb";
white = "#b4c0ec";
};

light = {
black = "#1a1c31";
red = "#de4259";
green = "#3fd7a0";
yellow = "#eec09f";
blue = "#a7a5fb";
magenta = "#e5a5fb";
cyan = "#82e3f8";
white = "#cad3f5";
};
}
7 changes: 4 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
system = "x86_64-linux";

pkgs = nixpkgs.legacyPackages.${system};
colors = import ./colors.nix;

default_modules = [
./config
Expand All @@ -48,7 +49,7 @@
useUserPackages = true;
users.${username} = import ./home;
extraSpecialArgs = {
inherit username system ecsls;
inherit username system ecsls colors;
};
};
}
Expand All @@ -68,7 +69,7 @@
inherit system;

specialArgs = {
inherit username;
inherit username colors;
hostname = "Bacon";
};

Expand All @@ -86,7 +87,7 @@
inherit system;

specialArgs = {
inherit username;
inherit username colors;
hostname = "Sigmachine";
};

Expand Down
2 changes: 1 addition & 1 deletion home/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, username, ... }:
{ pkgs, username, colors, ... }:
{
nixpkgs.config.allowUnfree = true;

Expand Down
4 changes: 2 additions & 2 deletions home/flameshot.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{ ... }:
{ colors, ... }:
{
services.flameshot = {
enable = true;
settings = {
General = {
uiColor = "#1435c7";
uiColor = colors.dark.blue;
};
};
};
Expand Down
56 changes: 28 additions & 28 deletions home/kitty.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ ... }:
{ colors, ... }:
{
programs.kitty = {
enable = true;
Expand All @@ -25,35 +25,35 @@
tab_title_template = "{title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}";

# colors
active_tab_foreground = "#0F0F1C";
active_tab_background = "#8B8AF1";
inactive_tab_foreground = "#B4C0EC";
inactive_tab_background = "#1A1C31";
tab_bar_background = "#0F0F1C";
active_tab_foreground = colors.dark.black;
active_tab_background = colors.light.blue;
inactive_tab_foreground = colors.light.white;
inactive_tab_background = colors.light.black;
tab_bar_background = colors.dark.black;

foreground = "#CAD3F5";
background = "#1A1C31";
selection_foreground = "#000000";
selection_background = "#A7A5FB";
url_color = "#8B8AF1";
cursor = "#82E3F8";
foreground = colors.light.white;
background = colors.light.black;
selection_foreground = colors.dark.black;
selection_background = colors.light.blue;
url_color = colors.light.white;
cursor = colors.dark.blue;

color0 = "#0F0F1C";
color1 = "#D22942";
color2 = "#17B67C";
color3 = "#F2A174";
color4 = "#8C8AF1";
color5 = "#D78AF1";
color6 = "#8ADEF1";
color7 = "#CAD3F5";
color8 = "#A2B1E8";
color9 = "#DE4259";
color10 = "#3FD7A0";
color11 = "#EED49F";
color12 = "#A7A5FB";
color13 = "#E5A5FB";
color14 = "#A5EBFB";
color15 = "#CAD3F5";
color0 = colors.dark.black;
color1 = colors.dark.red;
color2 = colors.dark.green;
color3 = colors.dark.yellow;
color4 = colors.dark.blue;
color5 = colors.dark.magenta;
color6 = colors.dark.cyan;
color7 = colors.dark.white;
color8 = colors.light.black;
color9 = colors.light.red;
color10 = colors.light.green;
color11 = colors.light.yellow;
color12 = colors.light.blue;
color13 = colors.light.magenta;
color14 = colors.light.cyan;
color15 = colors.light.white;

# Other
initial_window_width = 820;
Expand Down

0 comments on commit d059441

Please sign in to comment.