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
# Add nix-community cache
$ nix run nixpkgs#cachix -- use nix-community
$ nix run home-manager -- switch --flake github:uesyn/dotfiles --impure -b backup --refresh
for debug
$ git clone https://github.com/uesyn/dotfiles.git
$ cd ./dotfiles
$ nix run home-manager -- switch --flake . --impure -b backup --refresh
After Installation of NixOS on WSL2, run below commands.
$ nix-shell -p git
$ sudo nixos-rebuild switch --flake github:uesyn/dotfiles#wsl2 --refresh
for debug
$ nix-shell -p git
$ git clone https://github.com/uesyn/dotfiles
$ cd dotfiles
$ sudo nixos-rebuild switch --flake .#wsl2