From cc03ec68411c6f550f9f00428148eeab3be5aec0 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Sat, 6 Sep 2025 15:04:49 +0200 Subject: add lib/packages.nix --- lib/packages.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/packages.nix (limited to 'lib/packages.nix') diff --git a/lib/packages.nix b/lib/packages.nix new file mode 100644 index 0000000..f07b249 --- /dev/null +++ b/lib/packages.nix @@ -0,0 +1,13 @@ +{ config, lib, pkgs, ... }: +{ + options = { + packages = lib.mkOption { + type = lib.types.attrsOf lib.types.package; + default = pkgs.mkShell {}; + }; + outputs.packages = lib.mkOption { + type = lib.types.package; + }; + }; + config.outputs = { inherit (config) packages; }; +} -- cgit v1.2.3