Created
May 1, 2025 18:18
-
-
Save iancullinane/41bc900c5d6169072780f7914e2f52e2 to your computer and use it in GitHub Desktop.
Basic nix.conf file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { 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