my dotfiles
- Install Nix with Determinate Nix Installer.
# Install nix
$ curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm
# Create config to use flake
$ mkdir -p ~/.config/nix
$ echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
# Add nix-community cache
$ nix run nixpkgs#cachix -- use nix-community
$ nix-shell -p git curl home-manager
$ git clone https://github.com/uesyn/dotfiles.git
$ cd ./dotfiles
$ home-manager switch --flake . --impure -b backup --refresh
After Installation of NixOS on WSL2, run below commands.
$ nix-shell -p git curl
$ git clone https://github.com/uesyn/dotfiles
$ cd ./dotfiles
$ sudo nixos-rebuild switch --flake .#wsl2