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:
parent
b6eb5c055d
commit
e59c239257
2 changed files with 5 additions and 2 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.11";
|
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
home-manager-stable = {
|
home-manager-stable = {
|
||||||
url = "github:nix-community/home-manager/release-25.11";
|
url = "github:nix-community/home-manager/release-25.11";
|
||||||
inputs.nixpkgs.follows = "nixpkgs-stable";
|
inputs.nixpkgs.follows = "nixpkgs-stable";
|
||||||
|
|
@ -33,6 +34,7 @@
|
||||||
outputs =
|
outputs =
|
||||||
{ self
|
{ self
|
||||||
, nixpkgs-stable
|
, nixpkgs-stable
|
||||||
|
, nixpkgs
|
||||||
, home-manager-stable
|
, home-manager-stable
|
||||||
, zen-browser
|
, zen-browser
|
||||||
, nix-cachyos-kernel
|
, nix-cachyos-kernel
|
||||||
|
|
@ -45,7 +47,7 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
mkHost = hostname: pkgsInput: hmInput: pkgsInput.lib.nixosSystem {
|
mkHost = hostname: pkgsInput: hmInput: pkgsInput.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; pkgs-unstable = nixpkgs.legacyPackages.${system}; };
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/${hostname}.nix
|
./hosts/${hostname}.nix
|
||||||
./hosts/hardware/${hostname}.nix
|
./hosts/hardware/${hostname}.nix
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,12 @@
|
||||||
# password gate). After deploy, install the Claude extension from a terminal:
|
# password gate). After deploy, install the Claude extension from a terminal:
|
||||||
# code-server --install-extension anthropic.claude-code
|
# code-server --install-extension anthropic.claude-code
|
||||||
# and set ANTHROPIC_API_KEY in ~/.config/code-server/env or via a shell profile.
|
# and set ANTHROPIC_API_KEY in ~/.config/code-server/env or via a shell profile.
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, pkgs-unstable, ... }:
|
||||||
{
|
{
|
||||||
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
|
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
|
||||||
services.code-server = {
|
services.code-server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs-unstable.code-server;
|
||||||
host = "127.0.0.1";
|
host = "127.0.0.1";
|
||||||
port = 4444;
|
port = 4444;
|
||||||
auth = "none";
|
auth = "none";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue