Add AWS creds for root

This commit is contained in:
Alexander Bantyev 2021-07-27 16:11:30 +03:00
parent 23292e0ec2
commit 08942bab84
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5

View File

@ -4,6 +4,8 @@
services = [ ]; services = [ ];
}; };
systemd.tmpfiles.rules = [ "L+ /root/.aws/credentials - - - - ${config.secrets.aws_credentials.decrypted}" ];
environment.sessionVariables = { environment.sessionVariables = {
AWS_SHARED_CREDENTIALS_FILE = config.secrets.aws_credentials.decrypted; AWS_SHARED_CREDENTIALS_FILE = config.secrets.aws_credentials.decrypted;
AWS_CONFIG_FILE = toString (pkgs.writeText "aws_config" AWS_CONFIG_FILE = toString (pkgs.writeText "aws_config"