darwin compatibility logic & darwin mcp
This commit is contained in:
@@ -1,11 +1,22 @@
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home = {
|
||||
username = "cdreyes";
|
||||
homeDirectory = "/Users/cdreyes";
|
||||
username = "carlosdaniloreyesmartinez";
|
||||
homeDirectory = "/Users/carlosdaniloreyesmartinez";
|
||||
packages = [ pkgs.google-cloud-sdk ];
|
||||
};
|
||||
programs = {
|
||||
starship.enable = true;
|
||||
kitty = {
|
||||
enable = true;
|
||||
shellIntegration.enableBashIntegration = false;
|
||||
shellIntegration.enableZshIntegration = true;
|
||||
settings.term = "xterm-256color";
|
||||
};
|
||||
};
|
||||
my = import ./toggles.nix { inherit inputs; };
|
||||
}
|
||||
|
||||
@@ -5,13 +5,32 @@
|
||||
emacsExtraConfig,
|
||||
emacsExtraPackages,
|
||||
}:
|
||||
{
|
||||
packages = builtins.attrValues {
|
||||
inherit (pkgs.xorg) xwininfo;
|
||||
let
|
||||
clipboardPackages =
|
||||
if pkgs.stdenv.isDarwin then
|
||||
builtins.attrValues {
|
||||
inherit (pkgs) pngpaste;
|
||||
}
|
||||
else
|
||||
builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
xdotool
|
||||
xclip
|
||||
wl-clipboard-rs
|
||||
;
|
||||
};
|
||||
linuxWindowPackages = lib.optionals pkgs.stdenv.isLinux (
|
||||
builtins.attrValues {
|
||||
inherit (pkgs.xorg) xwininfo;
|
||||
inherit (pkgs) xdotool;
|
||||
}
|
||||
);
|
||||
in
|
||||
{
|
||||
packages =
|
||||
linuxWindowPackages
|
||||
++ clipboardPackages
|
||||
++ builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
fd
|
||||
fzf
|
||||
ripgrep
|
||||
|
||||
@@ -111,9 +111,11 @@ in
|
||||
fi
|
||||
''
|
||||
''
|
||||
if command -v fzf-share >/dev/null; then
|
||||
source "$(fzf-share)/key-bindings.bash"
|
||||
source "$(fzf-share)/completion.bash"
|
||||
if [ -f "${pkgs.fzf}/share/fzf/key-bindings.zsh" ]; then
|
||||
source "${pkgs.fzf}/share/fzf/key-bindings.zsh"
|
||||
fi
|
||||
if [ -f "${pkgs.fzf}/share/fzf/completion.zsh" ]; then
|
||||
source "${pkgs.fzf}/share/fzf/completion.zsh"
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
@@ -9,7 +9,10 @@ let
|
||||
};
|
||||
in
|
||||
{
|
||||
systems = [ system ];
|
||||
systems = [
|
||||
system
|
||||
"aarch64-darwin"
|
||||
];
|
||||
flake = {
|
||||
lib = {
|
||||
commonOverlays = mkpkgs: inputs: [
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
{ inputs, ... }:
|
||||
{
|
||||
perSystem = _: {
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
devShells =
|
||||
if pkgs.stdenv.isLinux then
|
||||
let
|
||||
hostShells = inputs.self.nixosConfigurations.emacs.config.devShells;
|
||||
in
|
||||
@@ -11,6 +14,10 @@
|
||||
inherit name;
|
||||
value = hostShells.${name};
|
||||
})
|
||||
|> builtins.listToAttrs;
|
||||
|> builtins.listToAttrs
|
||||
else
|
||||
{
|
||||
mcp = (import ../modules/dev/mcp/common.nix { inherit pkgs inputs; }).devShell;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -52,12 +52,16 @@
|
||||
};
|
||||
in
|
||||
{
|
||||
packages = (inputs.jawz-scripts.packages.${system} or { }) // {
|
||||
emacs-vm = inputs.self.nixosConfigurations.emacs.config.system.build.vm;
|
||||
vps-linode = vpsLinodeConfig.config.system.build.images.linode;
|
||||
packages =
|
||||
(inputs.jawz-scripts.packages.${system} or { })
|
||||
// {
|
||||
mcp-tests = mcpTests;
|
||||
nixos-mcp = nixosMcp;
|
||||
nixos-mcp-server = mcpServerPkg;
|
||||
}
|
||||
// pkgs.lib.optionalAttrs pkgs.stdenv.isLinux {
|
||||
emacs-vm = inputs.self.nixosConfigurations.emacs.config.system.build.vm;
|
||||
vps-linode = vpsLinodeConfig.config.system.build.images.linode;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user