Skip to content

wahtique/dotfiles

Repository files navigation

wahtique's custom ZSH

Dotfiles repo managed using chezmoi

What's included

  • plugin list managed with ZINIT adding
    • ALT+E to Edit or ALT+R to Read files chosen with fzf
    • ALT+\ to jump to previously visitd directory with zoxide interactive mode
    • CTRL+R or ARROW-UP to search command history with atuin
    • CTRL+Gfor cheatsheets powered by navi
    • fish like inline auto-complete
    • fzf tab completion
    • auto-completion generation from --help
  • Catppuccin theme for oh-my-posh
  • home-manager config to setup dependencies
  • and much more ( well just a little for now but much more soon ! )

Programs are managed using nix and home-manager. They can be installed before applying chezmoi's dotfiles for the first time but included install script will try to do if they are not found on your system.

Installation

  • CHECK zsh is your default shell, or set it with chsh
  • Install nix and home-manager
  • Ensure github is properly setup
    • check here to setup ssh with your a rsa key
  • Fork this repo !
  • Install chezmoi (with your github username ofc)
  • Run
sh -c "$(curl -fsLS chezmoi.io/get)" -- init --apply $GITHUB_USERNAME
  • Run chezmoi apply and (hopefully) rock'n roll baby !

Troubleshooting

Permission denied on /nix/var/nix/builds

Depending on Nix install method, permissions on the nix store can be reset to root after an update.

error: creating directory '/nix/var/nix/builds/nix-build-home-manager.drv-32870-1704007560': Permission denied
error: program '/usr/bin/nix-build' failed with exit code 1

To fix, you can try changing the ownership of the nix store to the nix-users group:

sudo chown -R :nix-users /nix/var/nix

Make sure your user is part of the nix-users group :

groups $USER

If not, add yourself to nix-users group:

sudo gpasswd -a $USER nix-users

Alternavively, you can directly own the whole directory if the previous solution did not work:

sudo chown -R $USER /nix

Package not up to date on nixpkgs/unstable

Override derivation. For example, replace vscode-1.109.0 with 1.10.2 :

pkgs.vscode.overrideAttrs (oldAttrs: rec {
  hash = "sha256-ST5i8gvNtAaBbmcpcg9GJipr8e5d0A0qbdG1P9QViek=";
  plat = "linux-x64";
  archive_fmt = "tar.gz";
  version = "1.109.2";
  src = pkgs.fetchurl {
    name = "VSCode_${version}_${plat}.${archive_fmt}";
    url = "https://update.code.visualstudio.com/${version}/${plat}/stable";
    inherit hash;
  };
});

About

Dotfiles repo for chezmoi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors