Refactor config to merge modules from platforms

This commit is contained in:
Kiana Sheibani 2023-01-03 21:17:49 -05:00
parent a3eecd7007
commit 0c4ce3e936
32 changed files with 95 additions and 116 deletions

View file

@ -0,0 +1,47 @@
{ config, pkgs, ... }:
{
programs.alacritty = {
enable = true;
settings = {
window.opacity = 0.9;
# Based on the Tokyo Night theme
colors.primary = {
foreground = "#a9b1d6";
background = "#1a1b26";
};
colors.normal = {
black = "#32344a";
red = "#ce7284";
green = "#7dc5a0";
yellow = "#caaa6a";
blue = "#7bc5e4";
magenta = "#ad8ee6";
cyan = "#449dab";
white = "#787c99";
};
colors.bright = {
black = "#444b6a";
red = "#d5556f";
green = "#b9f27c";
yellow = "#ff9e64";
blue = "#7da6ff";
magenta = "#bb9af7";
cyan = "#0db9d7";
white = "#acb0d0";
};
font =
let family = "VictorMono";
font-style = style: { inherit family style; };
in {
normal = font-style "SemiBold";
bold = font-style "Bold";
italic = font-style "SemiBold Italic";
bold_italic = font-style "Bold Italic";
size = 11;
};
};
};
}

View file

@ -0,0 +1,13 @@
{ ... }:
{
imports = [
./alacritty.nix
./starship.nix
];
programs.fish.enable = true;
# Hook nix-direnv to shell
programs.fish.shellInit = "direnv hook fish | source";
}

View file

@ -0,0 +1,68 @@
{ ... }:
{
programs.starship.enable = true;
programs.starship.settings = {
format = "$directory$nix_shell$all$fill$cmd_duration$status$jobs$time$line_break$character";
fill.symbol = " ";
add_newline = true;
battery.disabled = true;
character =
let char = ""; charVi = "";
in {
success_symbol = "[${char}](bold bright-green)";
error_symbol = "[${char}](bold bright-red)";
vicmd_symbol = "[${charVi}](bold bright-green)";
};
directory = {
truncation_length = 6;
truncation_symbol = " /";
read_only = " ";
read_only_style = "cyan";
};
nix_shell = {
format = "[$symbol]($style)";
symbol = " ";
};
jobs = {
format = "[$symbol$number]($style) ";
symbol = " ";
style = "green";
};
status = {
disabled = false;
format = "[\\($int\\)]($style) ";
};
time = {
disabled = false;
format = "[$time]($style) ";
style = "dimmed cyan";
};
git_branch.style = "bold green";
git_status = {
format = "$stashed$ahead_behind$conflicted$deleted$renamed$staged$modified$untracked";
conflicted = "[~$count ](red)";
ahead = "[$count ](cyan)";
behind = "[$count ](cyan)";
diverged = "[ ](cyan)";
untracked = "[?$count ](cyan)";
stashed = "[\\$$count ](cyan)";
modified = "[!$count ](yellow)";
staged = "[+$count ](yellow)";
renamed = "[»$count ](yellow)";
deleted = "[$count ](red)";
};
};
}