Pass secrets into terraform

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-06-18 20:12:05 +02:00
parent 64db0229c0
commit 3e0350ffb6
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
2 changed files with 9 additions and 9 deletions

View file

@ -732,13 +732,13 @@
"secret": { "secret": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1636145225, "lastModified": 1686920512,
"narHash": "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=", "narHash": "sha256-FUZSDRLVdz6margPVrtoKUg63BdxfRNENeUUOxTiIS4=",
"path": "/var/empty", "path": "/home/main/dotfiles2/secret",
"type": "path" "type": "path"
}, },
"original": { "original": {
"path": "/var/empty", "path": "/home/main/dotfiles2/secret",
"type": "path" "type": "path"
} }
}, },

View file

@ -26,7 +26,7 @@
vtermModule.url = "github:akermu/emacs-libvterm"; vtermModule.url = "github:akermu/emacs-libvterm";
vtermModule.flake = false; vtermModule.flake = false;
secret.url = "path:///var/empty"; secret.url = "path:///home/main/dotfiles2/secret";
secret.flake = false; secret.flake = false;
ical2org.url = "git+https://git.sr.ht/~magic_rb/ical2orgpy"; ical2org.url = "git+https://git.sr.ht/~magic_rb/ical2orgpy";
@ -108,11 +108,11 @@
uterranix.config = [ uterranix.config = [
./terranix/default.nix ./terranix/default.nix
{ {
_module.args.secret = secret; _module.args.secret = lib'.loadSecrets secret;
_module.args.vars = { _module.args.vars = {
flake_rev = self.rev or null; flake_rev = self.rev;
flake_sha = self.sha or null; flake_sha = self.narHash;
flake_ref = self.ref or null; flake_ref = "master";
flake_host = "git+https://git.sr.ht/~magic_rb/cluster"; flake_host = "git+https://git.sr.ht/~magic_rb/cluster";
}; };
} }