Skip to content

Commit

Permalink
fix(chezmoi): workaround for systemd/systemd#15275
Browse files Browse the repository at this point in the history
  • Loading branch information
scottames committed Nov 11, 2024
1 parent 6d06211 commit 0797854
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions home/.chezmoi.toml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,9 @@ output "sh" "-c" "printf '[email protected]' | 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"
)) -}}
Expand Down

0 comments on commit 0797854

Please sign in to comment.