From 6b8778c6be6ad216d14ddf3ed9fecffcdb648ade Mon Sep 17 00:00:00 2001 From: Andreas Schaafsma Date: Tue, 20 Oct 2026 22:24:47 +0200 Subject: [PATCH] code server --- .../drivebystation-nix/code-server.nix | 17 +++++++++++++++++ .../drivebystation-nix/configuration.nix | 1 + 2 files changed, 18 insertions(+) create mode 100644 systems/x86_64-linux/drivebystation-nix/code-server.nix diff --git a/systems/x86_64-linux/drivebystation-nix/code-server.nix b/systems/x86_64-linux/drivebystation-nix/code-server.nix new file mode 100644 index 0000000..aea9dae --- /dev/null +++ b/systems/x86_64-linux/drivebystation-nix/code-server.nix @@ -0,0 +1,17 @@ +{ ... }: + +{ + services.code-server = { + enable = true; + user = "andreas"; + group = "users"; + host = "0.0.0.0"; + port = 1337; + auth = "password"; + hashedPassword = "$argon2i$v=19$m=4096,t=3,p=1$Njl5em15cVdqMVluSWJneWp4OUhObGgxZ0tnPQ$1AAVNLuuKv5qyno40QAxFVPeAydY+8XkEVovKYrkJN0"; + disableTelemetry = true; + disableUpdateCheck = true; + }; + + networking.firewall.allowedTCPPorts = [ 1337 ]; +} diff --git a/systems/x86_64-linux/drivebystation-nix/configuration.nix b/systems/x86_64-linux/drivebystation-nix/configuration.nix index a40c39a..dfffe0b 100644 --- a/systems/x86_64-linux/drivebystation-nix/configuration.nix +++ b/systems/x86_64-linux/drivebystation-nix/configuration.nix @@ -10,6 +10,7 @@ { imports = [ + ./code-server.nix ./tigervnc.nix ./hardware/hardware-configuration.nix ./hardware/realtek-r8125.nix