Skip to content

Commit

Permalink
nixos-module: More if-check fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Brawl345 committed Sep 10, 2024
1 parent f9e9a6f commit e889181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ in

socket = mkOption {
type = types.nullOr types.path;
default = "/run/mysqld/mysqld.sock";
default = if config.services.gobot.database.passwordFile == null then "/run/mysqld/mysqld.sock" else null;
example = "/run/mysqld/mysqld.sock";
description = "Path to the unix socket file to use for authentication.";
};
Expand Down Expand Up @@ -149,7 +149,7 @@ in
assertions = [
{
assertion = !(cfg.webhook.secret != null && cfg.webhook.secretFile != null);
message = "Only one of webhook.secret or webhook.secretFile can be set.";
message = "Only one of services.gobot.webhook.secret or services.gobot.webhook.secretFile can be set.";
}
{
assertion = !(cfg.database.socket != null && cfg.database.passwordFile != null);
Expand Down

0 comments on commit e889181

Please sign in to comment.