Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions docs/reference/yaml-options.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@

| Key | Value |
| ----------------------------- | ----------------------------------------------------------------------------- |
| allowUnfree | Allow unfree packages. 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. |
| inputs.<name>.flake | Does the input contain ``flake.nix`` or ``devenv.nix``. Defaults to ``true``. |
| inputs.<name>.overlays | A list of overlays to include from the input. |
| imports | A list of relative paths or references to inputs to import ``devenv.nix``. |
| Key | Value |
| ---------------------------- | ----------------------------------------------------------------------------- |
| allowUnfree | Allow unfree packages. 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. |
| inputs.<name>.flake | Does the input contain ``flake.nix`` or ``devenv.nix``. Defaults to ``true``. |
| inputs.<name>.overlays | A list of overlays to include from the input. |
| imports | A list of relative paths or references to inputs to import ``devenv.nix``. |
| permittedInsecurePackages | A list of insecure permitted packages. |


## inputs.<name>.url
Expand Down
3 changes: 2 additions & 1 deletion src/devenv-yaml.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ pkgs.writers.writePython3Bin "devenv-yaml" { libraries = with pkgs.python3Packag
schema = Map({
Optional("inputs", default=None): inputsSchema,
Optional("allowUnfree", default=False): Bool(),
Optional("imports", default=None): Seq(Str())
Optional("imports", default=None): Seq(Str()),
Optional("permittedInsecurePackages", default=None): Seq(Str())
})

filename = Path("devenv.yaml").bytes().decode('utf8')
Expand Down
3 changes: 2 additions & 1 deletion src/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
pkgs = import nixpkgs {
system = "${pkgs.stdenv.system}";
config = {
allowUnfree = devenv.allowUnfree or false;
allowUnfree = devenv.allowUnfree or false;
permittedInsecurePackages = devenv.permittedInsecurePackages or [];
};
inherit overlays;
};
Expand Down