module(awscli): Add option for endpoint_url to use localhost url in Tytonidae
This commit is contained in:
parent
871ac5871d
commit
dcb0c0d7a5
2 changed files with 9 additions and 2 deletions
|
|
@ -33,7 +33,10 @@
|
||||||
kvm.enable = true;
|
kvm.enable = true;
|
||||||
atuin.enable = true;
|
atuin.enable = true;
|
||||||
ion.enable = true;
|
ion.enable = true;
|
||||||
awscli.enable = true;
|
awscli = {
|
||||||
|
enable = true;
|
||||||
|
url = "http://localhost:8491";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,10 @@ in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.awscli = {
|
youthlic.programs.awscli = {
|
||||||
enable = lib.mkEnableOption "awscli";
|
enable = lib.mkEnableOption "awscli";
|
||||||
|
url = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "https://s3.youthlic.social";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
@ -23,7 +27,7 @@ in {
|
||||||
settings = {
|
settings = {
|
||||||
default = {
|
default = {
|
||||||
region = "garage";
|
region = "garage";
|
||||||
endpoint_url = "https://s3.youthlic.social";
|
endpoint_url = cfg.url;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue