mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
Rename module directories
This commit is contained in:
parent
4c0ce1f479
commit
83638c33e2
36 changed files with 2 additions and 2 deletions
70
modules/home-manager/vscode.nix
Normal file
70
modules/home-manager/vscode.nix
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.myConfig.vscode.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.vscode.enable {
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
|
||||
package = pkgs.vscode-with-extensions.override {
|
||||
vscode = pkgs.vscodium;
|
||||
vscodeExtensions =
|
||||
let
|
||||
inherit (inputs.nix-vscode-extensions.extensions.${pkgs.system}) open-vsx;
|
||||
in
|
||||
[
|
||||
open-vsx.jnoortheen.nix-ide
|
||||
open-vsx.yzhang.markdown-all-in-one
|
||||
open-vsx.aaron-bond.better-comments
|
||||
open-vsx.esbenp.prettier-vscode
|
||||
open-vsx.ritwickdey.liveserver
|
||||
|
||||
open-vsx.github.github-vscode-theme
|
||||
open-vsx.jdinhlife.gruvbox
|
||||
open-vsx.pkief.material-icon-theme
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.tmpfiles.rules =
|
||||
let
|
||||
settings = builtins.replaceStrings [ "," ] [ ",\\n" ] (
|
||||
builtins.toJSON {
|
||||
"workbench.colorTheme" =
|
||||
{
|
||||
dark = "Gruvbox Dark Hard";
|
||||
light = "GitHub Light";
|
||||
}
|
||||
.${config.myConfig.theme};
|
||||
"workbench.iconTheme" = "material-icon-theme";
|
||||
"editor.fontFamily" = "JetBrainsMono Nerd Font";
|
||||
"explorer.confirmDelete" = false;
|
||||
"explorer.confirmDragAndDrop" = false;
|
||||
"extensions.autoCheckUpdates" = false;
|
||||
"files.autoSave" = "afterDelay";
|
||||
"git.autofetch" = true;
|
||||
"git.confirmSync" = false;
|
||||
"nix.enableLanguageServer" = true;
|
||||
"nix.serverPath" = "${lib.getExe pkgs.nil}";
|
||||
"update.mode" = "none";
|
||||
"git.suggestSmartCommit" = false;
|
||||
"workbench.sideBar.location" = "right";
|
||||
"editor.renderWhitespace" = "none";
|
||||
"editor.minimap.enabled" = false;
|
||||
"window.menuBarVisibility" = "toggle";
|
||||
"workbench.editor.decorations.colors" = false;
|
||||
}
|
||||
);
|
||||
in
|
||||
[
|
||||
"f+ %h/.config/VSCodium/User/settings.json - - - - ${settings}"
|
||||
"f+ %h/.config/VSCodium/User/settings-default.json - - - - ${settings}"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue