1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00
home-manager/tests/modules/programs/awscli/awscli.nix

29 lines
575 B
Nix
Raw Normal View History

2023-09-29 13:04:57 +02:00
{ ... }:
{
programs = {
awscli = {
enable = true;
settings = {
default = {
output = "json";
region = "eu-west-3";
};
};
credentials = { iam = { credential_process = "pass show aws"; }; };
};
};
test.stubs.awscli2 = { };
nmt.script = ''
assertFileExists home-files/.aws/config
assertFileContent home-files/.aws/config \
${./aws-config.conf}
assertFileExists home-files/.aws/credentials
assertFileContent home-files/.aws/credentials \
${./aws-credentials.conf}
'';
}