-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
130 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{config, ...}: { | ||
home.sessionVariables.STARSHIP_CACHE = "${config.xdg.cacheHome}/starship"; | ||
|
||
programs.starship = { | ||
enable = true; | ||
settings = { | ||
format = '' | ||
$os$directory$character | ||
''; | ||
right_format = '' | ||
($nix_shell) $git_branch $git_status | ||
''; | ||
scan_timeout = 10; | ||
line_break.disabled = true; | ||
|
||
os = { | ||
format = "[](fg:#7DAEA3 bg:none)[$symbol]($style)[](fg:#7DAEA3 bg:#26243C)"; | ||
symbols.NixOS = " "; | ||
style = "fg:#131313 bg:#7DAEA3"; | ||
disabled = false; | ||
}; | ||
|
||
directory = { | ||
format = "[](fg:#26243C bg:#26243C)[ ](fg:#D8A657 bg:#26243C)[ $path ](fg:#D8A657 bg:#26243C)[](fg:#26243C bg:none)"; | ||
truncation_length = 3; | ||
truncate_to_repo = false; | ||
}; | ||
|
||
git_branch = { | ||
format = "[](fg:#A9B665 bg:none)[](fg:#131313 bg:#A9B665)[](fg:#A9B665 bg:#A9B665)[$branch ](fg:#131313 bg:#A9B665)[](fg:#A9B665 bg:none)"; | ||
}; | ||
|
||
git_status = { | ||
format = "[](fg:#232526 bg:none)[$all_status $ahead_behind]($style)[](fg:#232526 bg:#232526)[](fg:#67afc1 bg:#232526)[ ](fg:#232526 bg:#67afc1)[](fg:#67afc1 bg:none)"; | ||
style = "fg:#D4BE98 bg:#232526"; | ||
conflicted = "="; | ||
ahead = "⇡$\{count\}"; | ||
behind = "⇣$\{count\}"; | ||
diverged = "⇕⇡$\{ahead_count\}⇣$\{behind_count\}"; | ||
up_to_date = ""; | ||
untracked = "?$\{count\}"; | ||
stashed = ""; | ||
modified = "!$\{count\}"; | ||
staged = "+$\{count\}"; | ||
renamed = "»$\{count\}"; | ||
deleted = "$\{count\}"; | ||
}; | ||
|
||
character = { | ||
success_symbol = "[ ](bold yellow)"; | ||
error_symbol = "[ ](bold red)"; | ||
vicmd_symbol = "[ ](bold green)"; | ||
}; | ||
|
||
nix_shell = { | ||
impure_msg = ""; | ||
symbol = " "; | ||
heuristic = true; | ||
format = "[($name \\(develop\\)) ]($style)[](fg:#7DAEA3 bg:none)[$symbol](fg:#131313 bg:#7DAEA3)[](fg:#7DAEA3 bg:none)"; | ||
}; | ||
|
||
shlvl = { | ||
format = "[$shlvl]($style) "; | ||
style = "bold cyan"; | ||
threshold = 2; | ||
repeat = true; | ||
disabled = false; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
_: { | ||
pkgs, | ||
config, | ||
... | ||
}: { | ||
config = { | ||
home.packages = with pkgs; [ | ||
fira-code | ||
wezterm | ||
]; | ||
|
||
xdg = { | ||
enable = true; | ||
configFile = { | ||
wezterm_lua = { | ||
target = "wezterm/wezterm.lua"; | ||
source = ./wezterm.lua; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
-- Pull in the wezterm API | ||
local wezterm = require("wezterm") | ||
|
||
-- This table will hold the configuration. | ||
local config = {} | ||
|
||
-- In newer versions of wezterm, use the config_builder which will | ||
-- help provide clearer error messages | ||
if wezterm.config_builder then | ||
config = wezterm.config_builder() | ||
end | ||
|
||
-- config.color_scheme = "Catppuccin Macchiato" | ||
config.color_scheme = "Tokyo Night" | ||
-- config.color_scheme = "Dracula+" | ||
|
||
config.font_size = 19.0 | ||
|
||
config.font = wezterm.font_with_fallback({ | ||
"JetBrains Mono", | ||
{ family = "Iosevka Term Slab", stretch = "Expanded", weight = "ExtraLight" }, | ||
"Noto Color Emoji", | ||
}) | ||
|
||
config.scrollback_lines = 200000 | ||
config.tab_max_width = 24 | ||
config.use_dead_keys = false | ||
config.window_decorations = "RESIZE" -- no title bar | ||
config.window_background_opacity = 0.95 | ||
-- and finally, return the configuration to wezterm | ||
return config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters