I wrote a small tutorial on using flakes to manage system configuration: system_flakes.md · GitHub
Note also Flakes - NixOS Wiki.