big module system implementation
This commit is contained in:
87
home/modules/terminal/alacritty/default.nix
Normal file
87
home/modules/terminal/alacritty/default.nix
Normal file
@@ -0,0 +1,87 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.terminal.alacritty;
|
||||
in {
|
||||
options = {
|
||||
modules.terminal.alacritty.enable = mkEnableOption "Enables firefox";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
# Default colors
|
||||
colors.primary = {
|
||||
background = "#282828";
|
||||
foreground = "#d4be98";
|
||||
};
|
||||
colors = {
|
||||
# Normal colors
|
||||
normal = {
|
||||
black = "#3c3836";
|
||||
red = "#ea6962";
|
||||
green = "#a9b665";
|
||||
yellow = "#d8a657";
|
||||
blue = "#7daea3";
|
||||
magenta = "#d3869b";
|
||||
cyan = "#89b482";
|
||||
white = "#d4be98";
|
||||
};
|
||||
# Bright colors (same as normal colors)
|
||||
bright = {
|
||||
black = "#3c3836";
|
||||
red = "#ea6962";
|
||||
green = "#a9b665";
|
||||
yellow = "#d8a657";
|
||||
blue = "#7daea3";
|
||||
magenta = "#d3869b";
|
||||
cyan = "#89b482";
|
||||
white = "#d4be98";
|
||||
};
|
||||
};
|
||||
font = {
|
||||
size = 10;
|
||||
normal = {
|
||||
family = "Input Mono Compressed";
|
||||
style = "Light";
|
||||
};
|
||||
bold = {
|
||||
family = "Input Mono Compressed";
|
||||
style = "Regular";
|
||||
};
|
||||
italic = {
|
||||
family = "Input Mono Compressed";
|
||||
style = "Italic";
|
||||
};
|
||||
};
|
||||
keyboard.bindings = [
|
||||
{
|
||||
action = "Copy";
|
||||
key = "C";
|
||||
mods = "Command";
|
||||
}
|
||||
{
|
||||
action = "Paste";
|
||||
key = "V";
|
||||
mods = "Command";
|
||||
}
|
||||
];
|
||||
window = {
|
||||
dynamic_title = true;
|
||||
opacity = 0.9;
|
||||
padding = {
|
||||
x = 5;
|
||||
y = 5;
|
||||
};
|
||||
dimensions = {
|
||||
columns = 120;
|
||||
lines = 35;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user