31 lines
692 B
Nix
31 lines
692 B
Nix
{pkgs, ...}: {
|
|
# https://devenv.sh/basics/
|
|
env.GREET = "devenv";
|
|
|
|
# https://devenv.sh/packages/
|
|
packages = [pkgs.delta pkgs.difftastic];
|
|
|
|
# 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 = {
|
|
shellcheck.enable = true;
|
|
black.enable = true;
|
|
alejandra.enable = true;
|
|
};
|
|
|
|
# https://devenv.sh/processes/
|
|
# processes.ping.exec = "ping example.com";
|
|
|
|
# See full reference at https://devenv.sh/reference/options/
|
|
}
|