mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
zest: add claude
This commit is contained in:
parent
67e6bfe047
commit
3392e48a94
3 changed files with 7 additions and 3 deletions
|
|
@ -5,6 +5,7 @@
|
|||
flake.inputs.self.homeModules.darwin-only
|
||||
(flake.inputs.self + /modules/home/all/1password.nix)
|
||||
(flake.inputs.self + /modules/home/all/juspay-vertex.nix)
|
||||
(flake.inputs.self + /modules/home/claude-code)
|
||||
];
|
||||
|
||||
home.username = "srid";
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ in
|
|||
{
|
||||
imports = [ landrun-nix.flakeModule ];
|
||||
|
||||
perSystem = { pkgs, ... }: {
|
||||
landrunApps.claude = {
|
||||
perSystem = { pkgs, system, lib, ... }: {
|
||||
landrunApps.claude = lib.mkIf (lib.hasInfix "linux" system) {
|
||||
program = "${pkgs.claude-code}/bin/claude";
|
||||
imports = [
|
||||
landrunModules.gh
|
||||
|
|
|
|||
|
|
@ -22,7 +22,10 @@ in
|
|||
home.packages = [
|
||||
pkgs.tree
|
||||
pkgs.python313Packages.markitdown
|
||||
flake.inputs.self.packages.${pkgs.system}.claude # Sandboxed version from claude-sandboxed.nix
|
||||
# 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
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue