Migrate to Snowfall (#1)
Reviewed-on: #1 Co-authored-by: Evan Reichard <evan@reichard.io> Co-committed-by: Evan Reichard <evan@reichard.io>
This commit was merged in pull request #1.
This commit is contained in:
93
modules/home/programs/graphical/ghostty/config/fastfetch.jsonc
Executable file
93
modules/home/programs/graphical/ghostty/config/fastfetch.jsonc
Executable file
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"modules": [
|
||||
{
|
||||
"type": "separator",
|
||||
"string": "",
|
||||
"length": 35,
|
||||
},
|
||||
{
|
||||
"type": "title",
|
||||
"format": "Hardware Information",
|
||||
},
|
||||
{
|
||||
"type": "cpu",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "memory",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "display",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "separator",
|
||||
},
|
||||
{
|
||||
"type": "title",
|
||||
"format": "Software Information",
|
||||
},
|
||||
{
|
||||
"type": "os",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "kernel",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "terminal",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "packages",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "terminalfont",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "separator",
|
||||
},
|
||||
{
|
||||
"type": "title",
|
||||
"format": "Network Information",
|
||||
},
|
||||
{
|
||||
"type": "publicip",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "localip",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "separator",
|
||||
},
|
||||
{
|
||||
"type": "custom",
|
||||
"format": " {#white} {#red} {#green} {#yellow} {#blue} {#magenta} {#cyan} {#white}\n",
|
||||
},
|
||||
],
|
||||
"display": {
|
||||
"separator": " ",
|
||||
"key": {
|
||||
"width": 7,
|
||||
},
|
||||
"color": {
|
||||
"keys": "yellow",
|
||||
"title": "blue",
|
||||
},
|
||||
},
|
||||
"settings": {
|
||||
"kernelFormat": "minimal",
|
||||
"memoryUnit": "gib",
|
||||
"temperatureUnit": "celsius",
|
||||
"publicIpTimeout": 2000,
|
||||
"publicIpHost": "http://ident.me",
|
||||
"diskUnit": "gib",
|
||||
"showDisks": ["/"],
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
# https://github.com/catppuccin/ghostty/blob/main/themes/catppuccin-macchiato.conf
|
||||
palette = 0=#494d64
|
||||
palette = 1=#ed8796
|
||||
palette = 2=#a6da95
|
||||
palette = 3=#eed49f
|
||||
palette = 4=#8aadf4
|
||||
palette = 5=#f5bde6
|
||||
palette = 6=#8bd5ca
|
||||
palette = 7=#b8c0e0
|
||||
palette = 8=#5b6078
|
||||
palette = 9=#ed8796
|
||||
palette = 10=#a6da95
|
||||
palette = 11=#eed49f
|
||||
palette = 12=#8aadf4
|
||||
palette = 13=#f5bde6
|
||||
palette = 14=#8bd5ca
|
||||
palette = 15=#a5adcb
|
||||
background = 24273a
|
||||
foreground = cad3f5
|
||||
cursor-color = f4dbd6
|
||||
cursor-text = 24273a
|
||||
selection-background = 3a3e53
|
||||
selection-foreground = cad3f5
|
||||
@@ -0,0 +1,23 @@
|
||||
# https://github.com/catppuccin/ghostty/blob/main/themes/catppuccin-mocha.conf
|
||||
palette = 0=#45475a
|
||||
palette = 1=#f38ba8
|
||||
palette = 2=#a6e3a1
|
||||
palette = 3=#f9e2af
|
||||
palette = 4=#89b4fa
|
||||
palette = 5=#f5c2e7
|
||||
palette = 6=#94e2d5
|
||||
palette = 7=#bac2de
|
||||
palette = 8=#585b70
|
||||
palette = 9=#f38ba8
|
||||
palette = 10=#a6e3a1
|
||||
palette = 11=#f9e2af
|
||||
palette = 12=#89b4fa
|
||||
palette = 13=#f5c2e7
|
||||
palette = 14=#94e2d5
|
||||
palette = 15=#a6adc8
|
||||
background = 1e1e2e
|
||||
foreground = cdd6f4
|
||||
cursor-color = f5e0dc
|
||||
cursor-text = 1e1e2e
|
||||
selection-background = 353749
|
||||
selection-foreground = cdd6f4
|
||||
@@ -0,0 +1,21 @@
|
||||
# Melange Dark - Adapted From: https://github.com/savq/melange-nvim/blob/master/term/kitty/melange_dark.conf
|
||||
palette = 0=#34302C
|
||||
palette = 1=#BD8183
|
||||
palette = 2=#78997A
|
||||
palette = 3=#E49B5D
|
||||
palette = 4=#7F91B2
|
||||
palette = 5=#B380B0
|
||||
palette = 6=#7B9695
|
||||
palette = 7=#C1A78E
|
||||
palette = 8=#867462
|
||||
palette = 9=#D47766
|
||||
palette = 10=#85B695
|
||||
palette = 11=#EBC06D
|
||||
palette = 12=#A3A9CE
|
||||
palette = 13=#CF9BC2
|
||||
palette = 14=#89B3B6
|
||||
palette = 15=#ECE1D7
|
||||
background = 292522
|
||||
foreground = ECE1D7
|
||||
selection-background = 403A36
|
||||
selection-foreground = ECE1D7
|
||||
58
modules/home/programs/graphical/ghostty/config/ghostty.conf
Executable file
58
modules/home/programs/graphical/ghostty/config/ghostty.conf
Executable file
@@ -0,0 +1,58 @@
|
||||
command = @BASH_PATH@ --login
|
||||
macos-titlebar-style = tabs
|
||||
auto-update = off
|
||||
font-family = "MesloLGM Nerd Font Mono"
|
||||
confirm-close-surface = true
|
||||
|
||||
# Keybindings - Tabs & Splits
|
||||
keybind = cmd+t=new_tab
|
||||
keybind = cmd+w=close_surface
|
||||
keybind = cmd+d=new_split:right
|
||||
keybind = cmd+shift+d=new_split:down
|
||||
keybind = cmd+shift+enter=toggle_split_zoom
|
||||
|
||||
# Keybindings - Navigation - Splits
|
||||
keybind = cmd+left=goto_split:left
|
||||
keybind = cmd+right=goto_split:right
|
||||
keybind = cmd+up=goto_split:up
|
||||
keybind = cmd+down=goto_split:down
|
||||
keybind = cmd+]=goto_split:next
|
||||
keybind = cmd+[=goto_split:previous
|
||||
|
||||
# Keybindings - Navigation - Tabs
|
||||
keybind = cmd+1=goto_tab:1
|
||||
keybind = cmd+2=goto_tab:2
|
||||
keybind = cmd+3=goto_tab:3
|
||||
keybind = cmd+4=goto_tab:4
|
||||
keybind = cmd+5=goto_tab:5
|
||||
keybind = cmd+6=goto_tab:6
|
||||
keybind = cmd+7=goto_tab:7
|
||||
keybind = cmd+8=goto_tab:8
|
||||
keybind = cmd+9=goto_tab:9
|
||||
|
||||
keybind = performable:cmd+c=copy_to_clipboard
|
||||
keybind = performable:cmd+v=paste_from_clipboard
|
||||
|
||||
# https://github.com/catppuccin/ghostty/blob/main/themes/catppuccin-mocha.conf
|
||||
palette = 0=#45475a
|
||||
palette = 1=#f38ba8
|
||||
palette = 2=#a6e3a1
|
||||
palette = 3=#f9e2af
|
||||
palette = 4=#89b4fa
|
||||
palette = 5=#f5c2e7
|
||||
palette = 6=#94e2d5
|
||||
palette = 7=#bac2de
|
||||
palette = 8=#585b70
|
||||
palette = 9=#f38ba8
|
||||
palette = 10=#a6e3a1
|
||||
palette = 11=#f9e2af
|
||||
palette = 12=#89b4fa
|
||||
palette = 13=#f5c2e7
|
||||
palette = 14=#94e2d5
|
||||
palette = 15=#a6adc8
|
||||
background = 1e1e2e
|
||||
foreground = cdd6f4
|
||||
cursor-color = f5e0dc
|
||||
cursor-text = 1e1e2e
|
||||
selection-background = 353749
|
||||
selection-foreground = cdd6f4
|
||||
78
modules/home/programs/graphical/ghostty/default.nix
Executable file
78
modules/home/programs/graphical/ghostty/default.nix
Executable file
@@ -0,0 +1,78 @@
|
||||
{ pkgs, lib, config, namespace, ... }:
|
||||
let
|
||||
inherit (pkgs.stdenv) isLinux;
|
||||
inherit (lib) mkIf mkEnableOption optionals;
|
||||
cfg = config.${namespace}.programs.graphical.ghostty;
|
||||
in
|
||||
{
|
||||
options.${namespace}.programs.graphical.ghostty = {
|
||||
enable = mkEnableOption "Ghostty";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
grep = "grep --color";
|
||||
ssh = "TERM=xterm-256color ssh";
|
||||
flush_dns = "sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder";
|
||||
};
|
||||
profileExtra = ''
|
||||
SHELL="$BASH"
|
||||
PATH=~/.bin:$PATH
|
||||
bind "set show-mode-in-prompt on"
|
||||
|
||||
set -o vi || true
|
||||
VISUAL=vim
|
||||
EDITOR="$VISUAL"
|
||||
|
||||
fastfetch
|
||||
eval "$(thefuck --alias)"
|
||||
'';
|
||||
};
|
||||
|
||||
programs.powerline-go = {
|
||||
enable = true;
|
||||
settings = {
|
||||
git-mode = "compact";
|
||||
theme = "gruvbox";
|
||||
};
|
||||
modules = [
|
||||
"host"
|
||||
"cwd"
|
||||
"git"
|
||||
"docker"
|
||||
"venv"
|
||||
];
|
||||
};
|
||||
|
||||
programs.readline = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
# Approximate VIM Dracula Colors
|
||||
set vi-ins-mode-string \1\e[01;38;5;23;48;5;231m\2 I \1\e[38;5;231;48;5;238m\2\1\e[0m\2
|
||||
set vi-cmd-mode-string \1\e[01;38;5;22;48;5;148m\2 C \1\e[38;5;148;48;5;238m\2\1\e[0m\2
|
||||
'';
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
thefuck
|
||||
fastfetch
|
||||
bashInteractive
|
||||
(nerdfonts.override { fonts = [ "Meslo" ]; })
|
||||
] ++ optionals isLinux [
|
||||
# Pending Darwin @ https://github.com/NixOS/nixpkgs/pull/369788
|
||||
ghostty
|
||||
];
|
||||
|
||||
home.file.".config/fastfetch/config.jsonc".text = builtins.readFile ./config/fastfetch.jsonc;
|
||||
home.file.".config/ghostty/config".text =
|
||||
let
|
||||
bashPath = "${pkgs.bashInteractive}/bin/bash";
|
||||
in
|
||||
builtins.replaceStrings
|
||||
[ "@BASH_PATH@" ]
|
||||
[ bashPath ]
|
||||
(builtins.readFile ./config/ghostty.conf);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user