✨ messing around with pulumi
This commit is contained in:
parent
c158229f40
commit
01089c5725
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
|||||||
/result
|
/result
|
||||||
/.pre-commit-config.yaml
|
/.pre-commit-config.yaml
|
||||||
/.devenv/
|
/.devenv/
|
||||||
|
/node_modules/
|
||||||
|
3
Pulumi.dev.yaml
Normal file
3
Pulumi.dev.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
config:
|
||||||
|
digitalocean:token:
|
||||||
|
secure: AAABAAVsdUUt74fFhXPNy+qr0l0Ciku2PfjJY43XTfWG3YlseqFUGW3RmpGPk6CyXtkyQu321goZlaoLISy+75t/1tmKzdPzew5N46WfLybPAe7mANOCukPybLqhfKnJxQSgDfvQjw==
|
3
Pulumi.yaml
Normal file
3
Pulumi.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
name: athens
|
||||||
|
runtime: nodejs
|
||||||
|
description: city state in the cloud
|
36
flake.lock
generated
36
flake.lock
generated
@ -53,11 +53,11 @@
|
|||||||
"pre-commit-hooks": "pre-commit-hooks"
|
"pre-commit-hooks": "pre-commit-hooks"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1675450307,
|
"lastModified": 1675803618,
|
||||||
"narHash": "sha256-jbrxalFISM9Dr8AwRUYQf1YZjHAZPGjFgyVqociczCU=",
|
"narHash": "sha256-NWT+Mxd5Pu9Fgh1gKI+UnEZDIVHWqBPaX1kQ4IA9kt0=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "devenv",
|
"repo": "devenv",
|
||||||
"rev": "755670d41ba697224a074c6ec97bb36cdaa668c6",
|
"rev": "2d47c9da8e7d052a08842a82ad0c9ccbd1e520b3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -203,11 +203,11 @@
|
|||||||
"utils": "utils_2"
|
"utils": "utils_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1675462931,
|
"lastModified": 1675811720,
|
||||||
"narHash": "sha256-JiOUSERBtA1lN/s9YTKGZoZ3XUicHDwr+C8swaPSh3M=",
|
"narHash": "sha256-WXWChFo1DAUK+/YkeLwzZQDsH43y7c1JWozRuVNQYg8=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "e2c1756e3ae001ca8696912016dd31cb1503ccf3",
|
"rev": "6d95d98b6b4876c9ab589327331196b2893581c5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -258,11 +258,11 @@
|
|||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1674550793,
|
"lastModified": 1675785029,
|
||||||
"narHash": "sha256-ljJlIFQZwtBbzWqWTmmw2O5BFmQf1A/DspwMOQtGXHk=",
|
"narHash": "sha256-EoD3Wgqc0XWkBCwUrAxCIZett64jN/SEPPpXX2mCmrE=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "b7ac0a56029e4f9e6743b9993037a5aaafd57103",
|
"rev": "16b6928ec622fd2356a80c0a9359eb350a94227d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -322,11 +322,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-stable_2": {
|
"nixpkgs-stable_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1675265860,
|
"lastModified": 1675556398,
|
||||||
"narHash": "sha256-PZNqc4ZnTRT34NsHJYbXn+Yhghh56l8HEXn39SMpGNc=",
|
"narHash": "sha256-5Gf5KlmFXfIGVQb2hmiiE7FQHoLd4UtEhIolLQvNB/A=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "a3a1400571e3b9ccc270c2e8d36194cf05aab6ce",
|
"rev": "e32c33811815ca4a535a16faf1c83eeb4493145b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -354,11 +354,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1675309347,
|
"lastModified": 1675698036,
|
||||||
"narHash": "sha256-D3CQ6HRDT2m3XJlrzb5jKq4vNFR5xFTEFKC7iSjlFpM=",
|
"narHash": "sha256-BgsQkQewdlQi8gapJN4phpxkI/FCE/2sORBaFcYbp/A=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "006c3bd4dd2f5d1d2094047f307cbf9e2b73d9c5",
|
"rev": "1046c7b92e908a1202c0f1ba3fc21d19e1cf1b62",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -419,11 +419,11 @@
|
|||||||
"nixpkgs-stable": "nixpkgs-stable_2"
|
"nixpkgs-stable": "nixpkgs-stable_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1675288837,
|
"lastModified": 1675758931,
|
||||||
"narHash": "sha256-76s8TLENa4PzWDeuIpEF78gqeUrXi6rEJJaKEAaJsXw=",
|
"narHash": "sha256-RqYnUQ4I+CUjkYe1MrWSyt6vYKEZ7sHhTw7vrsjJyvc=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "a81ce6c961480b3b93498507074000c589bd9d60",
|
"rev": "5dc9710905bcd8d3fa4b8912a120d9a2f9fe25e5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -96,7 +96,12 @@
|
|||||||
inherit inputs pkgs;
|
inherit inputs pkgs;
|
||||||
modules = [
|
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 = ''
|
scripts.darwin-local.exec = ''
|
||||||
nix build .#darwinConfigurations.$(hostname -s).system
|
nix build .#darwinConfigurations.$(hostname -s).system
|
||||||
@ -110,6 +115,8 @@
|
|||||||
nixpkgs-fmt.enable = true;
|
nixpkgs-fmt.enable = true;
|
||||||
statix.enable = true;
|
statix.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
env.PULUMI_SKIP_UPDATE_CHECK = true;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
10
index.ts
Normal file
10
index.ts
Normal 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
1645
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
11
package.json
Normal file
11
package.json
Normal 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
18
tsconfig.json
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user