Setup devenv

This commit is contained in:
Michael Lehmann
2024-12-19 20:54:44 +01:00
parent ed8cc243ea
commit 929f2fab76
5 changed files with 176 additions and 0 deletions

33
devenv.nix Normal file
View File

@@ -0,0 +1,33 @@
{
pkgs,
lib,
config,
inputs,
...
}: {
# https://devenv.sh/basics/
env.GREET = "Project swayidle-ctrl";
# https://devenv.sh/packages/
packages = [];
# https://devenv.sh/languages/
languages.go = {
enable = true;
enableHardeningWorkaround = true;
};
# https://devenv.sh/scripts/
scripts.hello.exec = ''
echo hello from $GREET
'';
enterShell = ''
hello
'';
# https://devenv.sh/tests/
enterTest = ''
echo "Running tests"
'';
}