1
1
Fork 0
mirror of https://github.com/the-nix-way/dev-templates synced 2024-05-06 00:26:04 +02:00

Add Pulumi template

This commit is contained in:
Luc Perkins 2023-07-13 15:38:06 -07:00
parent 1cc7b2178a
commit 85faa13ec2
No known key found for this signature in database
GPG Key ID: CED8419FB058467A
5 changed files with 59 additions and 1 deletions

2
.envrc
View File

@ -1 +1 @@
use flake .
use flake

View File

@ -110,6 +110,11 @@
description = "Protobuf development environment";
};
pulumi = {
path = ./pulumi;
description = "Pulumi development environment";
};
purescript = {
path = ./purescript;
description = "Purescript development environment";

1
pulumi/.envrc Normal file
View File

@ -0,0 +1 @@
use flake

27
pulumi/flake.lock Normal file
View File

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1689261696,
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

25
pulumi/flake.nix Normal file
View File

@ -0,0 +1,25 @@
{
description = "A Nix-flake-based Pulumi development environment";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in
{
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
pulumi-bin
python311
kubectl
jq
];
};
});
};
}