From 4f471484b3a1e16230979a8406503a220b9101f4 Mon Sep 17 00:00:00 2001 From: Chris Wells Date: Tue, 10 Sep 2024 14:51:28 -0500 Subject: I think this is almost working! --- modules/koboroot/default.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'modules/koboroot/default.nix') diff --git a/modules/koboroot/default.nix b/modules/koboroot/default.nix index 308ac6b..b0daf82 100644 --- a/modules/koboroot/default.nix +++ b/modules/koboroot/default.nix @@ -12,23 +12,33 @@ in { include = mkOption { default = []; - type = with types; listOf path; + type = with types; listOf (either path package); }; - _allFiles = mkOption { + finalPackage = mkOption { type = types.package; readOnly = true; internal = true; - default = pkgs.buildEnv { - name = "koboroot-files"; + default = pkgs.mergePaths { + name = "koboroot-package"; paths = cfg.include; }; }; + + # _allFiles = mkOption { + # type = types.package; + # readOnly = true; + # internal = true; + # default = pkgs.buildEnv { + # name = "koboroot-files"; + # paths = cfg.include; + # }; + # }; }; config = { koboroot = { - include = mkBefore (mapAttrsToList (_: v: v._package)); + include = mkBefore (mapAttrsToList (_: v: v._package) cfg.file); }; }; } -- cgit v1.2.3