-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
36 lines (34 loc) · 899 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
devenv.url = "github:cachix/devenv";
fenix.url = "github:nix-community/fenix";
};
nixConfig = {
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
extra-substituters = "https://devenv.cachix.org";
};
outputs = {
self,
nixpkgs,
devenv,
...
} @ inputs: let
pkgs = nixpkgs.legacyPackages."x86_64-linux";
in {
devShell.x86_64-linux = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [
(_: {
# This is your devenv configuration
languages.rust = {
enable = true;
channel = "nightly";
};
languages.terraform.enable = true;
packages = with pkgs; [cargo-lambda awscli2 rustup]; #rustup needed by cargo-lambda
})
];
};
};
}