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