How to manage dotfiles with home-manager?

home.file = {
  ".config/nvim" = {
    source = config.lib.file.mkOutOfStoreSymlink ../config/nvim;
  };
}