diff options
author | John Soo <john.soo@arista.com> | 2023-03-13 16:44:29 -0700 |
---|---|---|
committer | John Soo <john.soo@arista.com> | 2023-03-13 17:36:52 -0700 |
commit | 7f85002ec004d0f4bfe5023598047567273fec71 (patch) | |
tree | b9ece80b9d4ca454a29a42fb196a602c111bec12 /nixos/modules | |
parent | a9afcd204122f52cb2d6cbcceb5fbaeeaa4b6411 (diff) |
nixos/minio: format with nixpkgs-fmt
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/web-servers/minio.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/nixos/modules/services/web-servers/minio.nix b/nixos/modules/services/web-servers/minio.nix index 1a9eacb431b3c..b2d48f961f14a 100644 --- a/nixos/modules/services/web-servers/minio.nix +++ b/nixos/modules/services/web-servers/minio.nix @@ -60,7 +60,7 @@ in ''; }; - rootCredentialsFile = mkOption { + rootCredentialsFile = mkOption { type = types.nullOr types.path; default = null; description = lib.mdDoc '' @@ -98,7 +98,7 @@ in systemd.tmpfiles.rules = [ "d '${cfg.configDir}' - minio minio - -" - ] ++ (map (x: "d '" + x + "' - minio minio - - ") cfg.dataDir); + ] ++ (map (x: "d '" + x + "' - minio minio - - ") cfg.dataDir); systemd.services.minio = { description = "Minio Object Storage"; @@ -110,9 +110,10 @@ in User = "minio"; Group = "minio"; LimitNOFILE = 65536; - EnvironmentFile = if (cfg.rootCredentialsFile != null) then cfg.rootCredentialsFile - else if ((cfg.accessKey != "") || (cfg.secretKey != "")) then (legacyCredentials cfg) - else null; + EnvironmentFile = + if (cfg.rootCredentialsFile != null) then cfg.rootCredentialsFile + else if ((cfg.accessKey != "") || (cfg.secretKey != "")) then (legacyCredentials cfg) + else null; }; environment = { MINIO_REGION = "${cfg.region}"; |