mirror of https://github.com/ryantm/agenix.git
Compare commits
4 Commits
a9e17889d3
...
c12b308fef
Author | SHA1 | Date |
---|---|---|
nicoo | c12b308fef | |
Ryan Mulligan | 24a7ea3905 | |
Ellis Gibbons | 2c1d1fb134 | |
nicoo | e5d4435cf1 |
|
@ -211,6 +211,7 @@ in {
|
||||||
systemd.user.services.agenix = lib.mkIf pkgs.stdenv.hostPlatform.isLinux {
|
systemd.user.services.agenix = lib.mkIf pkgs.stdenv.hostPlatform.isLinux {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "agenix activation";
|
Description = "agenix activation";
|
||||||
|
After = "basic.target" # “basic boot-up,” includes impermanence's bind mounts
|
||||||
};
|
};
|
||||||
Service = {
|
Service = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
|
|
|
@ -171,7 +171,9 @@ function edit {
|
||||||
ENCRYPT=()
|
ENCRYPT=()
|
||||||
while IFS= read -r key
|
while IFS= read -r key
|
||||||
do
|
do
|
||||||
ENCRYPT+=(--recipient "$key")
|
if [ -n "$key" ]; then
|
||||||
|
ENCRYPT+=(--recipient "$key")
|
||||||
|
fi
|
||||||
done <<< "$KEYS"
|
done <<< "$KEYS"
|
||||||
|
|
||||||
REENCRYPTED_DIR=$(@mktempBin@ -d)
|
REENCRYPTED_DIR=$(@mktempBin@ -d)
|
||||||
|
|
Loading…
Reference in New Issue