NixOS: basic commands
Solution
# Apply /etc/configuration.nix immediately
sudo nixos-rebuild switch
# Apply /etc/configuration.nix on next boot
sudo nixos-rebuild boot
# Create a temporary shell environment with the specified packages
nix-shell -p wget nodejs_22 yarn
# Switch to a system user/consistent path to executables
sudo su lauti -s /run/current-system/sw/bin/bash