From 5159ebee1f1a7cdc3afb776c4557b6ab33e69930 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sat, 19 Sep 2026 19:48:42 +0530 Subject: feat(communication/senpai): added the IRC client senpai configurations --- modules/communication/senpai/assertions.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/communication/senpai/assertions.nix (limited to 'modules/communication/senpai/assertions.nix') diff --git a/modules/communication/senpai/assertions.nix b/modules/communication/senpai/assertions.nix new file mode 100644 index 0000000..ed2cce8 --- /dev/null +++ b/modules/communication/senpai/assertions.nix @@ -0,0 +1,20 @@ +# Validates Senpai dependencies. +{ config, ... }: +{ + assertions = [ + { + assertion = !config.communication.senpai.enable || config.communication.senpai.server.address != ""; + message = "communication.senpai.enable requires communication.senpai.server.address to be set."; + } + { + assertion = + !config.communication.senpai.enable || config.communication.senpai.identity.nickname != ""; + message = "communication.senpai.enable requires communication.senpai.identity.nickname to be set."; + } + { + assertion = + config.communication.senpai.identity.passwordGopassSecret == null || config.security.gopass.enable; + message = "communication.senpai.identity.passwordGopassSecret requires security.gopass.enable."; + } + ]; +} -- cgit v1.2.3