Skip to content

Instantly share code, notes, and snippets.

@iancullinane
Created May 1, 2025 18:18
Show Gist options
  • Select an option

  • Save iancullinane/41bc900c5d6169072780f7914e2f52e2 to your computer and use it in GitHub Desktop.

Select an option

Save iancullinane/41bc900c5d6169072780f7914e2f52e2 to your computer and use it in GitHub Desktop.
Basic nix.conf file
{ pkgs, lib, config, inputs, ... }:
{
# using with pkgs is here is much nice imo
packages = with pkgs; [
gnumake
git
nodejs
awscli2
nodePackages.aws-cdk
go
gopls
curl
];
languages = {
javascript.enable = true;
typescript.enable = true;
go.enable = true; # Enable Go language support
};
# https://devenv.sh/scripts/
scripts.hello.exec = ''
echo hello from $GREET
'';
scripts.aws-login.exec = ''
echo "Run: aws sts get-caller-identity"
aws sts get-caller-identity
'';
scripts.build-linux.exec = ''
echo "Building Go binary for linux/amd64..."
cd environment/lib/functions
GOOS=linux GOARCH=amd64 go build -o hello
'';
enterShell = ''
hello
aws-login
git --version
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment