Configuration which I use for my development purposes. Not so recently I migrated all the dotfiles
management to nix
and it's still WIP, but mostly should work ok.
Mostly I use well-known things:
- zsh - powered by
zgenom
plugin manager, lightweight shell. - nvim - initially I used self-written config, but then switched to astronvim community distribution as long as managing well-prepared nvim configuration is a pretty hard task as for today.
- tmux - terminal multiplexer, configuration managed by
nix
(seenix/tmux.nix
file).
And also some set of handy tools, such as exa, jq, rg.
Initially, only nix
and git
must be installed. Be sure that nix is up-to-date:
nix-channel --add https://nixos.org/channels/nixpkgs-unstable
nix-channel --update
Clone the repository:
git clone https://github.com/seroperson/dotfiles $HOME/.dotfiles/
And then let the home-manager
do the rest:
nix --extra-experimental-features "nix-command flakes" run home-manager/release-24.05 -- init --switch $HOME/.dotfiles/
Next, you should do chsh $USER -s $HOME/.nix-profile/bin/zsh
and re-login.
Finally, be sure to install nerd-font and catpuccin mocha theme for your terminal.
Usually nix doesn't work as expected and you don't know what to do. It is good idea to start your troubleshooting with global cleanup:
nix-channel --update
nix-env -u --always
rm /nix/var/nix/gcroots/auto/*
rm -rf $HOME/.cache/nix
nix-collect-garbage -d
nix
is not easy thing to get started with, but luckily it has a lot of guides available across the web.
Here are some of them: