My NixOS configuration.
Clone the repository to some directory. And build with sudo nixos-rebuild switch --flake /directory/containing/flake.nix/.
sudo nixos-rebuild switch --flake /directory/containing/flake.nix/