From ef3870ee60e25776636ec48289dd1f43851ae1de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Guimar=C3=A3es?= Date: Thu, 30 May 2024 15:04:23 +0000 Subject: [PATCH] refactor if statements Co-authored-by: Robert Helgesson --- modules/programs/awscli.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/programs/awscli.nix b/modules/programs/awscli.nix index ef045e8e5..e5a8cadeb 100644 --- a/modules/programs/awscli.nix +++ b/modules/programs/awscli.nix @@ -6,12 +6,12 @@ let iniFormat = pkgs.formats.ini { }; settingsPath = - if config.programs.awscli.settingsPath != "" - then config.programs.awscli.settingsPath + if cfg.settingsPath != "" + then cfg.settingsPath else "${config.home.homeDirectory}/.aws/config"; credentialsPath = - if config.programs.awscli.credentialsPath != "" - then config.programs.awscli.credentialsPath + if cfg.credentialsPath != "" + then cfg.credentialsPath else "${config.home.homeDirectory}/.aws/credentials"; in { meta.maintainers = [ lib.maintainers.anthonyroussel ];