code-server: pin package to nixpkgs unstable for newer VS Code version

Adds nixpkgs unstable as a flake input and exposes pkgs-unstable via
specialArgs. code-server uses the unstable package so the Claude Code
extension version requirement is satisfied.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rope 2026-05-16 11:17:25 +01:00
parent b6eb5c055d
commit e59c239257
2 changed files with 5 additions and 2 deletions

View file

@ -3,6 +3,7 @@
inputs = {
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.11";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager-stable = {
url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs-stable";
@ -33,6 +34,7 @@
outputs =
{ self
, nixpkgs-stable
, nixpkgs
, home-manager-stable
, zen-browser
, nix-cachyos-kernel
@ -45,7 +47,7 @@
system = "x86_64-linux";
mkHost = hostname: pkgsInput: hmInput: pkgsInput.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
specialArgs = { inherit inputs; pkgs-unstable = nixpkgs.legacyPackages.${system}; };
modules = [
./hosts/${hostname}.nix
./hosts/hardware/${hostname}.nix