My home-manager zsh config
Find a file
github-actions[bot] 564822fcb0
All checks were successful
Perform checks / nix_flake_check (pull_request) Successful in 1m10s
Perform checks / formatting (pull_request) Successful in 1m12s
Perform checks / nix_flake_check (push) Successful in 1m9s
Perform checks / formatting (push) Successful in 1m12s
automated: Update flake.lock
- The following Nix Flake inputs were updated:

```
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/d3c42f187194c26d9f0309a8ecc469d6c878ce33?narHash=sha256-cHar1vqHOOyC7f1%2BtVycPoWTfKIaqkoe1Q6TnKzuti4%3D' (2024-12-17)
  → 'github:nixos/nixpkgs/d70bd19e0a38ad4790d3913bf08fcbfc9eeca507?narHash=sha256-4EVBRhOjMDuGtMaofAIqzJbg4Ql7Ai0PSeuVZTHjyKQ%3D' (2024-12-19)
```

Auto-generated by [update.yml][1] with the help of
[create-pull-request][2].

[1]: https://forgejo.stefka.eu/jiriks74/nix.nvim/src/branch/main/.github/workflows/update.yml
[2]: https://forgejo.stefka.eu/jiriks74/create-pull-request
2024-12-25 20:45:40 +00:00
.forgejo/workflows fix(ci): Remove nix cache action as it barely works 2024-12-19 11:15:31 +01:00
.gitignore Initial commit 2024-03-04 12:11:09 +01:00
flake.lock automated: Update flake.lock 2024-12-25 20:45:40 +00:00
flake.nix feat: Split the config into default and withPackages 2024-11-20 12:19:35 +01:00
LICENSE Initial commit 2024-03-04 12:11:09 +01:00
packages.nix fix(formatting): Using alejandra 2024-11-22 03:37:13 +01:00
README.md fix: Remove obsolete inputs, use more standard naming 2024-10-18 14:53:01 +02:00
zsh.nix fix(aliases): Move kitten ssh alias from ssh to kssh 2024-12-23 04:30:03 +01:00

zsh-nix

A home-manager flake containing my zsh config.

Usage

{
  # Add this flake to your inputs
  inputs = {
    zsh-config.url = "/home/jirka/Projects/zsh-nix/";
    ...
  }
...
  outputs = {
    self,
    nixpkgs,
    home-manager,
    zsh-config, # Don't forget to import it
    ...
  }
  ...
# Then add it to your homeConfigurations
    homeConfigurations = {
      "user@hostname" = home-manager.lib.homeManagerConfiguration {
        pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
        extraSpecialArgs = {inherit inputs outputs;};
        modules = [
          ...
          inputs.zsh-config.homeManagerModules.default
          ...
        ];
      };

ZSH Configuration Flake

This flake provides a ZSH configuration with various plugins, syntax highlighting, enhanced file handling, etc.

Overview

Notable plugins

  • zsh-autosuggestions: Provides suggestions as you type based on your command history.
  • zsh-you-should-use: Reminds you to use aliases for commands you frequently type. It helps you streamline your workflow.
  • ssh-connect: A utility for managing SSH connections and quickly switching between them.
  • enhancd: Improves directory navigation with fuzzy search, similar to zsh-z.
  • zsh-completions: Adds missing completions for various tools.
  • powerlevel10k: A highly customizable ZSH theme that gives you a clean and modern look with useful information in your prompt.
  • git plugin: Provides consistent, intuitive aliases and extra functions for common Git commands, improving workflow efficiency.

Packages

This flake includes some useful packages:

  • nix-zsh-completions: ZSH completions for Nix, NixOS, and NixOps.
  • asciinema: Terminal recording tool.
    • libnotify: Provides notifications for terminal events.
    • websocat: Used for streaming asciinema recordings in v2 format.
  • tldr: Community-driven simplified man pages for faster reference.
  • lsd: A next-generation ls command with improved features.
  • bat: A cat clone with syntax highlighting and Git integration.
  • eza: A modern, maintained replacement for ls.
  • trash-cli: Command line interface to the Freedesktop.org trashcan.

Other

  • ex: A shell function to extract various archive formats.
    • Supported formats include .tar.bz2, .zip, .rar, .gz, and more.