Skip to content

Commit

Permalink
fix: path, cleanup db-assemble, chezmoi loginctl outside db
Browse files Browse the repository at this point in the history
  • Loading branch information
scottames committed Aug 12, 2023
1 parent 5fe5415 commit df8295b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions home/.chezmoi.toml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
{{- else if $isContainer -}}
{{- $chassis = "container" }}
{{- else -}}
{{ $loginSession = output "loginctl" "-o" "json" | fromJson | jq (printf ".[] | select(.user==\"%s\") | .session" .chezmoi.username) | first }}
{{ $loginSessionType = output "loginctl" "show-session" $loginSession "-p" "Type" | replace "Type=" "" | trim -}}
{{- $chassis = output "hostnamectl" "chassis" | trim -}}
{{- end -}}
{{- end -}}
Expand Down
4 changes: 0 additions & 4 deletions home/private_dot_config/distrobox/assemble.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
[at]
image=ghcr.io/scottames/archlinux-toolbox:latest
init=false
nvidia=false
pull=true
root=false
replace=true
init_hooks=ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/xclip;
init_hooks=ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/nmcli;
init_hooks=ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/rpm-ostree;

4 changes: 2 additions & 2 deletions home/private_dot_config/fish/conf.d/__path.fish
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ if $IS_MAC
else if $IS_LINUX

set -a _bin_dirs \
/usr/local/bin \
/usr/bin \
/usr/local/sbin \
/usr/sbin \
/usr/local/sbin \
/usr/local/bin \
/var/lib/snapd/snap/bin \
/usr/local/packer

Expand Down

0 comments on commit df8295b

Please sign in to comment.