How to switch to a flake based nixos?

i recently have been trying to switch my nixos installation to use flakes however i get a “cannot look up ‘’ in pure evaluation mode (use ‘–impure’ to override)” error but my config doesn’t have a line containing anywhere, my main problem is that i cannot find documentation anywhere for lib.nixosSystem

1 Like

ok i found what the problem was, you can’t have system.copySystemConfiguration = true; in a flake based config

2 Likes