39 lines
720 B
Nix
39 lines
720 B
Nix
|
{ pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
# Zsh config
|
||
|
programs.zsh = {
|
||
|
enable = true;
|
||
|
initExtra = "
|
||
|
hyfetch
|
||
|
";
|
||
|
shellAliases = {
|
||
|
ll = "ls -l";
|
||
|
please = "sudo";
|
||
|
update = "sudo nixos-rebuild switch --flake /etc/nixos/";
|
||
|
};
|
||
|
plugins = [
|
||
|
{
|
||
|
name = "zsh-nix-shell";
|
||
|
file = "nix-shell.plugin.zsh";
|
||
|
src = pkgs.fetchFromGitHub {
|
||
|
owner = "chisui";
|
||
|
repo = "zsh-nix-shell";
|
||
|
rev = "v0.7.0";
|
||
|
sha256 = "149zh2rm59blr2q458a5irkfh82y3dwdich60s9670kl3cl5h2m1";
|
||
|
};
|
||
|
}
|
||
|
];
|
||
|
oh-my-zsh = {
|
||
|
enable = true;
|
||
|
plugins = [
|
||
|
"git"
|
||
|
"thefuck"
|
||
|
"sudo"
|
||
|
];
|
||
|
theme = "mh";
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|