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