Skip to content

Instantly share code, notes, and snippets.

@drupol
Created August 1, 2023 12:48
Show Gist options
  • Save drupol/5843847dc0a013a6752b9cfcd33c836e to your computer and use it in GitHub Desktop.
Save drupol/5843847dc0a013a6752b9cfcd33c836e to your computer and use it in GitHub Desktop.
Example flake.nix for N.L.
{
description = "My custom shell env";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
antibody
tmux
stow
glibcLocales
fzf
zsh
ripgrep
];
};
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment