Install vscode server
diff --git a/flake.nix b/flake.nix
index f13435b..4948ea1 100644
--- a/flake.nix
+++ b/flake.nix
@@ -25,6 +25,7 @@
./modules/kitty.nix
./modules/tesseract.nix
./modules/doas.nix
+ ./modules/code-server.nix
{
users.mutableUsers = false;
}
diff --git a/modules/code-server.nix b/modules/code-server.nix
index 9840238..134c52d 100644
--- a/modules/code-server.nix
+++ b/modules/code-server.nix
@@ -1,7 +1,12 @@
-{
+{ pkgs, ... }: {
services.code-server = {
enable = true;
host = "0.0.0.0";
auth = "none";
+ package = (pkgs.buildFHSUserEnv {
+ name = "code-server";
+ targetPkgs = pkgs: [ pkgs.code-server ];
+ runScript = "code-server";
+ });
};
}