Nixos: Alacritty + Zathura modules
This commit is contained in:
137
home/modules/alacritty/default.nix
Normal file
137
home/modules/alacritty/default.nix
Normal file
@ -0,0 +1,137 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
mylib,
|
||||
...
|
||||
}:
|
||||
with mylib.modules; let
|
||||
cfg = config.modules.alacritty;
|
||||
in {
|
||||
options.modules.alacritty = import ./options.nix {inherit lib mylib;};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.alacritty = {
|
||||
enable = false;
|
||||
|
||||
settings = {
|
||||
window = {
|
||||
padding = {
|
||||
x = 10;
|
||||
y = 10;
|
||||
};
|
||||
|
||||
font = {
|
||||
normal = "JetBrainsMono Nerd Font Mono";
|
||||
size = 12;
|
||||
};
|
||||
};
|
||||
|
||||
env = {
|
||||
TERM = "xterm-256color";
|
||||
};
|
||||
|
||||
colors = {
|
||||
# Default colors
|
||||
primary = {
|
||||
background = "#EFF1F5"; # base
|
||||
foreground = "#4C4F69"; # text
|
||||
# Bright and dim foreground colors
|
||||
dim_foreground = "#4C4F69"; # text
|
||||
bright_foreground = "#4C4F69"; # text
|
||||
};
|
||||
|
||||
# Cursor colors
|
||||
cursor = {
|
||||
text = "#EFF1F5"; # base
|
||||
cursor = "#DC8A78"; # rosewater
|
||||
};
|
||||
vi_mode_cursor = {
|
||||
text = "#EFF1F5"; # base
|
||||
cursor = "#7287FD"; # lavender
|
||||
};
|
||||
|
||||
# Search colors
|
||||
search = {
|
||||
matches = {
|
||||
foreground = "#EFF1F5"; # base
|
||||
background = "#6C6F85"; # subtext0
|
||||
};
|
||||
focused_match = {
|
||||
foreground = "#EFF1F5"; # base
|
||||
background = "#40A02B"; # green
|
||||
};
|
||||
footer_bar = {
|
||||
foreground = "#EFF1F5"; # base
|
||||
background = "#6C6F85"; # subtext0
|
||||
};
|
||||
};
|
||||
|
||||
# Keyboard regex hints
|
||||
hints = {
|
||||
start = {
|
||||
foreground = "#EFF1F5"; # base
|
||||
background = "#DF8E1D"; # yellow
|
||||
};
|
||||
end = {
|
||||
foreground = "#EFF1F5"; # base
|
||||
background = "#6C6F85"; # subtext0
|
||||
};
|
||||
};
|
||||
|
||||
# Selection colors
|
||||
selection = {
|
||||
text = "#EFF1F5"; # base
|
||||
background = "#DC8A78"; # rosewater
|
||||
};
|
||||
|
||||
# Normal colors
|
||||
normal = {
|
||||
black = "#5C5F77"; # subtext1
|
||||
red = "#D20F39"; # red
|
||||
green = "#40A02B"; # green
|
||||
yellow = "#DF8E1D"; # yellow
|
||||
blue = "#1E66F5"; # blue
|
||||
magenta = "#EA76CB"; # pink
|
||||
cyan = "#179299"; # teal
|
||||
white = "#ACB0BE"; # surface2
|
||||
};
|
||||
|
||||
# Bright colors
|
||||
bright = {
|
||||
black = "#6C6F85"; # subtext0
|
||||
red = "#D20F39"; # red
|
||||
green = "#40A02B"; # green
|
||||
yellow = "#DF8E1D"; # yellow
|
||||
blue = "#1E66F5"; # blue
|
||||
magenta = "#EA76CB"; # pink
|
||||
cyan = "#179299"; # teal
|
||||
white = "#BCC0CC"; # surface1
|
||||
};
|
||||
|
||||
# Dim colors
|
||||
dim = {
|
||||
black = "#5C5F77"; # subtext1
|
||||
red = "#D20F39"; # red
|
||||
green = "#40A02B"; # green
|
||||
yellow = "#DF8E1D"; # yellow
|
||||
blue = "#1E66F5"; # blue
|
||||
magenta = "#EA76CB"; # pink
|
||||
cyan = "#179299"; # teal
|
||||
white = "#ACB0BE"; # surface2
|
||||
};
|
||||
|
||||
indexed_colors = [
|
||||
{
|
||||
index = 16;
|
||||
color = "#FE640B";
|
||||
}
|
||||
{
|
||||
index = 17;
|
||||
color = "#DC8A78";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
9
home/modules/alacritty/options.nix
Normal file
9
home/modules/alacritty/options.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
lib,
|
||||
mylib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with mylib.modules; {
|
||||
enable = mkEnableOpt "Enable Alacritty";
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
{inputs, ...}: {
|
||||
imports = [
|
||||
# Obsolete modules are kept in this folder for reference.
|
||||
# ./alacritty
|
||||
# ./audio
|
||||
# ./emacs
|
||||
# ./email
|
||||
@ -22,6 +23,7 @@
|
||||
./nnn
|
||||
./rofi
|
||||
./waybar
|
||||
./zathura
|
||||
|
||||
# HM modules imported from the flake inputs
|
||||
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
||||
|
59
home/modules/zathura/default.nix
Normal file
59
home/modules/zathura/default.nix
Normal file
@ -0,0 +1,59 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
mylib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with mylib.modules; let
|
||||
cfg = config.modules.zathura;
|
||||
in {
|
||||
options.modules.zathura = import ./options.nix {inherit lib mylib;};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.zathura = {
|
||||
enable = true;
|
||||
|
||||
options = {
|
||||
# Catppuccin Latte
|
||||
default-fg = "#4C4F69";
|
||||
default-bg = "#EFF1F5";
|
||||
|
||||
completion-bg = "#CCD0DA";
|
||||
completion-fg = "#4C4F69";
|
||||
completion-highlight-bg = "#575268";
|
||||
completion-highlight-fg = "#4C4F69";
|
||||
completion-group-bg = "#CCD0DA";
|
||||
completion-group-fg = "#1E66F5";
|
||||
|
||||
statusbar-fg = "#4C4F69";
|
||||
statusbar-bg = "#CCD0DA";
|
||||
|
||||
notification-bg = "#CCD0DA";
|
||||
notification-fg = "#4C4F69";
|
||||
notification-error-bg = "#CCD0DA";
|
||||
notification-error-fg = "#D20F39";
|
||||
notification-warning-bg = "#CCD0DA";
|
||||
notification-warning-fg = "#FAE3B0";
|
||||
|
||||
inputbar-fg = "#4C4F69";
|
||||
inputbar-bg = "#CCD0DA";
|
||||
|
||||
recolor-lightcolor = "#EFF1F5";
|
||||
recolor-darkcolor = "#4C4F69";
|
||||
|
||||
index-fg = "#4C4F69";
|
||||
index-bg = "#EFF1F5";
|
||||
index-active-fg = "#4C4F69";
|
||||
index-active-bg = "#CCD0DA";
|
||||
|
||||
render-loading-bg = "#EFF1F5";
|
||||
render-loading-fg = "#4C4F69";
|
||||
|
||||
highlight-color = "#575268";
|
||||
highlight-fg = "#EA76CB";
|
||||
highlight-active-color = "#EA76CB";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
9
home/modules/zathura/options.nix
Normal file
9
home/modules/zathura/options.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
lib,
|
||||
mylib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with mylib.modules; {
|
||||
enable = mkEnableOpt "Enable Zathura";
|
||||
}
|
Reference in New Issue
Block a user