nixos/nix-darwin system configuration for my machines
Host based around https://github.com/nix-community/NixOS-WSL/tree/b4354a924111b7f09ba5a3d1ce38717c7f29a581
- (Optional) Ensure you have NerdFont installed and set up for your terminal emulator
- Enable WSL (run
wsl --install
) - Follow NixOS-WSL instructions and run an NixOS-WSL instance.
$ nix shell nixpkgs#git --extra-experimental-features nix-command --extra-experimental-features flakes
$ git clone https://github.com/radoslawgrochowski/dotfiles.git $HOME/Projects/dotfiles
$ sudo adduser radoslawgrochowski
$ sudo su radoslawgrochowski
$ sudo nixos-rebuild switch --flake "$HOME/Projects/dotfiles#radoslawgrochowski-wsl"
Setup keys for root and current user
-
Copying keys to root (still need to verify how secure this is)
sudo mkdir -p /root/.ssh
sudo cp /home/$USER/.ssh/id_ed* /root/.ssh/
- Github keys can be updated here: https://github.com/settings/keys
see also: