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 22, 2023
1 parent 4689c49 commit 2107ba5
Show file tree
Hide file tree
Showing 7 changed files with 167 additions and 1 deletion.
74 changes: 73 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};

vscode-extensions = {
url = "github:nix-community/nix-vscode-extensions";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = {
Expand Down
1 change: 1 addition & 0 deletions home/desktop/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{...}: {
imports = [
./tools
./editors
./xmonad
];
}
5 changes: 5 additions & 0 deletions home/desktop/editors/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{...}: {
imports = [
./vscodium
];
}
11 changes: 11 additions & 0 deletions home/desktop/editors/vscodium/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{pkgs, ...}: {
imports = [
./settings.nix
./extensions.nix
];

programs.vscode = {
enable = true;
package = pkgs.vscodium;
};
}
19 changes: 19 additions & 0 deletions home/desktop/editors/vscodium/extensions.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
pkgs,
vscode-extensions,
...
}: {
programs.vscode = {
extensions = with vscode-extensions.extensions.${pkgs.system}.vscode-marketplace; [
wakatime.vscode-wakatime # WakaTime
beardedbear.beardedtheme # Theme
beardedbear.beardedicons # Icons
leonardssh.vscord # Discord RPC
kamadorueda.alejandra # Nix Formatter
jnoortheen.nix-ide # Nix Syntax Highlight and more
github.copilot # Copilot AI
github.copilot-chat # Copilot AI chat
ms-vscode-remote.remote-ssh # ssh
];
};
}
53 changes: 53 additions & 0 deletions home/desktop/editors/vscodium/settings.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";
};
};
}

0 comments on commit 2107ba5

Please sign in to comment.