-
Install NixOS WLS (in Windows PowerShell) (link)
-
Pre configuation (in WSL)
sudo nix-channel --update nix-shell -p age git sops
-
Copy dots (in WSL)
git clone https://github.com/lostlang/nixos-wsl-config $HOME/.config/nixos cd $HOME/.config/nixos
-
Generate secrets (in WSL)
sudo mkdir $HOME/.secret sudo age-keygen -o $HOME/.secret/key sudo cp template.secret.yaml $HOME/.secret/secret.yaml sudo chmod 0600 $HOME/.secret/secret.yaml
-
Encrypt file (in WSL)
cd $HOME/.secret sudo -E SOPS_AGE_KEY_FILE=key sops -e -i -a <PUBLIC KEY> secret.yaml
-
Change secrets (in WSL)
sudo -E SOPS_AGE_KEY_FILE=key sops secret.yaml
-
Install dots (in WSL)
cd $HOME/.config/nixos/config sudo nixos-rebuild switch --flake .#wsl clean all
-
Reboot WLS (in Windows PowerShell)
wsl --shutdown -
Post configuration (in WSL)
ssh-keygen -t ed25519 -a 100 -f ~/.ssh/default_ed25519ssh-keygen -t ed25519 -a 100 -f ~/.ssh/github_ed25519
- Install win32yank (use Scoop (link))