nixos-config/profiles/workspace/aws.nix

15 lines
469 B
Nix
Raw Normal View History

2021-06-15 00:51:55 +04:00
{ config, pkgs, lib, ... }: {
secrets.aws_credentials = {
owner = "balsoft:users";
services = [ ];
};
2021-07-27 17:11:30 +04:00
systemd.tmpfiles.rules = [ "L+ /root/.aws/credentials - - - - ${config.secrets.aws_credentials.decrypted}" ];
2021-06-15 00:51:55 +04:00
environment.sessionVariables = {
AWS_SHARED_CREDENTIALS_FILE = config.secrets.aws_credentials.decrypted;
AWS_CONFIG_FILE = toString (pkgs.writeText "aws_config"
(pkgs.my-lib.genIni { default.region = "eu-west-2"; }));
};
}