formatting

This commit is contained in:
Osman Faruk Bayram 2025-11-07 08:51:19 +03:00
parent 8d24cb9103
commit 9531572ca6

View file

@ -6,51 +6,51 @@
}: }:
{ {
config = lib.mkIf config.osbmModules.services.vscode-server.enable { config = lib.mkIf config.osbmModules.services.vscode-server.enable {
services.code-server = { services.code-server = {
# only true if the machine is not pochita # only true if the machine is not pochita
enable = config.networking.hostName != "pochita"; enable = config.networking.hostName != "pochita";
port = 4444; port = 4444;
disableTelemetry = true; disableTelemetry = true;
disableUpdateCheck = true; disableUpdateCheck = true;
user = "osbm"; user = "osbm";
group = "users"; group = "users";
# auth = "none"; # auth = "none";
host = "${config.networking.hostName}.curl-boga.ts.net"; host = "${config.networking.hostName}.curl-boga.ts.net";
hashedPassword = "$argon2i$v=19$m=4096,t=3,p=1$dGc0TStGMDNzSS9JRkJYUFp3d091Q2p0bXlzPQ$zvdE9BkclkJmyFaenzPy2E99SEqsyDMt4IQNZfcfFFQ"; hashedPassword = "$argon2i$v=19$m=4096,t=3,p=1$dGc0TStGMDNzSS9JRkJYUFp3d091Q2p0bXlzPQ$zvdE9BkclkJmyFaenzPy2E99SEqsyDMt4IQNZfcfFFQ";
package = pkgs.vscode-with-extensions.override { package = pkgs.vscode-with-extensions.override {
vscode = pkgs.code-server; vscode = pkgs.code-server;
vscodeExtensions = vscodeExtensions =
with pkgs.vscode-extensions; with pkgs.vscode-extensions;
[ [
bbenoist.nix bbenoist.nix
catppuccin.catppuccin-vsc catppuccin.catppuccin-vsc
catppuccin.catppuccin-vsc-icons catppuccin.catppuccin-vsc-icons
charliermarsh.ruff charliermarsh.ruff
davidanson.vscode-markdownlint davidanson.vscode-markdownlint
esbenp.prettier-vscode esbenp.prettier-vscode
foxundermoon.shell-format foxundermoon.shell-format
github.copilot github.copilot
github.vscode-github-actions github.vscode-github-actions
github.vscode-pull-request-github github.vscode-pull-request-github
jnoortheen.nix-ide jnoortheen.nix-ide
kamadorueda.alejandra kamadorueda.alejandra
ms-azuretools.vscode-docker ms-azuretools.vscode-docker
ms-python.python ms-python.python
# ms-vscode-remote.remote-ssh # ms-vscode-remote.remote-ssh
timonwong.shellcheck timonwong.shellcheck
tyriar.sort-lines tyriar.sort-lines
] ]
++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [ ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{ {
# Available in nixpkgs, but outdated (0.4.0) at the time of adding # Available in nixpkgs, but outdated (0.4.0) at the time of adding
name = "vscode-tailscale"; name = "vscode-tailscale";
publisher = "tailscale"; publisher = "tailscale";
sha256 = "sha256-MKiCZ4Vu+0HS2Kl5+60cWnOtb3udyEriwc+qb/7qgUg="; sha256 = "sha256-MKiCZ4Vu+0HS2Kl5+60cWnOtb3udyEriwc+qb/7qgUg=";
version = "1.0.0"; version = "1.0.0";
} }
]; ];
};
}; };
networking.firewall.allowedTCPPorts = [ config.services.code-server.port ];
}; };
networking.firewall.allowedTCPPorts = [ config.services.code-server.port ];
};
} }