From 9934e129856084102bfe79054396838d815a214d Mon Sep 17 00:00:00 2001 From: blake Date: Wed, 15 Oct 2025 08:42:39 -0500 Subject: [PATCH] fix motd run on login instead of print --- modules/homelab/motd/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/homelab/motd/default.nix b/modules/homelab/motd/default.nix index e543396..810aed0 100644 --- a/modules/homelab/motd/default.nix +++ b/modules/homelab/motd/default.nix @@ -90,8 +90,16 @@ in { environment.etc."motd".mode = "0755"; - programs.bash.interactiveShellInit = '' + programs.zsh.interactiveShellInit = '' /etc/motd ''; + + #environment.loginShellInit = '' + # if [ -x /etc/motd ]; then + # /etc/motd + # else + # cat /etc/motd + # fi + #''; }; }