diff --git a/flake.nix b/flake.nix index da8d1840..b2935af8 100644 --- a/flake.nix +++ b/flake.nix @@ -185,10 +185,9 @@ }) ]; - devShell = getDevShell "nixcfg"; - devShells = listToAttrs [ - (mkDevShell "nixcfg" { + (mkDevShell "default" { + name = "nixcfg"; checksShellHook = system: self.checks."${system}".pre-commit-check.shellHook; packages = pkgs: with pkgs; [ nixpkgs-fmt shellcheck statix ]; customShellHook = mkShellCheck; diff --git a/flake/builders/mkDevShell.nix b/flake/builders/mkDevShell.nix index a7ca0a90..290ccbac 100644 --- a/flake/builders/mkDevShell.nix +++ b/flake/builders/mkDevShell.nix @@ -1,4 +1,4 @@ -{ pkgs, name, system, args, ... }: +{ pkgs, system, args, ... }: let @@ -8,8 +8,8 @@ let in -pkgs.mkShell { - inherit name; +pkgs.mkShell rec { + inherit (args) name; buildInputs = with pkgs; [ # banner printing on enter figlet