As the title says, I am wondering how people manage their configuration.nix file. I currently have it in my home directory in a git repo, and then symlink
/etc/nixos/configuration.nix to this file. This is nice in that it allows me to have all my dotfiles in my home directory and allows me to edit them without sudo, however it seems a bit hacky and I am increasingly realising that it might not be a good idea.
For example, this doesn’t seem to play nicely with some things like cachix that want to change your configuration.nix. It is also a bit of a pain to set up a new computer as I have to get the user working first and then build everything. Further I tried using flakes and couldn’t get it to work with this set up.
Would be interesting to hear what other people do for this. In short I’m looking for some solution that allows me to easily edit and store my dotfiles without fighting the system.