georm/devenv.nix
Lucien Cartier-Tilet fb20c7a0aa
chore: migrate development environment from Nix flakes to devenv
Replace Nix flake-based development setup with devenv for better
developer experience and more streamlined environment management.

Changes:
  - Remove flake.nix and flake.lock files
  - Add devenv.nix, devenv.yaml, and devenv.lock configuration
  - Update .envrc to use devenv instead of nix develop
  - Remove Docker development setup (compose.dev.yml, docker/mod.just)
  - Expand .gitignore with comprehensive IDE and OS exclusions
  - Remove Docker-related just commands from justfile
2025-06-05 22:32:33 +02:00

31 lines
540 B
Nix

{ pkgs, lib, config, inputs, ... }:
{
dotenv.enable = true;
packages = with pkgs; [
bacon
cargo-deny
just
postgresql
sqls
sqlx-cli
];
# https://devenv.sh/languages/
languages.rust = {
enable = true;
channel = "stable";
};
services.postgres = {
enable = true;
listen_addresses = "localhost";
initialScript = ''
CREATE USER georm WITH PASSWORD 'georm' SUPERUSER;
CREATE DATABASE georm OWNER georm;
GRANT ALL PRIVILEGES ON DATABASE georm TO georm;
'';
};
}