nix-module-wrapper-manager-fds/modules/env/home-manager/default.nix

22 lines
394 B
Nix

{ config, lib, ... }:
let
cfg = config.wrapper-manager;
in
{
imports = [
../common.nix
];
options.wrapper-manager.wrappers = lib.mkOption {
type = lib.types.submoduleWith {
specialArgs.hmConfig = config;
};
};
config = lib.mkIf (cfg.wrappers != {}) {
home.packages =
lib.mapAttrsToList (_: wrapper: wrapper.config.build.toplevel) cfg.wrappers;
};
}