This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-nix/nix/home/zsh/zsh.nix

62 lines
1.6 KiB
Nix

{ config, pkgs, ... }:
{
# zoxide
programs.zoxide = {
enable = true;
enableZshIntegration = true;
options = [ "--cmd cd" ];
};
# zsh
programs.zsh = {
# general
enable = true;
# settings
enableCompletion = true;
enableAutosuggestions = true;
syntaxHighlighting.enable = true;
# oh-my-zsh
oh-my-zsh = {
enable = true;
plugins = [ "git" ];
theme = "bira";
};
# aliasses
shellAliases = {
# logout from hyprland
tata = "hyprctl dispatch exit";
# git
gfo = "git fetch origin";
gmo = "git merge origin";
gpo = "git push origin";
gfu = "git fetch upstream";
gmu = "git merge upstream";
# k9s
k9s = "ssh k9s.siempie.internal -t /home/simon/.local/bin/k9s";
# nixos-rebuild
system-rebuild = "sudo nixos-rebuild switch --flake ~/.dotfiles#`hostname -s`";
system-update = "sudo nix flake update nixpkgs -I ~/.dotfiles && sudo nixos-rebuild switch --upgrade --flake ~/.dotfiles#`hostname -s` && sudo fwupdmgr upgrade";
system-clean = "sudo nix-store --gc";
system-purge = "sudo nix-collect-garbage -d";
system-full-clean = "sudo nix-store --gc && sudo nix-collect-garbage -d";
# sshfs
sj-mount-media = "sshfs nas.siempie.local:/tank/media /home/simon/remotedir/media";
sj-mount-siempie = "sshfs nas.siempie.local:/tank/siempie /home/simon/remotedir/siempie";
umount-media = "sudo umount /home/simon/remotedir/media";
umount-siempie = "sudo umount /home/simon/remotedir/siempie";
};
};
}