Open kevincox opened 3 years ago
You can achieve this with type-merging, although a more obvious solution would be nice. Something like this should work:
# nixops network defaults. You could do it for a single host instead if you prefer.
defaults = { ... }: {
# this is a nixos module
options = {
deployment.keys = lib.mkOption {
# this gets merged into the existing type
type = attrsOf (submodule ({ ... }: {
config.destDir = "/run/nixops-keys";
});
};
};
}
deployment.storeKeysOnMachine
was removed which means that the only real option is settingdestDir
for each key. Maybe that value can be restored with it just setting the defaultdestDir
for each key to/var/keys
or similar? Or simple breaking compatibility and adding adeployment.defaultKeysDir
?