[presets] misc fixes

- update user module not to ask for a password
- ALMA_USER_PASSWORD env variable added
- update steam module
- update base module
This commit is contained in:
Philip Mueller
2023-06-23 12:57:35 +02:00
parent 88df8af4ed
commit 3f15f87a4a
3 changed files with 4 additions and 5 deletions

View File

@@ -2,9 +2,8 @@ packages = ["sudo"]
script = """
set -eux
useradd -m ${ALMA_USER}
passwd ${ALMA_USER}
useradd -m ${ALMA_USER} -p $(openssl passwd -6 ${ALMA_USER_PASSWORD})
usermod -G users,lp,video,network,storage,wheel,audio -a ${ALMA_USER}
echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/wheel
"""
environment_variables = ["ALMA_USER"]
environment_variables = ["ALMA_USER", "ALMA_USER_PASSWORD"]