Skip to content

Commit

Permalink
fix: profile script
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Mar 18, 2024
1 parent a79bdf5 commit 6d8bcff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions unify/src-path/etc/profile.d/unify.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# shellcheck shell=sh

if [ -n "${__ETC_PROFILE_NIX_UNIFY_SOURCED:-}" ]; then return; fi
__ETC_PROFILE_NIX_UNIFY_SOURCED=1

# Expand $PATH to include the directory where nixos applications go.
nix_bin_path="/run/current-system/sw/bin"
if [ -n "${PATH##*${nix_bin_path}}" ] && [ -n "${PATH##*${nix_bin_path}:*}" ]; then
export PATH="$PATH:${nix_bin_path}"
fi
export PATH="$PATH:${nix_bin_path}"

# Ensure base distro defaults xdg path are set if nothing filed up some
# defaults yet.
Expand All @@ -16,6 +17,4 @@ fi
# looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for
# nixos applications' desktop files.
nix_xdg_path="/run/current-system/sw/share"
if [ -n "${XDG_DATA_DIRS##*${nix_xdg_path}}" ] && [ -n "${XDG_DATA_DIRS##*${nix_xdg_path}:*}" ]; then
export XDG_DATA_DIRS="${XDG_DATA_DIRS}:${nix_xdg_path}"
fi
export XDG_DATA_DIRS="${XDG_DATA_DIRS}:${nix_xdg_path}"
2 changes: 1 addition & 1 deletion unify/src-script/modules/shareNetworkd.ysh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module sharenetworkd || return
module sharenNtworkd || return

proc describe(; ; cfg) {
d_t "share networkd"
Expand Down

0 comments on commit 6d8bcff

Please sign in to comment.