-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
21 lines (21 loc) · 828 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
inputs.canivete.url = github:schradert/canivete;
outputs = inputs:
inputs.canivete.lib.mkFlake {inherit inputs;} {
perSystem = {pkgs, ...}: {
canivete = {
devShell.name = "sage";
devShell.packages = with pkgs; [bun];
pre-commit = {
languages.javascript.enable = true;
# Also run biome on .svelte files
settings.hooks.biome.types_or = ["svelte"];
# Allow arbitrary line length in markdown (paragraph wrapping preferred)
settings.hooks.markdownlint.settings.configuration.MD013.line_length = -1;
# Remap sveltekit assets to correct folder for static link checking
settings.hooks.lychee.settings.flags = "--remap 'src/%25sveltekit.assets%25 static'";
};
};
};
};
}