From c4036762b25dde23a60800b3f1ab88eb4acf9787 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Mon, 25 Dec 2017 17:01:10 +0100 Subject: [PATCH] gitlab: remove unnecessary assertion It also gives less information than the error from the module system. --- nixos/modules/services/misc/gitlab.nix | 7 ------- 1 file changed, 7 deletions(-) diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix index 7b2b40e59232..0c5d51564a04 100644 --- a/nixos/modules/services/misc/gitlab.nix +++ b/nixos/modules/services/misc/gitlab.nix @@ -248,7 +248,6 @@ in { databasePassword = mkOption { type = types.str; - default = ""; description = "Gitlab database user password."; }; @@ -440,12 +439,6 @@ in { environment.systemPackages = [ pkgs.git gitlab-rake cfg.packages.gitlab-shell ]; - assertions = [ - { assertion = cfg.databasePassword != ""; - message = "databasePassword must be set"; - } - ]; - # Redis is required for the sidekiq queue runner. services.redis.enable = mkDefault true; # We use postgres as the main data store.