This is an old revision of the document!
# nixos
## Error:
service unit: Unit nixos-rebuild-switch-to-configuration.service was already loaded or has a fragment file.
## Solution:
sudo systemctl stop nixos-rebuild-switch-to-configuration.service
# Formating
nix-shell -p nixpkgs-fmt --run "nixpkgs-fmt ."
