Like 2-3 months ago I’ve started to get syntax / formatting warnings on nixos-rebuild switch --flake . command. Mostly from renamed options like recent system → stdenv.hostPlatform.system or pkgs.xfce.thunar -> pkgs.thunar or nixvim’s plugin option name case being changed (i.e. anOption to an_option etc)
When I try to rebuild my config, it only throws warnings, while not failing to build. it is not fun to fix, since, especially the system one (still dont know where it goes)(i did check out this topic, but im 2 dum to understand that).
Nevertheless, when I rename those options to ‘changed variant’, I get a build error like that option does not exist.
wth are those warnings then?
That means you didn’t follow the warning correctly, or the warning itself is misleading/wrong.
Either way, warnings will always happen as nixpkgs changes, and you will eventually have to keep up with them on updates.
Either way, if you’re stuck, ask. But post exact errors and exact code, don’t expect people to mind-read.
Please share the exact error/warning you get before, the code you had, the code you changed it to, and the new error. It is very likely that you did some small mistake.
for finding the exact places that throw the warning, try using --option abort-on-warn --show-trace ( nix.conf - Nix Reference Manual )