devenv.yaml
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. |
- github:NixOS/nixpkgs/master
- github:NixOS/nixpkgs?rev=238b18d7b2c8239f676358634bfb32693d3706f3
- github:foo/bar?dir=subdir
- git+ssh://git@github.com/NixOS/nix?ref=v1.2.3
- git+https://git.somehost.tld/user/path?ref=branch&rev=fdc8ef970de2b4634e1b3dca296e1ed918459a9e
- path:/path/to/repo
- hg+https://...
- tarball+https://example.com/foobar.tar.gz
- sourcehut:~misterio/nix-colors/21c1a380a6915d890d408e9f22203436a35bb2de?host=hg.sr.ht
- file+https://
- file:///some/absolute/file.tar.gz
An extensive example
allowUnfree: true
inputs:
nixpkgs:
url: github:NixOS/nixpkgs/nixpkgs-unstable
myproject:
url: github:owner/myproject
flake: false
myproject2:
url: github:owner/myproject
overlays:
- default
imports:
- ./frontend
- ./backend
- myproject
- myproject/relative/path