Skip to content

Instantly share code, notes, and snippets.

@cemdrk
Created December 29, 2025 19:40
Show Gist options
  • Select an option

  • Save cemdrk/53044b9f592cd921d79e5544c82b79c2 to your computer and use it in GitHub Desktop.

Select an option

Save cemdrk/53044b9f592cd921d79e5544c82b79c2 to your computer and use it in GitHub Desktop.
{
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