Add Pulumi template
This commit is contained in:
parent
1cc7b2178a
commit
85faa13ec2
|
@ -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
1
pulumi/.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use flake
|
27
pulumi/flake.lock
Normal file
27
pulumi/flake.lock
Normal 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
25
pulumi/flake.nix
Normal 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
|
||||
];
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue