From 9c0f6183cdfac4611c08653703c791aef3181f68 Mon Sep 17 00:00:00 2001 From: Bill Ewanick Date: Sat, 26 Jul 2025 03:21:06 -0400 Subject: [PATCH] Run nix fmt --- flake.nix | 111 ++++++++++++++++++++++++++---------------------------- 1 file changed, 54 insertions(+), 57 deletions(-) diff --git a/flake.nix b/flake.nix index a977a8d..184b550 100644 --- a/flake.nix +++ b/flake.nix @@ -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; + }; + }; + }; }; }