From 0797854b88cb1dba163ad7784504dfc713fa5c92 Mon Sep 17 00:00:00 2001 From: Scott Ames Date: Sun, 10 Nov 2024 17:12:46 -0800 Subject: [PATCH] fix(chezmoi): workaround for systemd/systemd#15275 --- home/.chezmoi.toml.tmpl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/home/.chezmoi.toml.tmpl b/home/.chezmoi.toml.tmpl index 97bf778f..0af07555 100644 --- a/home/.chezmoi.toml.tmpl +++ b/home/.chezmoi.toml.tmpl @@ -41,11 +41,9 @@ output "sh" "-c" "printf 'scott@ames.sh' | md5sum - | cut -d' ' -f1" {{- $chassis = trim ( output "distrobox-host-exec" "hostnamectl" "chassis" ) -}} -{{- $loginSession = fromJson ( - output "distrobox-host-exec" "loginctl" "-o" "json" - ) | jq ( - printf ".[] | select(.user==\"%s\") | .session" .chezmoi.username - ) | first -}} +{{- $loginSession = trim ( + output "distrobox-host-exec" "sh" "-c" "loginctl | grep user | awk '{print $1}'" + ) -}} {{- $loginSessionType = trim ( replace "Type=" "" ( output "distrobox-host-exec" "loginctl" "show-session" $loginSession "-p" "Type" )) -}}