Compare commits

..

2 Commits

Author SHA1 Message Date
oluceps 49a4c0f58d
Merge 8ff1e1afcd into 1381a759b2 2024-04-08 02:21:42 +00:00
oluceps 8ff1e1afcd
feat: works with sysuser
fix: darwin compatible

chore: reformat

fix: infrec

chore: clean logic

Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
2024-04-08 02:21:28 +00:00
1 changed files with 6 additions and 6 deletions

View File

@ -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"];
};