mirror of
https://github.com/ryantm/agenix.git
synced 2024-11-22 09:40:47 +03:00
Testing for CI -- revert "Remove activation scripts"
This reverts commit 4c315d9683
.
This commit is contained in:
parent
4b2b6fa111
commit
9779a98f1e
1 changed files with 14 additions and 0 deletions
|
@ -276,6 +276,20 @@ in {
|
|||
};
|
||||
})
|
||||
(optionalAttrs isDarwin {
|
||||
system.activationScripts = {
|
||||
# Secrets with root owner and group can be installed before users
|
||||
# exist. This allows user password files to be encrypted.
|
||||
preActivation.text = builtins.concatStringsSep "\n" [
|
||||
newGeneration
|
||||
installSecrets
|
||||
];
|
||||
|
||||
# Other secrets need to wait for users and groups to exist.
|
||||
users.text = lib.mkAfter ''
|
||||
${chownSecrets}
|
||||
'';
|
||||
};
|
||||
|
||||
launchd.daemons.activate-agenix = {
|
||||
script = ''
|
||||
set -e
|
||||
|
|
Loading…
Reference in a new issue