default.nix 1006 B

123456789101112131415161718192021222324252627282930313233
  1. { inputs, ... }:
  2. rec {
  3. # This one brings our custom packages from the 'pkgs' directory
  4. additions = final: _prev: import ../packages { pkgs = final; };
  5. # This one contains whatever you want to overlay
  6. # You can change versions, add patches, set compilation flags, anything really.
  7. # https://nixos.wiki/wiki/Overlays
  8. modifications = final: prev: {
  9. # example = prev.example.overrideAttrs (oldAttrs: rec {
  10. # ...
  11. # });
  12. makeModulesClosure = x: prev.makeModulesClosure (x // { allowMissing = true; });
  13. kraft = prev.kraft.overrideAttrs (
  14. old: inputs.nixpkgs.lib.recursiveUpdate old { meta.broken = false; }
  15. );
  16. };
  17. # When applied, the unstable nixpkgs set (declared in the flake inputs) will
  18. # be accessible through 'pkgs.unstable'
  19. unstable-packages = final: _prev: {
  20. unstable = import inputs.nixpkgs-unstable {
  21. system = final.system;
  22. overlays = [
  23. additions
  24. modifications
  25. ];
  26. # config.allowUnfree = true;
  27. };
  28. };
  29. }