Clone this repo to ~/.config/home-manager
and then run:
nix --extra-experimental-features 'nix-command flakes' run home-manager/master -- switch
git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
~/.config/emacs/bin/doom install
home-manager switch
sudo nixos-rebuild switch --flake "$HOME/.config/home-manager#$(hostname)"