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

65 lines
1.7 KiB
Nix
Raw Normal View History

2024-03-24 16:15:15 +01:00
{ config, pkgs, ... }:
{
2024-03-25 01:30:33 +01:00
# zoxide
programs.zoxide = {
enable = true;
enableZshIntegration = true;
options = [ "--cmd cd" ];
};
2024-03-24 16:15:15 +01:00
# zsh
programs.zsh = {
# general
enable = true;
# settings
enableCompletion = true;
enableAutosuggestions = true;
syntaxHighlighting.enable = true;
# oh-my-zsh
oh-my-zsh = {
enable = true;
2024-04-03 00:02:06 +02:00
plugins = [ "git" ];
2024-03-24 16:15:15 +01:00
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
2024-04-01 01:07:34 +02:00
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";
2024-03-24 16:15:15 +01:00
# sshfs
2024-03-24 19:56:47 +01:00
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";
2024-03-24 16:15:15 +01:00
umount-media = "sudo umount /home/simon/remotedir/media";
umount-siempie = "sudo umount /home/simon/remotedir/siempie";
2024-04-07 01:08:42 +02:00
2024-04-15 14:05:09 +02:00
# teleport
titc = "tsh login --proxy=teleport.itcreation.nl --user=admscornet";
2024-03-24 16:15:15 +01:00
};
};
}
2024-04-02 23:57:30 +02:00