messing around with pulumi

This commit is contained in:
James Walker 2023-02-07 22:08:49 -05:00
parent c158229f40
commit 01089c5725
Signed by: walkah
GPG Key ID: 3C127179D6086E93
9 changed files with 1717 additions and 19 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/result
/.pre-commit-config.yaml
/.devenv/
/node_modules/

3
Pulumi.dev.yaml Normal file
View File

@ -0,0 +1,3 @@
config:
digitalocean:token:
secure: AAABAAVsdUUt74fFhXPNy+qr0l0Ciku2PfjJY43XTfWG3YlseqFUGW3RmpGPk6CyXtkyQu321goZlaoLISy+75t/1tmKzdPzew5N46WfLybPAe7mANOCukPybLqhfKnJxQSgDfvQjw==

3
Pulumi.yaml Normal file
View File

@ -0,0 +1,3 @@
name: athens
runtime: nodejs
description: city state in the cloud

View File

@ -53,11 +53,11 @@
"pre-commit-hooks": "pre-commit-hooks"
},
"locked": {
"lastModified": 1675450307,
"narHash": "sha256-jbrxalFISM9Dr8AwRUYQf1YZjHAZPGjFgyVqociczCU=",
"lastModified": 1675803618,
"narHash": "sha256-NWT+Mxd5Pu9Fgh1gKI+UnEZDIVHWqBPaX1kQ4IA9kt0=",
"owner": "cachix",
"repo": "devenv",
"rev": "755670d41ba697224a074c6ec97bb36cdaa668c6",
"rev": "2d47c9da8e7d052a08842a82ad0c9ccbd1e520b3",
"type": "github"
},
"original": {
@ -203,11 +203,11 @@
"utils": "utils_2"
},
"locked": {
"lastModified": 1675462931,
"narHash": "sha256-JiOUSERBtA1lN/s9YTKGZoZ3XUicHDwr+C8swaPSh3M=",
"lastModified": 1675811720,
"narHash": "sha256-WXWChFo1DAUK+/YkeLwzZQDsH43y7c1JWozRuVNQYg8=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "e2c1756e3ae001ca8696912016dd31cb1503ccf3",
"rev": "6d95d98b6b4876c9ab589327331196b2893581c5",
"type": "github"
},
"original": {
@ -258,11 +258,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1674550793,
"narHash": "sha256-ljJlIFQZwtBbzWqWTmmw2O5BFmQf1A/DspwMOQtGXHk=",
"lastModified": 1675785029,
"narHash": "sha256-EoD3Wgqc0XWkBCwUrAxCIZett64jN/SEPPpXX2mCmrE=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "b7ac0a56029e4f9e6743b9993037a5aaafd57103",
"rev": "16b6928ec622fd2356a80c0a9359eb350a94227d",
"type": "github"
},
"original": {
@ -322,11 +322,11 @@
},
"nixpkgs-stable_2": {
"locked": {
"lastModified": 1675265860,
"narHash": "sha256-PZNqc4ZnTRT34NsHJYbXn+Yhghh56l8HEXn39SMpGNc=",
"lastModified": 1675556398,
"narHash": "sha256-5Gf5KlmFXfIGVQb2hmiiE7FQHoLd4UtEhIolLQvNB/A=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "a3a1400571e3b9ccc270c2e8d36194cf05aab6ce",
"rev": "e32c33811815ca4a535a16faf1c83eeb4493145b",
"type": "github"
},
"original": {
@ -354,11 +354,11 @@
},
"nixpkgs_3": {
"locked": {
"lastModified": 1675309347,
"narHash": "sha256-D3CQ6HRDT2m3XJlrzb5jKq4vNFR5xFTEFKC7iSjlFpM=",
"lastModified": 1675698036,
"narHash": "sha256-BgsQkQewdlQi8gapJN4phpxkI/FCE/2sORBaFcYbp/A=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "006c3bd4dd2f5d1d2094047f307cbf9e2b73d9c5",
"rev": "1046c7b92e908a1202c0f1ba3fc21d19e1cf1b62",
"type": "github"
},
"original": {
@ -419,11 +419,11 @@
"nixpkgs-stable": "nixpkgs-stable_2"
},
"locked": {
"lastModified": 1675288837,
"narHash": "sha256-76s8TLENa4PzWDeuIpEF78gqeUrXi6rEJJaKEAaJsXw=",
"lastModified": 1675758931,
"narHash": "sha256-RqYnUQ4I+CUjkYe1MrWSyt6vYKEZ7sHhTw7vrsjJyvc=",
"owner": "Mic92",
"repo": "sops-nix",
"rev": "a81ce6c961480b3b93498507074000c589bd9d60",
"rev": "5dc9710905bcd8d3fa4b8912a120d9a2f9fe25e5",
"type": "github"
},
"original": {

View File

@ -96,7 +96,12 @@
inherit inputs pkgs;
modules = [
{
packages = [ deploy-rs.packages.${system}.deploy-rs pkgs.sops ];
packages = with pkgs; [
deploy-rs.packages.${system}.deploy-rs
nodePackages.typescript-language-server
pulumi-bin
sops
];
scripts.darwin-local.exec = ''
nix build .#darwinConfigurations.$(hostname -s).system
@ -110,6 +115,8 @@
nixpkgs-fmt.enable = true;
statix.enable = true;
};
env.PULUMI_SKIP_UPDATE_CHECK = true;
}
];
};

10
index.ts Normal file
View File

@ -0,0 +1,10 @@
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
// Create a DigitalOcean resource (Domain)
const domain = new digitalocean.Domain("my-domain", {
name: "my-domain.io"
});
// Export the name of the domain
export const domainName = domain.name;

1645
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

11
package.json Normal file
View File

@ -0,0 +1,11 @@
{
"name": "athens",
"main": "index.ts",
"devDependencies": {
"@types/node": "^16"
},
"dependencies": {
"@pulumi/pulumi": "^3.0.0",
"@pulumi/digitalocean": "^4.0.0"
}
}

18
tsconfig.json Normal file
View File

@ -0,0 +1,18 @@
{
"compilerOptions": {
"strict": true,
"outDir": "bin",
"target": "es2016",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"experimentalDecorators": true,
"pretty": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.ts"
]
}