Skip to content

nixos configuration of my personal machines

Notifications You must be signed in to change notification settings

radoslawgrochowski/dotfiles

Repository files navigation

dotfiles

nixos/nix-darwin system configuration for my machines

Host setup

Nixos on Windows Subsystem for Linux (WSL)

Host based around https://github.com/nix-community/NixOS-WSL/tree/b4354a924111b7f09ba5a3d1ce38717c7f29a581

Instalation

  1. (Optional) Ensure you have NerdFont installed and set up for your terminal emulator
  2. Enable WSL (run wsl --install)
  3. Follow NixOS-WSL instructions and run an NixOS-WSL instance.

Configuration

$ 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"

SSH

Setup keys for root and current user

sudo mkdir -p /root/.ssh
sudo cp /home/$USER/.ssh/id_ed* /root/.ssh/

inspiration

see also: