-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nix(flake): avoid importing nixpkgs #25
Conversation
Changes LGTM, I'll go ahead and merge. Also, in what way is it a horror? I'm new to Nix and this is my first time creating a flake so suggestions would be appreciated. |
|
No real reason. I should be using a formatter though so I'll try that one out.
I don't think I'm using flake-utils, unless its an indirect dependency from naersk?
From what I understand, naersk will improve build times for Rust projects by reading the This may be undesired, though. I just thought it would be a good idea to improve build times.
I did that so there would be explicit types associated with each option. So if the config expects a list of strings then that can be type-checked when building the resulting config. From what I understand this is not that uncommon. For example, the ssh module for home-manager lists out all options with types, filters them, and then writes them to disk. It does have an option for extraConfig, which isn't checked at all, but this config is well-defined so that's not necessary here. The reason I have to filter out null values is because TOML does not support it, so it will throw an error while building if any values are null. The only options that should be nullable are the ones which are not required, anyways. It's also not a big deal for me to manually add each option, since I don't frequently add many new config options. The bulk of the work has already been done and only 1-2 new options are typically added each update. |
Oops my bad, what you are doing is fine there.
Hm, that's fine I guess, never really cared about that.
You are greatly missing the point here, but have it your way, doesn't really matter from the user's perspective. |
https://zimbatm.com/notes/1000-instances-of-nixpkgs
I'm sorry, but the rest of the flake is also a horror to look at.