How to unflakify NixOS?

I set up flakes, because I wanted to use home-manager. In the end, I don’t really use home-manager. Dconf dumping is enough for me.
How can I go back to a non-flake setup?
I am on unstable branch, and that is defined in the flake.

I should be able to keep my config file in the current location by adding the following snippet to my config, correct or not?

{
  nix.nixPath = [ "nixos-config=~/nixos-config" ];
}

I wrote a recommendation on how to have a stateless NixOS configuration without Flakes. It’s fairly straightforward: GitHub - infinisil/sanix: Sane stable stateless NixOS setup

4 Likes