From 713a40e9da6119a5231dcae8ae39126637b71c00 Mon Sep 17 00:00:00 2001 From: Tomo <68489118+tomodachi94@users.noreply.github.com> Date: Fri, 26 Apr 2024 10:49:01 -0700 Subject: [PATCH] lib/shells.nix(ci): expose treefmt and deps --- lib/shells.nix | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/lib/shells.nix b/lib/shells.nix index fcf20a5..be28b62 100644 --- a/lib/shells.nix +++ b/lib/shells.nix @@ -1,24 +1,28 @@ { pkgs, home-manager, ... }: +let + treefmt-deps = with pkgs; [ + treefmt + stylua + statix + deadnix + nixpkgs-fmt + ]; +in { default = pkgs.mkShell { packages = with pkgs; [ nixos-rebuild just - stylua - deadnix - nixpkgs-fmt selene - statix - treefmt home-manager.packages.${system}.default - ]; + ] ++ treefmt-deps; }; ci = pkgs.mkShell { packages = with pkgs; [ just nixos-rebuild - jq - ]; + jq + ] ++ treefmt-deps; }; }