nix: add overlay for convenient package usage (#7078)
commitff442eecd054e67081158ef2f0eeab0ed9156ca5
authorYt <raphael@megzari.com>
dateFri 19 May 2023, 09:21 (3 years ago)
parent53f47bc
flake.nix+5−1
@@ -64,7 +64,7 @@
6464 };
6565 in
6666 inp.parts.lib.mkFlake {inputs = inp;} {
67− imports = [inp.nci.flakeModule];
67+ imports = [inp.nci.flakeModule inp.parts.flakeModules.easyOverlay];
6868 systems = [
6969 "x86_64-linux"
7070 "x86_64-darwin"
@@ -146,6 +146,10 @@
146146 packages.helix-dev = makeOverridableHelix config.packages.helix-unwrapped-dev {};
147147 packages.default = config.packages.helix;
148148
149+ overlayAttrs = {
150+ inherit (config.packages) helix;
151+ };
152+
149153 devShells.default = config.nci.outputs."helix-project".devShell.overrideAttrs (old: {
150154 nativeBuildInputs =
151155 (old.nativeBuildInputs or [])