mirror of
https://github.com/juspay/services-flake.git
synced 2024-09-17 15:28:33 +03:00
dev: functional formatter
This commit is contained in:
parent
9cbc82078f
commit
38780dec42
@ -24,7 +24,9 @@
|
||||
};
|
||||
fmt = {
|
||||
description = "Format the top-level Nix files";
|
||||
exec = "${lib.getExe pkgs.nixpkgs-fmt} ./*.nix";
|
||||
exec = ''
|
||||
${lib.getExe pkgs.fd} -e nix | xargs ${lib.getExe pkgs.nixpkgs-fmt}
|
||||
'';
|
||||
};
|
||||
};
|
||||
devShells.default = pkgs.mkShell {
|
||||
|
@ -21,7 +21,8 @@
|
||||
process-compose."default" = { config, ... }:
|
||||
let
|
||||
dbName = "sample";
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.services-flake.processComposeModules.default
|
||||
];
|
||||
@ -40,7 +41,8 @@
|
||||
settings.processes.pgweb =
|
||||
let
|
||||
pgcfg = config.services.postgres;
|
||||
in {
|
||||
in
|
||||
{
|
||||
environment.PGWEB_DATABASE_URL = "postgres://$USER@${pgcfg.listen_addresses}:${builtins.toString pgcfg.port}/${dbName}";
|
||||
command = pkgs.pgweb;
|
||||
depends_on."postgres".condition = "process_healthy";
|
||||
|
Loading…
Reference in New Issue
Block a user