From 1d49b8aba6fb8247e6bcc9bc13be2bc19c051240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kry=C5=A1tof=20Baksa?= <62813600+Golbinex@users.noreply.github.com> Date: Wed, 13 Aug 2025 21:34:52 +0200 Subject: [PATCH] nixos/rust-motd: Add fail2ban to path --- nixos/modules/programs/rust-motd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/programs/rust-motd.nix b/nixos/modules/programs/rust-motd.nix index 8d1eb4a7e5bf..a0b6e19fed73 100644 --- a/nixos/modules/programs/rust-motd.nix +++ b/nixos/modules/programs/rust-motd.nix @@ -113,7 +113,7 @@ in } ]; systemd.services.rust-motd = { - path = with pkgs; [ bash ]; + path = with pkgs; [ bash ] ++ lib.optional (cfg.settings.fail_2_ban or { } != { }) fail2ban; documentation = [ "https://github.com/rust-motd/rust-motd/blob/v${pkgs.rust-motd.version}/README.md" ];