From 08d443f5c31575657e2673a9a1bc0718ba2f0550 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Mon, 25 Mar 2024 18:51:21 +0100 Subject: [PATCH] Let's try a global overlay --- overlays/default.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/overlays/default.nix b/overlays/default.nix index 54f7d69..c63d4fc 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -1,5 +1,14 @@ # This file defines overlays {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 additions = final: _prev: import ../pkgs { @@ -7,15 +16,6 @@ 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 # be accessible through 'pkgs.stable' pkg-sets = (