flake-template-hell/templates/astro/flake.nix

31 lines
671 B
Nix

{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs =
{ nixpkgs, ... }:
let
inherit (nixpkgs) lib;
systems = [
"x86_64-linux"
"aarch64-linux"
];
forAllSystems =
f:
lib.genAttrs systems (
system:
f {
inherit system;
pkgs = nixpkgs.legacyPackages.${system};
}
);
in
{
devShells = forAllSystems (
{ pkgs, ... }:
{
default = pkgs.callPackage ./flake/shell.nix { };
}
);
formatter = forAllSystems ({ pkgs, ... }: pkgs.callPackage ./flake/formatter.nix { });
};
}