-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shell configurations via Home-manager
- Loading branch information
Showing
3 changed files
with
203 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
imports = with homeProfiles; [ | ||
base | ||
lang.complete | ||
shell | ||
stylix | ||
]; | ||
}; | ||
|
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,196 @@ | ||
# Shell configurations via Home-manager. | ||
{globals, ...}: { | ||
config, | ||
lib, | ||
pkgs, | ||
... | ||
}: | ||
with builtins // lib; { | ||
programs = { | ||
# bash | ||
bash = { | ||
enable = true; | ||
enableCompletion = true; | ||
}; | ||
|
||
# bat | ||
bat = { | ||
enable = true; | ||
extraPackages = with pkgs.bat-extras; [ | ||
batdiff | ||
batgrep | ||
batman | ||
batpipe | ||
batwatch | ||
prettybat | ||
]; | ||
}; | ||
|
||
# bottom | ||
bottom = { | ||
enable = true; | ||
}; | ||
|
||
# btop | ||
btop = { | ||
enable = true; | ||
}; | ||
|
||
# eza (exa) | ||
eza = { | ||
enable = true; | ||
enableAliases = true; | ||
icons = true; | ||
git = true; | ||
}; | ||
|
||
# fzf | ||
fzf = { | ||
enable = true; | ||
enableBashIntegration = true; | ||
enableZshIntegration = true; | ||
enableFishIntegration = true; | ||
tmux.enableShellIntegration = true; | ||
}; | ||
|
||
# gh (github-cli) | ||
gh = { | ||
enable = true; | ||
gitCredentialHelper.enable = true; | ||
extensions = with pkgs; [ | ||
gh-actions-cache | ||
gh-cal | ||
gh-dash | ||
gh-eco | ||
gh-markdown-preview | ||
]; | ||
}; | ||
|
||
# git | ||
git = { | ||
enable = true; | ||
lfs.enable = true; | ||
delta.enable = true; | ||
userName = "yousiki"; | ||
userEmail = "[email protected]"; | ||
extraConfig = { | ||
pull.rebase = false; | ||
push.followTags = true; | ||
}; | ||
}; | ||
|
||
# gitui | ||
gitui = { | ||
enable = true; | ||
}; | ||
|
||
# helix (hx) | ||
helix = { | ||
enable = true; | ||
languages = { | ||
# the language-server option currently requires helix from the master branch at https://github.com/helix-editor/helix/ | ||
language-server.typescript-language-server = with pkgs.nodePackages; { | ||
command = "''${typescript-language-server}/bin/typescript-language-server"; | ||
args = ["--stdio" "--tsserver-path=''${typescript}/lib/node_modules/typescript/lib"]; | ||
}; | ||
language = | ||
map | ||
(name: { | ||
name = name; | ||
auto-format = true; | ||
}) ["rust" "python" "nix"]; | ||
}; | ||
settings = { | ||
editor = { | ||
line-number = "relative"; | ||
lsp.display-messages = true; | ||
}; | ||
}; | ||
}; | ||
|
||
# mcfly | ||
mcfly = { | ||
enable = true; | ||
enableBashIntegration = true; | ||
enableZshIntegration = true; | ||
enableFishIntegration = true; | ||
fuzzySearchFactor = 3; | ||
}; | ||
|
||
# starship | ||
starship = { | ||
enable = true; | ||
enableBashIntegration = true; | ||
enableZshIntegration = true; | ||
enableFishIntegration = true; | ||
enableIonIntegration = true; | ||
enableNushellIntegration = true; | ||
enableTransience = true; | ||
}; | ||
|
||
# tmux | ||
tmux = { | ||
enable = true; | ||
}; | ||
|
||
# zellij | ||
zellij = { | ||
enable = true; | ||
enableBashIntegration = true; | ||
enableZshIntegration = true; | ||
}; | ||
|
||
# zoxide | ||
zoxide = { | ||
enable = true; | ||
enableBashIntegration = true; | ||
enableZshIntegration = true; | ||
enableFishIntegration = true; | ||
enableNushellIntegration = true; | ||
}; | ||
|
||
# zsh | ||
zsh = { | ||
enable = true; | ||
enableCompletion = true; | ||
autocd = true; | ||
enableAutosuggestions = true; | ||
historySubstringSearch.enable = true; | ||
syntaxHighlighting.enable = true; | ||
oh-my-zsh = { | ||
enable = true; | ||
theme = "robbyrussell"; | ||
plugins = [ | ||
"copyfile" | ||
"copypath" | ||
"docker" | ||
"fzf" | ||
"git" | ||
"gitignore" | ||
"history" | ||
"python" | ||
"rust" | ||
"thefuck" | ||
"zsh-interactive-cd" | ||
]; | ||
}; | ||
initExtra = '' | ||
bindkey "\e[1;3D" backward-word # ⌥← | ||
bindkey "\e[1;3C" forward-word # ⌥→ | ||
''; | ||
}; | ||
}; | ||
|
||
home.packages = with pkgs; [ | ||
cachix | ||
du-dust | ||
fd | ||
gdu | ||
home-manager | ||
mc | ||
rclone | ||
rsync | ||
statix | ||
thefuck | ||
]; | ||
} |
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