default.nix 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. tmuxPlugins = prev.tmuxPlugins // {
  17. tmux-select-pane-no-wrap = prev.tmux-select-pane-no-wrap;
  18. };
  19. };
  20. # When applied, the unstable nixpkgs set (declared in the flake inputs) will
  21. # be accessible through 'pkgs.unstable'
  22. unstable-packages = final: _prev: {
  23. unstable = import inputs.nixpkgs-unstable {
  24. system = final.system;
  25. overlays = [
  26. additions
  27. modifications
  28. ];
  29. # config.allowUnfree = true;
  30. };
  31. };
  32. }