1
0

default.nix 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. immich = prev.immich.overrideAttrs (oldAttrs: {
  13. patches = (oldAttrs.patches or [ ]) ++ [
  14. ./video-geolocation.patch
  15. ];
  16. });
  17. makeModulesClosure = x: prev.makeModulesClosure (x // { allowMissing = true; });
  18. tmuxPlugins = prev.tmuxPlugins // {
  19. tmux-select-pane-no-wrap = prev.tmux-select-pane-no-wrap;
  20. };
  21. vimPlugins = prev.vimPlugins // {
  22. opencode-nvim = prev.opencode-nvim;
  23. };
  24. };
  25. # When applied, the unstable nixpkgs set (declared in the flake inputs) will
  26. # be accessible through 'pkgs.unstable'
  27. unstable-packages = final: _prev: {
  28. unstable = import inputs.nixpkgs-unstable {
  29. system = final.system;
  30. overlays = [
  31. additions
  32. modifications
  33. ];
  34. config = {
  35. allowUnfree = true;
  36. allowUnsupportedSystem = true;
  37. };
  38. };
  39. };
  40. }