Skip to content

Commit

Permalink
Fix bug in function names
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinlyons committed Dec 30, 2023
1 parent 3b9112f commit cf167fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/starter-with-secrets/apps/aarch64-darwin/apply
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ _prompt() {
read -r $variable
}

update_outputs_with_secrets() {
insert_secrets_output() {
local pattern="outputs = { self, darwin, nix-homebrew, homebrew-bundle, homebrew-core, homebrew-cask, home-manager, nixpkgs, disko, agenix } @inputs:"
local insert_text=", secrets"

Expand All @@ -44,7 +44,7 @@ update_outputs_with_secrets() {
mv flake.nix.tmp flake.nix
}

insert_secrets_config() {
insert_secrets_input() {
# Define file path
FILE_PATH="flake.nix"

Expand Down Expand Up @@ -206,8 +206,8 @@ replace_tokens() {
}

# Insert secrets repo into flake
insert_secrets_repo
update_outputs_with_secrets
insert_secrets_input
insert_secrets_output

# Traverse directories and call replace_tokens on each Nix file
export -f replace_tokens
Expand Down

0 comments on commit cf167fe

Please sign in to comment.