mirror of
https://github.com/Platonic-Systems/process-compose-flake.git
synced 2024-09-11 14:07:00 +03:00
Add debug option (dumps YAML)
This commit is contained in:
parent
230955df9e
commit
00389cd1cd
@ -24,6 +24,13 @@ in
|
||||
The final package that will run 'process-compose up' for this configuration.
|
||||
'';
|
||||
};
|
||||
debug = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Whether to dump the process-compose YAML file at start.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config.outputs.package =
|
||||
@ -31,6 +38,7 @@ in
|
||||
inherit name;
|
||||
runtimeInputs = [ config.package ];
|
||||
text = ''
|
||||
${if config.debug then "cat ${config.outputs.settingsYaml}" else ""}
|
||||
process-compose up \
|
||||
-f ${config.outputs.settingsYaml} \
|
||||
${config.outputs.upCommandArgs} \
|
||||
|
@ -15,9 +15,10 @@
|
||||
perSystem = { pkgs, lib, ... }: {
|
||||
# This adds a `self.packages.default`
|
||||
process-compose."default" = {
|
||||
debug = true;
|
||||
tui = false;
|
||||
settings = {
|
||||
environment = [
|
||||
environment = [
|
||||
"DATAFILE=data.sqlite"
|
||||
];
|
||||
processes = {
|
||||
|
Loading…
Reference in New Issue
Block a user