You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flux2/devenv.nix

40 lines
802 B
Nix

{ pkgs, lib, config, inputs, ... }:
{
# https://devenv.sh/basics/
env.GREET = "Flux2 dev env";
# https://devenv.sh/packages/
packages = [
pkgs.git
pkgs.kustomize
];
# https://devenv.sh/scripts/
scripts.hello.exec = "echo Hello in the $GREET";
scripts.tests.exec = "make test";
enterShell = ''
hello
'';
# https://devenv.sh/tests/
enterTest = ''
tests
'';
# https://devenv.sh/services/
# services.postgres.enable = true;
# https://devenv.sh/languages/
# languages.nix.enable = true;
languages.go.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/
}