Read config from linux key

This commit is contained in:
Manuel Thalmann 2024-09-12 21:48:05 +02:00
parent e39d0dc2c2
commit c6877056de

View file

@ -6,7 +6,7 @@ set -l users (getUsers)
for name in (echo "$users" | jq '.[]' --raw-output0 | string split0) for name in (echo "$users" | jq '.[]' --raw-output0 | string split0)
function getUserConfig -V name -a config function getUserConfig -V name -a config
getConfig "valhalla.users.$name.$config" $argv[2..] getConfig "valhalla.linux.users.$name.$config" $argv[2..]
end end
set -l groups (getUserConfig groups --apply 'builtins.concatStringsSep ","'); set -l groups (getUserConfig groups --apply 'builtins.concatStringsSep ","');