Install claude-code from nixpkgs-unstable on LAPTOP-032

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Julien Hémono 2026-03-24 22:42:24 +01:00
parent 0d6345f076
commit 816796fdf4
3 changed files with 31 additions and 2 deletions

View file

@ -1,4 +1,13 @@
{ flake, config, pkgs, ... }:
{ flake, inputs, config, pkgs, ... }:
let
pkgs-unstable = import inputs.nixpkgs-unstable {
inherit (pkgs) system;
config.allowUnfreePredicate = pkg: builtins.elem (pkgs.lib.getName pkg) [
"claude-code"
];
};
in
{
@ -13,11 +22,13 @@
programs.uv.enable = true;
programs.gemini-cli = {
programs.claude-code = {
enable = true;
package = pkgs-unstable.claude-code;
};
home.packages = with pkgs; [
wl-clipboard
];
# Let Home Manager install and manage itself.