My nix config that uses home-manager and flakes. So it requires nix flakes enabled.
Rename psiayn to whatever username you want. Refer to this for more details.
nix build --no-link .#homeConfigurations.psiayn.activationPackage
"$(nix path-info .#homeConfigurations.psiayn.activationPackage)"/activate
home-manager switch --flake .#psiayn