From 3231025b71b827be26daaf3f082b0be48ab66c2e Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 4 Jul 2024 15:55:29 -0400 Subject: nix: alejandra -> nixfmt-rfc-style --- shell.nix | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix index 1ba11b5..61095bb 100644 --- a/shell.nix +++ b/shell.nix @@ -3,25 +3,24 @@ let fetchTree = import ./nix/fetchTree.nix; flakeSources = builtins.mapAttrs (_: node: fetchTree node.locked) lock.nodes; in - { - pkgs ? - import sources.nixpkgs { - inherit system; - config = {}; - overlays = []; - }, - system ? builtins.currentSystem, - sources ? flakeSources, - formatter ? pkgs.alejandra, - }: - pkgs.mkShellNoCC { - packages = [ - pkgs.zola +{ + pkgs ? import sources.nixpkgs { + inherit system; + config = { }; + overlays = [ ]; + }, + system ? builtins.currentSystem, + sources ? flakeSources, + formatter ? pkgs.nixfmt-rfc-style, +}: +pkgs.mkShellNoCC { + packages = [ + pkgs.zola - # linters + formatters - formatter - pkgs.actionlint - pkgs.nodePackages.alex - pkgs.nodePackages.prettier - ]; - } + # linters + formatters + formatter + pkgs.actionlint + pkgs.nodePackages.alex + pkgs.nodePackages.prettier + ]; +} -- cgit v1.2.3