mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
20 lines
426 B
Nix
20 lines
426 B
Nix
{
|
|
lib,
|
|
tree,
|
|
inputs,
|
|
...
|
|
}: let
|
|
inherit (lib.attrsets) mapAttrs;
|
|
in
|
|
inputs.utils.lib.eachDefaultSystem (system: {
|
|
devShells = let
|
|
shells = mapAttrs (_: path:
|
|
import path rec {
|
|
inherit tree inputs system;
|
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
|
inherit (inputs.nixpkgs) lib;
|
|
})
|
|
tree.shells;
|
|
in
|
|
shells // {default = shells.repo;};
|
|
})
|