diff --git a/nixos/hosts/hades/default.nix b/nixos/hosts/hades/default.nix index 737ea04..934c63a 100644 --- a/nixos/hosts/hades/default.nix +++ b/nixos/hosts/hades/default.nix @@ -56,7 +56,6 @@ hostname = "minio"; ip = "192.168.0.112"; mac = "ae:c6:94:bb:c5:d9"; - nix = false; } { hostname = "cshub2"; diff --git a/nixos/hosts/hades/minio/configuration.nix b/nixos/hosts/hades/minio/configuration.nix new file mode 100644 index 0000000..503d35b --- /dev/null +++ b/nixos/hosts/hades/minio/configuration.nix @@ -0,0 +1,18 @@ +{ config, pkgs, ... }: +let + vs = config.vault-secrets.secrets; +in +{ + system.stateVersion = "22.11"; + + networking.firewall.allowedTCPPorts = [ 9000 9001 ]; + + networking.interfaces.eth0.useDHCP = true; + + vault-secrets.secrets.minio = { }; + + services.minio = { + enable = true; + rootCredentialsFile = "${vs.minio}/environment"; + }; +}