In order to update flake inputs, simply use below commands:
cd ~/dex-nixos
nix flake update
To rebuild NixOS which is generated from the flake.nix
file, use below commands as root:
cd ~/dex-nixos
nixos-rebuild switch --flake .
Note: Remember than any new files have to be staged first otherwise flake won’t register them and rebuilding will fail.