{ lib, config, myPkgs, pkgs, ... }: let cfg = config.soispha.nixpkgs; myPkgsOverlay = self: super: myPkgs; in { options.soispha.nixpkgs = { enable = lib.mkEnableOption "Nixpkgs config"; systemName = lib.mkOption { description = "The name of the system."; example = "x86_64-linux"; type = lib.types.str; }; }; config = { nixpkgs = lib.mkIf cfg.enable { hostPlatform = cfg.systemName; config = { hostSystem = cfg.systemName; overlays = [ myPkgsOverlay ]; config = { # TODO: this fails because of the root tempsize, which should be increased # contentAddressedByDefault = true; allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "pypemicro" # required by pynitrokey ]; }; }; }; }; }