From f3498691aad1cd09c0f2d39c86a79993fdded31f Mon Sep 17 00:00:00 2001 From: Tomate0613 <69756782+Tomate0613@users.noreply.github.com> Date: Wed, 25 Feb 2026 14:52:39 +0100 Subject: [PATCH] use pkgs.writeText --- nix/hm-modules.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nix/hm-modules.nix b/nix/hm-modules.nix index 45db801f..68ed3b3d 100644 --- a/nix/hm-modules.nix +++ b/nix/hm-modules.nix @@ -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 '';