mirror of
https://github.com/ryantm/agenix.git
synced 2024-09-11 14:25:49 +03:00
Compare commits
3 Commits
e1247c361a
...
7788b5c9a8
Author | SHA1 | Date | |
---|---|---|---|
|
7788b5c9a8 | ||
|
07479c2e73 | ||
|
e2ad357a97 |
@ -205,7 +205,7 @@ You can run the CLI tool ad-hoc without installing it:
|
|||||||
nix run github:ryantm/agenix -- --help
|
nix run github:ryantm/agenix -- --help
|
||||||
```
|
```
|
||||||
|
|
||||||
But you can also add it permanently into a [NixOS module](https://nixos.wiki/wiki/NixOS_modules)
|
But you can also add it permanently into a [NixOS module](https://wiki.nixos.org/wiki/NixOS_modules)
|
||||||
(replace system "x86_64-linux" with your system):
|
(replace system "x86_64-linux" with your system):
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
|
@ -189,7 +189,7 @@ function edit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function rekey {
|
function rekey {
|
||||||
FILES=$( (@nixInstantiate@ --json --eval -E "(let rules = import $RULES; in builtins.attrNames rules)" | @jqBin@ -r .[]) || exit 1)
|
FILES=$( (@nixInstantiate@ --json --eval --strict -E "(let rules = import $RULES; in builtins.attrNames rules)" | @jqBin@ -r .[]) || exit 1)
|
||||||
|
|
||||||
for FILE in $FILES
|
for FILE in $FILES
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user