diff --git a/flake.lock b/flake.lock index 9c21f9b..112a0ab 100644 --- a/flake.lock +++ b/flake.lock @@ -92,6 +92,22 @@ "type": "github" } }, + "nixpkgs-unstable": { + "locked": { + "lastModified": 1774106199, + "narHash": "sha256-US5Tda2sKmjrg2lNHQL3jRQ6p96cgfWh3J1QBliQ8Ws=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "6c9a78c09ff4d6c21d0319114873508a6ec01655", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "root": { "inputs": { "blueprint": "blueprint", @@ -99,6 +115,7 @@ "mysecrets": "mysecrets", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", + "nixpkgs-unstable": "nixpkgs-unstable", "sops-nix": "sops-nix" } }, diff --git a/flake.nix b/flake.nix index 0d6bd56..ea89a4b 100644 --- a/flake.nix +++ b/flake.nix @@ -3,6 +3,7 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11"; + nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; blueprint = { url = "github:numtide/blueprint"; diff --git a/hosts/LAPTOP-032/users/julien.nix b/hosts/LAPTOP-032/users/julien.nix index d800561..a8d3382 100644 --- a/hosts/LAPTOP-032/users/julien.nix +++ b/hosts/LAPTOP-032/users/julien.nix @@ -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.