Skip to content

Commit

Permalink
treewide: use microsoft vscode variant (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc authored Jan 5, 2025
2 parents 0e41698 + 1e728c2 commit b2e9cc5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion home/lyc/modules/programs/vscode/vscode.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
enable = lib.mkDefault false;

# Use open-source version of microsoft/vscode
package = pkgs.vscodium;
package = pkgs.vscode;
userSettings =
(builtins.fromJSON (builtins.readFile ./settings.json))
// (
Expand Down
2 changes: 1 addition & 1 deletion home/lyc/modules/programs/zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ zle -N down-line-or-beginning-search
[[ -n "${key[Down]}" ]] && bindkey -- "${key[Down]}" down-line-or-beginning-search


export EDITOR="codium --wait"
export EDITOR="code --wait"

# Enable word movement with Ctrl + Arrow keys
bindkey '^[[1;5D' backward-word # Ctrl + Left Arrow
Expand Down
2 changes: 1 addition & 1 deletion nixos/configurations/adrastea/code-server/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Code server

This submodule declares using vscodium web services.
This submodule declares using vscode web services.
2 changes: 1 addition & 1 deletion nixos/configurations/adrastea/code-server/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let
${builtins.readFile ./start-code-server.py}
''}";
Environment = [
"WebHost=${pkgs.vscodium-web-host}"
"WebHost=${pkgs.vscode-web-host}"
"Port=${port}"
"ConnectionTokenFile=${config.sops.secrets.${secretName}.path}"
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

subprocess.run(
[
f"{os.environ["WebHost"]}/bin/codium-server",
f"{os.environ["WebHost"]}/bin/code-server",
"--host",
"127.0.0.1",
"--port",
os.environ["Port"],
"--connection-token-file",
os.environ["ConnectionTokenFile"],
"--accept-server-license-terms",
]
)
2 changes: 1 addition & 1 deletion nixos/configurations/adrastea/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
};

imports = [
# Codium server, for easy FHS access.
# vscode server, for easy FHS access.
./code-server
./game.nix
./gitea.nix
Expand Down

0 comments on commit b2e9cc5

Please sign in to comment.