Refactor the sudo configuration script

This commit is contained in:
Manuel Thalmann 2024-09-19 21:23:16 +02:00
parent 1095853916
commit fb2ff92b73
5 changed files with 19 additions and 4 deletions
scripts/Common/OS

View file

@ -14,7 +14,7 @@ if [ (id -u) -eq 0 ]
--comment "PortValhalla setup user" \
--system \
--no-user-group \
--groups wheel,nix-users \
--groups nix-users \
--create-home \
--uid (getConfig valhalla.setupUser.id --json) \
"$name"

View file

@ -18,7 +18,7 @@ function runSetup
if not type -q installValhallaDeps
function installValhallaDeps
echo 'Please set up the hook `installValhallaDeps` for installing `fish`, `git`, `jq`, `nix` and `tmux`.'
echo 'Please set up the hook `installValhallaDeps` for installing `fish`, `git`, `jq`, `nix`, `sudo` and `tmux`.'
exit 1
end
end