mirror of
https://github.com/foo-dogsquared/nix-module-wrapper-manager-fds.git
synced 2025-01-31 16:58:00 +00:00
22 lines
394 B
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;
|
||
|
};
|
||
|
}
|