darwin compatibility logic & darwin mcp

This commit is contained in:
Danilo Reyes
2026-03-18 15:58:19 -06:00
parent 9c6f17f113
commit 29bb85b5c9
6 changed files with 93 additions and 47 deletions

View File

@@ -1,16 +1,23 @@
{ inputs, ... }:
{
perSystem = _: {
devShells =
let
hostShells = inputs.self.nixosConfigurations.emacs.config.devShells;
in
inputs.self.lib.langList
|> builtins.filter (name: hostShells ? ${name})
|> map (name: {
inherit name;
value = hostShells.${name};
})
|> builtins.listToAttrs;
};
perSystem =
{ pkgs, ... }:
{
devShells =
if pkgs.stdenv.isLinux then
let
hostShells = inputs.self.nixosConfigurations.emacs.config.devShells;
in
inputs.self.lib.langList
|> builtins.filter (name: hostShells ? ${name})
|> map (name: {
inherit name;
value = hostShells.${name};
})
|> builtins.listToAttrs
else
{
mcp = (import ../modules/dev/mcp/common.nix { inherit pkgs inputs; }).devShell;
};
};
}