Created
November 20, 2025 14:53
-
-
Save cemdrk/cd620f1bc8eb49881c37a5f45d50f0e8 to your computer and use it in GitHub Desktop.
Flake empty template
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
| { | |
| description = "flake empty env"; | |
| inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1"; # unstable Nixpkgs | |
| outputs = | |
| { self, ... }@inputs: | |
| let | |
| supportedSystems = [ | |
| "x86_64-linux" # 64-bit Intel/AMD Linux | |
| "aarch64-linux" # 64-bit ARM Linux | |
| "x86_64-darwin" # 64-bit Intel macOS | |
| "aarch64-darwin" # 64-bit ARM macOS | |
| ]; | |
| forEachSupportedSystem = | |
| f: | |
| inputs.nixpkgs.lib.genAttrs supportedSystems ( | |
| system: | |
| f { | |
| pkgs = import inputs.nixpkgs { inherit system; }; | |
| } | |
| ); | |
| in | |
| { | |
| devShells = forEachSupportedSystem ( | |
| { pkgs }: | |
| { | |
| default = pkgs.mkShellNoCC { | |
| packages = with pkgs; [ nodejs_24 ]; | |
| env = { }; | |
| shellHook = '' | |
| export LANG=en_US.UTF-8 | |
| export LC_ALL=en_US.UTF-8 | |
| ''; | |
| }; | |
| } | |
| ); | |
| }; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment