nixos-config/subprojects/wrapper-manager-fds/modules/env/nixos/default.nix

30 lines
607 B
Nix

{ config, lib, ... }:
let
cfg = config.wrapper-manager;
in
{
imports = [
../common.nix
];
config = lib.mkMerge [
{
wrapper-manager.extraSpecialArgs.nixosConfig = config;
wrapper-manager.sharedModules = [
({ lib, ... }: {
# NixOS already has the option to set the locale so we don't need to
# have this.
config.locale.enable = lib.mkDefault false;
})
];
}
(lib.mkIf (cfg.packages != {}) {
environment.systemPackages =
lib.mapAttrsToList (_: wrapper: wrapper.build.toplevel) cfg.packages;
})
];
}