feat: lazy devshell eval

This commit is contained in:
arcnmx 2024-01-13 11:11:29 -08:00
parent 4904a8dfd7
commit a50966a8ea
4 changed files with 28 additions and 8 deletions

19
modules/meta/packages.nix Normal file
View file

@ -0,0 +1,19 @@
{
lib,
pkgs,
...
}: let
inherit (lib.options) mkOption;
inherit (lib.types) attrsOf package;
in {
options.outputs.packages = mkOption {
type = attrsOf package;
default = { };
};
config.outputs.packages = {
nf-deploy = pkgs.writeShellScriptBin "nf-deploy" ''
exec ${pkgs.runtimeShell} ${../../ci/deploy.sh} "$@"
'';
};
}