I configured my editor to run statix automatically on every .nix files. But I don't agree with "repeated_keys" warning and I would want to disable it by default.
Currently, this requires creating statix.toml in root directory. But this requires root permission, so might not be available in some setups, and also I don't want to put random files in my root directory.
I think, best approach, would be to search for statix.toml in $XDG_CONFIG_HOME/statix/ and /etc/statix/ (in that order), after failing to find one in that loop.
Alternatively, add an option to pass fallback config via command line argument. Currently it's possible to provide config via --config, but it will take priority over one found in current working directory.
I configured my editor to run statix automatically on every .nix files. But I don't agree with "repeated_keys" warning and I would want to disable it by default.
Currently, this requires creating
statix.tomlin root directory. But this requires root permission, so might not be available in some setups, and also I don't want to put random files in my root directory.I think, best approach, would be to search for
statix.tomlin$XDG_CONFIG_HOME/statix/and/etc/statix/(in that order), after failing to find one in that loop.Alternatively, add an option to pass fallback config via command line argument. Currently it's possible to provide config via
--config, but it will take priority over one found in current working directory.