clan.core.state: wrap all commands in shell scripts #1639

Merged
clan-bot merged 4 commits from refactor-state into main 2024-06-20 16:20:31 +00:00
Showing only changes of commit aa5ccfb8bd - Show all commits

View File

@ -185,7 +185,7 @@ in
+ lib.concatMapStringsSep "\n" (user: ''
# only create user if it doesn't exist
/run/current-system/sw/bin/matrix-synapse-register_new_matrix_user --exists-ok --password-file ${
config.clanCore.facts.services."matrix-password-${user.name}".secret."matrix-password-${user.name}".path
config.clan.core.facts.services."matrix-password-${user.name}".secret."matrix-password-${user.name}".path
} --user "${user.name}" ${if user.admin then "--admin" else "--no-admin"}
'') (lib.attrValues cfg.users);
in