use pkgs.writeText

This commit is contained in:
Tomate0613 2026-02-25 14:52:39 +01:00
parent f5372f160c
commit f3498691aa

View file

@ -13,9 +13,7 @@ self: {
${cfg.autostart_sh}
'';
validatedConfig = pkgs.runCommand "mango-config.conf" { } ''
cat > "$out" <<'EOF'
${cfg.settings}
EOF
cp ${pkgs.writeText "mango-config.conf" cfg.settings} "$out"
${cfg.package}/bin/mango -c "$out" -p || exit 1
'';