We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Perhaps "nix-diff" combined with extendModules can be used to set an empty report?
extendModules
@r-vdp I heard this is something that you do, is there a pattern you can share?
The text was updated successfully, but these errors were encountered:
So, what you can do is something like adding this in your config:
{ config, extendModules }: { config.system.build.toplevelWithEmptyFacter = (extendModules { modules = let prevConfig = config; in [ { config.facter.report = { inherit (prevConfig.facter.report) system; hardware.graphics_card = [ ]; }; } ]; }).config.system.build.toplevel; }
And then nix-diff this with your normal toplevel:
nix run 'nixpkgs#nix-diff' -- (nix build -vL '.#nixosConfigurations.framework.config.system.build.toplevelWithEmptyFacter' --print-out-paths) (nix build -vL '.#nixosConfigurations.framework.config.system.build.toplevel' --print-out-paths)
This works ok, but I'm not sure it captures everything.
Sorry, something went wrong.
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/nixos-facter-moved-to-nix-community/58818/13
brianmcgee
Successfully merging a pull request may close this issue.
Perhaps "nix-diff" combined with
extendModules
can be used to set an empty report?@r-vdp I heard this is something that you do, is there a pattern you can share?
The text was updated successfully, but these errors were encountered: