mirror of
https://github.com/ryantm/agenix.git
synced 2024-11-22 09:40:47 +03:00
Merge pull request #59 from ryantm/workaround54
fix: remove workaround for #54
This commit is contained in:
commit
daf1d77398
1 changed files with 12 additions and 20 deletions
|
@ -103,9 +103,8 @@ in
|
|||
'';
|
||||
};
|
||||
};
|
||||
config = mkIf (cfg.secrets != { }) (mkMerge [
|
||||
|
||||
{
|
||||
config = mkIf (cfg.secrets != { }) {
|
||||
assertions = [{
|
||||
assertion = cfg.sshKeyPaths != [ ];
|
||||
message = "age.sshKeyPaths must be set.";
|
||||
|
@ -119,13 +118,6 @@ in
|
|||
# Other secrets need to wait for users and groups to exist.
|
||||
system.activationScripts.agenix = stringAfter [ "users" "groups" "specialfs" ] installNonRootSecrets;
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
# workaround for #54
|
||||
(optionalAttrs (builtins.hasAttr "dryActivationScript" options.system) {
|
||||
system.activationScripts.users.supportsDryActivation = mkForce false;
|
||||
system.activationScripts.groups.supportsDryActivation = mkForce false;
|
||||
})
|
||||
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue