Move alacritty into a module

This commit is contained in:
Andreas Zweili 2023-06-09 21:47:19 +02:00
parent c4d455adb8
commit 53bfae3412
4 changed files with 68 additions and 59 deletions

View File

@ -1,6 +1,7 @@
{ ... }: {
imports = [
./common
./programs/alacritty
./services/grobi
];
}

View File

@ -0,0 +1,67 @@
{ config, lib, ... }:
let
cfg = config.programs.az-alacritty;
in
{
options = {
programs.az-alacritty.enable = lib.mkEnableOption "Enable alacritty terminal.";
};
config = lib.mkIf cfg.enable {
programs.alacritty = {
enable = true;
settings = {
env.TERM = "xterm-256color";
colors = {
primary = {
background = "#fdf6e3";
foreground = "#657b83";
};
cursor = {
text = "#fdf6e3";
cursor = "#657b83";
};
normal = {
black = "#073642";
red = "#dc322f";
green = "#859900";
yellow = "#b58900";
blue = "#268bd2";
magenta = "#d33682";
cyan = "#2aa198";
white = "#eee8d5";
};
bright = {
black = "#002b36";
red = "#cb4b16";
green = "#586e75";
yellow = "#657b83";
blue = "#839496";
magenta = "#6c71c4";
cyan = "#93a1a1";
white = "#fdf6e3";
};
};
font = {
normal = {
family = "Source Code Pro";
style = "Regular";
};
bold = {
family = "Source Code Pro";
style = "Regular";
};
italic = {
family = "Source Code Pro";
style = "Italic";
};
bold_italic = {
family = "Source Code Pro";
style = "Bold Italic";
};
size = 14;
};
};
};
};
}

View File

@ -2,7 +2,6 @@
{
imports = [
"${inputs.self}/home-manager/modules"
"${inputs.self}/home-manager/software/alacritty"
"${inputs.self}/home-manager/software/ansible"
"${inputs.self}/home-manager/software/calibre"
"${inputs.self}/home-manager/software/czkawka"

View File

@ -1,58 +0,0 @@
{ ... }:
{
programs.alacritty = {
enable = true;
settings = {
env.TERM = "xterm-256color";
colors = {
primary = {
background = "#fdf6e3";
foreground = "#657b83";
};
cursor = {
text = "#fdf6e3";
cursor = "#657b83";
};
normal = {
black = "#073642";
red = "#dc322f";
green = "#859900";
yellow = "#b58900";
blue = "#268bd2";
magenta = "#d33682";
cyan = "#2aa198";
white = "#eee8d5";
};
bright = {
black = "#002b36";
red = "#cb4b16";
green = "#586e75";
yellow = "#657b83";
blue = "#839496";
magenta = "#6c71c4";
cyan = "#93a1a1";
white = "#fdf6e3";
};
};
font = {
normal = {
family = "Source Code Pro";
style = "Regular";
};
bold = {
family = "Source Code Pro";
style = "Regular";
};
italic = {
family = "Source Code Pro";
style = "Italic";
};
bold_italic = {
family = "Source Code Pro";
style = "Bold Italic";
};
size = 14;
};
};
};
}