setting up zsh and starship
This commit is contained in:
parent
7b42fac27d
commit
ee80ff285e
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./home/git.nix
|
|
||||||
./home/programs.nix
|
./home/programs.nix
|
||||||
./home/sshconfig.nix
|
./home/sshconfig.nix
|
||||||
|
./home/cli
|
||||||
./home/vscode
|
./home/vscode
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -12,7 +12,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
home = {
|
home = {
|
||||||
username = "richie";
|
username = "richie";
|
||||||
homeDirectory = "/home/richie";
|
homeDirectory = "/home/richie";
|
||||||
|
13
users/richie/home/cli/default.nix
Normal file
13
users/richie/home/cli/default.nix
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf;
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
./git.nix
|
||||||
|
./starship.nix
|
||||||
|
./zsh.nix
|
||||||
|
];
|
||||||
|
}
|
5
users/richie/home/cli/starship.nix
Normal file
5
users/richie/home/cli/starship.nix
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
28
users/richie/home/cli/zsh.nix
Normal file
28
users/richie/home/cli/zsh.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
syntaxHighlighting.enable = true;
|
||||||
|
history.size = 10000;
|
||||||
|
oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [
|
||||||
|
"git"
|
||||||
|
"docker"
|
||||||
|
"docker-compose"
|
||||||
|
"colored-man-pages"
|
||||||
|
"rust"
|
||||||
|
"systemd"
|
||||||
|
"tmux"
|
||||||
|
"ufw"
|
||||||
|
"z"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
shellAliases = {
|
||||||
|
"sgc" = "sudo git -C /root/dotfiles";
|
||||||
|
|
||||||
|
## Utilities
|
||||||
|
"lrt" = "eza --icons -lsnew";
|
||||||
|
"ls" = "eza";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -4,6 +4,7 @@
|
|||||||
# cli
|
# cli
|
||||||
bat
|
bat
|
||||||
btop
|
btop
|
||||||
|
eza
|
||||||
git
|
git
|
||||||
gnupg
|
gnupg
|
||||||
ncdu
|
ncdu
|
||||||
@ -11,6 +12,7 @@
|
|||||||
ripgrep
|
ripgrep
|
||||||
sops
|
sops
|
||||||
starship
|
starship
|
||||||
|
tmux
|
||||||
zoxide
|
zoxide
|
||||||
zsh-nix-shell
|
zsh-nix-shell
|
||||||
# system info
|
# system info
|
||||||
|
Loading…
x
Reference in New Issue
Block a user