@@ -58,6 +58,42 @@ let
5858 '';
5959 };
6060
61+ allowUnfree = mkOption {
62+ type = types.bool;
63+ default = false;
64+ # getEnv part is in check-meta.nix
65+ defaultText = literalExpression ''false || builtins.getEnv "NIXPKGS_ALLOW_UNFREE" == "1"'';
66+ description = ''
67+ Whether to allow unfree packages.
68+
69+ See <link xlink:href="https://nixos.org/manual/nixpkgs/stable/#sec-allow-unfree">Installing unfree packages</link> in the NixOS manual.
70+ '';
71+ };
72+
73+ allowBroken = mkOption {
74+ type = types.bool;
75+ default = false;
76+ # getEnv part is in check-meta.nix
77+ defaultText = literalExpression ''false || builtins.getEnv "NIXPKGS_ALLOW_BROKEN" == "1"'';
78+ description = ''
79+ Whether to allow broken packages.
80+
81+ See <link xlink:href="https://nixos.org/manual/nixpkgs/stable/#sec-allow-broken">Installing broken packages</link> in the NixOS manual.
82+ '';
83+ };
84+
85+ allowUnsupportedSystem = mkOption {
86+ type = types.bool;
87+ default = false;
88+ # getEnv part is in check-meta.nix
89+ defaultText = literalExpression ''false || builtins.getEnv "NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM" == "1"'';
90+ description = ''
91+ Whether to allow unsupported packages.
92+
93+ See <link xlink:href="https://nixos.org/manual/nixpkgs/stable/#sec-allow-unsupported-system">Installing packages on unsupported systems</link> in the NixOS manual.
94+ '';
95+ };
96+
6197 };
6298
6399in {