This commit is contained in:
Sridhar Ratnakumar 2025-11-10 13:25:38 -05:00
parent 6f81d50ca3
commit c210d0e76f
3 changed files with 8 additions and 15 deletions

View file

@ -62,12 +62,5 @@
config.allowUnfree = true;
};
};
# https://omnix.page/om/ci.html
flake.om.ci.default.ROOT = {
dir = ".";
steps.flake-check.enable = false; # Doesn't make sense to check nixos config on darwin!
steps.custom = { };
};
};
}

View file

@ -36,16 +36,16 @@ in
home.packages = [
pkgs.tree
pkgs.python313Packages.markitdown
# Use sandboxed version on Linux, plain version on macOS
(if lib.hasInfix "linux" pkgs.system
then flake.inputs.self.packages.${pkgs.system}.claude
else pkgs.claude-code)
# Other agents for trying out
pkgs.copilot-cli
];
programs.claude-code = {
enable = true;
package = null; # See above
# Use sandboxed version on Linux, plain version on macOS
package = (if lib.hasInfix "linux" pkgs.system
then flake.inputs.self.packages.${pkgs.system}.claude
else pkgs.claude-code);
# Basic settings for Claude Code
settings = {

View file

@ -4,6 +4,7 @@ let
inherit (flake) inputs;
inherit (inputs) self;
packages = self + /packages;
nix-ai-tools = system: inputs.nix-ai-tools.packages.${system};
in
self: super:
@ -34,9 +35,8 @@ in
packageOverlays // {
# External overlays
nuenv = (inputs.nuenv.overlays.nuenv self super).nuenv;
# omnix = inputs.omnix.packages.${self.system}.default;
# Use claude-code from nix-ai-tools instead of nixpkgs
claude-code = inputs.nix-ai-tools.packages.${self.system}.claude-code;
copilot-cli = inputs.nix-ai-tools.packages.${self.system}.copilot-cli;
claude-code = (nix-ai-tools self.system).claude-code;
copilot-cli = (nix-ai-tools self.system).copilot-cli;
}