From 08942bab8476324b4af54f00a48d8d14d6492d07 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Tue, 27 Jul 2021 16:11:30 +0300 Subject: [PATCH] Add AWS creds for root --- profiles/workspace/aws.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiles/workspace/aws.nix b/profiles/workspace/aws.nix index ca69903..005ff86 100644 --- a/profiles/workspace/aws.nix +++ b/profiles/workspace/aws.nix @@ -4,6 +4,8 @@ services = [ ]; }; + systemd.tmpfiles.rules = [ "L+ /root/.aws/credentials - - - - ${config.secrets.aws_credentials.decrypted}" ]; + environment.sessionVariables = { AWS_SHARED_CREDENTIALS_FILE = config.secrets.aws_credentials.decrypted; AWS_CONFIG_FILE = toString (pkgs.writeText "aws_config"