add devenv

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
2024-07-03 18:17:18 +02:00
parent e4e4e9bb85
commit 4f705cdfaa
5 changed files with 187 additions and 0 deletions

38
devenv.nix Normal file
View File

@@ -0,0 +1,38 @@
{ pkgs, lib, config, inputs, ... }:
{
# https://devenv.sh/basics/
# env.GREET = "devenv";
# https://devenv.sh/packages/
# packages = [ pkgs.git ];
# https://devenv.sh/scripts/
# scripts.hello.exec = "echo hello from $GREET";
# enterShell = ''
# hello
# git --version
# '';
# https://devenv.sh/tests/
# enterTest = ''
# echo "Running tests"
# git --version | grep "2.42.0"
# '';
# https://devenv.sh/services/
# services.postgres.enable = true;
# https://devenv.sh/languages/
languages.nix.enable = true;
languages.python.enable = true;
# https://devenv.sh/pre-commit-hooks/
# pre-commit.hooks.shellcheck.enable = true;
# https://devenv.sh/processes/
# processes.ping.exec = "ping example.com";
# See full reference at https://devenv.sh/reference/options/
}