{
  cfg,
  myPkgs,
  lib,
  ...
}: let
  myPkgsOverlay = self: super: myPkgs;
in {
  nixpkgs = {
    hostPlatform = cfg.systemName;

    overlays = [
      myPkgsOverlay
    ];

    config = {
      # TODO: this fails because of the root tempsize, which should be increased
      # contentAddressedByDefault = true;

      hostSystem = cfg.systemName;

      allowUnfreePredicate = pkg:
        builtins.elem (lib.getName pkg) [
          "pypemicro" # required by pynitrokey
        ];
    };
  };
}