diff --git a/flake.nix b/flake.nix index 91b990c28..f8bab0f27 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ inherit (lib) all removeSuffix recursiveUpdate genAttrs filterAttrs mapAttrs; inherit (utils) pathsToImportedAttrs genPkgset overlayPaths modules - genPackages pkgImport; + genPackages pkgImport devshells; utils = import ./lib/utils.nix { inherit lib; }; @@ -44,6 +44,7 @@ overlays = pathsToImportedAttrs overlayPaths; nixosModules = modules; + devshellModules = devshells; templates.flk.path = ./.; diff --git a/lib/utils.nix b/lib/utils.nix index 1e8611828..eb88b492f 100644 --- a/lib/utils.nix +++ b/lib/utils.nix @@ -82,6 +82,13 @@ in (recursiveUpdate cachixAttrs modulesAttrs) profilesAttrs; + devshells = + let + # shells + shellList = import ../shells/list.nix; + in + pathsToImportedAttrs shellList; + genPackages = { overlay, overlays, pkgs }: let packages = overlay pkgs pkgs; diff --git a/shells/list.nix b/shells/list.nix new file mode 100644 index 000000000..758b8e2ca --- /dev/null +++ b/shells/list.nix @@ -0,0 +1,3 @@ +[ + ./flk +]