From 8d603e383700f7d4b17b1e6187be926648896b3d Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Wed, 4 Sep 2024 14:15:40 +0000 Subject: [PATCH] allow easy inclusion of flake packages via overlay --- nix/overlays/default.nix | 2 ++ nix/overlays/fromFlake.nix | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 nix/overlays/fromFlake.nix diff --git a/nix/overlays/default.nix b/nix/overlays/default.nix index fcc57e4..7e8ad7c 100644 --- a/nix/overlays/default.nix +++ b/nix/overlays/default.nix @@ -11,6 +11,8 @@ in backports = importOverlay ./backports.nix; + fromFlake = importOverlay ./fromFlake.nix; + systemd-radv-fadeout = importOverlay ./systemd-radv-fadeout; } diff --git a/nix/overlays/fromFlake.nix b/nix/overlays/fromFlake.nix new file mode 100644 index 0000000..c1fd977 --- /dev/null +++ b/nix/overlays/fromFlake.nix @@ -0,0 +1,7 @@ +{ outputs, ... }@flakeArg: +{ ... }@systemArg: +final: prev: { + inherit (outputs.packages.${prev.system}) + # list all universally compatible packages from ./../packages + ; +}