dotfiles/templates/basic/flake.nix
2022-08-07 12:52:03 -06:00

20 lines
500 B
Nix

{
description = "Basic project";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
forAllSystems = nixpkgs.lib.genAttrs [
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
];
in {
devShells = forAllSystems (system:
let pkgs = import nixpkgs { inherit system; };
in {
default = pkgs.mkShell { buildInputs = with pkgs; [ nixfmt ]; };
});
};
}