fixup! WIP - Freya: MinIO
This commit is contained in:
parent
b953d8ef04
commit
fbc936d604
3 changed files with 12 additions and 20 deletions
|
|
@ -220,6 +220,7 @@
|
|||
./modules/nixos/users/tiziano.nix
|
||||
|
||||
./modules/nixos/torrentbox.nix
|
||||
./modules/nixos/minio.nix
|
||||
./modules/nixos/nextcloud.nix
|
||||
./modules/nixos/ntfy.nix
|
||||
] ++ homeManagerModules ++ [
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ in
|
|||
|
||||
age.secrets = {
|
||||
ntfy-freya = { file = ../../secrets/ntfy-freya.age; owner = "bertof"; };
|
||||
minio = { file = ../../secrets/minio.age; owner = "minio"; };
|
||||
};
|
||||
|
||||
console = { font = "Lat2-Terminus16"; keyMap = "it"; };
|
||||
|
|
@ -84,17 +83,6 @@ in
|
|||
# desktopManager.retroarch = { enable = true; package = pkgs.retroarchFull; };
|
||||
# };
|
||||
|
||||
|
||||
minio = {
|
||||
enable = true;
|
||||
dataDir = [
|
||||
# "/var/lib/minio/data"
|
||||
"/mnt/raid/minio/data"
|
||||
];
|
||||
rootCredentialsFile = config.age.secrets.minio.path;
|
||||
};
|
||||
|
||||
|
||||
fail2ban = { enable = true; bantime-increment.enable = true; };
|
||||
plex = { enable = true; openFirewall = true; group = "users"; };
|
||||
jellyfin = { enable = true; openFirewall = true; group = "users"; };
|
||||
|
|
|
|||
|
|
@ -1,13 +1,16 @@
|
|||
{
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
9000
|
||||
9001
|
||||
];
|
||||
{ config, lib, ... }: {
|
||||
age.secrets.minio = { file = ../../secrets/minio.age; owner = "minio"; };
|
||||
|
||||
services.minio = {
|
||||
enable = true;
|
||||
browser = true;
|
||||
listenAddress = "0.0.0.0:9000";
|
||||
consoleAddress = "0.0.0.0:9001";
|
||||
dataDir = [
|
||||
# "/var/lib/minio/data"
|
||||
"/mnt/raid/minio/data/"
|
||||
];
|
||||
rootCredentialsFile = config.age.secrets.minio.path;
|
||||
};
|
||||
|
||||
systemd.services.minio.serviceConfig.ExecStart =
|
||||
let cfg = config.services.minio; in
|
||||
lib.mkForce "${cfg.package}/bin/minio server --json --address ${cfg.listenAddress} --console-address ${cfg.consoleAddress} ${toString cfg.dataDir}";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue