Let's try a global overlay

This commit is contained in:
Lillian Violet 2024-03-25 18:51:21 +01:00
parent 8e760df6c8
commit 08d443f5c3

View file

@ -1,5 +1,14 @@
# This file defines overlays # This file defines overlays
{inputs, ...}: { {inputs, ...}: {
# This one contains whatever you want to overlay
# You can change versions, add patches, set compilation flags, anything really.
# https://nixos.wiki/wiki/Overlays
modifications = final: prev: {
steam = prev.steam.override {
extraProfile = ''export LD_PRELOAD=${inputs.extest}/lib/libextest.so:$LD_PRELOAD'';
};
};
# This one brings our custom packages from the 'pkgs' directory # This one brings our custom packages from the 'pkgs' directory
additions = final: _prev: additions = final: _prev:
import ../pkgs { import ../pkgs {
@ -7,15 +16,6 @@
pkgs = final; pkgs = final;
}; };
# This one contains whatever you want to overlay
# You can change versions, add patches, set compilation flags, anything really.
# https://nixos.wiki/wiki/Overlays
modifications = final: prev: {
# example = prev.example.overrideAttrs (oldAttrs: rec {
# ...
# });
};
# When applied, the stable nixpkgs set (declared in the flake inputs) will # When applied, the stable nixpkgs set (declared in the flake inputs) will
# be accessible through 'pkgs.stable' # be accessible through 'pkgs.stable'
pkg-sets = ( pkg-sets = (