Going from nix profile
to configuration.nix
From here, add the above to systemPackages
in /etc/nixos/configuration.nix
. You can then remove
all packages from your profile with nix profile remove '.*'
.
Tip: run nixos-rebuild switch
before removing all packages from your profile.