vars: introduce share flag

This commit is contained in:
DavHau
2024-08-03 12:34:46 +07:00
parent 7788767058
commit d1c2f0b622
12 changed files with 237 additions and 145 deletions

View File

@@ -168,6 +168,15 @@ in
internal = true;
visible = false;
};
share = {
description = ''
Whether the generated vars should be shared between machines.
Shared vars are only generated once, when the first machine using it is deployed.
Subsequent machines will re-use the already generated values.
'';
type = bool;
default = false;
};
};
})
);