mirror of https://github.com/ryantm/agenix.git
Compare commits
2 Commits
e90ec86ed0
...
49a4c0f58d
Author | SHA1 | Date |
---|---|---|
oluceps | 49a4c0f58d | |
oluceps | 8ff1e1afcd |
|
@ -290,15 +290,15 @@ in {
|
|||
# Create a new directory full of secrets for symlinking (this helps
|
||||
# ensure removed secrets are actually removed, or at least become
|
||||
# invalid symlinks).
|
||||
system = mkIf (!sysusersEnabled) {
|
||||
activationScripts.agenixNewGeneration = {
|
||||
system.activationScripts = mkIf (!sysusersEnabled) {
|
||||
agenixNewGeneration = {
|
||||
text = newGeneration;
|
||||
deps = [
|
||||
"specialfs"
|
||||
];
|
||||
};
|
||||
|
||||
activationScripts.agenixInstall = {
|
||||
agenixInstall = {
|
||||
text = installSecrets;
|
||||
deps = [
|
||||
"agenixNewGeneration"
|
||||
|
@ -307,10 +307,10 @@ in {
|
|||
};
|
||||
|
||||
# So user passwords can be encrypted.
|
||||
activationScripts.users.deps = ["agenixInstall"];
|
||||
users.deps = ["agenixInstall"];
|
||||
|
||||
# Change ownership and group after users and groups are made.
|
||||
activationScripts.agenixChown = {
|
||||
agenixChown = {
|
||||
text = chownSecrets;
|
||||
deps = [
|
||||
"users"
|
||||
|
@ -319,7 +319,7 @@ in {
|
|||
};
|
||||
|
||||
# So other activation scripts can depend on agenix being done.
|
||||
activationScripts.agenix = {
|
||||
agenix = {
|
||||
text = "";
|
||||
deps = ["agenixChown"];
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue