44 lines
1.3 KiB
Nix
44 lines
1.3 KiB
Nix
{ config, pkgs, ...} :
|
|
|
|
{
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
autosuggestion.enable = true;
|
|
syntaxHighlighting.enable = true;
|
|
|
|
shellAliases = {
|
|
ls = "ls -a";
|
|
sp = "sudo nixos-rebuild switch --flake ~/nix/#pc";
|
|
sl = "sudo nixos-rebuild switch --flake ~/nix/#laptop";
|
|
sc = "sudo nixos-rebuild switch --flake ~/nix/#craptop";
|
|
up = "sudo nix flake update ~/nix";
|
|
fr = "sudo systemctl reboot --firmware";
|
|
hy = "vim ~/nix/home/hyprland/default.nix";
|
|
eh = "vim ~/nix/home/default.nix";
|
|
gtk = "vim ~/nix/home/gtk/default.nix";
|
|
v = "vim";
|
|
ser = "ssh root@joygnu.org";
|
|
zs = "vim ~/nix/home/zsh/default.nix";
|
|
ep = "vim ~/nix/modules/packages/default.nix";
|
|
del = "sudo nix-collect-garbage -d";
|
|
push = "git push origin main && git push berg main";
|
|
ec = "vim ~/nix/hosts/pc/default.nix";
|
|
ef = "vim ~/nix/flake.nix";
|
|
epc = "vim ~/nix/hosts/pc/default.nix";
|
|
em = "vim ~/nix/modules/misc/default.nix";
|
|
es = "vim ~/nix/modules/stylix/default.nix";
|
|
};
|
|
|
|
history.size = 10000;
|
|
history.path = "${config.xdg.dataHome}/zsh/history";
|
|
|
|
oh-my-zsh = {
|
|
enable = true;
|
|
plugins = [ "history-substring-search" ];
|
|
theme = "simple";
|
|
};
|
|
};
|
|
}
|
|
|