-
Notifications
You must be signed in to change notification settings - Fork 107
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
[Merged by Bors] - treewide cleanups and refactoring for initial tests #157
Conversation
Take inspiration from nixpkgs/lib.
Lay the groundwork for easily testing profiles and modules via `pkgs.nixosTest` and the new `testModule`.
bors ping |
pong |
bors try |
tryConfiguration problem: |
bors try |
tryBuild succeeded: |
networking.wireless.iwd.enable = lib.mkForce false; | ||
}) | ||
]; | ||
})).config; |
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.
Unrelated, I can submit a seperate PR for this. It turns out home-manager.useUserPackages has to be set to false with home-manager only configurations, so I added a hmConfig
for hm-only configs.
hmConfig = (nixosSystem
(args // {
modules = modules ++ [
({ ... }: {
home-manager.useUserPackages = mkForce false;
})
];
})).config;
Test whether a system containing all available profiles reaches a successfully running state with no failed systemd services.
Reloading on every Nix file change is a bit too aggressive, causing unnecessary reloads.
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.
Lib looks a lot more organized and becomes easier to reason about.
Add sophistication to the version generation function, and use it automatically on package sources pulled from pkgs/flake.nix. Also remove it from lib, as it is no longer general purpose.
Also add a README.md for tests.
bors r+ |
👎 Rejected by too few up-to-date approved reviews (some of the PR reviews are stale) |
bors r+ |
- [x] refactor lib into separate files, similar to NixOS/nixpkgs/lib. - [x] refactor ci to automatically generate derivations from flake outputs - [x] remove cluttered indirection statements throughout the codebase - [x] refactor hosts to allow for upcoming integration tests - [x] improve ambiguity in the existing docs - [x] add [BORS](https://bors.tech) support - [x] add initial integration test - [x] write tests documentation - [x] test lib - [x] improve version string generation, and do so automatically for pkgs/flake.nix sources Clean up the codebase as best we can in preparation for #152 and add tests. From now on, all PRs will be merged with BORS.
Pull request successfully merged into core. Build succeeded: |
Clean up the codebase as best we can in preparation for #152 and add tests. From now on, all PRs will be merged with BORS.