Skip to content

Commit

Permalink
rename public_keys to publicKeys
Browse files Browse the repository at this point in the history
more idiomatic
  • Loading branch information
ryantm committed Sep 4, 2020
1 parent 5e68735 commit c89ed72
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ if you want to (change the system based on your system):
system1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPJDyIr/FSz1cJdcoW69R+NrWzwGK/+3gJpqD1t8L2zE";
in
{
"secret1.age".public_keys = [ user1 system1 ];
"secret2.age".public_keys = [ user1 ];
"secret1.age".publicKeys = [ user1 system1 ];
"secret2.age".publicKeys = [ user1 ];
}
```
3. Edit secret files (assuming your SSH private key is in ~/.ssh/):
Expand Down
4 changes: 2 additions & 2 deletions example/secrets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ let
system1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPJDyIr/FSz1cJdcoW69R+NrWzwGK/+3gJpqD1t8L2zE";
in
{
"secret1.age".public_keys = [ user1 system1 ];
"secret2.age".public_keys = [ user1 ];
"secret1.age".publicKeys = [ user1 system1 ];
"secret2.age".publicKeys = [ user1 ];
}
2 changes: 1 addition & 1 deletion pkgs/agenix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ trap "cleanup" 0 2 3 15
function edit {
FILE=$1
KEYS=$((nix-instantiate --eval -E "(let rules = import $RULES; in builtins.concatStringsSep \"\n\" rules.\"$FILE\".public_keys)" | sed 's/"//g' | sed 's/\\n/\n/g') || exit 1)
KEYS=$((nix-instantiate --eval -E "(let rules = import $RULES; in builtins.concatStringsSep \"\n\" rules.\"$FILE\".publicKeys)" | sed 's/"//g' | sed 's/\\n/\n/g') || exit 1)
if [ -z "$KEYS" ]
then
Expand Down

0 comments on commit c89ed72

Please sign in to comment.