Dotfiles repo managed using chezmoi
- plugin list managed with ZINIT adding
ALT+Eto Edit orALT+Rto Read files chosen with fzfALT+\to jump to previously visitd directory with zoxide interactive modeCTRL+RorARROW-UPto search command history with atuinCTRL+Gfor cheatsheets powered bynavifishlike inline auto-completefzftab completion- auto-completion generation from
--help
Catppuccintheme foroh-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.
- 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 applyand (hopefully) rock'n roll baby !
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 1To fix, you can try changing the ownership of the nix store to the nix-users group:
sudo chown -R :nix-users /nix/var/nixMake sure your user is part of the nix-users group :
groups $USERIf not, add yourself to nix-users group:
sudo gpasswd -a $USER nix-usersAlternavively, you can directly own the whole directory if the previous solution did not work:
sudo chown -R $USER /nixOverride 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;
};
});