module(garage,awscli): Add garage and awscli module
- Add garage module. - Enable garage module on Tytonidae. - Add awscli module. - Enable awscli module on Tytonidae.
This commit is contained in:
parent
e65183b4a4
commit
bebfd63f40
10 changed files with 121 additions and 2 deletions
|
|
@ -33,6 +33,7 @@
|
|||
kvm.enable = true;
|
||||
atuin.enable = true;
|
||||
ion.enable = true;
|
||||
awscli.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
31
home/modules/programs/awscli.nix
Normal file
31
home/modules/programs/awscli.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.youthlic.programs.awscli;
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.awscli = {
|
||||
enable = lib.mkEnableOption "awscli";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
sops.secrets."awscli" = {};
|
||||
programs.awscli = {
|
||||
enable = true;
|
||||
credentials = {
|
||||
default = {
|
||||
credential_process = "${lib.getExe' pkgs.uutils-coreutils-noprefix "cat"} ${config.sops.secrets.awscli.path}";
|
||||
};
|
||||
};
|
||||
settings = {
|
||||
default = {
|
||||
region = "garage";
|
||||
endpoint_url = "https://s3.youthlic.social";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -16,5 +16,6 @@
|
|||
./fzf.nix
|
||||
./eza.nix
|
||||
./ion.nix
|
||||
./awscli.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue