diff --git a/modules/homelab/motd/default.nix b/modules/homelab/motd/default.nix index 1480a55..816a600 100644 --- a/modules/homelab/motd/default.nix +++ b/modules/homelab/motd/default.nix @@ -61,8 +61,8 @@ in { echo -e "''${YELLOW}Homelab Services''${RESET}" ${lib.concatStringsSep "\n" (map (service: '' - if systemctl list-units --type=service --all | grep -q "^''${service}"; then - status=$(systemctl is-active ''${service} 2>/dev/null) + if systemctl list-units --type=service --all | grep -q "^${service}"; then + status=$(systemctl is-active ${service} 2>/dev/null) if [ "''${status}" = "active" ]; then echo -e " ''${BLUE}${service}''${RESET} - running" else