Compare commits

..

1 Commits

Author SHA1 Message Date
Bill Ewanick 7692945e7c Running commands 2025-07-20 22:47:28 -04:00
1 changed files with 64 additions and 58 deletions

View File

@ -11,7 +11,8 @@
treefmt-nix.url = "github:numtide/treefmt-nix"; treefmt-nix.url = "github:numtide/treefmt-nix";
}; };
outputs = inputs @ {flake-parts, ...}: outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } { flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ imports = [
# To import a flake module # To import a flake module
@ -29,32 +30,39 @@
# "aarch64-darwin" # "aarch64-darwin"
# "x86_64-darwin" # "x86_64-darwin"
]; ];
flake = { perSystem =
# 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, config,
self', self',
inputs', inputs',
pkgs, pkgs,
system, system,
... ...
}: { }:
{
# Per-system attributes can be defined here. The self' and inputs' # Per-system attributes can be defined here. The self' and inputs'
# module parameters provide easy access to attributes of the same # module parameters provide easy access to attributes of the same
# system. # system.
# Equivalent to inputs'.nixpkgs.legacyPackages.hello; # Equivalent to inputs'.nixpkgs.legacyPackages.hello;
# packages.default = pkgs.hello; packages.default = pkgs.hello;
packages.default = config.packages.osds-site;
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; [
cowsay cowsay
alejandra
]; ];
}; };
@ -71,25 +79,23 @@
}; };
}; };
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 = {
alejandra.enable = true;
mdformat.enable = true; mdformat.enable = true;
nixfmt.enable = true;
nixfmt.package = pkgs.nixfmt-rfc-style;
prettier.enable = true; prettier.enable = true;
prettier.excludes = [ "*.md" ]; prettier.excludes = [ "*.md" ];
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.
}; };
}; };
} }