Skip to content

Instantly share code, notes, and snippets.

@cemdrk
Created November 20, 2025 14:53
Show Gist options
  • Select an option

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

Select an option

Save cemdrk/cd620f1bc8eb49881c37a5f45d50f0e8 to your computer and use it in GitHub Desktop.
Flake empty template
{
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