age.secrets."hosts" = { file = ./secrets/hosts.age; mode = "777"; };
networking.hostFiles = [config.age.secrets."hosts".path];
Hi,
I'm trying to use this with networking.hostFiles which creates /etc/hosts by concatenating files.
It says file is not found with agenix encrypted file. Seems like file is not decrypted while evaluating networking.hostFiles. Is there any workaround for this?