Move things around
parent
4d9a5aff41
commit
a20d242fcf
36
flake.nix
36
flake.nix
|
@ -30,6 +30,11 @@
|
||||||
# "aarch64-darwin"
|
# "aarch64-darwin"
|
||||||
# "x86_64-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 =
|
perSystem =
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
|
@ -46,19 +51,7 @@
|
||||||
|
|
||||||
# Equivalent to inputs'.nixpkgs.legacyPackages.hello;
|
# Equivalent to inputs'.nixpkgs.legacyPackages.hello;
|
||||||
packages.default = pkgs.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 = {
|
devshells.default = {
|
||||||
packages = with pkgs; [
|
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 = {
|
treefmt = {
|
||||||
programs = {
|
programs = {
|
||||||
mdformat.enable = true;
|
mdformat.enable = true;
|
||||||
|
@ -89,13 +92,6 @@
|
||||||
stylish-haskell.enable = true;
|
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.
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue