Symlink the process-compose.yml for faster startup
This commit is contained in:
parent
ab82d4d5e6
commit
d98efbd528
|
@ -253,3 +253,4 @@ result-*
|
||||||
|
|
||||||
/.direnv/
|
/.direnv/
|
||||||
/.devenv/
|
/.devenv/
|
||||||
|
/process-compose.yml
|
||||||
|
|
31
flake.nix
31
flake.nix
|
@ -23,18 +23,23 @@
|
||||||
packages = forEachSystem (system: {
|
packages = forEachSystem (system: {
|
||||||
devenv-up = self.devShells.${system}.default.config.procfileScript;
|
devenv-up = self.devShells.${system}.default.config.procfileScript;
|
||||||
});
|
});
|
||||||
devShells = forEachSystem
|
devShells = forEachSystem (
|
||||||
(system:
|
system:
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
in
|
config = self.devShells.${system}.default.config;
|
||||||
{
|
in
|
||||||
default = devenv.lib.mkShell {
|
{
|
||||||
inherit inputs pkgs;
|
default = devenv.lib.mkShell {
|
||||||
modules = [{
|
inherit inputs pkgs;
|
||||||
|
modules = [
|
||||||
|
{
|
||||||
env = {
|
env = {
|
||||||
NO_SSL = "True";
|
NO_SSL = "True";
|
||||||
};
|
};
|
||||||
|
enterShell = ''
|
||||||
|
ln -sf ${config.process-managers.process-compose.configFile} ${config.env.DEVENV_ROOT}/process-compose.yml
|
||||||
|
'';
|
||||||
languages.python = {
|
languages.python = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.python312;
|
package = pkgs.python312;
|
||||||
|
@ -56,8 +61,10 @@
|
||||||
pytest --cov=src tests.py
|
pytest --cov=src tests.py
|
||||||
'';
|
'';
|
||||||
services.redis.enable = true;
|
services.redis.enable = true;
|
||||||
}];
|
}
|
||||||
};
|
];
|
||||||
});
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue