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

20 lines
355 B
Nix
Raw Normal View History

{ config, lib, ... }:
let
cfg = config.wrapper-manager;
in
{
imports = [
../common.nix
];
config = lib.mkMerge [
{ wrapper-manager.extraSpecialArgs.nixosConfig = config; }
(lib.mkIf (cfg.wrappers != {}) {
environment.systemPackages =
lib.mapAttrsToList (_: wrapper: wrapper.build.toplevel) cfg.wrappers;
})
];
}