dotfiles/templates/basic/flake.nix

20 lines
494 B
Nix
Raw Normal View History

2022-08-07 18:52:00 +00:00
{
description = "Basic project";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2023-02-21 01:45:56 +00:00
outputs = { nixpkgs }:
2022-08-07 18:52:00 +00:00
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 ]; };
});
};
}