Move things around

main
Bill Ewanick 2025-07-26 02:28:04 -04:00
parent 4d9a5aff41
commit a20d242fcf
1 changed files with 16 additions and 20 deletions

View File

@ -30,6 +30,11 @@
# "aarch64-darwin"
# "x86_64-darwin"
];
flake = {
# The usual flake attributes can be defined here, including system-
# agnostic ones like nixosModule and system-enumerating ones, although
# those are more easily expressed in perSystem.
};
perSystem =
{
config,
@ -46,19 +51,7 @@
# Equivalent to inputs'.nixpkgs.legacyPackages.hello;
packages.default = pkgs.hello;
pre-commit = {
settings.hooks = {
mdformat.enable = true;
nixfmt-rfc-style.enable = true;
prettier.enable = true;
prettier.excludes = [
".*\.md"
"flake.lock"
];
stylish-haskell.enable = true;
};
};
devshells.default = {
packages = with pkgs; [
@ -79,6 +72,16 @@
};
};
pre-commit = {
settings.hooks = {
alejandra.enable = true;
mdformat.enable = true;
prettier.enable = true;
prettier.excludes = [ ".*\.md" "flake.lock" ];
stylish-haskell.enable = true;
};
};
treefmt = {
programs = {
mdformat.enable = true;
@ -89,13 +92,6 @@
stylish-haskell.enable = true;
};
};
};
flake = {
# The usual flake attributes can be defined here, including system-
# agnostic ones like nixosModule and system-enumerating ones, although
# those are more easily expressed in perSystem.
};
};
}