mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 09:36:14 +01:00
Pass secrets into terraform
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
64db0229c0
commit
3e0350ffb6
|
@ -732,13 +732,13 @@
|
|||
"secret": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1636145225,
|
||||
"narHash": "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=",
|
||||
"path": "/var/empty",
|
||||
"lastModified": 1686920512,
|
||||
"narHash": "sha256-FUZSDRLVdz6margPVrtoKUg63BdxfRNENeUUOxTiIS4=",
|
||||
"path": "/home/main/dotfiles2/secret",
|
||||
"type": "path"
|
||||
},
|
||||
"original": {
|
||||
"path": "/var/empty",
|
||||
"path": "/home/main/dotfiles2/secret",
|
||||
"type": "path"
|
||||
}
|
||||
},
|
||||
|
|
10
flake.nix
10
flake.nix
|
@ -26,7 +26,7 @@
|
|||
vtermModule.url = "github:akermu/emacs-libvterm";
|
||||
vtermModule.flake = false;
|
||||
|
||||
secret.url = "path:///var/empty";
|
||||
secret.url = "path:///home/main/dotfiles2/secret";
|
||||
secret.flake = false;
|
||||
|
||||
ical2org.url = "git+https://git.sr.ht/~magic_rb/ical2orgpy";
|
||||
|
@ -108,11 +108,11 @@
|
|||
uterranix.config = [
|
||||
./terranix/default.nix
|
||||
{
|
||||
_module.args.secret = secret;
|
||||
_module.args.secret = lib'.loadSecrets secret;
|
||||
_module.args.vars = {
|
||||
flake_rev = self.rev or null;
|
||||
flake_sha = self.sha or null;
|
||||
flake_ref = self.ref or null;
|
||||
flake_rev = self.rev;
|
||||
flake_sha = self.narHash;
|
||||
flake_ref = "master";
|
||||
flake_host = "git+https://git.sr.ht/~magic_rb/cluster";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue