diff --git a/modules/programs/ssh.nix b/modules/programs/ssh.nix index 5bbe3a00016..fc9ba9a9280 100644 --- a/modules/programs/ssh.nix +++ b/modules/programs/ssh.nix @@ -34,7 +34,7 @@ in }; }; - assertions = [{ assertion = if cfg.forwardX11 then cfg.setXAuthLocation else true; + assertions = [{ assertion = if cfg.forwardX11 then cfg.setXAuthLocation else true; message = "cannot enable X11 forwarding without setting xauth location";}]; config = {