1
0

default.nix 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. tmuxPlugins = prev.tmuxPlugins // {
  14. tmux-select-pane-no-wrap = prev.tmux-select-pane-no-wrap;
  15. };
  16. vimPlugins = prev.vimPlugins // {
  17. opencode-nvim = prev.opencode-nvim;
  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 = {
  30. allowUnfree = true;
  31. allowUnsupportedSystem = true;
  32. };
  33. };
  34. };
  35. }