From e32bdff7a8389b3459770113e7ec12c13eb61a92 Mon Sep 17 00:00:00 2001 From: blake Date: Tue, 14 Oct 2025 22:25:25 -0500 Subject: [PATCH] fin --- modules/homelab/motd/default.nix | 2 +- users/blake/dotfiles/zsh/.zshrc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/homelab/motd/default.nix b/modules/homelab/motd/default.nix index ed20b4b..6945c84 100644 --- a/modules/homelab/motd/default.nix +++ b/modules/homelab/motd/default.nix @@ -33,7 +33,7 @@ in { # --- System Info --- default_iface=$(ip route | awk '/default/ {print $5; exit}') ip_addr=$(ip -4 addr show "''${default_iface}" | awk '/inet / {print $2}' | cut -d/ -f1) - nixos_version=$(grep VERSION= /etc/os-release | cut -d'"' -f2) + nixos_version=$(grep '^VERSION=' /etc/os-release | cut -d'"' -f2 | tr -d '\n') kernel_version=$(uname -r) echo -e "''${headings}System Info''${reset}" diff --git a/users/blake/dotfiles/zsh/.zshrc b/users/blake/dotfiles/zsh/.zshrc index b7ae945..f0b54ec 100644 --- a/users/blake/dotfiles/zsh/.zshrc +++ b/users/blake/dotfiles/zsh/.zshrc @@ -65,6 +65,7 @@ alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' # scripts +alias motd='sh /etc/motd' alias rebuild='sh ~/.nix/bin/rebuild.sh' alias perms='sudo sh ~/.nix/bin/perms.sh' alias bb='sudo sh ~/.nix/bin/backup_browse.sh'