infrastructure/modules/meta/packages.nix
2024-01-13 11:11:34 -08:00

19 lines
361 B
Nix

{
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} "$@"
'';
};
}