mirror of
https://github.com/foo-dogsquared/nix-module-wrapper-manager-fds.git
synced 2025-01-31 10:58:24 +00:00
20 lines
355 B
Nix
20 lines
355 B
Nix
{ 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;
|
|
})
|
|
];
|
|
}
|