This commit is contained in:
gpskwlkr 2024-03-26 23:45:56 +04:00
parent 506b21e430
commit 709db1985b
91 changed files with 251 additions and 212 deletions

44
home/user/shell.nix Normal file
View file

@ -0,0 +1,44 @@
{ config, pkgs, ... }:
let
myAliases = {
ll = "ls -l";
fullClean = ''
nix-collect-garbage --delete-old
sudo nix-collect-garbage -d
sudo /run/current-system/bin/switch-to-configuration boot
'';
rebuild = "sudo nixos-rebuild switch --flake ~/.dotfiles/";
fullRebuild = "sudo nixos-rebuild switch --flake ~/.dotfiles/ && home-manager switch --flake ~/.dotfiles/ -b backup";
homeRebuild = "home-manager switch --flake ~/.dotfiles/ -b backup";
};
in
{
programs = {
zsh = {
enable = true;
enableAutosuggestions = true;
syntaxHighlighting.enable = true;
initExtra = ''
source ~/.p10k.zsh &&
eval "$(zoxide init --cmd cd zsh)" &&
j() { cdi; clear }
export PATH="$PATH:/home/gpskwlkr/.dotnet/tools"
'';
shellAliases = myAliases;
oh-my-zsh = {
enable = true;
custom = "$HOME/.oh-my-custom";
theme = "powerlevel10k/powerlevel10k";
plugins = [
"git"
"history"
"wd"
];
};
};
};
}