From aebc51cc2eef5ce539179fa810674a5ac9bd4341 Mon Sep 17 00:00:00 2001 From: blake Date: Wed, 15 Oct 2025 20:25:06 -0500 Subject: [PATCH] fix formatting on service list --- modules/holocron/smb/default.nix | 4 ++-- modules/homelab/motd/default.nix | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/holocron/smb/default.nix b/modules/holocron/smb/default.nix index 5619a91..9d184cd 100644 --- a/modules/holocron/smb/default.nix +++ b/modules/holocron/smb/default.nix @@ -21,8 +21,8 @@ let browseable = true; writable = true; guestOk = false; - "create mask" = "0775"; - "directory mask" = "0775"; + "create mask" = "0660"; + "directory mask" = "0770"; }; media = { path = "/holocron/media"; diff --git a/modules/homelab/motd/default.nix b/modules/homelab/motd/default.nix index 810aed0..afc96fb 100644 --- a/modules/homelab/motd/default.nix +++ b/modules/homelab/motd/default.nix @@ -63,12 +63,12 @@ in { if systemctl list-units --type=service --all | grep -q "${service}"; then status=$(systemctl is-active ${service} 2>/dev/null) if [ "$status" = "active" ]; then - printf "%-28s%s\n" " ''${active}${service}''${reset}" "running" + printf "%-32s%s\n" " ''${active}[${service}]''${reset}" "running" else - printf "%-28s%s\n" " ''${active}${service}''${reset}" "not running" + printf "%-32s%s\n" " ''${active}[${service}]''${reset}" "not running" fi else - printf "%-28s%s\n" " ''${active}${service}''${reset}" "not found" + printf "%-32s%s\n" " ''${active}[${service}]''${reset}" "not found" fi '') motd_list)} @@ -80,9 +80,9 @@ in { for service in velocity smp superflat bento; do status=$(systemctl is-active $service 2>/dev/null) if [ "$status" = "active" ]; then - printf "%-28s%s\n" " ''${active}$service''${reset}" "running" + printf "%-32s%s\n" " ''${active}[$service]''${reset}" "running" else - printf "%-28s%s\n" " ''${active}$service''${reset}" "not running" + printf "%-32s%s\n" " ''${active}[$service]''${reset}" "not running" fi done echo