chore: add devenv

This commit is contained in:
Glen Goodwin 2023-06-07 22:27:35 -04:00
parent 4deeb1a290
commit baf63e2ac9
5 changed files with 203 additions and 0 deletions

30
devenv.nix Normal file
View file

@ -0,0 +1,30 @@
{ pkgs, ... }:
{
# 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/languages/
# languages.nix.enable = true;
# https://devenv.sh/pre-commit-hooks/
# pre-commit.hooks.shellcheck.enable = true;
pre-commit.hooks.nixpkgs-fmt.enable = true;
pre-commit.hooks.deadnix.enable = true;
pre-commit.hooks.statix.enable = true;
# https://devenv.sh/processes/
# processes.ping.exec = "ping example.com";
# See full reference at https://devenv.sh/reference/options/
}