Skip to content

Commit

Permalink
feat(desktop): add vscodium
Browse files Browse the repository at this point in the history
  • Loading branch information
yunfachi committed Nov 30, 2023
1 parent b50c8be commit b683a9a
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 0 deletions.
3 changes: 3 additions & 0 deletions home/desktop/editors/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{lib, ...}: {
imports = map (n: toString ./. + "/${n}") (lib.remove "default.nix" (builtins.attrNames (builtins.readDir ./.)));
}
53 changes: 53 additions & 0 deletions home/desktop/editors/vscodium.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{...}: {
programs.vscode = {
keybindings = [];

userSettings = let
icon = "https://user-images.githubusercontent.com/36299870/105232957-165bc380-5b61-11eb-8da4-37870387857f.png";
work = "{workspace}/{file_name}{file_extension}";
idle = "( ´ ▿ ` )";
in {
"window.titleBarStyle" = "custom";
"workbench.iconTheme" = "bearded-icons";
"workbench.colorTheme" = "Bearded Theme Coffee";
"explorer.compactFolders" = false;
"editor.stickyScroll.enabled" = true;
"vscord.app.id" = "1152314975466029187";
"vscord.app.name" = "Custom";
"vscord.status.image.small.editing.key" = "";
"vscord.status.image.small.viewing.key" = "";
"vscord.status.image.large.idle.key" = icon;
"vscord.status.image.large.notInFile.key" = icon;
"vscord.status.image.small.notInFile.key" = "";
"vscord.status.image.small.idle.key" = "";
"vscord.status.image.small.debugging.key" = "";
"vscord.status.image.large.viewing.key" = icon;
"vscord.status.image.large.editing.key" = icon;
"vscord.status.image.large.debugging.key" = icon;
"vscord.status.image.small.viewing.text" = "";
"vscord.status.image.small.notInFile.text" = "";
"vscord.status.image.small.idle.text" = "";
"vscord.status.image.small.editing.text" = "";
"vscord.status.image.small.debugging.text" = "";
"vscord.status.image.large.viewing.text" = "";
"vscord.status.image.large.idle.text" = "";
"vscord.status.image.large.editing.text" = "";
"vscord.status.image.large.debugging.text" = "";
"vscord.status.problems.text" = "";
"vscord.status.details.text.editing" = work;
"vscord.status.details.text.notInFile" = idle;
"vscord.status.details.text.noWorkSpaceText" = idle;
"vscord.status.details.text.viewing" = work;
"vscord.status.state.text.editing" = "";
"vscord.status.state.text.noWorkspaceFound" = "";
"vscord.status.state.text.viewing" = "";
"vscord.status.state.text.debugging" = "";
"vscord.status.details.text.debugging" = work;
"vscord.status.details.text.idle" = idle;
"vscord.ignore.workspacesText" = "";
"vscord.status.buttons.button1.git.idle.label" = "Github Repository";
"vscord.status.buttons.button1.git.inactive.label" = "Github Repository";
"vscord.status.buttons.button1.git.active.label" = "Github Repository";
};
};
}
3 changes: 3 additions & 0 deletions modules/desktop/editors/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{lib, ...}: {
imports = map (n: toString ./. + "/${n}") (lib.remove "default.nix" (builtins.attrNames (builtins.readDir ./.)));
}
12 changes: 12 additions & 0 deletions modules/desktop/editors/vscodium/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
lib,
pkgs,
...
}: {
imports = map (n: toString ./. + "/${n}") (lib.remove "default.nix" (builtins.attrNames (builtins.readDir ./.)));

programs.vscode = {
enable = true;
package = pkgs.vscodium;
};
}
28 changes: 28 additions & 0 deletions modules/desktop/editors/vscodium/extensions.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
pkgs,
vscode-extensions,
...
}: {
programs.vscode = {
extensions = with vscode-extensions.extensions.${pkgs.system}.vscode-marketplace; [
beardedbear.beardedtheme # Theme
beardedbear.beardedicons # Icons

wakatime.vscode-wakatime # WakaTime
leonardssh.vscord # Discord RPC

kamadorueda.alejandra # Nix Formatter
jnoortheen.nix-ide # Nix Syntax Highlight and more

github.vscode-github-actions # Github Actions

github.remotehub # Github remote repositories
ms-vscode-remote.remote-ssh # SSH

github.copilot # Copilot AI
github.copilot-chat # Copilot AI chat
github.copilot-labs # Copilot AI labs
github.heygithub # Copilot AI voice
];
};
}

0 comments on commit b683a9a

Please sign in to comment.