# Clone the repository
cd ~
git clone <your-repo-url> dotfiles
cd dotfiles
# Install Determinate Nix
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
# Apply configuration
nix run .#updatehome-manager のパッケージインストールは nix-darwin に統合されているため、適用は nix-darwin 側の更新だけで完了します。
cd ~/dotfiles
# flake inputs を更新
nix flake update
# nix-darwin と home-manager の設定をまとめて適用
nix run .#update個別 input だけ更新したい場合:
cd ~/dotfiles
nix flake lock --update-input nixpkgs
nix run .#update-
Install NixOS-WSL following the official instructions
-
Clone this repository in WSL:
cd ~
git clone <your-repo-url> dotfiles
cd dotfiles- Build and activate the configuration:
sudo nixos-rebuild switch --flake ~/dotfiles#nixos-wslcd ~/dotfiles
# Update flake inputs
nix flake update
# Apply the configuration
sudo nixos-rebuild switch --flake .#nixos-wsl個別 input だけ更新したい場合:
cd ~/dotfiles
nix flake lock --update-input nixpkgs
sudo nixos-rebuild switch --flake .#nixos-wsl