mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
refactor if statements
Co-authored-by: Robert Helgesson <robert@rycee.net>
This commit is contained in:
parent
908c854859
commit
ef3870ee60
1 changed files with 4 additions and 4 deletions
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue