nixos-config/profiles/workspace/aws.nix

13 lines
356 B
Nix
Raw Normal View History

2021-06-15 00:51:55 +04:00
{ config, pkgs, lib, ... }: {
secrets.aws_credentials = {
owner = "balsoft:users";
services = [ ];
};
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"; }));
};
}