mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +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": {
|
"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"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
10
flake.nix
10
flake.nix
|
@ -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";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue