-
Notifications
You must be signed in to change notification settings - Fork 108
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
Implement new api #264
Implement new api #264
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two quick remarks, otherwise a massive improvement, we should merge roght away.
Get `self` and `inputs` during construction, and rely on specialArgs.channel for nixos flake
this includes creating multiPkgs, and dropping options already set by fup
have each function take pkgs as an argument, so a nixpkgs isn't created just for pkgs-lib and they support more systems
Only to those with three arguments
drop default channel, it is confusing and complicates api don't take nixos input, using channels is better manually pass names for outputs to improve documentation
to follow the new api
this makes more sense since evalArgs is the module and it makes the code cleaner
was only meant for debugging, not meant to be commited
we need to filter out arguments that are added in the devos api also anything thats null in either hostDefaults and hosts has to be removed
also update overrides docs it is a pure devos overlay now, it makes sense to go in overlays
overlays = [ | ||
(devos.lib.pathsIn ./overlays) | ||
./pkgs/default.nix | ||
pkgs.overlay # for `srcs` | ||
nur.overlay | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lists get flattened for overlays and modules, but not externalModules
and hostDefaults.modules
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Highlighted some important parts of these changes. But overall I think its ready for final review and merge. I don't have anything else to include in here.
this allows host-specific settings to be overriden with mkMerge
lock file format isn't very reliable with naming inputs
This is the underlying implementation of the api thats defined in the new
evalArgs
, it drops and simplifies a lot of the code in devos.Obsoleted by fup:
packagesBuilder
.This includes many other changes to get to the final rebase - explanation is in commit messages.