services: add code-server web IDE at code.nordhammer.it
Deploys code-server on FredOS-Mediaserver (port 4444, user fred) with Authelia one_factor auth and nginx reverse proxy. Includes claude-code in system packages for use in the integrated terminal. Also fixes anyrun launcher width to absolute 350px (was a tiny fraction). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0be8faced3
commit
b6eb5c055d
5 changed files with 30 additions and 1 deletions
26
services/code-server.nix
Normal file
26
services/code-server.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# services/code-server.nix — Web IDE at code.nordhammer.it, protected by Authelia.
|
||||
#
|
||||
# Run as fred so it has access to ~/nixos-config and the rest of the home dir.
|
||||
# Auth is handled entirely by Authelia (auth = "none" disables code-server's own
|
||||
# password gate). After deploy, install the Claude extension from a terminal:
|
||||
# code-server --install-extension anthropic.claude-code
|
||||
# and set ANTHROPIC_API_KEY in ~/.config/code-server/env or via a shell profile.
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
|
||||
services.code-server = {
|
||||
enable = true;
|
||||
host = "127.0.0.1";
|
||||
port = 4444;
|
||||
auth = "none";
|
||||
user = "fred";
|
||||
extraArguments = [
|
||||
"--disable-telemetry"
|
||||
"--disable-update-check"
|
||||
];
|
||||
};
|
||||
|
||||
# Make the claude CLI available in code-server's integrated terminal.
|
||||
environment.systemPackages = [ pkgs.claude-code ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue