wiki/flake.nix
dfh 0ef0d4652a
Some checks failed
buildbot/nix-build .#checks.aarch64-darwin Build done.
buildbot/nix-build .#checks.aarch64-linux Build done.
buildbot/nix-build .#checks.x86_64-darwin Build done.
buildbot/nix-build .#checks.x86_64-linux Build done.
buildbot/nix-eval Build done.
feat: Add treefmt based formatting & flake checks
Correcting existing formatting will follow in a future PR.

Co-authored-by: Skyler Grey <minion@clicks.codes>
2024-08-01 16:52:09 +00:00

41 lines
798 B
Nix

{
description = "The Auxolotol wiki";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs:
inputs.snowfall-lib.mkFlake {
inherit inputs;
src = ./.;
snowfall = {
namespace = "wiki";
};
outputs-builder =
channels:
let
treefmt = inputs.treefmt-nix.lib.evalModule channels.nixpkgs ./treefmt.nix;
in
{
formatter = treefmt.config.build.wrapper;
checks.formatting = treefmt.config.build.check inputs.self;
};
};
}