Skip to content

Instantly share code, notes, and snippets.

@noblepayne
Created July 8, 2025 23:40
Show Gist options
  • Select an option

  • Save noblepayne/1ff0c164cb6aac8108fbc7b00ef8f2e9 to your computer and use it in GitHub Desktop.

Select an option

Save noblepayne/1ff0c164cb6aac8108fbc7b00ef8f2e9 to your computer and use it in GitHub Desktop.
dotenvx + devenv tasks
{ pkgs, lib, config, inputs, ... }:
{
tasks = {
"myapp:task1" = {
exec = ''echo "{\"output\": \"$IN_THE_ENV\"}" > $DEVENV_TASK_OUTPUT_FILE'';
package = pkgs.writeShellApplication {
name = "dotenvx-run";
text = ''
exec ${pkgs.dotenvx}/bin/dotenvx run -o -- bash "$1"
'';
};
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment