70 lines
1.6 KiB
Nix
70 lines
1.6 KiB
Nix
{ ... }:
|
|
|
|
{
|
|
home.shellAliases = {
|
|
# Nix Commands
|
|
"nix:rebuild" = "sudo nixos-rebuild switch --flake /etc/nixos";
|
|
"nix:update" = "cd /etc/nixos && nix flake update && sudo nixos-rebuild switch --flake .";
|
|
"nix:purge" =
|
|
"sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
|
"nix:edit" = "$EDITOR /etc/nixos";
|
|
"nix:push" = "cd /etc/nixos && git add -A && git commit -m \"$(date -u +%s)\" && git push";
|
|
"nix:pull" = "cd /etc/nixos && git pull";
|
|
"nix:hw" =
|
|
"sudo nixos-generate-config --show-hardware-config > /etc/nixos/hardware-configuration.nix";
|
|
|
|
# Utilities
|
|
"fixaudio" = "systemctl --user restart pipewire pipewire-pulse wireplumber";
|
|
"nf" = "neofetch";
|
|
};
|
|
|
|
programs.bash = {
|
|
enable = true;
|
|
};
|
|
|
|
programs.zsh = {
|
|
enable = true;
|
|
};
|
|
|
|
programs.starship = {
|
|
enable = true;
|
|
enableBashIntegration = true;
|
|
enableZshIntegration = true;
|
|
settings = {
|
|
add_newline = false;
|
|
character = {
|
|
success_symbol = "[➜](bold green)";
|
|
error_symbol = "[➜](bold red)";
|
|
};
|
|
};
|
|
};
|
|
|
|
programs.zoxide = {
|
|
enable = true;
|
|
enableBashIntegration = true;
|
|
enableZshIntegration = true;
|
|
};
|
|
|
|
programs.eza = {
|
|
enable = true;
|
|
enableBashIntegration = true;
|
|
enableZshIntegration = true;
|
|
git = true;
|
|
icons = "auto";
|
|
};
|
|
|
|
programs.bat = {
|
|
enable = true;
|
|
config = {
|
|
theme = "Catppuccin Macchiato";
|
|
};
|
|
};
|
|
|
|
programs.direnv = {
|
|
enable = true;
|
|
enableBashIntegration = true;
|
|
enableZshIntegration = true;
|
|
nix-direnv.enable = true;
|
|
};
|
|
}
|