Skip to content

Commit

Permalink
add elan bin to PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed Oct 17, 2024
1 parent 4bb219d commit 36bf2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dot_pam_environment.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ NIX_PATH DEFAULT="/etc/nix/path"
NODE_PATH DEFAULT="@{HOME}/.node"
{{ end }}

PATH DEFAULT="{{- if joinPath .chezmoi.homeDir ".bin" | lstat -}}@{HOME}/.bin:{{- end -}}{{- if joinPath .chezmoi.homeDir ".local/bin" | lstat -}}@{HOME}/.local/bin:{{- end -}}{{- if joinPath .chezmoi.homeDir ".cabal/bin" | lstat -}}@{HOME}/.cabal/bin:{{- end -}}{{- if joinPath .chezmoi.homeDir ".cargo/bin" | lstat -}}@{HOME}/.cargo/bin:{{- end -}}{{- if joinPath .chezmoi.homeDir ".go/bin" | lstat -}}@{HOME}/.go/bin:{{- end -}}{{- if joinPath .chezmoi.homeDir ".nix-profile/bin" | lstat -}}@{HOME}/.nix-profile/bin:{{- end -}}{{- if joinPath .chezmoi.homeDir ".local/state/nix/profiles/home-manager/bin" | lstat -}}@{HOME}/.local/state/nix/profiles/home-manager/bin:{{- end -}}{{- if joinPath "/etc/profiles/per-user" .chezmoi.username "bin" | lstat -}}/etc/profiles/per-user/@{PAM_USER}/bin:{{- end -}}{{- if lstat "/nix/var/nix/profiles/default/bin" -}}/nix/var/nix/profiles/default/bin:{{- end -}}{{- if lstat "/run/wrappers/bin" -}}/run/wrappers/bin:{{- end -}}{{- if lstat "/run/current-system/sw/bin" -}}/run/current-system/sw/bin:{{- end -}}/usr/local/bin:${PATH}"
PATH DEFAULT="{{- if joinPath .chezmoi.homeDir ".bin" | lstat -}}@{HOME}/.bin:{{- end -}}{{- if joinPath .chezmoi.homeDir ".local/bin" | lstat -}}@{HOME}/.local/bin:{{- end -}}{{- if joinPath .chezmoi.homeDir ".elan/bin" | lstat -}}@{HOME}/.elan/bin:{{- end -}}{{- if joinPath .chezmoi.homeDir ".cabal/bin" | lstat -}}@{HOME}/.cabal/bin:{{- end -}}{{- if joinPath .chezmoi.homeDir ".cargo/bin" | lstat -}}@{HOME}/.cargo/bin:{{- end -}}{{- if joinPath .chezmoi.homeDir ".go/bin" | lstat -}}@{HOME}/.go/bin:{{- end -}}{{- if joinPath .chezmoi.homeDir ".nix-profile/bin" | lstat -}}@{HOME}/.nix-profile/bin:{{- end -}}{{- if joinPath .chezmoi.homeDir ".local/state/nix/profiles/home-manager/bin" | lstat -}}@{HOME}/.local/state/nix/profiles/home-manager/bin:{{- end -}}{{- if joinPath "/etc/profiles/per-user" .chezmoi.username "bin" | lstat -}}/etc/profiles/per-user/@{PAM_USER}/bin:{{- end -}}{{- if lstat "/nix/var/nix/profiles/default/bin" -}}/nix/var/nix/profiles/default/bin:{{- end -}}{{- if lstat "/run/wrappers/bin" -}}/run/wrappers/bin:{{- end -}}{{- if lstat "/run/current-system/sw/bin" -}}/run/current-system/sw/bin:{{- end -}}/usr/local/bin:${PATH}"

{{ if and (lstat "/nix") (eq .chezmoi.os "linux") (not (lstat "/etc/nixos")) (lstat "/usr/lib/locale/locale-archive") }}
# https://wiki.nixos.org/wiki/Locales
Expand Down

0 comments on commit 36bf2fc

Please sign in to comment.