Skip to content

Commit

Permalink
Support allowBroken
Browse files Browse the repository at this point in the history
  • Loading branch information
jozuas committed Jan 28, 2024
1 parent 6048f1e commit e3d3ae0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/reference/yaml-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
| Key | Value |
| ---------------------------- | ----------------------------------------------------------------------------- |
| allowUnfree | Allow unfree packages. Defaults to `false`. |
| allowBroken | Allow packages marked as broken. Defaults to `false`. |
| inputs | Defaults to `inputs.nixpkgs.url: github:NixOS/nixpkgs/nixpkgs-unstable`. |
| inputs.<name> | Identifier name used when passing the input in your ``devenv.nix`` function. |
| inputs.<name>.url | URI specification of the input, see below for possible values. |
Expand Down
1 change: 1 addition & 0 deletions src/devenv/yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
{
Optional("inputs", default=None): inputsSchema,
Optional("allowUnfree", default=False): Bool(),
Optional("allowBroken", default=False): Bool(),
Optional("imports", default=None): Seq(Str()),
Optional("permittedInsecurePackages", default=None): Seq(Str()),
}
Expand Down
1 change: 1 addition & 0 deletions src/modules/flake.tmpl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
inherit system;
config = {
allowUnfree = devenv.allowUnfree or false;
allowBroken = devenv.allowBroken or false;
permittedInsecurePackages = devenv.permittedInsecurePackages or [ ];
};
inherit overlays;
Expand Down

0 comments on commit e3d3ae0

Please sign in to comment.