This is my personal nixos config with all other things. Note it's quite a mess so don't take inspiration from it.
echo -n "Password" > /tmp/password.keysudo nix run 'github:nix-community/disko/latest#disko-install' -- --write-efi-boot-entries --flake 'github:susanthenerd/dots#framework' --disk nvme /dev/nvme0