From dcb0c0d7a56ca5406e213ca2697acc96b5a5c414 Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Fri, 11 Jul 2025 04:07:03 +0800 Subject: [PATCH] module(awscli): Add option for endpoint_url to use localhost url in Tytonidae --- home/david/configurations/Tytonidae/default.nix | 5 ++++- home/modules/programs/awscli.nix | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/home/david/configurations/Tytonidae/default.nix b/home/david/configurations/Tytonidae/default.nix index 82befcf..d643f5b 100644 --- a/home/david/configurations/Tytonidae/default.nix +++ b/home/david/configurations/Tytonidae/default.nix @@ -33,7 +33,10 @@ kvm.enable = true; atuin.enable = true; ion.enable = true; - awscli.enable = true; + awscli = { + enable = true; + url = "http://localhost:8491"; + }; }; }; diff --git a/home/modules/programs/awscli.nix b/home/modules/programs/awscli.nix index 6bb50d4..9ec8bf4 100644 --- a/home/modules/programs/awscli.nix +++ b/home/modules/programs/awscli.nix @@ -9,6 +9,10 @@ in { options = { youthlic.programs.awscli = { enable = lib.mkEnableOption "awscli"; + url = lib.mkOption { + type = lib.types.str; + default = "https://s3.youthlic.social"; + }; }; }; config = lib.mkIf cfg.enable { @@ -23,7 +27,7 @@ in { settings = { default = { region = "garage"; - endpoint_url = "https://s3.youthlic.social"; + endpoint_url = cfg.url; }; }; };