wip: well, looking better

This commit is contained in:
2024-10-14 18:02:42 +02:00
parent ed26ad8af2
commit 354bd72248
10 changed files with 82 additions and 150 deletions
+6 -6
View File
@@ -60,18 +60,18 @@
with pkgs.lib;
let
app = conf // {
name = if builtins.isNull cfg.name then "${cfg.env}-${name}" else cfg.name;
name = if builtins.isNull cfg.name then name else cfg.name;
project = cfg.project;
destination.server = cfg.cluster;
createNamespace = true;
createNamespace = true;
compareOptions = {
compareOptions = {
serverSideDiff = cfg.serverSideDiff;
};
};
syncPolicy = {
syncPolicy = {
syncOptions = {
applyOutOfSyncOnly = true;
};
@@ -80,7 +80,7 @@
prune = cfg.prune;
selfHeal = false;
};
};
};
} // (if builtins.isNull cfg.namespace then {} else { namespace = cfg.namespace; });
in mkIf cfg.enable { applications.${name} = app; };