git.iko.soy/typeable/nixpkgs
on master help sign in
gitlab: remove unnecessary assertion

It also gives less information than the error from the module system.

commitc4036762b25dde23a60800b3f1ab88eb4acf9787 authorRobin Gloster <mail@glob.in> dateMon 25 Dec 2017, 17:01 (9 years ago) parentaaf62f7
1 file changed−7
nixos/modules/services/misc/gitlab.nix−7
nixos/modules/services/misc/gitlab.nix−7
@@ -248,7 +248,6 @@ in {
248248
249249 databasePassword = mkOption {
250250 type = types.str;
251− default = "";
252251 description = "Gitlab database user password.";
253252 };
254253
@@ -440,12 +439,6 @@ in {
440439
441440 environment.systemPackages = [ pkgs.git gitlab-rake cfg.packages.gitlab-shell ];
442441
443− assertions = [
444− { assertion = cfg.databasePassword != "";
445− message = "databasePassword must be set";
446− }
447− ];
448−
449442 # Redis is required for the sidekiq queue runner.
450443 services.redis.enable = mkDefault true;
451444 # We use postgres as the main data store.