cli: add morph command

This commit is contained in:
Michael Hoang
2025-02-13 15:09:17 +07:00
parent 5c68e129b7
commit 160bbfcb37
10 changed files with 330 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
{
config,
lib,
...
}:
{
config.clan.core.vars.settings = lib.mkIf (config.clan.core.vars.settings.secretStore == "fs") {
fileModule = file: {
path =
if file.config.neededFor == "partitioning" then
throw "${file.config.generatorName}/${file.config.name}: FS backend does not support partitioning."
else
"/run/secrets/${file.config.generatorName}/${file.config.name}";
};
secretModule = "clan_cli.vars.secret_modules.fs";
};
}