Adding nonadmin consumption support

This commit is contained in:
2026-01-14 14:05:49 -06:00
parent 908aef9943
commit 6d60bbe371
2 changed files with 18 additions and 1 deletions

View File

@@ -1,5 +1,9 @@
### Ansible ###
if [ -z "$ANINIX_PROFILE_D" ]; then
source /etc/profile.d/shadowarch-shell-environment.sh
else
source "$ANINIX_PROFILE_D"/shadowarch-shell-environment.sh
fi
export ANSIBLE_VAULT_FILE=$HOME/password-store/${organization}.vault
export ANSIBLE_VAULT_PASSWORD_FILE="${ANSIBLE_VAULT_FILE}.password"
alias ansible='/usr/bin/ansible -e @${ANSIBLE_VAULT_FILE}'

View File

@@ -100,6 +100,19 @@ The AniNIX provides an installer to install ShadowArch and some basic clients fo
1. Some flags are listed below.
1. If you run across trouble, take a look at the Troubleshooting section at the bottom.
## Including in an non-admin context
To use this repo and its settings in a context where you are not installing packages, clone the project under ``. Then, add the following to your `.bashrc`.
```
# AniNIX
ANINIX_PROFILE_D="$HOME/src/AniNIX/ShadowArch/EtcFiles/profile.d/"
for i in `find "${ANINIX_PROFILE_D}" -type f`; do source "$i"; done
PATH="${PATH}:$HOME/src/AniNIX/ShadowArch/UserScripts:$HOME/src/AniNIX/ShadowArch/AdminScripts"
```
This will introduce the AniNIX customizations to your user context and path the scripts.
# References
* [The ArchLinux Wiki](https://wiki.archlinux.org/) is an invaluable source of information, particularly around packages deployed by ShadowArch hosts.
These are some known issues the users of ShadowArch have come across with weird reasons.