default.nix 1.3 KB

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