The autocmds approach had the issue of overwriting the indentation
globally for all files. So if you opened a .nix file and then wanted to
edit a .c file, it would then still do 2 space indentation when it
should be 4. The autocmds approach was redundant in the first place as
the ftplugin directory already exists for this exact purpose and does it
without the aformentioned issue.
With the release of the Nvidia 555 beta drivers and their improvements to
the Wayland experience I've finally decided to return to NixOS with
Hyprland again after 2 years of running Gentoo and Opensuse Tumbleweed
on X11. So this is me committing the work done so far from the last
couple of days. Future commits will be more incremental.
The old configuration is still available in the legacy branch of this
repository. It contains the mostly server oriented configuration while
this new configuration is aimed at desktop usage.