Run nix fmt

main
Bill Ewanick 2025-07-26 03:21:06 -04:00
parent b412772223
commit 9c0f6183cd
1 changed files with 54 additions and 57 deletions

111
flake.nix
View File

@ -11,9 +11,8 @@
treefmt-nix.url = "github:numtide/treefmt-nix";
};
outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [
# To import a flake module
# 1. Add foo to inputs
@ -35,65 +34,63 @@
# agnostic ones like nixosModule and system-enumerating ones, although
# those are more easily expressed in perSystem.
};
perSystem =
{
config,
self',
inputs',
pkgs,
system,
...
}:
{
# Per-system attributes can be defined here. The self' and inputs'
# module parameters provide easy access to attributes of the same
# system.
perSystem = {
config,
self',
inputs',
pkgs,
system,
...
}: {
# Per-system attributes can be defined here. The self' and inputs'
# module parameters provide easy access to attributes of the same
# system.
# Equivalent to inputs'.nixpkgs.legacyPackages.hello;
# packages.default = pkgs.hello;
packages.default = self'.packages.osds-site;
apps.default = self'.apps.osds-site;
# Equivalent to inputs'.nixpkgs.legacyPackages.hello;
# packages.default = pkgs.hello;
packages.default = self'.packages.osds-site;
apps.default = self'.apps.osds-site;
devshells.default = {
packages = with pkgs; [
cowsay
devshells.default = {
packages = with pkgs; [
cowsay
alejandra
alejandra
];
};
emanote.sites = {
osds-site = {
layers = [
{
path = ./osds-src;
pathString = "osds-src";
}
];
};
emanote.sites = {
osds-site = {
layers = [
{
path = ./osds-src;
pathString = "osds-src";
}
];
baseUrl = "localhost";
port = 12513;
};
};
pre-commit = {
settings.hooks = {
alejandra.enable = true;
mdformat.enable = true;
prettier.enable = true;
prettier.excludes = [ ".*\.md" "flake.lock" ];
stylish-haskell.enable = true;
};
};
treefmt = {
programs = {
alejandra.enable = true;
mdformat.enable = true;
prettier.enable = true;
prettier.excludes = [ "*.md" ];
stylish-haskell.enable = true;
};
baseUrl = "localhost";
port = 12513;
};
};
pre-commit = {
settings.hooks = {
alejandra.enable = true;
mdformat.enable = true;
prettier.enable = true;
prettier.excludes = [".*\.md" "flake.lock"];
stylish-haskell.enable = true;
};
};
treefmt = {
programs = {
alejandra.enable = true;
mdformat.enable = true;
prettier.enable = true;
prettier.excludes = ["*.md"];
stylish-haskell.enable = true;
};
};
};
};
}