add minio module and enable minio
This commit is contained in:
parent
05beef2e59
commit
fb9e7c5669
4 changed files with 27 additions and 8 deletions
|
|
@ -43,6 +43,7 @@
|
|||
juicity.client.enable = true;
|
||||
asusd.enable = true;
|
||||
owncast.enable = true;
|
||||
minio.enable = true;
|
||||
};
|
||||
gui.enabled = "niri";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -23,5 +23,6 @@
|
|||
./guix.nix
|
||||
./asusd.nix
|
||||
./owncast.nix
|
||||
./minio.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
21
nixos/modules/programs/minio.nix
Normal file
21
nixos/modules/programs/minio.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.youthlic.programs.minio;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
youthlic.programs.minio = {
|
||||
enable = lib.mkEnableOption "minio";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
sops.secrets."minio" = {
|
||||
};
|
||||
services.minio = {
|
||||
enable = true;
|
||||
listenAddress = ":8487";
|
||||
consoleAddress = ":8488";
|
||||
rootCredentialsFile = "${config.sops.secrets.minio.path}";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue