dotfiles used by Chikurin1014
- Use Curl
- Use Git
- Use Nix
- Use Home Manager (requires Nix)
If you haven't installed Nix and Home Manager, you need to install it.
You can install Nix by running:
sh <(curl -L https://nixos.org/nix/install) --daemon
# You need to run only if you installed in `single-user` mode.
$ . "$HOME/.nix-profile/etc/profile.d/nix.sh"
Add NixPkgs channel by running:
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
nix-channel --update
You can install Home Manager by running:
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
nix-shell '<home-manager>' -A install
You may already have ~/.config/home-manager
directory, so remove/archive it.
HM="$HOME/.config/home-manager" && [ -d "$HM" ] && mv "$HM" "$HM.bak"
Then clone main
branch of this repository to ~/.config/home-manager
.
git clone [email protected]:Chikurin1014/dotfiles.git $HOME/.config/home-manager -b main
Initialize & update the submodules.
git submodule init && git submodule update
Just run:
home-manager switch
Look out for README.md
in minimal
branch.