sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos
sudo nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
sudo nix-channel --add https://github.com/NixOS/nixos-hardware/archive/master.tar.gz nixos-hardware
sudo nix-channel --update
ssh-keygen -t ed25519 -C "luke.leheny@pm.me"
ssh-add /home/luke/.ssh/id_ed25519
cat /home/luke/.ssh/id_ed25519.pub
nix-shell -p vim git
cd
mkdir Projects
cd Projects
git clone git@github.com:lleheny0/nixos-config.git
sudo mv /etc/nixos/hardware-configuration.nix /home/luke/Projects/nixos-config/
sudo rm /etc/nixos/configuration.nix
sudo ln -s /home/luke/Projects/nixos-config/configuration.nix /etc/nixos/configuration.nix
vim configuration.nix
Replace the line
# Import system here
with something like
./systems/desktop.nix
rm /home/luke/.mozilla -rf
sudo nixos-rebuild boot
(Home Manager will throw an error if the .mozilla folder already exists)