Skip to content

Commit b35cf2c

Browse files
committed
improve some minors
1 parent 3b4808b commit b35cf2c

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Add follow options to your `configuration.nix`:
2424
```
2525

2626
### GCP
27-
Need instalation of gcloud, or append it inside devShell.
27+
Need instalation of gcloud, or append it inside devShell.
2828
``` nix
2929
{
3030
environment.systemPackages = [
@@ -39,7 +39,7 @@ gcloud auth application-default login
3939
```
4040

4141
### Azure
42-
required az command. you can put it inside devShell too.
42+
required az command. you can put it inside devShell too.
4343
``` nix
4444
{
4545
environment.systemPackages = [

devShell.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ in mkShell {
145145
];
146146
shellHook = ''
147147
export NIX_PATH=${pkgs.path}
148-
export VAULT_ADDR=''${CD_VAULT_ADDR:-"http://10.0.62.1:8200"}
149-
export VAULT_TOKEN=''${CD_VAULT_TOKEN:-"root-token"}
148+
export VAULT_ADDR=''${IC_VAULT_ADDR:-"http://10.0.62.1:8200"}
149+
export VAULT_TOKEN=''${IC_VAULT_TOKEN:-"root-token"}
150150
'';
151151
}

flake.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
destroy-azure = {
120120
type = "app";
121121
program = toString (pkgs.writers.writeBash "destroy-azure" ''
122-
scripts/terranix-destroy.sh "azure" ${gcpConfig}
122+
scripts/terranix-destroy.sh "azure" ${azureConfig}
123123
'');
124124
};
125125

lib/default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib }:
1+
{ lib, pkgs }:
22
{
33
opt = import ./opt.nix { inherit lib; };
44
cfg = import ./cfg.nix { inherit lib; };

overlays/default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
default = (_: prev: {
33
# extend lib
4-
lib = prev.lib // import ../lib { inherit (prev) lib; };
4+
lib = prev.lib // import ../lib { inherit (prev) lib pkgs; };
55
terraformWithPlugins =
66
prev.terraform.withPlugins (p: [ p.libvirt p.google p.azurerm ]);
77
});

0 commit comments

Comments
 (0)