Entry

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