default.nix 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. vimPlugins = prev.vimPlugins // {
  20. opencode-nvim = prev.opencode-nvim;
  21. };
  22. };
  23. # When applied, the unstable nixpkgs set (declared in the flake inputs) will
  24. # be accessible through 'pkgs.unstable'
  25. unstable-packages = final: _prev: {
  26. unstable = import inputs.nixpkgs-unstable {
  27. system = final.system;
  28. overlays = [
  29. additions
  30. modifications
  31. ];
  32. config = {
  33. allowUnfree = true;
  34. allowUnsupportedSystem = true;
  35. };
  36. };
  37. };
  38. }