Soc/devenv.nix

40 lines
668 B
Nix
Raw Normal View History

{ pkgs, nixpkgs-ruby, ... }:
{
# Set environment variables
env = {
APPLICATION_HOST = "localhost:3000";
DB_HOST = "localhost";
PSQLPAGER = "pspg";
};
# Packages to install
packages = with pkgs; [
git
pspg
openssl
libyaml
];
languages.ruby.enable = true;
languages.ruby.versionFile = ./.ruby-version;
services.postgres = {
enable = true;
listen_addresses = "127.0.0.1";
initialScript = ''
CREATE ROLE soc WITH LOGIN PASSWORD 'postgres' SUPERUSER;
'';
};
2023-08-19 14:38:38 +00:00
2023-10-06 07:38:53 +00:00
scripts = {
prodshell.exec = ''
kamal app exec -i --reuse bash
'';
};
2023-08-19 14:38:38 +00:00
services.mailhog = {
enable = true;
};
}